Ive been learning everything about static jkl files, and tried to make one of my own. To test that my new tpl's in the jkl were working, I made one weapon fire a new tpl +9mmbullet
and another fires a tpl +plasmabolt.
I extracted the static jkl from res2gob and looked at it, it went down to cog placement, but no tpl's. So I inserted:
##### Templates information ####
Section: TEMPLATES
I have 2 new tpl's so I thought 152 + 2 is 154, so I put after that bit
World templates 154
+plasmabolt +turretlaser vel=(0.000000/12.000000/0.000000) damage=80.000000 mindamage=60.000000
+9mmbullet _weapon thingflags=0x20000000 light=0.400000 model3d=bry0.3do size=0.001000 movesize=0.001000 soundclass=bry.snd creatething=+smflash maxrotvel=0.000000 vel=(0.000000/8.000000/0.000000) explode=+laserhit fleshhit=+laserfleshhit damage=30.000000 mindamage=10.000000 typeflags=0x20400d rate=15.000000
Whats wrong with this?
and another fires a tpl +plasmabolt.
I extracted the static jkl from res2gob and looked at it, it went down to cog placement, but no tpl's. So I inserted:
##### Templates information ####
Section: TEMPLATES
I have 2 new tpl's so I thought 152 + 2 is 154, so I put after that bit
World templates 154
+plasmabolt +turretlaser vel=(0.000000/12.000000/0.000000) damage=80.000000 mindamage=60.000000
+9mmbullet _weapon thingflags=0x20000000 light=0.400000 model3d=bry0.3do size=0.001000 movesize=0.001000 soundclass=bry.snd creatething=+smflash maxrotvel=0.000000 vel=(0.000000/8.000000/0.000000) explode=+laserhit fleshhit=+laserfleshhit damage=30.000000 mindamage=10.000000 typeflags=0x20400d rate=15.000000
Whats wrong with this?
Code:
if(getThingFlags(source) & 0x8){
do her}
elseif(getThingFlags(source) & 0x4){
do other babe}
else{
do a dude}
)