.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   Half-Life 2 SDK (http://forums.bots-united.com/forumdisplay.php?f=62)
-   -   Viewangles Question (http://forums.bots-united.com/showthread.php?t=5729)

Fubeca 25-09-2006 07:42

Viewangles Question
 
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

The Storm 25-09-2006 12:43

Re: Viewangles Question
 
Not sure for SourceSDK but I belive that you must clamp/wrap the angles before submiting them to be sure that all is normalised.

CS1.6 07-03-2010 23:13

Re: Viewangles Question
 
Congrats!

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


http://www.freeimagehosting.net/uploads/385ccc3ba0.png


All times are GMT +2. The time now is 02:44.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.