![]() |
Re: How to integrate bot in to the game dll ?
Yes I know how. As you see in the source that I post. But the problem is that only the first bot select correct team and class. After I type again addbot the others bots just stay spectators.
|
Re: How to integrate bot in to the game dll ?
Store not_started in the bot's variables, not in global scope.
|
Re: How to integrate bot in to the game dll ?
Yes I'm declared not_started in to the bot's variables (class CBot in bot.h). Maybe you think that this variable is global because there is not CBot:: before not_started. Well the function that I'm using the variable not_started is :
void CBot::BotThink( void ). So if you have other ideas I will be glad to hear it. :) |
Re: How to integrate bot in to the game dll ?
actually another reason one might think it's global is the inconsistent naming.. some of the variable's names use hungarian notation while others don't.
|
Re: How to integrate bot in to the game dll ?
Quote:
|
Re: How to integrate bot in to the game dll ?
Ok guys this problem is now fixed. :) The bots now join on a team and select class correct. But sinse I'm very new in to the work directly with the game data in to the game dll source, I want to ask what function must I use to get the teams IDs because now the bots are shooting their teammates.
|
Re: How to integrate bot in to the game dll ?
look directly at the bot's CBasePlayer class, most if not all games store the team ID somewhere there.
|
Re: How to integrate bot in to the game dll ?
"hungarian notation" is a way of naming variables invented by a Hungarian developer in Microsoft, it's attaching some letters to identify a variable's type, such as: iInteger, flFloat, szString, m_iIntMember, g_iGlobal, etc. Such variable names are widely used in Half-Life SDK source code.
also from this line of code you have posted: pPlayer->m_iTeam = 1;// Join Team 1 the m_iTeam seems to be the team of the player. |
Re: How to integrate bot in to the game dll ?
Yep after you give the team of the player you can directly spawn it without any problmes.
|
Re: How to integrate bot in to the game dll ?
Ey BU guys, we got a problem. The Storm is having problems with implenting the HPB bot template 4 into the source code. In order to get it to work, he has to use the old and crappy bot 10, which sucks.
Does any of you know how to get the newest HPB bot code integrated into the SoW source? |
All times are GMT +2. The time now is 04:14. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.