From 67102c4ed81448b1d31f7ba2934abffefc56eec7 Mon Sep 17 00:00:00 2001 From: Jbleezy Date: Sat, 5 Feb 2022 02:10:00 -0800 Subject: [PATCH] Nuke: counts as kills for grabber --- README.md | 5 +++-- scripts/zm/replaced/_zm_powerups.gsc | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f61a7113..db4054bf 100644 --- a/README.md +++ b/README.md @@ -264,13 +264,14 @@ ## Powerups ### Insta Kill -* Grabbing while already active adds 30 seconds to timer instead of resetting timer to 30 seconds +* Grabbing while already active adds to timer instead of resetting timer ### Double Points -* Grabbing while already active adds 30 seconds to timer instead of resetting timer to 30 seconds +* Grabbing while already active adds to timer instead of resetting timer ### Nuke * Kills all zombies instantly +* Counts as kills for player who grabbed it ### Carpenter * Removed diff --git a/scripts/zm/replaced/_zm_powerups.gsc b/scripts/zm/replaced/_zm_powerups.gsc index aba5d9e5..a6c4374c 100644 --- a/scripts/zm/replaced/_zm_powerups.gsc +++ b/scripts/zm/replaced/_zm_powerups.gsc @@ -152,6 +152,7 @@ empty_clip_move_hud( team ) nuke_powerup( drop_item, player_team ) { location = drop_item.origin; + player = getClosest(location, get_players(player_team)); playfx( drop_item.fx, location ); level thread maps/mp/zombies/_zm_powerups::nuke_flash( player_team ); wait 0.5; @@ -216,7 +217,8 @@ nuke_powerup( drop_item, player_team ) } zombies_nuked[ i ] playsound("evt_nuked"); } - zombies_nuked[ i ] dodamage(zombies_nuked[i].health + 666, zombies_nuked[ i ].origin ); + zombies_nuked[ i ].deathpoints_already_given = 1; + zombies_nuked[ i ] dodamage(zombies_nuked[i].health + 666, zombies_nuked[ i ].origin, player ); i++; } players = get_players( player_team );