mirror of
https://github.com/nzp-team/quakec.git
synced 2024-11-29 23:32:18 +00:00
SERVER: Have Max Ammo Power-Up function differently for Clients in Last Stand
This commit is contained in:
parent
6e16bb264f
commit
28d769c48e
1 changed files with 17 additions and 10 deletions
|
@ -428,16 +428,23 @@ void() PU_MaxAmmo =
|
||||||
tempe = find(world, classname, "player");
|
tempe = find(world, classname, "player");
|
||||||
|
|
||||||
while(tempe) {
|
while(tempe) {
|
||||||
// Fill Primary Weapon
|
|
||||||
if (tempe.weapon) tempe.currentammo = getWeaponAmmo(tempe.weapon);
|
if (!tempe.downed) {
|
||||||
// Fill Secondary Weapon
|
// Fill Primary Weapon
|
||||||
if (tempe.secondaryweapon) tempe.secondaryammo = getWeaponAmmo(tempe.secondaryweapon);
|
if (tempe.weapon) tempe.currentammo = getWeaponAmmo(tempe.weapon);
|
||||||
// Fill Third Weapon
|
// Fill Secondary Weapon
|
||||||
if (tempe.thirdweapon) tempe.thirdammo = getWeaponAmmo(tempe.thirdweapon);
|
if (tempe.secondaryweapon) tempe.secondaryammo = getWeaponAmmo(tempe.secondaryweapon);
|
||||||
// Give Grenades
|
// Fill Third Weapon
|
||||||
tempe.primary_grenades = 4;
|
if (tempe.thirdweapon) tempe.thirdammo = getWeaponAmmo(tempe.thirdweapon);
|
||||||
// Give Betties
|
// Give Grenades
|
||||||
if (tempe.grenades & 2) tempe.secondary_grenades = 2;
|
tempe.primary_grenades = 4;
|
||||||
|
// Give Betties
|
||||||
|
if (tempe.grenades & 2) tempe.secondary_grenades = 2;
|
||||||
|
} else {
|
||||||
|
// Reset shots fired, fill 2 mags into reserve.
|
||||||
|
tempe.teslacount = 0;
|
||||||
|
tempe.currentammo = getWeaponMag(tempe.weapon) * 2;
|
||||||
|
}
|
||||||
|
|
||||||
// MAX AMMO! text
|
// MAX AMMO! text
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue