fcs in MP

This commit is contained in:
commy2 2015-02-14 05:05:02 +01:00
parent d0b0a0e066
commit d4163223a9
3 changed files with 10 additions and 10 deletions

View File

@ -155,9 +155,9 @@ _FCSElevation = [];
};
} forEach _magazines;
_vehicle setVariable [format ["%1_%2", QGVAR(Distance), _turret], _distance, true];
_vehicle setVariable [format ["%1_%2", QGVAR(Magazines), _turret], _FCSMagazines, true];
_vehicle setVariable [format ["%1_%2", QGVAR(Elevation), _turret], _FCSElevation, true];
_vehicle setVariable [format ["%1_%2", QGVAR(Azimuth), _turret], _FCSAzimuth, true];
[_vehicle, format ["%1_%2", QGVAR(Distance), _turret], _distance] call EFUNC(common,setVariablePublic);
[_vehicle, format ["%1_%2", QGVAR(Magazines), _turret], _FCSMagazines] call EFUNC(common,setVariablePublic);
[_vehicle, format ["%1_%2", QGVAR(Elevation), _turret], _FCSElevation] call EFUNC(common,setVariablePublic);
[_vehicle, format ["%1_%2", QGVAR(Azimuth), _turret], _FCSAzimuth] call EFUNC(common,setVariablePublic);
[format ["%1: %2", localize "STR_ACE_FCS_ZeroedTo", _distance]] call EFUNC(common,displayTextStructured);

View File

@ -16,9 +16,9 @@ private "_vehicle";
_vehicle = _this select 0;
_vehicle setVariable [QGVAR(Distance), 0, true];
_vehicle setVariable [QGVAR(Magazines), [], true];
_vehicle setVariable [QGVAR(Elevation), 0, true];
_vehicle setVariable [QGVAR(Azimuth), 0, true];
[_vehicle, QGVAR(Distance), 0] call EFUNC(common,setVariablePublic);
[_vehicle, QGVAR(Magazines), []] call EFUNC(common,setVariablePublic);
[_vehicle, QGVAR(Elevation), 0] call EFUNC(common,setVariablePublic);
[_vehicle, QGVAR(Azimuth), 0] call EFUNC(common,setVariablePublic);
[localize "STR_ACE_FCS_HasBeenReset"] call EFUNC(common,displayTextStructured);

View File

@ -1,7 +1,7 @@
/*
* Author: KoffeinFlummi
* Author: KoffeinFlummi, commy2
*
* Checks if a vehicle is equipped with an FCS and if so, adds the fired event handler
* Checks if a vehicle is equipped with an FCS and if so, adds the fired event handler. Execute on server.
*
* Arguments:
* 0: Vehicle