![]() |
functions, variables etc.
Where do you find all the variables, functions etc. you can use when coding a bot?, that is actually one of the biggest problems I have when I try to code bots:)
Thanks in advance MusicMan |
Re: functions, variables etc.
There is no complete function, variable or API reference for the Half-Life SDK or engine.
You have to figure things out on your own by trial and error, find some other Half-Life source code or tutorial that does something similar, or ask someone a question about how to do something on one of the Half-Life coding forums (or here). Everybody else learns things by seeing what other people had done and by experimenting with new things on their own. botman |
Re: functions, variables etc.
I guess it's maybe the best way to take code like botman's template code or even a open source bot and look how the variables are used.
there are no official design documents €: botman was once again faster and more detailed :) |
Re: functions, variables etc.
Okay, thanks guys;) I am currently finding out by trial and error, I just wanted to know if there was an alternate way:)
Thanks again MusicMan |
Re: functions, variables etc.
If you want to find your bot members functions, usually look them up in bot.h, where the bot_t structure is defined.
|
Re: functions, variables etc.
Yes, i would go for the way as pmb describes :) Most functions are there defined.
Also, i would say you should try to get a basic understanding how the dll works , so you get the basic idea what function comes first. Like BotThink() (in botmans template) is called in StartFrame (dll.cpp). |
All times are GMT +2. The time now is 22:47. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.