Limit stomp/hammer shockwave vertical movement so they no longer hug the floor.

This commit is contained in:
Mari the Deer 2023-09-04 14:21:31 +02:00
commit 46c25250a4
2 changed files with 6 additions and 4 deletions

View file

@ -1,3 +1,3 @@
[default]
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r949 \cu(Mon 4 Sep 14:08:18 CEST 2023)\c-";
SWWM_SHORTVER="\cw1.3pre r949 \cu(2023-09-04 14:08:18)\c-";
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r950 \cu(Mon 4 Sep 14:21:31 CEST 2023)\c-";
SWWM_SHORTVER="\cw1.3pre r950 \cu(2023-09-04 14:21:31)\c-";

View file

@ -227,7 +227,8 @@ Class DemolitionistRadiusShockwave : Actor
Spawn:
XZW1 A 1
{
SetZ(floorz);
double diffz = clamp(floorz-pos.z,-speed,speed);
SetZ(pos.z+diffz);
pitch = min(85,(pitch+2)*1.05);
if ( !Random[ExploS](0,3) )
{
@ -249,7 +250,8 @@ Class DemolitionistRadiusShockwave : Actor
Death:
XZW1 A 1
{
SetZ(floorz);
double diffz = clamp(floorz-pos.z,-speed,speed);
SetZ(pos.z+diffz);
A_FadeOut(.05);
A_SetScale(scale.x*1.1,scale.y*.97);
}