Projectile physics hotfix from Demolitionist.

This commit is contained in:
Marisa the Magician 2022-11-11 21:07:43 +01:00
commit ec1794c755
14 changed files with 65 additions and 2 deletions

View file

@ -1,3 +1,22 @@
// backported from DEMOLITIONIST, needed to fix the broken water physics of some projectiles
Mixin Class UMissileFix
{
Default
{
+NOFRICTION;
}
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;
}
}
Class UPlayer : UTPlayer
{
Default