SERVER: Have Max Ammo Power-Up function differently for Clients in Last Stand

This commit is contained in:
Steam Deck User 2023-03-18 16:23:54 -04:00
parent 6e16bb264f
commit 28d769c48e

View file

@ -428,6 +428,8 @@ void() PU_MaxAmmo =
tempe = find(world, classname, "player");
while(tempe) {
if (!tempe.downed) {
// Fill Primary Weapon
if (tempe.weapon) tempe.currentammo = getWeaponAmmo(tempe.weapon);
// Fill Secondary Weapon
@ -438,6 +440,11 @@ void() PU_MaxAmmo =
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