.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   General Bot Coding (http://forums.bots-united.com/forumdisplay.php?f=24)
-   -   functions, variables etc. (http://forums.bots-united.com/showthread.php?t=1392)

MusicMan 16-04-2004 21:38

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

botman 16-04-2004 21:41

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

@$3.1415rin 16-04-2004 21:46

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 :)

MusicMan 17-04-2004 10:23

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

Pierre-Marie Baty 17-04-2004 12:30

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.

stefanhendriks 17-04-2004 16:38

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.