SonicTheDalek
Member
I am making a new enemy called the Jetty-Syn Commander and I'm trying to give it two hitpoints like the Crawla Commander. I've tried setting the thing's health to 2 but it didn't work, can anyone help me with this?
Okay, now how exactly am I going to do that? Yeah, I know this requires additional states and such...Draykon said:The solution, is to grant the enemy invulnerability for about a second after each hit. This is accomplished using A_SetObjectFlags, to set the... object's flags to be intangible and unaffected by gravity. Have about a second of delay, then call A_SetObjectFlags again to return the enemy's flags to normal.
Thing 304
MAPTHINGNUM = 9501
SPAWNSTATE = 1723
SPAWNHEALTH = 2
SEESTATE = 1725
SEESOUND = 0
REACTIONTIME = 2
ATTACKSOUND = 115
PAINSTATE = 1729
PAINCHANCE = 200
PAINSOUND = 12
MELEESTATE = 0
MISSILESTATE = 1727
DEATHSTATE = 603
DEATHSOUND = 22
XDEATHSTATE = 0
SPEED = 263404
RADIUS = 1310720
HEIGHT = 2097152
MASS = 100
DAMAGE = 0
ACTIVESOUND = 117
RAISESTATE = 91
FLAGS = 16779781
FRAME 1723
SPRITENUMBER = 201
SPRITESUBNUMBER = 0
DURATION = 4
NEXT = 1724
ACTION A_Look
VAR1 = 0
VAR2 = 0
FRAME 1724
SPRITENUMBER = 201
SPRITESUBNUMBER = 1
DURATION = 4
NEXT = 1723
ACTION A_Look
VAR1 = 0
VAR2 = 0
FRAME 1725
SPRITENUMBER = 201
SPRITESUBNUMBER = 0
DURATION = 1
NEXT = 1726
ACTION A_JetgThink
VAR1 = 0
VAR2 = 0
FRAME 1726
SPRITENUMBER = 201
SPRITESUBNUMBER = 1
DURATION = 1
NEXT = 1725
ACTION A_JetgThink
VAR1 = 0
VAR2 = 0
FRAME 1727
SPRITENUMBER = 201
SPRITESUBNUMBER = 2
DURATION = 1
NEXT = 1728
ACTION A_TurretFire
VAR1 = 0
VAR2 = 0
FRAME 1728
SPRITENUMBER = 201
SPRITESUBNUMBER = 3
DURATION = 1
NEXT = 1725
ACTION A_TurretStop
VAR1 = 0
VAR2 = 0
FRAME 1729
SPRITENUMBER = 201
SPRITESUBNUMBER = 0
DURATION = 1
NEXT = 1730
ACTION A_SetObjectFlags
VAR1 = 4
VAR2 = 1
FRAME 1730
SPRITENUMBER = 201
SPRITESUBNUMBER = 1
DURATION = 1
NEXT = 1726
ACTION A_SetObjectFlags
VAR1 = 4
VAR2 = 2