View Single Post
Re: UTIL_GetClass Question
Old
  (#3)
Tea
Guest
 
Status:
Posts: n/a
Default Re: UTIL_GetClass Question - 15-05-2004

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

Last edited by Tea; 15-05-2004 at 00:38..
  
Reply With Quote