mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2025-04-22 05:55:42 +00:00
a
This commit is contained in:
parent
f8918e872d
commit
42bf0a52c2
@ -2022,7 +2022,6 @@ walk()
|
||||
{
|
||||
myVel = self GetBotVelocity();
|
||||
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);
|
||||
continue;
|
||||
}
|
||||
@ -2124,9 +2123,7 @@ strafe(target)
|
||||
right = self.origin + anglestoforward(anglesRight)*500;
|
||||
|
||||
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 = PhysicsTrace(traceRight + (0, 0, 50), traceRight + (0, 0, -40), false, self);
|
||||
|
||||
strafe = traceLeft;
|
||||
if(DistanceSquared(left, traceLeft) > DistanceSquared(right, traceRight))
|
||||
|
@ -1060,7 +1060,7 @@ bots_watch_touch_obj(obj)
|
||||
|
||||
for (;;)
|
||||
{
|
||||
wait 0.05;
|
||||
wait 0.5;
|
||||
|
||||
if (!isDefined(obj))
|
||||
{
|
||||
@ -1623,7 +1623,7 @@ turret_death_monitor(turret)
|
||||
|
||||
for (;;)
|
||||
{
|
||||
wait 0.05;
|
||||
wait 0.5;
|
||||
|
||||
if (!isDefined(turret))
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user