Forums Index >> Modding >> help plz
Page : <1> :
You'll have to edit a mission file. Use this codes, as these will help you on your journey to ultimate Tankdom ;) Enter these below the //--- OBJECT WRITE END --- line.
Lighttank.defaultprojectile = "xprojectile";
For the default weapon
xprojectile.damage = #;
For the power of the weapon
xprojectile.count = #;
For the amount of ammo you can use with one powerup
xprojectile.burstcount = #;
For the amount of ammo in one round of fire
xprojectile.gravityscale = #;
For the rate of gravity (0 is no gravity)
xprojectile.velocity = #;
For the speed of the weapon
xprojectile.sizescale = #;
For the size of the weapon (1 is normal)
xprojectile.reloadtime = #;
For the delay between shots (1000 is 1 second)
xprojectile.burstdelay = #;
For the delay between rounds of fire (1000 is 1 second)
xprojectile.resource = "file";
For a different shape of bullet
defaultexplosion.resource = "file";
For a different explosion
defaultexplosion.startscale = #;
Defaultexplosion.endscale = #;
Makes the explosion different sizes at the start and the end of it
In the above, "x" can be replaced with Splash, Speedy, or Bounce. "#" represents a number.
And there you have it! Use them well ;)
Last edited: Friday, January 23, 2004 at 6:40:02 PM
Nice I cant wait to test this out. Thx cyber
So do these lines stay below the //--- OBJECT WRITE END --- line?
Last edited: Friday, January 23, 2004 at 7:06:51 PM
It really doesnt matter if you really knew any C you would know anything that has a // before isnt read by the compiler (in this case the game) so you could really put it before or after it really doesnt matter...
--I s h b u u
Ok another question for the xprojectile.resource = "file"; line and defaultexplosion.resource = "file"; line when you replace the word file with the picture do you have to have the entire url or what ever it is like C:Documents and SettingsDesktopThinkTanksThink Tanks 2gamedatashapes anks would you have to put all that or just the file name
Ok im trying to make a weapons mod so that you eather cant fire the gun or the gun does no damage and this is the mod so far...
Lighttank.defaultprojectile = "speedyprojectile";
Mediumtank.defaultprojectile = "speedyprojectile"
Heavytank.defaultprojectile = "speedyprojectile"
Speedyprojectile.damage = 0;
Speedyprojectile.count = 0;
Speedyprojectile.burstcount = 0;
Speedyprojectile.gravityscale = 0;
Speedyprojectile.velocity = 1;
Speedyprojectile.sizescale = 1;
Speedyprojectile.reloadtime = 1000000;
Speedyprojectile.burstdelay = 1000000;
Speedyprojectile.resource = "file";
Defaultexplosion.resource = "file";
Defaultexplosion.startscale = 1;
Defaultexplosion.endscale = 1;
I've tryed a few times but the weapon keeps firing and doing the same damage
Last edited: Friday, January 23, 2004 at 8:56:45 PM
How do u make the bullet shape look different and the explosion look different?
@Snow Raven: The filename only needs to start from "game/data/..." not the drive name.
@Zoon:
Speedyprojectile.resource = "file";
Defaultexplosion.resource = "file";
Oh, and, to get the bullet to work, you'll need to collect the powerup relevant to your codes first.
All of this where is it located:Lighttank.defaultprojectile = "speedyprojectile";
Mediumtank.defaultprojectile = "speedyprojectile"
Heavytank.defaultprojectile = "speedyprojectile"
Speedyprojectile.damage = 0;
Speedyprojectile.count = 0;
Speedyprojectile.burstcount = 0;
Speedyprojectile.gravityscale = 0;
Speedyprojectile.velocity = 1;
Speedyprojectile.sizescale = 1;
Speedyprojectile.reloadtime = 1000000;
Speedyprojectile.burstdelay = 1000000;
Speedyprojectile.resource = "file";
Defaultexplosion.resource = "file";
Defaultexplosion.startscale = 1;
Defaultexplosion.endscale = 1;
Page : <1> :
I was wondering what file do you have to edit to edit weapons? Thx in advance
Last edited: Friday, January 23, 2004 at 6:03:35 PM