optimized FindNearestPlayer ()
support v6 waypoint file converted from v7
This commit is contained in:
parent
3042325f70
commit
83740aa129
2 changed files with 10 additions and 6 deletions
|
|
@ -680,7 +680,9 @@ bool Bot::DoWaypointNav (void)
|
|||
// pressing the jump button gives the illusion of the bot actual jmping.
|
||||
if (IsOnFloor () || IsOnLadder ())
|
||||
{
|
||||
pev->velocity = m_desiredVelocity + m_desiredVelocity * 0.15; // cheating i know, but something changed in recent cs updates...
|
||||
if (m_desiredVelocity != nullvec)
|
||||
pev->velocity = m_desiredVelocity + m_desiredVelocity * 0.15; // cheating i know, but something changed in recent cs updates...
|
||||
|
||||
pev->button |= IN_JUMP;
|
||||
|
||||
m_jumpFinished = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue