mirror of
https://github.com/DrBeef/JKXR.git
synced 2024-11-28 06:52:07 +00:00
Fixed player knockback.... hopefully
This commit is contained in:
parent
7deeee7a6f
commit
4ab6a6024a
1 changed files with 1 additions and 1 deletions
|
@ -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 );
|
||||||
|
|
Loading…
Reference in a new issue