diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/game/g_combat.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game/g_combat.c b/src/game/g_combat.c index adc02f7f..8b5877cf 100644 --- a/src/game/g_combat.c +++ b/src/game/g_combat.c @@ -939,6 +939,11 @@ void G_Damage( gentity_t *targ, gentity_t *inflictor, gentity_t *attacker, BG_Class( targ->client->ps.stats[ STAT_CLASS ] )->knockbackScale ); } + // Too much knockback from falling really far makes you "bounce" and + // looks silly. However, none at all also looks bad. Cap it. + if( mod == MOD_FALLING && knockback > 50 ) + knockback = 50; + if( knockback > 200 ) knockback = 200; |