Fixed player knockback.... hopefully

This commit is contained in:
Grant Bagwell 2023-04-14 17:01:16 +02:00
parent 7deeee7a6f
commit 4ab6a6024a

View file

@ -4995,7 +4995,7 @@ void G_Damage( gentity_t *targ, gentity_t *inflictor, gentity_t *attacker, vec3_
knockback = 0; knockback = 0;
} }
// figure momentum add, even if the damage won't be taken // figure momentum add, even if the damage won't be taken
if ( knockback && (!(dflags&DAMAGE_DEATH_KNOCKBACK) || g_TeamBeefDirectorsCut->integer == 1)) //&& targ->client if ( knockback && (!(dflags&DAMAGE_DEATH_KNOCKBACK) || (g_TeamBeefDirectorsCut->integer == 1 && targ->s.number != 0))) //&& targ->client //GB not the player
{ {
G_ApplyKnockback( targ, newDir, knockback ); G_ApplyKnockback( targ, newDir, knockback );
G_CheckKnockdown( targ, attacker, newDir, dflags, mod ); G_CheckKnockdown( targ, attacker, newDir, dflags, mod );