mirror of
https://github.com/ineedbots/iw2_bot_warfare.git
synced 2025-05-13 06:54:51 +00:00
it plays no errors
This commit is contained in:
parent
c9b953e32e
commit
b06a98982a
@ -258,7 +258,7 @@ doBotMovement_loop(data)
|
|||||||
|
|
||||||
// move!
|
// move!
|
||||||
self botMovement(int(dir[0]), int(dir[1]));
|
self botMovement(int(dir[0]), int(dir[1]));
|
||||||
self setOrigin(move_To);
|
self setOrigin(self.origin + vector_scale(vectorNormalize(move_To - self.origin), 25));
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -1381,7 +1381,7 @@ walk_loop()
|
|||||||
d = VectorNormalize(trace["position"] - myOrg);
|
d = VectorNormalize(trace["position"] - myOrg);
|
||||||
n = trace["normal"];
|
n = trace["normal"];
|
||||||
|
|
||||||
r = d - 2 * vector_scale(VectorDot(d, n), n);
|
r = d - vector_scale(vector_scale(VectorDot(d, n), n), 2);
|
||||||
|
|
||||||
goal = PhysicsTrace(myOrg, myOrg + vector_scale((r[0], r[1], 0), stepDist), false, self);
|
goal = PhysicsTrace(myOrg, myOrg + vector_scale((r[0], r[1], 0), stepDist), false, self);
|
||||||
goal = PhysicsTrace(goal + (0, 0, 50), goal + (0, 0, -40), false, self);
|
goal = PhysicsTrace(goal + (0, 0, 50), goal + (0, 0, -40), false, self);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user