mirror of
https://github.com/vladtrc/iw4L
synced 2026-10-26 02:11:39 -04:00
8d566bc12b
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>