![]() |
I need by some help for the team detecting.
Hi all,
Some of you already know that I code a bot for the HL mod Sands of War. So I have a little problem. The bots shoot at the theyer teammates and I can't fix that. I code directly in to the SoW source. Here what I use: Code:
void SearchForEnemy(CBasePlayer *bot) |
Re: I need by some help for the team detecting.
The coders of this mod may use their own technique for storing the players' team (such as in a new variable in their private data). Just ask them to write into pev->team like well-educated persons :)
|
Re: I need by some help for the team detecting.
OK. So the teams are defined in this way:
pPlayer->m_iTeam. I must set this to spawn the bot correct. So I tryed this: Code:
if (bot->m_iTeam == pPlayer->m_iTeam) |
Re: I need by some help for the team detecting.
In that case, it's your bots that don't fill their team number correctly, heh ! ;)
|
All times are GMT +2. The time now is 23:36. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.