Hello!
I just can't solve this. My intention is to have a bot preventing round drawns but also indicating some map position (on radar). The prevention part works fine.
But I can't change bot's origin.
This is what I do in
plugin_init():
PHP Code:
new ptr[128];
_anti_rd_bot = engfunc(EngFunc_CreateFakeClient, ANTI_RD_BOT_NAME);
dllfunc(DLLFunc_ClientConnect, _anti_rd_bot, ANTI_RD_BOT_NAME, "127.0.0.1", ptr);
dllfunc(DLLFunc_ClientPutInServer, _anti_rd_bot);
cs_set_user_team(_anti_rd_bot, CS_TEAM_CT);
cs_set_user_vip(_anti_rd_bot);
... and this is placed in
new round event:
PHP Code:
set_pev(_anti_rd_bot, pev_effects, (pev(_anti_rd_bot, pev_effects) | 128));
set_pev(_anti_rd_bot, pev_solid, 0);
entity_set_origin(_anti_rd_bot, _END_ORIGIN);
I actually was able to set it's origin, but radar indicator stays unchanged whatever I do. And also, indicator is out of map boundaries - so I suppose it's set to null origin. Anyone could help, please?
__________________