Explosives, 2 spaces to 4 space tab.

This commit is contained in:
Garth L-H de Wet 2015-04-06 22:10:00 +02:00
parent 7c73f7479e
commit 44c597f7c5
17 changed files with 1510 additions and 1506 deletions

View File

@ -1,13 +1,13 @@
class CfgACE_Triggers { class CfgACE_Triggers {
/* onPlace parameters: /* onPlace parameters:
0: OBJECT - unit placing 0: OBJECT - unit placing
1: OBJECT - Placed explosive 1: OBJECT - Placed explosive
2: STRING - Magazine classname 2: STRING - Magazine classname
3: ARRAY - vars 3: ARRAY - vars
Last Index: CfgACE_Triggers config of trigger type. Last Index: CfgACE_Triggers config of trigger type.
onSetup parameters: onSetup parameters:
0: STRING - Magazine Classname 0: STRING - Magazine Classname
*/ */
class Command { class Command {
displayName = $STR_ACE_Explosives_clacker_displayName; displayName = $STR_ACE_Explosives_clacker_displayName;
picture = PATHTOF(Data\UI\Clacker.paa); picture = PATHTOF(Data\UI\Clacker.paa);

View File

@ -11,10 +11,10 @@ class Extended_PostInit_EventHandlers {
/* /*
TODO: Move the addEventHandlers out of PostInit into here or separate eventHandlers, TODO: Move the addEventHandlers out of PostInit into here or separate eventHandlers,
to enable them on all units, so unit switching works for explosives properly. to enable them on all units, so unit switching works for explosives properly.
class Extended_Init_EventHandlers { class Extended_Init_EventHandlers {
class CAManBase { class CAManBase {
init = ""; init = "";
} }
} }
*/ */

View File

@ -36,7 +36,9 @@ _config = ConfigFile >> "CfgMagazines" >> _magazineClass >> "ACE_Triggers" >> co
_clacker = _unit getVariable [QGVAR(Clackers), []]; _clacker = _unit getVariable [QGVAR(Clackers), []];
GVAR(PlacedCount) = GVAR(PlacedCount) + 1; GVAR(PlacedCount) = GVAR(PlacedCount) + 1;
_clacker pushBack [_explosive, getNumber(_config >> "FuseTime"), format [localize "STR_ACE_Explosives_DetonateCode", _clacker pushBack [_explosive, getNumber(_config >> "FuseTime"), format [localize "STR_ACE_Explosives_DetonateCode",
GVAR(PlacedCount)], _magazineClass, configName ((_this select 3) select (count (_this select 3) - 1))]; GVAR(PlacedCount)], _magazineClass, configName ((_this select 3) select (count (_this select 3) - 1))];
_unit setVariable [QGVAR(Clackers), _clacker, true]; _unit setVariable [QGVAR(Clackers), _clacker, true];
_unit sideChat format [localize "STR_ACE_Explosives_DetonateCode", GVAR(PlacedCount)]; _unit sideChat format [localize "STR_ACE_Explosives_DetonateCode", GVAR(PlacedCount)];

View File

@ -20,7 +20,9 @@ _activated = _this select 2;
if !(_activated) exitWith {}; if !(_activated) exitWith {};
[_logic, QGVAR(RequireSpecialist), "RequireSpecialist" ] call EFUNC(Common,readSettingFromModule); [_logic, QGVAR(RequireSpecialist), "RequireSpecialist"]
[_logic, QGVAR(PunishNonSpecialists), "PunishNonSpecialists" ] call EFUNC(Common,readSettingFromModule); call EFUNC(Common,readSettingFromModule);
[_logic, QGVAR(PunishNonSpecialists),"PunishNonSpecialists"]
call EFUNC(Common,readSettingFromModule);
diag_log text "[ACE]: Explosive Module Initialized."; diag_log text "[ACE]: Explosive Module Initialized.";