Forums Index >> Modding >> help plz



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

Friday, January 23, 2004 at 6:03:26 PM

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

Friday, January 23, 2004 at 6:39:06 PM

Nice I cant wait to test this out. Thx cyber

Friday, January 23, 2004 at 6:52:54 PM

So do these lines stay below the //--- OBJECT WRITE END --- line?

Last edited: Friday, January 23, 2004 at 7:06:51 PM

Friday, January 23, 2004 at 7:06:35 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

Friday, January 23, 2004 at 7:08:46 PM

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

Friday, January 23, 2004 at 7:13:10 PM

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

Friday, January 23, 2004 at 8:52:38 PM

How do u make the bullet shape look different and the explosion look different?

Saturday, January 24, 2004 at 11:07:15 AM

@Snow Raven: The filename only needs to start from "game/data/..." not the drive name.

@Zoon:

Speedyprojectile.resource = "file";

Defaultexplosion.resource = "file";

 

Tuesday, January 27, 2004 at 2:21:29 PM

Oh, and, to get the bullet to work, you'll need to collect the powerup relevant to your codes first.

Tuesday, January 27, 2004 at 2:22:15 PM

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;

 

Tuesday, January 27, 2004 at 4:02:20 PM

Page : <1> :

insert quote insert url insert email insert image bold italic underline superscript subscript horizontal rule : : Help on using forum codes

Add comment:

HTML is disabled within comments, but ZBB Code is enabled.

Back to the top

Web site designed, maintained and funded by -z- and Dan MacDonald