summaryrefslogtreecommitdiff
path: root/src/game/g_weapon.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/g_weapon.c')
-rw-r--r--src/game/g_weapon.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/game/g_weapon.c b/src/game/g_weapon.c
index 8684574c..1179ce3e 100644
--- a/src/game/g_weapon.c
+++ b/src/game/g_weapon.c
@@ -651,7 +651,7 @@ qboolean CheckVenomAttack( gentity_t *ent )
if( traceEnt->client->ps.stats[ STAT_PTEAM ] == PTE_DROIDS )
return qfalse;
- G_Damage( traceEnt, ent, ent, forward, tr.endpos, 5, 0, MOD_VENOM );
+ G_Damage( traceEnt, ent, ent, forward, tr.endpos, 5, DAMAGE_NO_KNOCKBACK, MOD_VENOM );
if( traceEnt->client )
{
if( !( traceEnt->client->ps.stats[ STAT_STATE ] & SS_POISONED ) )
@@ -716,7 +716,7 @@ void Weapon_CSaw_Fire( gentity_t *ent )
}
if ( traceEnt->takedamage )
- G_Damage( traceEnt, ent, ent, forward, tr.endpos, 5, 0, MOD_VENOM );
+ G_Damage( traceEnt, ent, ent, forward, tr.endpos, 5, DAMAGE_NO_KNOCKBACK, MOD_VENOM );
}
/*
@@ -755,6 +755,8 @@ void Weapon_Grab_Fire( gentity_t *ent )
if( traceEnt->client )
{
//lock client
+ traceEnt->client->ps.stats[ STAT_STATE ] |= SS_GRABBED;
+ traceEnt->client->lastGrabTime = level.time;
}
}
@@ -911,6 +913,7 @@ void FireWeapon2( gentity_t *ent )
Weapon_Venom_Fire( ent );
break;
case WP_GRABANDCSAW:
+ Weapon_Grab_Fire( ent );
break;
case WP_DBUILD:
Weapon_Abuild_Fire( ent );