Limit stomp/hammer shockwave vertical movement so they no longer hug the floor.
This commit is contained in:
parent
4bcee65ace
commit
46c25250a4
2 changed files with 6 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue