From 7dae291f310522b0b6f1323f1143c0c93c2c3ab8 Mon Sep 17 00:00:00 2001 From: Marco Hladik Date: Fri, 5 Mar 2021 10:56:25 +0100 Subject: [PATCH] Scientist Hunt: simplify the path changing code for scared scientists --- scihunt/src/server/monster_scientist.qc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scihunt/src/server/monster_scientist.qc b/scihunt/src/server/monster_scientist.qc index 3cf47b89..bfc1ea06 100644 --- a/scihunt/src/server/monster_scientist.qc +++ b/scihunt/src/server/monster_scientist.qc @@ -455,6 +455,7 @@ void monster_scientist::Physics(void) } if (m_flChangePath < time) { +#if 0 float add; vector pos; @@ -474,6 +475,11 @@ void monster_scientist::Physics(void) break; } } +#else + v_angle[1] -= 180 + ((random() - 0.5) * 90); + v_angle[1] = Math_FixDelta(v_angle[1]); + +#endif m_flChangePath = time + floor(random(2,10)); } } else {