From a416983d93e009c22d19caacc3e57f65ac988b54 Mon Sep 17 00:00:00 2001 From: Jbleezy Date: Thu, 6 Jan 2022 17:24:11 -0800 Subject: [PATCH] Grief: ballistic knife projectile pushes enemy players --- README.md | 1 + scripts/zm/zgrief/zgrief_reimagined.gsc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a3cb615e..d14e7884 100644 --- a/README.md +++ b/README.md @@ -328,6 +328,7 @@ * Meleeing enemy players that are crouched pushes 37.5% of the amount when standing * Meleeing enemy players that are prone pushes 18.75% of the amount when standing * Meleeing enemy players that are already stunned will push them +* Ballistic knife projectile pushes enemy players * Stun fx is linked to the player * Stun fx shows in the correct position for projectiles * Stunning enemy players steals 100 points from them diff --git a/scripts/zm/zgrief/zgrief_reimagined.gsc b/scripts/zm/zgrief/zgrief_reimagined.gsc index c8606dea..a2c606df 100644 --- a/scripts/zm/zgrief/zgrief_reimagined.gsc +++ b/scripts/zm/zgrief/zgrief_reimagined.gsc @@ -1180,7 +1180,7 @@ game_module_player_damage_callback( einflictor, eattacker, idamage, idflags, sme } is_melee = false; - if ( isDefined( eattacker ) && isplayer( eattacker ) && eattacker != self && eattacker.team != self.team && smeansofdeath == "MOD_MELEE" ) + if(isDefined(eattacker) && isplayer(eattacker) && eattacker != self && eattacker.team != self.team && (smeansofdeath == "MOD_MELEE" || issubstr(sweapon, "knife_ballistic"))) { is_melee = true; dir = vdir;