action LIZSTATUEFRAMES 0 1 5 1 1 define LIZSTATUESTRENGTH 150 useractor notenemy LIZSTATUE LIZSTATUESTRENGTH LIZSTATUEFRAMES cstat 257 ifhitweapon { debris SCRAP3 5 debris SCRAP6 5 ifdead { ifactor LIZSTATUE state lizstatue_drop { respawnhitag sound GLASSBREAK lotsofglass 100 quote 136 killit } } } enda appendevent EVENT_LOADACTOR ifactor LIZSTATUE { sizeat 29 29 } endevent
The value "respawnhitag" works without problems. On the other hand, it refuses to work with other sprites (extracts from The Gate)
For example, a moving brain and a giant eye flying:
define BIGEYESTRENGTH 500 action BIGEYENORMAL 0 1 1 1 1 action BIGEYEHURT 1 1 1 1 1 move BIGEYEMOVE 30 ai AIBIGEYE BIGEYENORMAL BIGEYEMOVE geth randomangle useractor notenemy BIGEYE BIGEYESTRENGTH BIGEYENORMAL ifai NO { strength BIGEYESTRENGTH sizeat 25 25 cstat 257 ai AIBIGEYE } ifrnd 2 { sound WIERDSHOT_FLY } ifhitweapon { action BIGEYEHURT spawn BLOOD spawn BLOOD ifdead { spawn BLOOD spawn BLOOD respawnhitag state standard_jibs state standard_jibs state standard_jibs state standard_jibs debris SCRAP2 20 spawn EXPLOSION2 sound PIPEBOMB_EXPLODE sound OCTA_DYING sound SQUISHED quote 135 killit } sound OCTA_RECOG guts JIBS6 8 } ifcount 48 ai AIBIGEYE ifaction BIGEYEHURT { ifactioncount 10 action BIGEYENORMAL break } enda
state brain_jibs guts JIBS2 1 guts JIBS3 2 guts JIBS4 3 guts JIBS5 2 guts JIBS6 3 ifrnd 6 { guts JIBS1 1 spawn BLOODPOOL } ifrnd 16 sound DUKE_KILLED_CARI1 ends define BRAINSTRENGTH 75 action MONSTER1 0 2 1 1 18 move brainstopped ai INACT MONSTER1 ai SHOOT MONSTER1 brainstopped faceplayersmart useractor notenemy BRAIN BRAINSTRENGTH MONSTER1 ifai NO { sizeat 50 50 cstat 257 clipdist 40 ai SHOOT } ifai INACT { ifpinventory GET_BOOTS 350 { addinventory GET_BOOTS 350 killit } } ifcansee { ifcount 10 { resetcount } } ifhitweapon { ifdead { state brain_jibs state brain_jibs state brain_jibs state brain_jibs respawnhitag sound SQUISHED quote 134 ai INACT } else guts JIBS6 10 sound SQUISHED } ifpdistl 10240 soundonce HBEAT2 enda
Can anyone tell me, why "respawnhitag" does not want to work for these two additions ? Thanks