.:: 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 > SDK Programming discussions > Half-Life 2 SDK
Half-Life 2 SDK For developments focused around the Half-Life 2 engine Half-Life 2

Reply
 
Thread Tools
Re: How to do correct movement
Old
  (#11)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: How to do correct movement - 09-01-2005

yes, thats the problem. But since this bot seems to work with CS, there MUST be an enheritance at the CSS side! And since HL2DM will be released soon (its source i believe). It could mean that the bot should work on HL2DM as well..


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me
  
Reply With Quote
Re: How to do correct movement
Old
  (#12)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: How to do correct movement - 09-01-2005

hey i do notice your bot walks and looks the same way right? How about looking to direction A and walking to direction B?


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me
  
Reply With Quote
Re: How to do correct movement
Old
  (#13)
SteveC
Member
 
Status: Offline
Posts: 37
Join Date: Jan 2005
Location: UK
Default Re: How to do correct movement - 09-01-2005

I was planning on doing that in the same way as you do when playing HL, using the sideways speed to simulate the strafe keys. A bot could also do it at any angle not just at 45degrees (like a player) by just using different ratios of forward speed and sidespeed.
  
Reply With Quote
Re: How to do correct movement
Old
  (#14)
SteveC
Member
 
Status: Offline
Posts: 37
Join Date: Jan 2005
Location: UK
Default Re: How to do correct movement - 09-01-2005

I think the animations should also work correctly when you do it that way.
  
Reply With Quote
Re: How to do correct movement
Old
  (#15)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: How to do correct movement - 09-01-2005

this will be pretty complicated when you want to look into several directions and walk just a path. I do know strafing is a way for combat, but i also thought , as with HL1 bot coding you could just pass 2 different angles (one for body, one for head) to get the same result. Its up to the coder to smoothen this out, but this would be most ideal (and easy).


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me
  
Reply With Quote
Re: How to do correct movement
Old
  (#16)
SteveC
Member
 
Status: Offline
Posts: 37
Join Date: Jan 2005
Location: UK
Default Re: How to do correct movement - 09-01-2005

I could add two vectors to the CBot class which contain the movement direction and the viewing direction, then it would be quite easy to 'say' "look there and walk here". I'll get on it right away infact.
  
Reply With Quote
Re: How to do correct movement
Old
  (#17)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: How to do correct movement - 09-01-2005

great i can't work on this right now, but i am quite anxious to see what you got working there!


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me
  
Reply With Quote
Re: How to do correct movement
Old
  (#18)
Cheeseh
[rcbot]
 
Cheeseh's Avatar
 
Status: Offline
Posts: 361
Join Date: Dec 2003
Location: China
Default Re: How to do correct movement - 09-01-2005

Whenever I compile your source, I get all the same compile errors I usually get when I try to include cbase.h,

see, whenever I just include cbase.h, I get "syntax error identifier: x... syntax error: identifier y... syntax..."

surely you must have linked something differently?

Sorry but I'd just like to know how to get CBasePlayer or CBaseEntity in a plugin as I'd like to do it by myself, and then I'll leave you alone
  
Reply With Quote
Re: How to do correct movement
Old
  (#19)
@$3.1415rin
Council Member, Author of JoeBOT
 
@$3.1415rin's Avatar
 
Status: Offline
Posts: 1,381
Join Date: Nov 2003
Location: Germany
Default Re: How to do correct movement - 09-01-2005

same problem here ...


  
Reply With Quote
Re: How to do correct movement
Old
  (#20)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: How to do correct movement - 09-01-2005

there is no workspace included in the project, perhaps you need to do that so we can see what you link differently...


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me
  
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