From 9ddccbdddc59dfb076cf78c8ea7ef4e44563ac32 Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 6 Sep 2018 21:34:17 +1000 Subject: [PATCH] Fix monsters spawning with random pitch when randomly placed in invasion --- qcsrc/common/gamemodes/gamemode/invasion/sv_invasion.qc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qcsrc/common/gamemodes/gamemode/invasion/sv_invasion.qc b/qcsrc/common/gamemodes/gamemode/invasion/sv_invasion.qc index 0b2f5c7869..5039eb1005 100644 --- a/qcsrc/common/gamemodes/gamemode/invasion/sv_invasion.qc +++ b/qcsrc/common/gamemodes/gamemode/invasion/sv_invasion.qc @@ -207,7 +207,10 @@ void invasion_SpawnChosenMonster(Monster mon) setsize(e, mon.m_mins, mon.m_maxs); if(MoveToRandomMapLocation(e, DPCONTENTS_SOLID | DPCONTENTS_CORPSE | DPCONTENTS_PLAYERCLIP, DPCONTENTS_SLIME | DPCONTENTS_LAVA | DPCONTENTS_SKY | DPCONTENTS_BODY | DPCONTENTS_DONOTENTER, Q3SURFACEFLAG_SKY, 10, 1024, 256)) + { monster = spawnmonster(e, tospawn, mon.monsterid, NULL, NULL, e.origin, false, false, 2); + monster.angles_x = monster.angles_z = 0; + } else { delete(e); -- 2.39.2