Code: Select all
//==============================================================================
//==============================================================================
// Corpse actors updated with D4D sprites, dependant on the monster type cvar
//==============================================================================
//==============================================================================
// Imp
Actor HFDeadDoomImp : D4DMonsterSpawner replaces DeadDoomImp
{
Radius 20
Height 24
States
{
Spawn:
TNT1 A 0 NODELAY
{
if(GetCvar(user_MonsterType) == 0)
{
A_SpawnItemEx("HF_DeadOldImp",0,0,0,0,0,0,0,MonsterSpawnFlags,0,tid);
}
if(GetCvar(user_MonsterType) == 1)
{
A_SpawnItemEx("HF_DeadD4Imp",0,0,0,0,0,0,0,MonsterSpawnFlags,0,tid);
}
} //
Goto End
//-----------------------------------------
// Special / End of spawner states
//-----------------------------------------
End:
TNT1 A 0 A_ChangeFlag("THRUACTORS",1)
TNT1 A 0 A_ChangeFlag("NOBLOCKMAP",1)
TNT1 A 1 A_Die
Death:
TNT1 A 1
Stop
}
}
ACTOR HF_DeadD4Imp : D4DoomImp
{
Skip_Super
States
{
Spawn:
Goto Super::Death+4
}
}
ACTOR HF_DeadOldImp : D4OldDoomImp
{
Skip_Super
States
{
Spawn:
Goto Super::Death+4
}
}
//==============================================================================
// Demon
Actor HFDeadDeamon : D4DMonsterSpawner replaces DeadDemon
{
Radius 20
Height 24
States
{
Spawn:
TNT1 A 0 NODELAY
{
if(GetCvar(user_MonsterType) == 0)
{
A_SpawnItemEx("HF_DeadOldDemon",0,0,0,0,0,0,0,MonsterSpawnFlags,0,tid);
}
if(GetCvar(user_MonsterType) == 1)
{
A_SpawnItemEx("HF_DeadD4Demon",0,0,0,0,0,0,0,MonsterSpawnFlags,0,tid);
}
} //
Goto End
//-----------------------------------------
// Special / End of spawner states
//-----------------------------------------
End:
TNT1 A 0 A_ChangeFlag("THRUACTORS",1)
TNT1 A 0 A_ChangeFlag("NOBLOCKMAP",1)
TNT1 A 1 A_Die
Death:
TNT1 A 1
Stop
}
}
ACTOR HF_DeadD4Demon : D4Demon
{
Skip_Super
States
{
Spawn:
Goto Super::Death+5
}
}
ACTOR HF_DeadOldDemon : D4OldDemon
{
Skip_Super
States
{
Spawn:
Goto Super::Death+5
}
}
//==============================================================================
// Caco
Actor HFDeadCacodemon : D4DMonsterSpawner replaces DeadCacodemon
{
Radius 20
Height 24
States
{
Spawn:
TNT1 A 0 NODELAY
{
if(GetCvar(user_MonsterType) == 0)
{
A_SpawnItemEx("HF_DeadOldCaco",0,0,0,0,0,0,0,MonsterSpawnFlags,0,tid);
}
if(GetCvar(user_MonsterType) == 1)
{
A_SpawnItemEx("HF_DeadD4Caco",0,0,0,0,0,0,0,MonsterSpawnFlags,0,tid);
}
} //
Goto End
//-----------------------------------------
// Special / End of spawner states
//-----------------------------------------
End:
TNT1 A 0 A_ChangeFlag("THRUACTORS",1)
TNT1 A 0 A_ChangeFlag("NOBLOCKMAP",1)
TNT1 A 1 A_Die
Death:
TNT1 A 1
Stop
}
}
ACTOR HF_DeadD4Caco : D4Cacodemon
{
Skip_Super
States
{
Spawn:
Goto Super::Death+5
}
}
ACTOR HF_DeadOldCaco : D4OldCacodemon
{
Skip_Super
States
{
Spawn:
Goto Super::Death+5
}
}