fixed bots looking at weird positions when spawned
remove useless function calls
This commit is contained in:
parent
11d3ffe20e
commit
b159d3c7f9
3 changed files with 5 additions and 10 deletions
|
|
@ -1241,9 +1241,6 @@ public:
|
|||
inline Vector Center (void) { return (pev->absmax + pev->absmin) * 0.5; };
|
||||
inline Vector EyePosition (void) { return pev->origin + pev->view_ofs; };
|
||||
|
||||
// things that should be executed every frame
|
||||
void ThinkFrame (void);
|
||||
|
||||
// the main function that decides intervals of running bot ai
|
||||
void ThinkMain (void);
|
||||
|
||||
|
|
|
|||
|
|
@ -2880,13 +2880,7 @@ void Bot::ThinkMain (void)
|
|||
m_thinkFps = GetWorldTime () + m_thinkInterval;
|
||||
}
|
||||
else
|
||||
ThinkFrame ();
|
||||
}
|
||||
|
||||
void Bot::ThinkFrame (void)
|
||||
{
|
||||
UpdateLookAngles ();
|
||||
// RunPlayerMovement ();
|
||||
UpdateLookAngles ();
|
||||
}
|
||||
|
||||
void Bot::Think (void)
|
||||
|
|
|
|||
|
|
@ -1119,6 +1119,10 @@ void Bot::NewRound (void)
|
|||
ChatterMessage (Chatter_NewRound);
|
||||
|
||||
m_thinkInterval = (1.0f / 30.0f) * Random.Float (0.95f, 1.05f);
|
||||
|
||||
// fixes bot looking at weird positions during buytime with think fps
|
||||
m_aimFlags |= AIM_NAVPOINT;
|
||||
ChooseAimDirection ();
|
||||
}
|
||||
|
||||
void Bot::Kill (void)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue