]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Player templates: Use new random weapon cvars.
authorLyberta <lyberta@lyberta.net>
Wed, 16 Aug 2017 02:44:01 +0000 (05:44 +0300)
committerLyberta <lyberta@lyberta.net>
Wed, 16 Aug 2017 02:44:01 +0000 (05:44 +0300)
player-template-example.cfg
qcsrc/common/mutators/mutator/playertemplates/sv_playertemplates.qc

index ceba1597a3664024163f47fb37e172f9ce0217ec..f418b32f324e8aad323618b0634be5d98439a232 100644 (file)
@@ -20,6 +20,10 @@ set g_player_template_example_start_weapons "default" "Which weapons does player
 // random weapons. The code will make sure that they are not duplicate.
 set g_player_template_example_num_random_start_weapons 0 "Number of weapons that can be randomly given to player during spawn"
 set g_player_template_example_random_start_weapons "" "Weapons that can be randomly given to player during spawn"
+set g_player_template_example_random_start_shells "default" "How much shells does the player get with random start shell-based weapon"
+set g_player_template_example_random_start_bullets "default" "How much bullets does the player get with random start bullet-based weapon"
+set g_player_template_example_random_start_rockets "default" "How much rockets does the player get with random start rocket-based weapon"
+set g_player_template_example_random_start_cells "default" "How much cells does the player get with random start cell-based weapon"
 
 // Item pickup section
 // Variables in this section define what happens during item pickup.
index 92cdc253780093ecb0303fa4d4e8ce637373b8cc..1ad8dea6cbaf6e8cb7356220c878737ec0943c4e 100644 (file)
@@ -49,23 +49,23 @@ string PlayerTemplate_GetDefaultCvarName(string variable)
                }
                case "random_start_shells":
                {
-                       return "g_pickup_shells_weapon";
+                       return "g_random_start_shells";
                }
                case "random_start_bullets":
                {
-                       return "g_pickup_nails_weapon";
+                       return "g_random_start_bullets";
                }
                case "random_start_rockets":
                {
-                       return "g_pickup_rockets_weapon";
+                       return "g_random_start_rockets";
                }
                case "random_start_cells":
                {
-                       return "g_pickup_cells_weapon";
+                       return "g_random_start_cells";
                }
                case "random_start_plasma":
                {
-                       return "g_pickup_plasma_weapon";
+                       return "g_random_start_plasma";
                }
                case "health_regen_factor":
                {