From 75dfffaf4ba1c3e05ba05a887e413bcbb9918329 Mon Sep 17 00:00:00 2001 From: Marco Hladik Date: Fri, 18 Jun 2021 09:24:58 +0200 Subject: [PATCH] func_pushable: only run physics routine when velocity is > 0 --- src/gs-entbase/server/func_pushable.qc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gs-entbase/server/func_pushable.qc b/src/gs-entbase/server/func_pushable.qc index 37faebe4..ca5c51f3 100644 --- a/src/gs-entbase/server/func_pushable.qc +++ b/src/gs-entbase/server/func_pushable.qc @@ -73,7 +73,10 @@ func_pushable::customphysics(void) /* run the physics, then fix our helper bbox! */ friction = 0.5f; - runstandardplayerphysics(this); + + if (vlen(velocity)) + runstandardplayerphysics(this); + setorigin(m_eCollBox, absmin + (0.5 * (absmax - absmin))); }