View Single Post
Re: Bots won't join a team
Old
  (#48)
sPlOrYgOn
<-- He did it.
 
sPlOrYgOn's Avatar
 
Status: Offline
Posts: 1,558
Join Date: Jan 2004
Location: Los Angeles, California, USA, North America, Earth, Solar System, Milky Way.
Default Re: Bots won't join a team - 14-09-2005

bleh.. I guess I really should test things
I just realized
Code:
      SET_CLIENT_KEYVALUE (index + 1, infobuffer, "_ah", "0");
      SET_CLIENT_KEYVALUE (index + 1, infobuffer, "_vgui_menus", "0");
should be
Code:
      SET_CLIENT_KEYVALUE (clientIndex, infobuffer, "_ah", "0");
      SET_CLIENT_KEYVALUE (clientIndex, infobuffer, "_vgui_menus", "0");
and..
Code:
	if (FStrEq((char *)p, "#Team_Select"))  // team select menu?
		bots[bot_index]->start_action = MSG_CS_TEAM_SELECT;
	else if (FStrEq((char *)p, "#Terrorist_Select"))  // T model select?
		bots[bot_index]->start_action = MSG_CS_T_SELECT;
	else if (FStrEq((char *)p, "#CT_Select"))  // CT model select menu?
		bots[bot_index]->start_action = MSG_CS_CT_SELECT;
should be.. (From Whistler's YaPB )
Code:
	if (FStrEq((char *)p, "#Team_Select"))  // team select menu?
		bots[bot_index]->start_action = MSG_CS_TEAM_SELECT;
	else if (FStrEq((char *)p, "#Team_Select_Spect"))  // team select menu?
		bots[bot_index]->start_action = MSG_CS_TEAM_SELECT;
	else if (FStrEq((char *)p, "#IG_Team_Select_Spect"))  // team select menu?
		bots[bot_index]->start_action = MSG_CS_TEAM_SELECT;
	else if (FStrEq((char *)p, "#IG_Team_Select"))  // team select menu?
		bots[bot_index]->start_action = MSG_CS_TEAM_SELECT;
	else if (FStrEq((char *)p, "#IG_VIP_Team_Select"))  // team select menu?
		bots[bot_index]->start_action = MSG_CS_TEAM_SELECT;
	else if (FStrEq((char *)p, "#IG_VIP_Team_Select_Spect"))  // team select menu?
		bots[bot_index]->start_action = MSG_CS_TEAM_SELECT;
	else if (FStrEq((char *)p, "#Terrorist_Select"))  // T model select?
		bots[bot_index]->start_action = MSG_CS_T_SELECT;
	else if (FStrEq((char *)p, "#CT_Select"))  // CT model select menu?
		bots[bot_index]->start_action = MSG_CS_CT_SELECT;

Last edited by sPlOrYgOn; 14-09-2005 at 09:55..
  
Reply With Quote