]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Don't offset buff location when spawning at a spawnpoint (fixes getting stuck in...
authorMario <mario@smbclan.net>
Fri, 6 Nov 2015 07:37:08 +0000 (17:37 +1000)
committerMario <mario@smbclan.net>
Fri, 6 Nov 2015 07:37:08 +0000 (17:37 +1000)
qcsrc/common/mutators/mutator/buffs/buffs.qc

index d6bfb702c9672ff0f19fc0b7aa05ebf16e05864a..eeda5db74314ecc94590196505e3b1a08d7c0b7a 100644 (file)
@@ -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;
        }