Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: code/ai/aicode.cpp
- ===================================================================
- --- code/ai/aicode.cpp (revision 11258)
- +++ code/ai/aicode.cpp (working copy)
- @@ -4706,12 +4706,12 @@
- // If in front of enemy, turn away from it.
- // If behind enemy, try to get fully behind it.
- if (away_dot < 0.0f) {
- - turn_away_from_point(Pl_objp, &enemy_pos, Pl_objp->phys_info.speed);
- + turn_away_from_point(Pl_objp, &enemy_pos, 0.0f);
- } else {
- vec3d goal_pos;
- vm_vec_scale_add(&goal_pos, &En_objp->pos, &En_objp->orient.vec.fvec, -100.0f);
- - turn_towards_point(Pl_objp, &goal_pos, NULL, Pl_objp->phys_info.speed);
- + turn_towards_point(Pl_objp, &goal_pos, NULL, 0.0f);
- }
- // Set speed.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement