From 8c2eb6c0ff8f552da917bd59dc4da56162c22ddd Mon Sep 17 00:00:00 2001 From: Jbleezy Date: Sun, 1 Oct 2023 11:11:45 -0700 Subject: [PATCH] Pack-a-Punch: add no purchase sound --- README.md | 1 + scripts/zm/replaced/_zm_perks.gsc | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e8991109..784a5c07 100644 --- a/README.md +++ b/README.md @@ -396,6 +396,7 @@ ## 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 +* Added sound when attempting to purchase without enough points ## Powerups * Decreased chance to drop from 3% to 2% diff --git a/scripts/zm/replaced/_zm_perks.gsc b/scripts/zm/replaced/_zm_perks.gsc index 84cf8a6d..bf294770 100644 --- a/scripts/zm/replaced/_zm_perks.gsc +++ b/scripts/zm/replaced/_zm_perks.gsc @@ -294,7 +294,7 @@ vending_trigger_think() if ( cheat != 1 ) { - self playsound( "deny" ); + self playsound( "evt_perk_deny" ); player maps\mp\zombies\_zm_audio::create_and_play_dialog( "general", "perk_deny", undefined, 1 ); continue; } @@ -592,7 +592,7 @@ vending_weapon_upgrade() if ( !upgrade_as_attachment && player.score < current_cost ) { - self playsound( "deny" ); + self playsound( "evt_perk_deny" ); if ( isdefined( level.custom_pap_deny_vo_func ) ) player [[ level.custom_pap_deny_vo_func ]]();