raze/wadsrc/static/zscript/games/duke/actors/dukestuff/rubbercan.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

24 lines
384 B
Text

class DukeRubberCan : DukeActor
{
default
{
pic "RUBBERCAN";
Strength WEAK;
+FORCERUNCON;
+CHECKSLEEP;
+MOVEFTA_MAKESTANDABLE;
}
override void Initialize(DukeActor spawner)
{
if (!self.mapSpawned)
self.scale = (0.5, 0.5);
self.cstat = CSTAT_SPRITE_BLOCK_ALL | randomXFlip();
self.clipdist = 18;
self.ChangeStat(STAT_ZOMBIEACTOR);
self.extra = 0;
}
}