From 5ac05971d2c45c78d9efbd186ef38fd4bf9e2e42 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 7 Jun 2023 23:11:43 +0200 Subject: [PATCH] - Duke: WEATHERWARN needs a statnum change on init so that it teleports. --- .../filter/dukelike/rmapinfo.spawnclasses | 1 + .../games/duke/actors/dukestuff/stuff.zs | 20 +++++++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/wadsrc/static/filter/dukelike/rmapinfo.spawnclasses b/wadsrc/static/filter/dukelike/rmapinfo.spawnclasses index 8b6712c47..bcb8b42f4 100644 --- a/wadsrc/static/filter/dukelike/rmapinfo.spawnclasses +++ b/wadsrc/static/filter/dukelike/rmapinfo.spawnclasses @@ -456,6 +456,7 @@ spawnclasses 4427 = DukeHotMeat 4340 = DukeLavaBubble 2563 = DukeHandHoldingLaser + 4893 = DukeWeatherWarn, noskill 1405 = DukePlayerPawn, noskill diff --git a/wadsrc/static/zscript/games/duke/actors/dukestuff/stuff.zs b/wadsrc/static/zscript/games/duke/actors/dukestuff/stuff.zs index 470eb5255..ac3f5f959 100644 --- a/wadsrc/static/zscript/games/duke/actors/dukestuff/stuff.zs +++ b/wadsrc/static/zscript/games/duke/actors/dukestuff/stuff.zs @@ -374,3 +374,23 @@ class DukeSeriousSam : DukeActor } } +//--------------------------------------------------------------------------- +// +// +// +//--------------------------------------------------------------------------- + +class DukeWeatherWarn : DukeActor +{ + default + { + pic "WEATHERWARN"; + } + + override void Initialize(DukeActor spawner) + { + self.ChangeStat(STAT_ACTOR); + } +} + +