]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
use expression to enable SNT 480/head
authorMartin Taibr <taibr.martin@gmail.com>
Sat, 2 Sep 2017 01:47:00 +0000 (03:47 +0200)
committerMartin Taibr <taibr.martin@gmail.com>
Sat, 2 Sep 2017 01:47:00 +0000 (03:47 +0200)
defaultOverkill.cfg
mutators.cfg
qcsrc/common/mutators/mutator/spawn_near_teammate/sv_spawn_near_teammate.qc

index 2444301b9e7b34c75b8bacf3ebdd367615ec4939..f63f689f34bda0b1cd03bcb62a1f944cbac88a92 100644 (file)
@@ -28,7 +28,7 @@ set g_nades_nade_newton_style 2
 set g_dodging 1
 set sv_dodging_wall_dodging 1
 
-set g_spawn_near_teammate 1
+set g_spawn_near_teammate "!g_assault !g_freezetag"
 set g_spawn_near_teammate_ignore_spawnpoint 1
 set g_spawnshieldtime 0.5
 set g_respawn_delay_forced 2
index 23c72435c1e399233872a18114c265debb945150..5eb8d1b9d6dae7d806a64bc55c8771535fd42efa 100644 (file)
@@ -108,7 +108,7 @@ set g_rocket_flying 0 "set to 1 to enable rocket flying in all balance configs"
 //  spawn near teammate
 // =====================
 seta cl_spawn_near_teammate 1 "toggle for spawning near teammates (only effective if g_spawn_near_teammate_ignore_spawnpoint is 2)"
-set g_spawn_near_teammate 0 "if set, players prefer spawns near a team mate"
+set g_spawn_near_teammate 0 "players prefer spawns near a team mate"
 set g_spawn_near_teammate_distance 640 "max distance to consider a spawn to be near a team mate"
 set g_spawn_near_teammate_ignore_spawnpoint 0 "ignore spawnpoints and spawn right at team mates, if 2, clients can ignore this option"
 set g_spawn_near_teammate_ignore_spawnpoint_max 10 "if set, test at most this many of the available teammates"
index fab94a1d7d34b54c87e35cff8fc17e6e68684931..d5e57879ef3a6f8aaa7c0e1fd0d2c541a5492628 100644 (file)
@@ -57,12 +57,6 @@ MUTATOR_HOOKFUNCTION(spawn_near_teammate, PlayerSpawn)
 {
        if (!teamplay) return;
 
-       // in assault it makes it prety much impossible to stop an attack
-       if (g_assault) return;
-
-       // when players fall off the map they respawn near a teammate which is usually a safe place and get unforzen too easily
-       if (g_freezetag) return;
-
        entity player = M_ARGV(0, entity);
        entity spawn_spot = M_ARGV(1, entity);