Thread: Don't jump ?
View Single Post
Re: Don't jump ?
Old
  (#4)
slash-evil
Guest
 
Status:
Posts: n/a
Default Re: Don't jump ? - 04-03-2004

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 *

Last edited by slash-evil; 04-03-2004 at 00:33..
  
Reply With Quote