Projectile physics hotfix from Demolitionist.
This commit is contained in:
parent
ba4fabc410
commit
ec1794c755
14 changed files with 65 additions and 2 deletions
|
|
@ -81,6 +81,16 @@ Class UBioGel : Actor
|
|||
if ( (victim is 'BioHitbox') && ((victim.target == master) || (victim.target.master == master)) ) return 1;
|
||||
return -1;
|
||||
}
|
||||
override void FallAndSink( double grav, double oldfloorz )
|
||||
{
|
||||
if ( bNOGRAVITY || (waterlevel < 1) )
|
||||
{
|
||||
Super.FallAndSink(grav,oldfloorz);
|
||||
return;
|
||||
}
|
||||
vel *= .99;
|
||||
if ( pos.z > floorz ) vel.z += grav*.01; // floats in water
|
||||
}
|
||||
override void Tick()
|
||||
{
|
||||
Super.Tick();
|
||||
|
|
@ -92,7 +102,6 @@ Class UBioGel : Actor
|
|||
pitch += yawvel;
|
||||
if ( waterlevel > 0 )
|
||||
{
|
||||
vel.xy *= 0.98;
|
||||
rollvel *= 0.98;
|
||||
pitchvel *= 0.98;
|
||||
yawvel *= 0.98;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue