Projectile physics hotfix from Demolitionist.
This commit is contained in:
parent
ba4fabc410
commit
ec1794c755
14 changed files with 65 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue