Merge branch 'release'

Conflicts:
	addons/refuel/functions/fnc_connectNozzle.sqf
This commit is contained in:
Glowbal 2016-02-04 20:34:32 +01:00
commit f1ce133d32
3 changed files with 25 additions and 0 deletions

View File

@ -27,6 +27,10 @@ private _maxFuel = getNumber (configFile >> "CfgVehicles" >> (typeOf _target) >>
params ["_args", "_pfID"];
_args params [["_source", objNull, [objNull]], ["_sink", objNull, [objNull]], ["_unit", objNull, [objNull]], ["_nozzle", objNull, [objNull]], ["_rate", 1, [0]], ["_startFuel", 0, [0]], ["_maxFuel", 0, [0]], ["_connectFromPoint", [0,0,0], [[]], 3], ["_connectToPoint", [0,0,0], [[]], 3]];
if !(_nozzle getVariable [QGVAR(isConnected), false]) exitWith {
[_pfID] call CBA_fnc_removePerFrameHandler;
};
if (!alive _source || {!alive _sink}) exitWith {
[objNull, _nozzle] call FUNC(dropNozzle);
_nozzle setVariable [QGVAR(isConnected), false, true];

View File

@ -167,4 +167,23 @@ class CfgVehicles {
sync[] = {};
};
};
class GVAR(moduleSetSuppression): GVAR(moduleBase) {
curatorCanAttach = 1;
displayName = CSTRING(ModuleSetSupp_DisplayName);
function = QFUNC(moduleSetSuppression);
class ModuleDescription {
description = "Set group of units to supressed.";
sync[] = {};
};
};
class GVAR(moduleDisableSuppression): GVAR(moduleBase) {
curatorCanAttach = 1;
displayName = CSTRING(ModuleDisableSupp_DisplayName);
function = QFUNC(moduleDisableSuppression);
class ModuleDescription {
description = "Remove suppression for units in group";
sync[] = {};
};
};
};

View File

@ -17,6 +17,8 @@ PREP(moduleSetMedicalFacility);
PREP(moduleSurrender);
PREP(moduleUnconscious);
PREP(moduleZeusSettings);
PREP(moduleDisableSuppression);
PREP(moduleSetSuppression);
if (isServer) then {
["zeusUnitAssigned", FUNC(handleZeusUnitAssigned)] call EFUNC(common,addEventHandler);