This fancy version of the Zombieman gets a special death animation when he is shot by a machine gun, and spins in random directions every time he gets hit.
This is supposed to spawn a seperate actor that handles the death animation.
But when A_SpawnItemEx is called, the actor doesn't appear and the zombieman simply vanishes.
(I tried TNT1 A 0 A_SpawnItemEx("MGunnedClassicZombieman", 0, 0, 20) and the actor actually spawned but higher than the zombieman's regular height, implying the actor was spawned in the floor.)
How do I spawn the actor without making it spawn in several units above the expected height? Much help would be appreciated
actor ClassicZombieman:Zombieman{
tag "Rifle Zombieman"
radius 14
height 50
bloodtype "HBlood"
dropitem "M16Spawner"States{Missile:
POSS E 10 A_FaceTarget
POSS F 0 bright A_SpawnProjectile("BulletCasing",24,0,-60, CMF_AIMDIRECTION)
POSS F 3 bright A_CustomBulletAttack(22.5,0,1, random(1,5)*3,"ViolentPuff",0, CBAF_NORANDOM)
POSS E 13gotoSeeDeath.MachineGun:
POSS G 1 A_Scream
TNT1 A 0 A_SpawnItemEx("MGunnedClassicZombieman")
stop
XDeath:
POSS M 1 A_SpawnItemEx("HBloodController")
POSS M 4 A_SpawnItemEx("HGoreController")
POSS N 5 A_XScream
POSS O 5 A_NoBlocking
POSS PQRST 5
POSS U -1Stop}}
actor MGunnedClassicZombieman:ClassicZombieman{
painchance 256
damagefactor "MachineGun",0.05States{Spawn:
POSS G 3NoDelay A_Pain
POSS G 10
POSS H 1 A_Die
See:
stop
Missile:
stop
Pain:
POSS G 3 A_SetAngle(random(-180,180))gotoSpawn}}
Question
watermelon eater gaming
This fancy version of the Zombieman gets a special death animation when he is shot by a machine gun, and spins in random directions every time he gets hit.
This is supposed to spawn a seperate actor that handles the death animation.
But when A_SpawnItemEx is called, the actor doesn't appear and the zombieman simply vanishes.
(I tried TNT1 A 0 A_SpawnItemEx("MGunnedClassicZombieman", 0, 0, 20) and the actor actually spawned but higher than the zombieman's regular height, implying the actor was spawned in the floor.)
How do I spawn the actor without making it spawn in several units above the expected height? Much help would be appreciated
Share this post
Link to post
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.