Files
JohnM 8d566bc12b Keep a straight up or down vector pointing the same way in vect_to_angles
For a vector with no horizontal part, vect_to_angles returned pitch 270 (up)
for straight down and 90 (down) for straight up, the opposite of what it
returns for a vector a hair off vertical and of what axis_to_angles gives.

The Chopper Gunner's helicopter steers toward a pass-through goal by
turning its heading toward vect_to_angles of the goal, and the helicopter
script sets such a goal straight above the helicopter when the way to the
next attack node is blocked. After a vertical drop onto the previous node,
the heading turned to "down", and since it then never moved sideways the
goal stayed exactly overhead and the helicopter flew down until the 40 s
timer ended the ride, through the ground and under the map.

Checked: a replay of the helicopter steering sinks 6500 units in 10 s with
the old pitch and climbs to the goal with the new one. On our iPhone build
the gunner had sunk through the ground on Favela near the end of a run;
with the fix, in a later match, it stayed above the map and moved as
expected.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 20:28:03 +10:00
..
2026-09-13 13:52:33 +03:00