This commit is contained in:
Your Name 2020-08-30 20:01:04 -06:00
parent f8918e872d
commit 42bf0a52c2
2 changed files with 2 additions and 5 deletions

View File

@ -2022,7 +2022,6 @@ walk()
{ {
myVel = self GetBotVelocity(); myVel = self GetBotVelocity();
moveTo = PlayerPhysicsTrace(self.origin + (0, 0, 32), self.origin + (myVel[0], myVel[1], 0)*500, false, self); moveTo = PlayerPhysicsTrace(self.origin + (0, 0, 32), self.origin + (myVel[0], myVel[1], 0)*500, false, self);
moveTo = PhysicsTrace(moveTo + (0, 0, 50), moveTo + (0, 0, -40), false, self);
self botMoveTo(moveTo); self botMoveTo(moveTo);
continue; continue;
} }
@ -2124,9 +2123,7 @@ strafe(target)
right = self.origin + anglestoforward(anglesRight)*500; right = self.origin + anglestoforward(anglesRight)*500;
traceLeft = PlayerPhysicsTrace(self.origin + (0, 0, 32), left, false, self); traceLeft = PlayerPhysicsTrace(self.origin + (0, 0, 32), left, false, self);
traceLeft = PhysicsTrace(traceLeft + (0, 0, 50), traceLeft + (0, 0, -40), false, self);
traceRight = PlayerPhysicsTrace(self.origin + (0, 0, 32), right, false, self); traceRight = PlayerPhysicsTrace(self.origin + (0, 0, 32), right, false, self);
traceRight = PhysicsTrace(traceRight + (0, 0, 50), traceRight + (0, 0, -40), false, self);
strafe = traceLeft; strafe = traceLeft;
if(DistanceSquared(left, traceLeft) > DistanceSquared(right, traceRight)) if(DistanceSquared(left, traceLeft) > DistanceSquared(right, traceRight))

View File

@ -1060,7 +1060,7 @@ bots_watch_touch_obj(obj)
for (;;) for (;;)
{ {
wait 0.05; wait 0.5;
if (!isDefined(obj)) if (!isDefined(obj))
{ {
@ -1623,7 +1623,7 @@ turret_death_monitor(turret)
for (;;) for (;;)
{ {
wait 0.05; wait 0.5;
if (!isDefined(turret)) if (!isDefined(turret))
break; break;