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."
|