tweaked antistuck code

This commit is contained in:
jeefo 2015-07-20 21:26:20 +03:00
commit 2ca5002e45
6 changed files with 106 additions and 104 deletions

View file

@ -795,15 +795,8 @@ Bot::Bot (edict_t *bot, int difficulty, int personality, int team, int member, c
m_lastCommandTime = GetWorldTime () - 0.1f;
m_frameInterval = GetWorldTime ();
m_msecValRest = 0.0f;
m_timePeriodicUpdate = 0.0f;
bot->v.idealpitch = bot->v.v_angle.x;
bot->v.ideal_yaw = bot->v.v_angle.y;
bot->v.yaw_speed = Random.Float (m_difficulty * 40, m_difficulty * 45);
bot->v.pitch_speed = Random.Float (m_difficulty * 40, m_difficulty * 45);
switch (personality)
{
case 1:
@ -1098,7 +1091,6 @@ void Bot::NewRound (void)
m_timeLogoSpray = GetWorldTime () + Random.Float (0.5, 2.0);
m_spawnTime = GetWorldTime ();
m_lastChatTime = GetWorldTime ();
pev->v_angle.y = pev->ideal_yaw;
m_timeCamping = 0;
m_campDirection = 0;