View Single Post
Re: Let the revolution begin!!!
Old
  (#8)
cannonfodder
Member
 
Status: Offline
Posts: 8
Join Date: Dec 2004
Default Re: Let the revolution begin!!! - 31-12-2004

So it appears that
CSDKPlayer* pPlayer = ((CSDKPlayer *)CBaseEntity::Instance( g_pEdict ));

actually returns a REAL pointer to cbaseentity. Even when called in a plugin. I was able to create a bot and get him to move by calling

pPlayer->PlayerRunCommand( &cmd, MoveHelperServer() );

This calls back into server.dll, since the function pointers were set up there !

I had to stub out MoveHelperServer since I don't have one in the plugin, but everything else appears to work. I was able to kill the bot, and it would respawn
right away.


Last edited by cannonfodder; 31-12-2004 at 14:25..
  
Reply With Quote