summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIronClawTrem <louie.nutman@gmail.com>2019-08-25 23:30:55 +0100
committerIronClawTrem <louie.nutman@gmail.com>2019-08-25 23:30:55 +0100
commit49d81a0d86b32c52781f5ac0a3405a1f70ac136b (patch)
tree3140648b496311f3ba2cf673794dd09eabf8e9bc /src
parent315da16a666999f85136520c739a86925dec403f (diff)
knockback only active on pulse rifle, flamethrower, lucifer cannon splash, grenade, and buildables (except machinegun turret)
Diffstat (limited to 'src')
-rw-r--r--src/game/g_weapon.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/game/g_weapon.c b/src/game/g_weapon.c
index 4c9e26b..d314e86 100644
--- a/src/game/g_weapon.c
+++ b/src/game/g_weapon.c
@@ -323,7 +323,7 @@ void bulletFire( gentity_t *ent, float spread, int damage, int mod )
if( traceEnt->takedamage )
{
G_Damage( traceEnt, ent, ent, forward, tr.endpos,
- damage, 0, mod );
+ damage, DAMAGE_NO_KNOCKBACK, mod );
}
}
@@ -367,7 +367,7 @@ void ShotgunPattern( vec3_t origin, vec3_t origin2, int seed, gentity_t *ent )
if( !( tr.surfaceFlags & SURF_NOIMPACT ) )
{
if( traceEnt->takedamage )
- G_Damage( traceEnt, ent, ent, forward, tr.endpos, SHOTGUN_DMG, 0, MOD_SHOTGUN );
+ G_Damage( traceEnt, ent, ent, forward, tr.endpos, SHOTGUN_DMG, DAMAGE_NO_KNOCKBACK, MOD_SHOTGUN );
}
}
}
@@ -437,7 +437,7 @@ void massDriverFire( gentity_t *ent )
if( traceEnt->takedamage )
{
G_Damage( traceEnt, ent, ent, forward, tr.endpos,
- MDRIVER_DMG, 0, MOD_MDRIVER );
+ MDRIVER_DMG, DAMAGE_NO_KNOCKBACK, MOD_MDRIVER );
}
}
@@ -591,7 +591,7 @@ void lasGunFire( gentity_t *ent )
}
if( traceEnt->takedamage )
- G_Damage( traceEnt, ent, ent, forward, tr.endpos, LASGUN_DAMAGE, 0, MOD_LASGUN );
+ G_Damage( traceEnt, ent, ent, forward, tr.endpos, LASGUN_DAMAGE, DAMAGE_NO_KNOCKBACK, MOD_LASGUN );
}
/*