Lets just use client everywhere.
This commit is contained in:
parent
c477d14bd4
commit
5eb739bef8
@ -282,14 +282,12 @@ public Action OnTakeDamage(int victim, int &attacker, int &inflictor, float &dam
|
||||
if(g_LastAttacker == attacker && g_LastVictim == client)
|
||||
return Plugin_Handled;
|
||||
|
||||
victim = client;
|
||||
|
||||
g_LastAttacker = attacker;
|
||||
g_LastVictim = victim;
|
||||
g_LastVictim = client;
|
||||
|
||||
int flags = ZR_KNOCKBACK_CUSTOM | ZR_KNOCKBACK_SCALE | ZR_KNOCKBACK_LIMITFORCE | ZR_KNOCKBACK_LIMITVEL;
|
||||
|
||||
if(g_bFullKnife[victim])
|
||||
if(g_bFullKnife[client])
|
||||
{
|
||||
char sWeaponClassname[64];
|
||||
if(inflictor == attacker)
|
||||
@ -316,7 +314,7 @@ public Action OnTakeDamage(int victim, int &attacker, int &inflictor, float &dam
|
||||
// Don't damage kevlar.
|
||||
damagetype |= DMG_RADIATION;
|
||||
|
||||
SDKHooks_TakeDamage(victim, inflictor, attacker, damage, damagetype, weapon, damageForce, damagePosition, flags);
|
||||
SDKHooks_TakeDamage(client, inflictor, attacker, damage, damagetype, weapon, damageForce, damagePosition, flags);
|
||||
|
||||
if(g_bNoSlowdown[client])
|
||||
SetEntDataFloat(client, g_hVelocityModifier, flVelocityModifier, true);
|
||||
|
Loading…
Reference in New Issue
Block a user