raze/wadsrc/static/zscript/games/duke/actors/dukeenemies/liztroop.zs
Christoph Oelckers 513de38723 - pass the spawner to Initialize as an explicit parameter.
Using ownerActor is not robust, for some actors this will have unwanted side effects.
2023-05-19 22:57:26 +02:00

148 lines
2.5 KiB
Text

class DukeLizTrooper : DukeActor
{
const TROOPSTRENGTH = 30;
default
{
pic "LIZTROOP";
Strength TROOPSTRENGTH;
precacheclass "DukeHeadJib1", "DukeArmJib1", "DukeLegJib1";
+INTERNAL_BADGUY;
+KILLCOUNT;
+GREENSLIMEFOOD;
+TRANSFERPALTOJIBS;
+DONTENTERWATERONGROUND;
}
override void Initialize(DukeActor spawner)
{
if (self.pal == 0 || self.pal == 2) self.pal = 22;
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
override void PlayFTASound(int mode)
{
self.PlayActorSound("PRED_RECOG");
}
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
class DukeLizTrooperToilet : DukeLizTrooper
{
default
{
pic "LIZTROOPONTOILET";
StartAction "none";
}
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
class DukeLizTrooperSitting : DukeLizTrooper
{
default
{
pic "LIZTROOPJUSTSIT";
StartAction "none";
}
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
class DukeLizTrooperShoot : DukeLizTrooper
{
default
{
pic "LIZTROOPSHOOT";
}
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
class DukeLizTrooperJetpack : DukeLizTrooper
{
default
{
pic "LIZTROOPJETPACK";
}
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
class DukeLizTrooperDucking : DukeLizTrooper
{
default
{
pic "LIZTROOPDUCKING";
}
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
class DukeLizTrooperRunning : DukeLizTrooper
{
default
{
pic "LIZTROOPRUNNING";
}
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
class DukeLizTrooperStayput : DukeLizTrooper
{
default
{
pic "LIZTROOPSTAYPUT";
+BADGUYSTAYPUT;
}
override void PlayFTASound(int mode)
{
}
}