Raised This Month: $ Target: $400
 0% 

Can't change bot's origin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
alien
Senior Member
Join Date: Aug 2005
Location: London || Slovakia
Old 10-09-2007 , 09:19   Can't change bot's origin
Reply With Quote #1

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_CreateFakeClientANTI_RD_BOT_NAME);
dllfunc(DLLFunc_ClientConnect_anti_rd_botANTI_RD_BOT_NAME"127.0.0.1"ptr);
dllfunc(DLLFunc_ClientPutInServer_anti_rd_bot);
        
cs_set_user_team(_anti_rd_botCS_TEAM_CT);
cs_set_user_vip(_anti_rd_bot); 
... and this is placed in new round event:

PHP Code:
set_pev(_anti_rd_botpev_effects, (pev(_anti_rd_botpev_effects) | 128));
set_pev(_anti_rd_botpev_solid0);
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?
__________________
alien is offline
Send a message via ICQ to alien
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:05.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode