Thread: See this !!!
View Single Post
See this !!!
Old
  (#1)
slash-evil
Guest
 
Status:
Posts: n/a
Default See this !!! - 06-03-2004

See this piece of code ...

Code:
if(BotGetSafeTask(pBot)->iTask != TASK_PLANTBOMB && BotGetSafeTask(pBot)->iTask != TASK_DEFUSEBOMB)
if(pBot->current_weapon.iId == CS_WEAPON_C4)
{
     if (pBot)
     {
          if (paths[pBot->curr_wpt_index]->flags & W_FL_GOAL)
          {
               pEdict->v.button = (pEdict->v.button | IN_ATTACK);
               pEdict->v.button|=IN_DUCK;
               pEdict->v.button &= ~(IN_JUMP);
               pBot->f_move_speed=0; pBot->f_sidemove_speed=0;  
          }
          else
          BotSelectBestWeapon(pBot);
     }
}
else
pEdict->v.button = 0;
It always causing crash , do you guys see any problems of the code ???
  
Reply With Quote