From 746be798a07744752d1ff65654ed362bc22402ef Mon Sep 17 00:00:00 2001 From: Jbleezy Date: Thu, 13 Apr 2023 23:31:48 -0700 Subject: [PATCH] Decrease solo last stand pistol ammo --- scripts/zm/_zm_reimagined.gsc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/zm/_zm_reimagined.gsc b/scripts/zm/_zm_reimagined.gsc index e0e7bc7b..cd9a34f2 100644 --- a/scripts/zm/_zm_reimagined.gsc +++ b/scripts/zm/_zm_reimagined.gsc @@ -1947,23 +1947,25 @@ last_stand_pistol_swap() } } + curclip = self getweaponammoclip(self.laststandpistol); ammoclip = weaponclipsize( self.laststandpistol ); doubleclip = ammoclip * 2; if(weapondualwieldweaponname(self.laststandpistol) != "none") { + curclip += self getweaponammoclip(weapondualwieldweaponname(self.laststandpistol)); ammoclip += weaponclipsize(weapondualwieldweaponname(self.laststandpistol)); doubleclip = ammoclip; } - if ( is_true( self._special_solo_pistol_swap ) || self.laststandpistol == level.default_solo_laststandpistol && !self.hadpistol ) + if ( is_true( self._special_solo_pistol_swap ) || self.laststandpistol == level.default_solo_laststandpistol && !self.hadpistol ) { self._special_solo_pistol_swap = 0; self.hadpistol = 0; - self setweaponammostock( self.laststandpistol, doubleclip ); + self setweaponammostock( self.laststandpistol, doubleclip - curclip ); } else if ( flag( "solo_game" ) && self.laststandpistol == level.default_solo_laststandpistol ) { - self setweaponammostock(self.laststandpistol, doubleclip); + self setweaponammostock(self.laststandpistol, doubleclip - curclip); } else if ( self.laststandpistol == level.default_laststandpistol ) {