Hello,
i have a plugin thats working great so if i hit a enemy like in arms, legs, body it will automaticly kill him and show headshot BUT from the Players View that got killed
- First the Sound for him is like normal Body kill
- he sees the bullet is killing him in like the leg
Is it possible that the Player that got killed simulate for him like normal headshot with sounds etc.?
Code:
public Action OnTakeDamage(int victim, int &attacker, int &inflictor, float &damage, int &damagetype, int &weapon, float damageForce[3], float damagePosition[3], int damagecustom){
if( !IsClientValid( victim ) || !IsClientValid( attacker ) ){
return Plugin_Continue;
}
if( aimOn[ attacker ] ){
damagetype = CS_DMG_HEADSHOT;
damage = float(GetClientHealth(victim) + GetClientArmor(victim));
return Plugin_Changed;
}
return Plugin_Continue;
}