mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
remove unnecessary code, aesthetic tweak
This commit is contained in:
parent
5f0a2b1945
commit
388b00f58c
@ -95,16 +95,9 @@ class Extended_InitPost_EventHandlers {
|
||||
init = QUOTE(_this call DFUNC(initObject));
|
||||
};
|
||||
};
|
||||
|
||||
class Land_PortableLight_single_F {
|
||||
class ADDON {
|
||||
init = QUOTE(_this call DFUNC(initObject));
|
||||
};
|
||||
};
|
||||
|
||||
class Land_PortableLight_double_F {
|
||||
class ADDON {
|
||||
init = QUOTE(_this call DFUNC(initObject));
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -45,7 +45,7 @@ class CfgVehicles {
|
||||
description = CSTRING(MakeLoadable_description);
|
||||
typeName = "BOOL";
|
||||
defaultValue = 1;
|
||||
};
|
||||
};
|
||||
class setSize {
|
||||
displayName = CSTRING(makeLoadable_setSize_displayName);
|
||||
typeName = "NUMBER";
|
||||
@ -491,8 +491,4 @@ class CfgVehicles {
|
||||
GVAR(size) = 1;
|
||||
GVAR(canLoad) = 1;
|
||||
};
|
||||
class Land_PortableLight_double_F: Land_PortableLight_single_F {
|
||||
GVAR(size) = 1;
|
||||
GVAR(canLoad) = 1;
|
||||
};
|
||||
};
|
||||
|
@ -32,11 +32,6 @@ class Extended_Init_EventHandlers {
|
||||
init = QUOTE(_this call DFUNC(initObject));
|
||||
};
|
||||
};
|
||||
class Land_PortableLight_double_F {
|
||||
class ADDON {
|
||||
init = QUOTE(_this call DFUNC(initObject));
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class Extended_Killed_EventHandlers {
|
||||
|
@ -29,7 +29,7 @@ private _hitPointsDamage = [];
|
||||
} count _reflectors;
|
||||
|
||||
//if lamp is on turn it off
|
||||
private _eventName = if(_isOn) then {"lampTurnOff"} else {"lampTurnOn"};
|
||||
private _eventName = ["lampTurnOn", "lampTurnOff"] select _isOn;
|
||||
if(local _lamp) then {
|
||||
[_eventName, [_lamp, _hitPointsDamage, DISABLED_LAMP_DMG]] call EFUNC(common,localEvent);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user