From 24ae3ee3b7c8bc41c267889a87c753563cb15cf5 Mon Sep 17 00:00:00 2001 From: Marisa the Magician Date: Wed, 31 Aug 2022 10:07:48 +0200 Subject: [PATCH] Initialize Sheen HMG at 700 RPM. --- language.version | 4 ++-- zscript/dlc1/swwm_heavymahsheengun.zsc | 10 ++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/language.version b/language.version index 030b0f831..b1a198775 100644 --- a/language.version +++ b/language.version @@ -1,3 +1,3 @@ [default] -SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r390 \cu(Wed 31 Aug 01:28:59 CEST 2022)\c-"; -SWWM_SHORTVER="\cw1.3pre r390 \cu(2022-08-31 01:28:59)\c-"; +SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r391 \cu(Wed 31 Aug 10:07:48 CEST 2022)\c-"; +SWWM_SHORTVER="\cw1.3pre r391 \cu(2022-08-31 10:07:48)\c-"; diff --git a/zscript/dlc1/swwm_heavymahsheengun.zsc b/zscript/dlc1/swwm_heavymahsheengun.zsc index 52844688d..ef30fb77a 100644 --- a/zscript/dlc1/swwm_heavymahsheengun.zsc +++ b/zscript/dlc1/swwm_heavymahsheengun.zsc @@ -9,6 +9,7 @@ Class HeavyMahSheenGun : SWWMWeapon bool incooldown, stopfire, firstshot; int firetimer, shotcnt; int tcol; // for random + bool initialized; transient ui SmoothDynamicValueInterpolator HeatInter; transient SpreadSlugTracer st; @@ -294,6 +295,15 @@ Class HeavyMahSheenGun : SWWMWeapon } return Super.CheckAmmo(firemode,autoswitch,requireammo,ammocount); } + override void AttachToOwner( Actor other ) + { + if ( !initialized ) + { + initialized = true; + firespeed = 1; // default to 700 RPM + } + Super.AttachToOwner(other); + } Default {