Apply air movement physics on slick surfaces when sv_slick_applygravity is enabled
authorMario <mario.mario@y7mail.com>
Fri, 6 Mar 2020 21:12:59 +0000 (07:12 +1000)
committerMario <mario.mario@y7mail.com>
Fri, 6 Mar 2020 21:12:59 +0000 (07:12 +1000)
qcsrc/ecs/systems/physics.qc

index a5af98d..b9eca8c 100644 (file)
@@ -126,7 +126,7 @@ void sys_phys_update(entity this, float dt)
                this.com_phys_gravity = '0 0 0';
        } else if (ITEMS_STAT(this) & IT_USING_JETPACK) {
                PM_jetpack(this, maxspeed_mod, dt);
-       } else if (IS_ONGROUND(this)) {
+       } else if (IS_ONGROUND(this) && (!IS_ONSLICK(this) || !PHYS_SLICK_APPLYGRAVITY(this))) {
                if (!WAS_ONGROUND(this)) {
                        emit(phys_land, this);
                        if (this.lastground < time - 0.3) {