View Single Post
Re: in_moveleft and in_moveright not work
Old
  (#3)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: in_moveleft and in_moveright not work - 26-06-2004

Actually you *can* use them, it's useful to determine quickly later on whether a player or a bot is strafing left or right. If it's coded properly, masking v.button with IN_MOVELEFT or IN_MOVERIGHT shouldn't change anything in the bot's behaviour, and especially not make it do what you say (identically, it's not IN_FORWARD which makes the bot run forward, but the move_speed). In order to make the bot *actually* strafe, don't forget to set strafe_speed in RunPlayerMove() like Whistler says.

There is an exception: ladders (and possibly water too). In these environments the move_speed and strafe_speed don't count, only the values of v.button are taken in account instead. So you might want to always combine both.



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote