I am trying to fix the rifles being able to shoot through walls exploite but the is_visible() and is_visible_origin() always return false whether both players can see each other or not. I have no issue with the function working properly in tfc. I use these 2 functions all the time in tfc. Could some one explain to me why these engine module functions have no effect in Counter Strike?
PHP Code:
public damage(victim, wpn, attacker, Float:dmg, bit)
{
if(!is_visible(victim, attacker))
{
ExecuteHam(Ham_TakeDamage, attacker, wpn, attacker, dmg, bit)
return HAM_SUPERCEDE;
}
return HAM_IGNORED;
}