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

@ -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);
}