mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
a828ebe591
* Repair - Disable repair on ERA/Slat armor Disable "miscRepair" action for all era and slat armor hitpoints. Can still be repaired via "Full Repair" * Minor perf improvment * Add hitpoint names for 1.82 comTurret/gun * Fix russian translations
29 lines
766 B
Plaintext
29 lines
766 B
Plaintext
/*
|
|
* Author: PabstMirror
|
|
* Modifies the base interaction point for repair items to show it's current damage.
|
|
*
|
|
* Arguments:
|
|
* 0: Target <OBJECT>
|
|
* 1: Player <OBJECT>
|
|
* 2: Args <Any>
|
|
* 3: Action Data <ARRAY>
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* [cursorObject, ace_player, [], []] call ace_repair_fnc_modifyInteraction;
|
|
*
|
|
* Public: No
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
params ["_target", "", "", "_actionData"];
|
|
|
|
// Interaction dots numbered 0..8, white to red.
|
|
// Convert damage to number (rounding up), so that even slight damage can bee seen
|
|
|
|
private _fileName = format [QPATHTOF(ui\damage_%1_ca.paa), ceil (linearConversion [0, 1, damage _target, 0, 8, true])];
|
|
TRACE_2("modifyInteraction",_target,_fileName);
|
|
_actionData set [2, _fileName];
|