]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
g_weaponarena_random_with_blaster
authorMario <zacjardine@y7mail.com>
Thu, 27 Nov 2014 04:36:41 +0000 (15:36 +1100)
committerMario <zacjardine@y7mail.com>
Thu, 27 Nov 2014 04:36:41 +0000 (15:36 +1100)
defaultXonotic.cfg
qcsrc/server/cl_client.qc
qcsrc/server/g_damage.qc
qcsrc/server/miscfunctions.qc

index d855c8480656b7f7e87d605e0c69316ef724fa0e..0e3cee2e6c3598d07afb0d1826ae63896660cd10 100644 (file)
@@ -416,7 +416,7 @@ 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_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_laser "1"        "additionally, always provide the laser in random weapon arena games"
+set g_weaponarena_random_with_blaster "1"      "additionally, always provide the blaster in random weapon arena games"
 set g_midair 0 "if set to 1 you can only apply damage to your opponent while he is airborne"
 set g_midair_shieldtime 0.3 "number of seconds you are still invincible since you lost contact to the ground"
 set g_spawnpoints_auto_move_out_of_solid 0 "if set to 1 you will see a warning if a spawn point was placed inside a solid"
index 17eaa693681dd3e3f3fa55f474de90be4f93ee84..1fb4655ee3e6bcddf5f53184443891b833d3e10b 100644 (file)
@@ -462,10 +462,10 @@ void PutClientInServer (void)
 
                if(g_weaponarena_random) // WEAPONTODO: more stuff that should be in a mutator. also: rename those cvars
                {
-                       if(g_weaponarena_random_with_laser)
+                       if(g_weaponarena_random_with_blaster)
                                self.weapons &= ~WEPSET_BLASTER;
                        W_RandomWeapons(self, g_weaponarena_random);
-                       if(g_weaponarena_random_with_laser)
+                       if(g_weaponarena_random_with_blaster)
                                self.weapons |= WEPSET_BLASTER;
                }
 
index 93bb5799f157625b55fc2de211a494d4a8ffa7af..880683d3f0a9addde4be1d5c407577b254627b4e 100644 (file)
@@ -115,7 +115,7 @@ void GiveFrags (entity attacker, entity targ, float f, float deathtype)
                else if(!(attacker.weapons & WepSet_FromWeapon(culprit)))
                        culprit = attacker.weapon;
 
-               if(g_weaponarena_random_with_laser && culprit == WEP_BLASTER) // WEAPONTODO: Shouldn't this be in a mutator?
+               if(g_weaponarena_random_with_blaster && culprit == WEP_BLASTER) // WEAPONTODO: Shouldn't this be in a mutator?
                {
                        // no exchange
                }
index fc2fc0cade890b15de3b8e4a157e9e58a73042e8..2df6a50d4fe77aea40c23b300072cc4a19b3ecee 100644 (file)
@@ -597,7 +597,7 @@ float g_pickup_weapons_anyway;
 float g_weaponarena;
 WepSet g_weaponarena_weapons;
 float g_weaponarena_random;
-float g_weaponarena_random_with_laser;
+float g_weaponarena_random_with_blaster;
 string g_weaponarena_list;
 float g_weaponspeedfactor;
 float g_weaponratefactor;
@@ -769,7 +769,7 @@ void readplayerstartcvars()
                g_weaponarena_random = cvar("g_weaponarena_random");
        else
                g_weaponarena_random = 0;
-       g_weaponarena_random_with_laser = cvar("g_weaponarena_random_with_laser");
+       g_weaponarena_random_with_blaster = cvar("g_weaponarena_random_with_blaster");
 
        if (g_weaponarena)
        {