From 265179b9de7cd25a2c4375434b6b9568e362c866 Mon Sep 17 00:00:00 2001 From: Mario Date: Sat, 7 Mar 2020 07:12:59 +1000 Subject: [PATCH] Apply air movement physics on slick surfaces when sv_slick_applygravity is enabled --- qcsrc/ecs/systems/physics.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/ecs/systems/physics.qc b/qcsrc/ecs/systems/physics.qc index a5af98d2c..b9eca8ca8 100644 --- a/qcsrc/ecs/systems/physics.qc +++ b/qcsrc/ecs/systems/physics.qc @@ -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) { -- 2.39.2