fixed bots looking at weird positions when spawned

remove useless function calls
This commit is contained in:
jeefo 2015-07-26 13:42:51 +03:00
commit b159d3c7f9
3 changed files with 5 additions and 10 deletions

View file

@ -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);

View file

@ -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)

View file

@ -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)