2015-04-21 11:17:09 +00:00
|
|
|
/*
|
|
|
|
* Author: commy2
|
2015-08-16 18:14:54 +00:00
|
|
|
* Adjusts repair damage settings.
|
2015-04-21 11:17:09 +00:00
|
|
|
*
|
|
|
|
* Arguments:
|
2015-08-16 18:14:54 +00:00
|
|
|
* 0: The module logic <OBJECT>
|
|
|
|
* 1: Synchronized units <ARRAY>
|
|
|
|
* 2: Activated <BOOL>
|
2015-04-21 11:17:09 +00:00
|
|
|
*
|
|
|
|
* Return Value:
|
2015-08-16 18:14:54 +00:00
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* function = "ace_repair_fnc_moduleRepairSettings"
|
2015-04-21 11:17:09 +00:00
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2015-08-09 06:54:44 +00:00
|
|
|
params ["_logic"];
|
2015-04-21 11:17:09 +00:00
|
|
|
|
2015-08-09 06:54:44 +00:00
|
|
|
if (!isServer) exitWith {};
|
2015-04-21 11:17:09 +00:00
|
|
|
|
|
|
|
[_logic, QGVAR(engineerSetting_Repair), "engineerSetting_Repair"] call EFUNC(common,readSettingFromModule);
|
|
|
|
[_logic, QGVAR(engineerSetting_Wheel), "engineerSetting_Wheel"] call EFUNC(common,readSettingFromModule);
|
|
|
|
[_logic, QGVAR(consumeItem_ToolKit), "consumeItem_ToolKit"] call EFUNC(common,readSettingFromModule);
|
|
|
|
[_logic, QGVAR(repairDamageThreshold), "repairDamageThreshold"] call EFUNC(common,readSettingFromModule);
|
|
|
|
[_logic, QGVAR(repairDamageThreshold_Engineer), "repairDamageThreshold_Engineer"] call EFUNC(common,readSettingFromModule);
|
2015-08-09 06:54:44 +00:00
|
|
|
|
2015-08-14 18:49:51 +00:00
|
|
|
|
|
|
|
[_logic, QGVAR(fullRepairLocation), "fullRepairLocation"] call EFUNC(common,readSettingFromModule);
|
|
|
|
[_logic, QGVAR(engineerSetting_fullRepair), "engineerSetting_fullRepair"] call EFUNC(common,readSettingFromModule);
|
|
|
|
|
2015-08-18 21:41:25 +00:00
|
|
|
[_logic, QGVAR(addSpareParts), "addSpareParts"] call EFUNC(common,readSettingFromModule);
|
|
|
|
|
2015-09-15 14:54:55 +00:00
|
|
|
[_logic, QGVAR(wheelRepairRequiredItems), "wheelRepairRequiredItems"] call EFUNC(common,readSettingFromModule);
|
|
|
|
|
2015-08-26 13:20:11 +00:00
|
|
|
ACE_LOGINFO("Repair Module Initialized.");
|