Trying to spawn a monster using A_SpawnItemEx on a custom death state of the player class causes gzdoom <2.1.1 32 bits> to crash every time.
But if I try to perform the same action in a DoomImp monster it does not happen, the monster spawns correctly.
Here is a copy of the decorate/maindefs lumps:
Code: Select all
actor NewCyberdemon : Cyberdemon replaces Cyberdemon {
States {
Missile:
CYBR E 6 A_FaceTarget
CYBR F 12 A_CustomMissile("FrostMissile2")
Goto See
}
}
actor FrostMissile2 : FrostMissile replaces FrostMissile {
Damage 50
DeathType Resurrect
States {
Spawn:
SHRD A 2 Bright
SHRD ABC 3 Bright
Loop
Death:
SHEX ABCDE 5 Bright
Stop
}
}
actor NewDoomPlayer : DoomPlayer {
States {
Death.Resurrect:
PLAY H 10
PLAY I 10 A_PlayerScream
PLAY J 10 A_NoBlocking
PLAY KLMN 10
TNT1 A 0 A_SpawnItemEx("MarinePlasma2",0.0,0.0,0.0,0.0,0.0,0.0,0,SXF_TRANSFERTRANSLATION|SXF_NOPOINTERS)
Stop
}
}
actor NewDoomImp : DoomImp replaces DoomImp {
States {
Death.Resurrect:
PLAY H 10
PLAY I 10 A_PlayerScream
PLAY J 10 A_NoBlocking
PLAY KLMN 10
TNT1 A 0 A_SpawnItemEx("MarinePlasma2",0.0,0.0,0.0,0.0,0.0,0.0,0,SXF_TRANSFERTRANSLATION|SXF_NOPOINTERS)
Stop
}
}
actor MarinePlasma2 : MarinePlasma {
States {
Spawn:
Goto Super::Raise
}
}
// Decorate ends, Mapinfo starts...
gameinfo {
playerclasses = "NewDoomPlayer"
}