From: Mario Date: Thu, 6 Sep 2018 11:34:17 +0000 (+1000) Subject: Fix monsters spawning with random pitch when randomly placed in invasion X-Git-Tag: xonotic-v0.8.5~7^2~1^2~41 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9ddccbdddc59dfb076cf78c8ea7ef4e44563ac32;p=xonotic%2Fxonotic-data.pk3dir.git Fix monsters spawning with random pitch when randomly placed in invasion --- 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);