Since Ham_TakeDamage only works for humans any one know a work around for bots?
i have working code for humans only... but i want to be able to make bots friendly fire variable..
so if i was to shoot a bot with an awp in the head it would only do 25% of its damage.
Example:
PHP Code:
public BotHurt
{
if(is_user_bot(victim)
{
if(cs_get_user_team(victim) == cs_get_user_team(attacker))
{
damage * dmgreduce
}
}
}