Page MenuHomeFeedback Tracker

[Feature Request] New scripting command: getHitPointProtection
New, NormalPublic

Description

Returns armor and passthrough of a unit's equipment (uniform, vest, helmet) on a hitpoint:

player getHitPointProtection "HitHead"

returns:

Array: [Number: armor, Number: passthrough]

No hitpoint informed should return same as [getNumber (configOf player >> "armor"), 1]. 1 is constant in this case:

player getHitPointProtection ""

returns:

Array: [Number: armor, Number: 1]

Use case: getting "real" damage inflicted to hitpoint, before passthrough/hitpoint spread/armor, so the hitpoint that took the initial impact can be determined during HandleDamage event.

See https://github.com/acemod/ACE3/blob/master/addons/medical_engine/functions/fnc_handleDamage.sqf#L34-L44 & https://github.com/acemod/ACE3/blob/master/addons/medical_engine/functions/fnc_handleDamage.sqf#L141-L155

Details

Severity
Feature
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Category
General
Additional Information

Ctrl-Shift-F GetEquipmentInfo(

Event Timeline

This comment was removed by LouMontana.