]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix monsters spawning with random pitch when randomly placed in invasion
authorMario <zacjardine@y7mail.com>
Thu, 6 Sep 2018 11:34:17 +0000 (21:34 +1000)
committerMario <zacjardine@y7mail.com>
Thu, 6 Sep 2018 11:34:17 +0000 (21:34 +1000)
qcsrc/common/gamemodes/gamemode/invasion/sv_invasion.qc

index 0b2f5c7869d330494b44957fe687b5b7765f1309..5039eb10059c606202d40f14de8e693c14a24290 100644 (file)
@@ -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);