From: Lyberta Date: Mon, 28 Aug 2017 03:28:27 +0000 (+0300) Subject: Survival: Use GivePlayerResource instead of GivePlayerAmmo. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=04fde620b86e85817b7e90e3b325b3a568a4e8fc;p=xonotic%2Fxonotic-data.pk3dir.git Survival: Use GivePlayerResource instead of GivePlayerAmmo. --- diff --git a/qcsrc/server/mutators/mutator/gamemode_survival.qc b/qcsrc/server/mutators/mutator/gamemode_survival.qc index 56ecb7f5f1..7e09d61bce 100644 --- a/qcsrc/server/mutators/mutator/gamemode_survival.qc +++ b/qcsrc/server/mutators/mutator/gamemode_survival.qc @@ -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; }