]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Survival: Use GivePlayerResource instead of GivePlayerAmmo.
authorLyberta <lyberta@lyberta.net>
Mon, 28 Aug 2017 03:28:27 +0000 (06:28 +0300)
committerLyberta <lyberta@lyberta.net>
Mon, 28 Aug 2017 03:28:27 +0000 (06:28 +0300)
qcsrc/server/mutators/mutator/gamemode_survival.qc

index 56ecb7f5f17f2ac81d3121543c1b0fd4e8331a05..7e09d61bce03371a5238a958e386e9fc99fb50d5 100644 (file)
@@ -2055,13 +2055,13 @@ MUTATOR_HOOKFUNCTION(surv, PlayerDies, CBC_ORDER_FIRST)
                                        autocvar_g_surv_defender_attacker_frag_health);
                                GivePlayerArmor(attacker,
                                        autocvar_g_surv_defender_attacker_frag_armor);
-                               GivePlayerAmmo(attacker, ammo_shells,
+                               GivePlayerResource(attacker, RESOURCE_SHELLS,
                                        autocvar_g_surv_defender_attacker_frag_shells);
-                               GivePlayerAmmo(attacker, ammo_nails,
+                               GivePlayerResource(attacker, RESOURCE_BULLETS,
                                        autocvar_g_surv_defender_attacker_frag_bullets);
-                               GivePlayerAmmo(attacker, ammo_rockets,
+                               GivePlayerResource(attacker, RESOURCE_ROCKETS,
                                        autocvar_g_surv_defender_attacker_frag_rockets);
-                               GivePlayerAmmo(attacker, ammo_cells,
+                               GivePlayerResource(attacker, RESOURCE_CELLS,
                                        autocvar_g_surv_defender_attacker_frag_cells);
                                break;
                        }
@@ -2071,13 +2071,13 @@ MUTATOR_HOOKFUNCTION(surv, PlayerDies, CBC_ORDER_FIRST)
                                        autocvar_g_surv_defender_cannon_fodder_frag_health);
                                GivePlayerArmor(attacker,
                                        autocvar_g_surv_defender_cannon_fodder_frag_armor);
-                               GivePlayerAmmo(attacker, ammo_shells,
+                               GivePlayerResource(attacker, RESOURCE_SHELLS,
                                        autocvar_g_surv_defender_cannon_fodder_frag_shells);
-                               GivePlayerAmmo(attacker, ammo_nails,
+                               GivePlayerResource(attacker, RESOURCE_BULLETS,
                                        autocvar_g_surv_defender_cannon_fodder_frag_bullets);
-                               GivePlayerAmmo(attacker, ammo_rockets,
+                               GivePlayerResource(attacker, RESOURCE_ROCKETS,
                                        autocvar_g_surv_defender_cannon_fodder_frag_rockets);
-                               GivePlayerAmmo(attacker, ammo_cells,
+                               GivePlayerResource(attacker, RESOURCE_CELLS,
                                        autocvar_g_surv_defender_cannon_fodder_frag_cells);
                                break;
                        }