![]() |
A Couple Questions???
I am looking to start coding my own bot but would like some questions answerd first if possible.
First I am looking to make the bot code with OOP. I know this can be done but would it be possible to start adding classes to botmans template and slowly convert everything over that would be converted without breaking the code? I would like to start by makeing a bot class that I use for the bots thinking. Then I would like to be able to compile the bot and test it after I get combat or something converted over without changeing all the other stuff (nav, looking for items, etc.) Not sure if this is the best example as I am just learning the bot code but it should get the point across. Second I was wondering how you get a list of new entities with steam mods (cs 1.6,tfc,etc.)? Since the dlls apear to be in the cache files. Thanks in advanced for any help. I have also been searching through the backup of botmans forums for answers to these question but have failed so far. |
Re: A Couple Questions???
Well for a start, I suggest you make your bot a metamod plugin. This way, you won't need to worry about the game entities and you'll let Will Day alone deal with the madness of the Steam compatibility.
In my opinion, it is definitely be possible to port botman's code to OOP, although it's a perilous exercice. I would rather suggest you start writing your own bot, using botman's code to pick ideas from, with a class hierarchy similar to this : Player (top level) Bot (as Player::Bot, subclass of Player) subclasses of Bot (like Bot::BotBrain, for example) And additional side classes like "Server", "Round", "Mission", etc. Good luck ! :) |
Re: A Couple Questions???
Quote:
You can dl my code at http://sourceforge.net/projects/kxbot (It's far from finished but you can see how I used OOP. working under CS 1.5, it only has support for spawning bot, joining team, buying waepons, talking, moving and turning) |
Re: A Couple Questions???
Quote:
CGeneral for general things (logging, containing instances of other classes) CGame for handling general stuff for clients and bots CClient for client CBot derived from CClient CBot has instances of these classes : : CSensoric - for example testing if bot is stuck : CCognitive - thinking, navigation : CMotoric - moving, ... |
Re: A Couple Questions???
Thanks korax I will have to check it out should help me a lot.
So thats why a lot of bots are metamod plugins. Should make it easier. Thanks for the info Pierre. Hopefully I will have the class system worked out better in a week or so. |
All times are GMT +2. The time now is 11:51. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.