![]() |
Re: Hooking into HL2 DLL ?
Quote:
found in CBasePlayer, might help. Code:
// Run a user command. The default implementation calls ::PlayerRunCommand. In TF, this controls a vehicle if |
Re: Hooking into HL2 DLL ?
botmans method DOES still work. It's the CBasePlayer->ProcessUsercmds() that doesn't work anymore (as of latest cs:s update) I found the cbaseplayer method much tider though than the buffer writing and stuff, but hell it looks like it's gonna be the only way to do it. :)
|
Re: Hooking into HL2 DLL ?
cheeseh i thought botmans method was using the ProcessUsercmds, to get the bots to process movement.
|
Re: Hooking into HL2 DLL ?
The CBasePlayer->ProcessUserCommands() trick (which I started) doesn't work anymore as has been said, but the CBasePlayer->PlayerRunCommand() doesn't work either, even if you do pass the correct movehelper pointer. The debug error is that the function isn't returning as it expected so it sounds like Valve changed the CBasePlayer class, and therefore changed the virtual function table. However the SDK hasn't been updated (?), so currently we can't use the CBasePlayer class.
I don't know if Valve changed the CBasePlayer to stop us using it or if it was to fix some bugs. I think it's just something they had to do to get the bots working. PS. Botmans way will always work, because it is based on building a network message. (until they re-write the netcode) |
Re: Hooking into HL2 DLL ?
PS! They have changed stuff, because you can now add bots in HL2: DM !
|
Re: Hooking into HL2 DLL ?
maybe they chaged it to give us a way to access CBasePlayer & CBaseEntity without using any hacks too.
|
Re: Hooking into HL2 DLL ?
Hopefully. But we'll just have to wait.
|
Re: Hooking into HL2 DLL ?
botmans method is this ...
PHP Code:
|
Re: Hooking into HL2 DLL ?
Quote:
|
Re: Hooking into HL2 DLL ?
Yeah I had my own bot in HL2: DM. I hadn't converted my movement code so it didn't do anything, just floated there. But it was in the game, in a team, and alive. It died too with a high speed barrel :D !
I haven't done anything special, just refreshed the SDK content which might have changed stuff. |
All times are GMT +2. The time now is 11:27. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.