Forum: Half-Life 2 SDK
31-12-2004
|
Replies: 31
Views: 37,932
Re: Let the revolution begin!!!
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...
|
Forum: Half-Life 2 SDK
31-12-2004
|
Replies: 31
Views: 37,932
Re: Let the revolution begin!!!
I don't believe you can change cbaseentity without crashing the engine. Since there are engine funcs to get to this (which I thought I could use, but I can't :( ).
If they change cbaseentity &...
|
Forum: Half-Life 2 SDK
31-12-2004
|
Replies: 31
Views: 37,932
Re: Let the revolution begin!!!
hmmm... I wonder who suggested this ...
gameclients->ProcessUsercmds(pBot->edict, &read_buf, 1, 1, 0, false, false);
I'm still going to one-up you by figuring out how to get at the baseclass...
|
Forum: Half-Life 2 SDK
31-12-2004
|
Replies: 33
Views: 12,663
Re: I don't like this!
I tooks botmans code and I was able to compile it into a plugin (by defining GAME_DLL). First I thought I need to use serverents->EdictToBaseEntity to get at the baseentity, but when I try to open an...
|
Forum: Half-Life 2 SDK
31-12-2004
|
Replies: 33
Views: 12,663
Re: I don't like this!
What does a network connection have to do with it ? The plugin code can call processusercmds directly through the interface. Isn't it just a matter of formatting it correctly ?
|
Forum: Half-Life 2 SDK
30-12-2004
|
Replies: 33
Views: 12,663
Re: I don't like this!
Sorry, I meant theones posting on verc about getting bots working. I think he
is doing it in the server.dll.
processusercmds needs the edict which you got from createfakeclient and a buffer of...
|
Forum: Half-Life 2 SDK
30-12-2004
|
Replies: 33
Views: 12,663
Re: I don't like this!
That's one of the things I guess I don't understand. Assuming you somehow have access to the basentity (and EVERYTHING that goes with it), why can't you include your own code for the runcommand ?
...
|
Forum: Half-Life 2 SDK
30-12-2004
|
Replies: 33
Views: 12,663
Re: I don't like this!
I have been looking at the same sort of issue for other reasons and I'm not sure why you would need to hook the game DLL.
There must be something obvious I'm missing but when you call...
|