.:: 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
Viewangles Question
Old
  (#1)
Fubeca
Member
 
Fubeca's Avatar
 
Status: Offline
Posts: 1
Join Date: Sep 2006
Default Viewangles Question - 25-09-2006

Hey all - great site here, been a great help already. In half life 2 source, I'm trying to record 'macros' for bots. I'm saving all of a player's usercmds sent to the server for a period of time, and storing them in a CUtlVector. Then I try to have a bot "play" the sequence back later, by having the stored usercmd used by a hl2mp_bot_temp's Think() method (which is PlayerRunCommand I believe). The problem I'm having is when I play it back, the viewangles are all screwed up. I even make the bot JumptoPosition() to the exact place I started recording. If the stored usercmds are deltas, wouldn't it still be ok, since it has been set to the same starting angle? Or is the spawn angle of the bot interfering here?

Thanks all - Y'all are hella smart.
Fub
  
Reply With Quote
Re: Viewangles Question
Old
  (#2)
The Storm
Council Member / E[POD]bot developer
 
The Storm's Avatar
 
Status: Offline
Posts: 1,620
Join Date: Jul 2004
Location: Bulgaria
Default Re: Viewangles Question - 25-09-2006

Not sure for SourceSDK but I belive that you must clamp/wrap the angles before submiting them to be sure that all is normalised.
  
Reply With Quote
Re: Viewangles Question
Old
  (#3)
CS1.6
This user broke our rules and has been BANNED
 
Status: Offline
Posts: 84
Join Date: Oct 2006
Default Re: Viewangles Question - 08-03-2010

Congrats!

This post will eternalize this once in a lifetime moment of your beeing in this forum.


  
Reply With Quote
Reply


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

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