From e8d8fd63d9723297527f52ea74ab1c0d08de76e8 Mon Sep 17 00:00:00 2001 From: Steam Deck User Date: Sat, 4 Mar 2023 13:46:39 -0500 Subject: [PATCH] SERVER: Stop executing push_away_zombies It was mainly responsible for making the horde less tight but this is less accurate to CoD as well as being incredibly performance taxing, usually taking 5% of overall execution time on PSP because of the findradius() spam. --- source/server/ai/ai_core.qc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/server/ai/ai_core.qc b/source/server/ai/ai_core.qc index 9eb1404..83d5aba 100644 --- a/source/server/ai/ai_core.qc +++ b/source/server/ai/ai_core.qc @@ -198,8 +198,8 @@ void(float dist, vector vec) do_walk_to_vec = self.ideal_yaw = vectoyaw(vec - self.origin); if(self.outside == false) { - push_away_zombies(); - //self.ideal_yaw += avoid_zombies(); //no longer relevant since our direction doesn't care about our yaw any more + // this is a performance net negative for like 0 gain in horde space. + //push_away_zombies(); } ChangeYaw(); vector new_velocity;