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;