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
|