Re: PODBot -
28-03-2004
Yes, there are several ones.
First you have to update the entities in linkfunc.cpp to match the new entities featured in the CS 1.6 DLL. Then you have to extend the engine interface in engine.cpp with the new functions featured with CS 1.6 and CZ. Then, you gotta move the hook of the WeaponList message outside the "if" statment where it currently is, i.e have the message be caught no matter the destination entity is valid or not. Then, you have to add a special hook for the HLTV message that is sent at the start of each round, because the old method of hooking FindEntityByString() on info_map_parameters doesn't work anymore. You'll also have to add an exported function to your bot DLL: SV_GetBlendingInterface(), else your bot will impose the old HL hitbox scheme, which will conflict with the current CS one, resulting in headshot bugs (people not getting headshot when they should).
After this, I believe it's pretty much enough.
You can have a look in:
- the HPB_bot template 4, for the list of entities, the new engine functions interface, and the SV_GetBlendingInterface() export
- the metamod port of POD-bot 2.6 which is being discussed about in the metamod plugins forum, for all the other CS 1.6-related fixes (including the new weapons).
RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
|