]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Remove g_overkill_superguns_respawn_time
authorFreddy <schro.sb@gmail.com>
Mon, 10 Oct 2016 15:35:32 +0000 (17:35 +0200)
committerFreddy <schro.sb@gmail.com>
Mon, 10 Oct 2016 15:35:32 +0000 (17:35 +0200)
Instead use g_pickup_respawntime_superweapon like other superweapons

mutators.cfg
qcsrc/common/mutators/mutator/overkill/sv_overkill.qc

index 2cf382a02ec334313fc11eb215775303ca8ead45..2a5efcfda4953d421ac84a466dcbed0d4703b9d4 100644 (file)
@@ -48,7 +48,6 @@ set g_overkill 0 "enable overkill"
 set g_overkill_100a_anyway 1
 set g_overkill_100h_anyway 1
 set g_overkill_powerups_replace 1
-set g_overkill_superguns_respawn_time 120
 
 set g_overkill_ammo_charge 0
 set g_overkill_ammo_charge_notice 1
index f86c71b7eb694d0cf0032165fe3b5fc114b2dcf0..35370df7edce3c559ab5f2f13cd40b027def5e28 100644 (file)
@@ -4,7 +4,6 @@
 #include "rpc.qh"
 
 bool autocvar_g_overkill_powerups_replace;
-float autocvar_g_overkill_superguns_respawn_time;
 bool autocvar_g_overkill_100h_anyway;
 bool autocvar_g_overkill_100a_anyway;
 bool autocvar_g_overkill_ammo_charge;
@@ -274,7 +273,7 @@ MUTATOR_HOOKFUNCTION(ok, OnEntityPreSpawn)
                        wep.noalign = ent.noalign;
                        wep.cnt = ent.cnt;
                        wep.team = ent.team;
-                       wep.respawntime = autocvar_g_overkill_superguns_respawn_time;
+                       wep.respawntime = g_pickup_respawntime_superweapon;
                        wep.pickup_anyway = true;
                        wep.spawnfunc_checked = true;
                        setthink(wep, self_spawnfunc_weapon_hmg);
@@ -291,7 +290,7 @@ MUTATOR_HOOKFUNCTION(ok, OnEntityPreSpawn)
                        wep.noalign = ent.noalign;
                        wep.cnt = ent.cnt;
                        wep.team = ent.team;
-                       wep.respawntime = autocvar_g_overkill_superguns_respawn_time;
+                       wep.respawntime = g_pickup_respawntime_superweapon;
                        wep.pickup_anyway = true;
                        wep.spawnfunc_checked = true;
                        setthink(wep, self_spawnfunc_weapon_rpc);