Hi, yes, I want to print which class did the bot has on screen. Actually I knew the bot_class should be (bot_class==1) since I have ask him to join class 1, and they did joined the class 1.
But when I use
Code:
edict_t *pEdict = pBot->pEdict;
int bot_class = UTIL_GetClass(pEdict);
if (bot_class==1)
{
FakeClientCommand(pEdict,"say","SWITCH WEAPON",NULL);
FakeClientCommand(pEdict, "weapon_garand", NULL, NULL);
}
The bot did not change weapon and didn't said "switch weapon", so I want to know which class did they delected.
But when I removed "if (bot_class==1)" the bot can change weapon, that mean he is not bot_class==1 !! but I knew only bot_class==1 can use "weapon_garand" o_O