PHP Code:
set_user_origin( g_BotID , fVictimOrigin )
set_pev ( g_BotID, pev_origin , fVictimOrigin )
I tried using both in my aimbot detection plugin but when I use set_pev, the bot is unable to be shot once I set the origin. Ham_TakeDamage never gets called when I shoot it.
When I use set_user_origin, it functions properly and takedamage gets called when shot. Is there something else I need to call after the set_pev?
__________________