From: Mario Date: Fri, 6 Nov 2015 07:37:08 +0000 (+1000) Subject: Don't offset buff location when spawning at a spawnpoint (fixes getting stuck in... X-Git-Tag: xonotic-v0.8.2~1698 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5b68ee5bc874a363ae3d579a294780b46a1f2cce;p=xonotic%2Fxonotic-data.pk3dir.git Don't offset buff location when spawning at a spawnpoint (fixes getting stuck in walls) --- diff --git a/qcsrc/common/mutators/mutator/buffs/buffs.qc b/qcsrc/common/mutators/mutator/buffs/buffs.qc index d6bfb702c..eeda5db74 100644 --- a/qcsrc/common/mutators/mutator/buffs/buffs.qc +++ b/qcsrc/common/mutators/mutator/buffs/buffs.qc @@ -204,7 +204,7 @@ void buff_Respawn(entity ent) if(!MoveToRandomMapLocation(ent, DPCONTENTS_SOLID | DPCONTENTS_CORPSE | DPCONTENTS_PLAYERCLIP, DPCONTENTS_SLIME | DPCONTENTS_LAVA | DPCONTENTS_SKY | DPCONTENTS_BODY | DPCONTENTS_DONOTENTER, Q3SURFACEFLAG_SKY, ((autocvar_g_buffs_random_location_attempts > 0) ? autocvar_g_buffs_random_location_attempts : 10), 1024, 256)) { entity spot = SelectSpawnPoint(true); - setorigin(ent, ((spot.origin + '0 0 200') + (randomvec() * 300))); + setorigin(ent, spot.origin + '0 0 200'); ent.angles = spot.angles; }