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.
This commit is contained in:
Steam Deck User 2023-03-04 13:46:39 -05:00
parent 7b0cee2d15
commit e8d8fd63d9

View file

@ -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;