See this one
Code:
if((BotUsesSniper(pBot) && pBot->iStates & STATE_SEEINGENEMY))
{
pEdict->v.button |= IN_DUCK;
pBot->f_move_speed = 0.0;
pBot->f_sidemove_speed = 0.0;
pBot->f_move_speed=0; pBot->f_sidemove_speed=0;
pEdict->v.button |= IN_ATTACK2;
pEdict->v.button |= IN_ATTACK;
pEdict->v.button &= ~(IN_JUMP);
}
Are you think the pEdict->v.button &= ~(IN_JUMP); is at the right place ?
*note I tested this code , it worked , it is a improved sniper code done by me
, it is a older version , I have a newer version of the code , so I just need
to make sure the bot don't jump *