From 01a4bbd52c34401c3832711340d0eaad643cb468 Mon Sep 17 00:00:00 2001 From: otta8634 Date: Sun, 16 Feb 2025 17:30:28 +0800 Subject: [PATCH] Disallow stealing the nb ball while dead Previously the ball could be stolen if the Ball Stealer secondary shot landed after the player who fired it was fragged. Now if it lands it'll still do knockback, but just not steal the ball. --- qcsrc/common/gamemodes/gamemode/nexball/sv_weapon.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/common/gamemodes/gamemode/nexball/sv_weapon.qc b/qcsrc/common/gamemodes/gamemode/nexball/sv_weapon.qc index d3d3a6a9d..7bb6c98c1 100644 --- a/qcsrc/common/gamemodes/gamemode/nexball/sv_weapon.qc +++ b/qcsrc/common/gamemodes/gamemode/nexball/sv_weapon.qc @@ -87,7 +87,7 @@ void W_Nexball_Touch(entity this, entity toucher) { toucher.velocity = toucher.velocity + normalize(this.velocity) * toucher.damageforcescale * autocvar_g_balance_nexball_secondary_force; UNSET_ONGROUND(toucher); - if(!attacker.ballcarried) + if(!attacker.ballcarried && !IS_DEAD(attacker)) { LogNB("stole", attacker); _sound(toucher, CH_TRIGGER, ball.noise2, VOL_BASE, ATTEN_NORM); -- 2.39.5