ObjectTemplate.addAmmoType 1 -1 -6 0
ObjectTemplate.addAmmoType 2 -1 -6 0
ObjectTemplate.addAmmoType 3 -1 -6 0
ObjectTemplate.addAmmoType x -1 -6 0
where x is whatever other ammotypes you want to drain, i forget how many there are, you can check with the different weapons i guess, i think the standard ones go up to 10
also the -6 can be made some really large number if you want an instant drain
so basically, set the health thing back to 0 or -1 (whichever oyu prefer) and just add in all the ammo types to be draining
NOTE: untested by me, though it should definately work
ok, so im not sure what some tank ammo types are so you;ll have to play with it but, Yak9 guns use type 10, zero's guns use type 8, dummy bombs for yak9 are 9, 7 for zero's dummy bombs, corsair uses guns ammotype 10 and dummybombs ammotype 9 (not sure why the bombs weapon is called dummybombs but w/e thats the ammotypes)
so i suggest just having the effect to all ammotypes up to 10, ive yet to see anyhting with a higher ammotype
|