Arma 3
252 ratings
AI Helicopter Decelerate No Climbing
7
2
2
3
3
   
Award
Favorite
Favorited
Unfavorite
Data Type: Mod
Mod Type: Helicopter, Mechanics
File Size
Posted
Updated
45.857 KB
9 Jun @ 3:21pm
16 Jun @ 2:13pm
6 Change Notes ( view )

Subscribe to download
AI Helicopter Decelerate No Climbing

In 2 collections by Ampersand
Ampersand's Workshop
25 items
Singleplayer Game Mechanics
52 items
Description
AI Helicopter Decelerate No Climbing

Prevent AI controlled helicopters and VTOLs from zoom climbing when they try to decelerate.
Detects deceleration based on altitude, speed, and attitude. Only operates above 20 meters over terrain. Uses addForce to maintain a level trajectory until deceleration is complete.
Compatible with AI and support mods.

Load on all servers and clients.

Activation Conditions (all must be met)
- player does not have controls
- engine on
- speed > 60 kph
- altitude above surface > 20 m
- no terrain in front for 500 m
- current speed < past speed
- current altitude > past altitude
- attitude is nose up

Behaviour can be disabled using
_heli setVariable ["ahdnc_disable", true, true];

https://github.com/ampersand38/ai-heli-decel-no-climb/
64 Comments
RadGigaChad 7 Jul @ 6:01pm 
Nice. This has always been one of the most frustrating aspects of creating singleplayer scenarios for myself in editor, because the AI pilots are so trash lol
Vipera 77 29 Jun @ 6:00am 
thx for this mod !
Legendkiller456 25 Jun @ 9:17pm 
Awesome, thanks!
Ampersand  [author] 25 Jun @ 4:39am 
Modded helicopters should work, yes.
Legendkiller456 24 Jun @ 10:51pm 
Is this compatible with factions that add new heli's? Looks great, thank you!
Ampersand  [author] 16 Jun @ 3:28pm 
The init class EH only adds the heli to the list of helis to check. There is only a single perSecond handler, not one per heli. Yes it would be better to start it when the first helicopter engineOn.
gatordev 16 Jun @ 3:21pm 
FWIW, I just flew around the Western Sahara map with the flyinheight all the way down to 10m and everything worked fine. The only "issue" is that at 10m, the helicopter would balloon up to 25m-ish, but then came right back down, but I don't really consider that a bug. Every other altitude from 25m and up the mod works as advertised.

Thanks for this @Ampersand, it's a great addition.
R. Gonzalez 16 Jun @ 2:59pm 
@Ampersand, my friend

Just a small suggestion....

Wouldn't it be better if the "perSecond" function would be called / terminated upon the "Engine" 'CBA_fnc_addClassEventHandler`, conditioned to it's args value, instead of "Init" one?
Ampersand  [author] 16 Jun @ 2:15pm 
I've added a variable which can be set to disable the behaviour on a helicopter.
Ampersand  [author] 16 Jun @ 1:55pm 
@Bax thanks and enjoy! Simplex is exactly what I had in mind =)