mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-11 15:48:05 -05:00
EMP Grenade: remove laugh sound from EMP'ing Pack-a-Punch
Pack-a-Punch weapon is deleted instantly when EMP'd
This commit is contained in:
@ -33,6 +33,7 @@ main()
|
||||
replaceFunc(maps/mp/zombies/_zm_magicbox::treasure_chest_timeout, scripts/zm/replaced/_zm_magicbox::treasure_chest_timeout);
|
||||
replaceFunc(maps/mp/zombies/_zm_magicbox::timer_til_despawn, scripts/zm/replaced/_zm_magicbox::timer_til_despawn);
|
||||
replaceFunc(maps/mp/zombies/_zm_perks::perk_pause, scripts/zm/replaced/_zm_perks::perk_pause);
|
||||
replaceFunc(maps/mp/zombies/_zm_perks::destroy_weapon_in_blackout, scripts/zm/replaced/_zm_perks::destroy_weapon_in_blackout);
|
||||
replaceFunc(maps/mp/zombies/_zm_powerups::nuke_powerup, scripts/zm/replaced/_zm_powerups::nuke_powerup);
|
||||
replaceFunc(maps/mp/zombies/_zm_pers_upgrades::pers_upgrade_init, scripts/zm/replaced/_zm_pers_upgrades::pers_upgrade_init);
|
||||
replaceFunc(maps/mp/zombies/_zm_equipment::show_equipment_hint, scripts/zm/replaced/_zm_equipment::show_equipment_hint);
|
||||
|
@ -5,4 +5,22 @@
|
||||
perk_pause( perk )
|
||||
{
|
||||
// disabled
|
||||
}
|
||||
|
||||
destroy_weapon_in_blackout( player )
|
||||
{
|
||||
self endon( "pap_timeout" );
|
||||
self endon( "pap_taken" );
|
||||
self endon( "pap_player_disconnected" );
|
||||
|
||||
level waittill( "Pack_A_Punch_off" );
|
||||
|
||||
if ( isDefined( self.worldgun ) )
|
||||
{
|
||||
if ( isDefined( self.worldgun.worldgundw ) )
|
||||
{
|
||||
self.worldgun.worldgundw delete();
|
||||
}
|
||||
self.worldgun delete();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user