Page MenuHomeFeedback Tracker

Helicopters' engine hitpoints broken (except OH6)
Closed, ResolvedPublic

Description

When trying to trigger an engine failure using setHit on any of the mod's helicopters (except the OH6) they make a thump/metal sound, but thats it; no damage indicated, engine keeps running. Probably just a minor inherited config error.

Code blip that works on the rest of the game and dlc heli's (code modified since out of context)

_engineNames = ["HitEngine", "HitEngine1", "HitEngine2", "HitEngine3", "HitEngine4"];
{
  _configName = getText (configfile >> "CfgVehicles" >> typeOf _veh >> "HitPoints" >> _x >> "name");
  _veh setHit [_configName, 1];
} forEach _engineNames;

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Config

Event Timeline

cancerouspete changed Category from General to Config.May 14 2021, 9:54 PM

in the config files for almost all sog helos:
configfile >> "CfgVehicles" >> "vn_b_air_ah1g_04" >> "HitPoints" >> "HitEngine1" >> "name"
has the same string as
configfile >> "CfgVehicles" >> "vn_b_air_ah1g_04" >> "HitPoints" >> "HitEngine" >> "name"

which is "engine_hit" instead of "engine_1_hit"

any of the mod's helicopters (except the OH6)

the string for HitEngine1 for the OH6 helos is set to "engine_1_hit", which is why the above script works on this set of helicopters.
configfile >> "CfgVehicles" >> "vn_b_air_oh6a_01" >> "HitPoints" >> "HitEngine1" >> "name"

Maarten added a subscriber: Maarten.

Thank you for your feedback! It will now be reviewed by a specialist in our internal QA system.

Slowpokevg closed this task as Resolved.Nov 7 2023, 4:21 PM
Slowpokevg claimed this task.