summaryrefslogtreecommitdiff
path: root/src/game/g_combat.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/g_combat.c')
-rw-r--r--src/game/g_combat.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/game/g_combat.c b/src/game/g_combat.c
index 7fc5a02a..99cee2dc 100644
--- a/src/game/g_combat.c
+++ b/src/game/g_combat.c
@@ -966,13 +966,11 @@ void G_Damage( gentity_t *targ, gentity_t *inflictor, gentity_t *attacker,
knockback = damage;
- // silly hack to give norf his knockbacking teslas
- if( !strcmp( inflictor->classname, "team_human_tesla" ) )
- knockback *= 4;
-
- // ...and for goon pouncing
- if( mod == MOD_LEVEL3_POUNCE )
- knockback *= 3;
+ if( inflictor->s.weapon != WP_NONE )
+ {
+ knockback = (int)( (float)knockback *
+ BG_FindKnockbackScaleForWeapon( inflictor->s.weapon ) );
+ }
if( targ->client )
{