From 6f37d23421b171cdbd5b4f359091a5b0f4773b4b Mon Sep 17 00:00:00 2001 From: Jbleezy Date: Tue, 11 Apr 2023 18:21:34 -0700 Subject: [PATCH] PaP: remove re-PaP cost --- README.md | 1 + scripts/zm/replaced/_zm_perks.gsc | 9 +++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5a6c44fe..8b84625f 100644 --- a/README.md +++ b/README.md @@ -350,6 +350,7 @@ * Stink areas no longer activate while the player is standing ## Pack-a-Punch +* No longer costs 2000 points to change attachments on an upgraded weapon * Decreased weapon pickup time from 15 seconds to 12 seconds ## Powerups diff --git a/scripts/zm/replaced/_zm_perks.gsc b/scripts/zm/replaced/_zm_perks.gsc index 2de2c34b..da0b2f96 100644 --- a/scripts/zm/replaced/_zm_perks.gsc +++ b/scripts/zm/replaced/_zm_perks.gsc @@ -227,7 +227,7 @@ vending_weapon_upgrade() if ( player maps\mp\zombies\_zm_pers_upgrades_functions::is_pers_double_points_active() ) current_cost = player maps\mp\zombies\_zm_pers_upgrades_functions::pers_upgrade_double_points_cost( current_cost ); - if ( player.score < current_cost ) + if ( !upgrade_as_attachment && player.score < current_cost ) { self playsound( "deny" ); @@ -246,7 +246,12 @@ vending_weapon_upgrade() player maps\mp\zombies\_zm_stats::increment_player_stat( "use_pap" ); self thread destroy_weapon_in_blackout( player ); self thread destroy_weapon_on_disconnect( player ); - player maps\mp\zombies\_zm_score::minus_to_player_score( current_cost, 1 ); + + if ( !upgrade_as_attachment ) + { + player maps\mp\zombies\_zm_score::minus_to_player_score( current_cost, 1 ); + } + sound = "evt_bottle_dispense"; playsoundatposition( sound, self.origin ); self thread maps\mp\zombies\_zm_audio::play_jingle_or_stinger( "mus_perks_packa_sting" );