Try to reduce think time of blood pools.
This commit is contained in:
parent
92e355cd89
commit
ceae806b68
2 changed files with 8 additions and 5 deletions
|
|
@ -895,6 +895,8 @@ Class mkBloodPool : SWWMNonInteractiveActor
|
|||
mkBloodPool prevpool, nextpool;
|
||||
bool bRaised; // dead body was revived, fade out faster
|
||||
|
||||
Property BaseAccel : accel;
|
||||
|
||||
override void OnDestroy()
|
||||
{
|
||||
Super.OnDestroy();
|
||||
|
|
@ -913,7 +915,6 @@ Class mkBloodPool : SWWMNonInteractiveActor
|
|||
double fz = CurSector.floorplane.ZAtPoint(pos.xy);
|
||||
SetZ(fz);
|
||||
prev.z = fz;
|
||||
accel = .0012;
|
||||
basesz = scale.x;
|
||||
sz = .01;
|
||||
A_SetScale(sz);
|
||||
|
|
@ -944,9 +945,10 @@ Class mkBloodPool : SWWMNonInteractiveActor
|
|||
bRaised = true;
|
||||
A_FadeOut();
|
||||
}
|
||||
if ( accel <= double.epsilon ) return;
|
||||
if ( accel <= 0. ) return;
|
||||
sz += accel;
|
||||
accel *= .997;
|
||||
double fact = min(special1++/1200.,1.);
|
||||
accel = SWWMUtility.Lerp(default.accel,0.,fact*fact);
|
||||
A_SetScale(basesz*sz);
|
||||
A_SetSize(50.*basesz*sz);
|
||||
}
|
||||
|
|
@ -956,6 +958,7 @@ Class mkBloodPool : SWWMNonInteractiveActor
|
|||
Radius 1;
|
||||
Height 1;
|
||||
StencilColor "Red";
|
||||
mkBloodPool.BaseAccel .0006;
|
||||
}
|
||||
States
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue