.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > Developer's Farm > General Bot Coding
General Bot Coding See what a pain it is to get those little mechs shooting around

Reply
 
Thread Tools
in_moveleft and in_moveright not work
Old
  (#1)
Tea
Guest
 
Status:
Posts: n/a
Default in_moveleft and in_moveright not work - 26-06-2004

Hi all, when I use the in_moveright command, the bot move forward just like in_forward, and when I use the in_moveleft command, the bot move backward, and the strafe command also the same, please help. o_O
  
Reply With Quote
Re: in_moveleft and in_moveright not work
Old
  (#2)
Whistler
Summoner
 
Whistler's Avatar
 
Status: Offline
Posts: 1,499
Join Date: Feb 2004
Location: Mist Village
Default Re: in_moveleft and in_moveright not work - 26-06-2004

use parameters in pfnRunPlayerMove() instead. don't use those buttons.
  
Reply With Quote
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
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com