]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
make it easier to imagine
authorMartin Taibr <taibr.martin@gmail.com>
Thu, 24 Aug 2017 17:03:50 +0000 (19:03 +0200)
committerMartin Taibr <taibr.martin@gmail.com>
Thu, 24 Aug 2017 17:03:50 +0000 (19:03 +0200)
defaultServer.cfg
qcsrc/common/t_items.qc

index 3f746db7e0bd5743a3b52db3ca5630ba014477c5..52b3b0692752f97746c207758777efd21a4044ac 100644 (file)
@@ -185,9 +185,9 @@ set g_weapon_throwable 1 "if set to 1, weapons can be dropped"
 set g_powerups -1 "if set to 0 the strength and shield (invincibility) will not spawn on the map, if 1 they will spawn in all game modes, -1 is game mode default"
 set g_use_ammunition 1 "if set to 0 all weapons have unlimited ammunition"
 set g_pickup_items -1 "if set to 0 all items (health, armor, ammo, weapons...) are removed from the map, if 1 they are forced to spawn"
-set g_pickup_respawntime_scaling_a 0 "Scale respawn time according to a*rt / (p+b) + c*rt where rt is normal respawn time and p number of players"
-set g_pickup_respawntime_scaling_b 0 "Scale respawn time according to a*rt / (p+b) + c*rt where rt is normal respawn time and p number of players"
-set g_pickup_respawntime_scaling_c 1 "Scale respawn time according to a*rt / (p+b) + c*rt where rt is normal respawn time and p number of players"
+set g_pickup_respawntime_scaling_a 0 "Multiply respawn time by `a / (p+b) + c` where `p` is the current number of players, takes effect with 2 or more players present"
+set g_pickup_respawntime_scaling_b 0 "Multiply respawn time by `a / (p+b) + c` where `p` is the current number of players, takes effect with 2 or more players present"
+set g_pickup_respawntime_scaling_c 1 "Multiply respawn time by `a / (p+b) + c` where `p` is the current number of players, takes effect with 2 or more players present"
 set g_weaponarena "0"  "put in a list of weapons to enable a weapon arena mode, or try \"all\" or \"most\""
 set g_weaponarena_random "0"   "if set to a number, only that weapon count is given on every spawn (randomly)"
 set g_weaponarena_random_with_blaster "1"      "additionally, always provide the blaster in random weapon arena games"
index c19f303a6be66d9396f55d988d459d5132effa56..3b264479acd3c5d4afbcfddf26e0dbe05121a040 100644 (file)
@@ -631,9 +631,9 @@ void Item_ScheduleRespawnIn(entity e, float t)
        }
 }
 
-AUTOCVAR(g_pickup_respawntime_scaling_a, float, 0.0, "Scale respawn time according to a*rt / (p+b) + c*rt where rt is normal respawn time and p number of players");
-AUTOCVAR(g_pickup_respawntime_scaling_b, float, 0.0, "Scale respawn time according to a*rt / (p+b) + c*rt where rt is normal respawn time and p number of players");
-AUTOCVAR(g_pickup_respawntime_scaling_c, float, 1.0, "Scale respawn time according to a*rt / (p+b) + c*rt where rt is normal respawn time and p number of players");
+AUTOCVAR(g_pickup_respawntime_scaling_a, float, 0.0, "Multiply respawn time by `a / (p+b) + c` where `p` is the current number of players, takes effect with 2 or more players present");
+AUTOCVAR(g_pickup_respawntime_scaling_b, float, 0.0, "Multiply respawn time by `a / (p+b) + c` where `p` is the current number of players, takes effect with 2 or more players present");
+AUTOCVAR(g_pickup_respawntime_scaling_c, float, 1.0, "Multiply respawn time by `a / (p+b) + c` where `p` is the current number of players, takes effect with 2 or more players present");
 void Item_ScheduleRespawn(entity e)
 {
        if(e.respawntime > 0)
@@ -652,7 +652,7 @@ void Item_ScheduleRespawn(entity e)
                        float a = autocvar_g_pickup_respawntime_scaling_a;
                        float b = autocvar_g_pickup_respawntime_scaling_b;
                        float c = autocvar_g_pickup_respawntime_scaling_c;
-                       adjusted_respawntime = a * e.respawntime / (players + b) + c * e.respawntime;
+                       adjusted_respawntime = e.respawntime * (a / (players + b) + c);
                } else {
                        adjusted_respawntime = e.respawntime;
                }