Comment CleanUp

This commit is contained in:
jokoho48
2015-08-14 00:02:19 +02:00
parent 0656418cd1
commit d62f00146e
4 changed files with 10 additions and 10 deletions

View File

@ -7,7 +7,7 @@
* 0: HuntIR <OBJECT> * 0: HuntIR <OBJECT>
* *
* Return Value: * Return Value:
* Nothing * None
* *
* Public: No * Public: No
*/ */

View File

@ -13,7 +13,7 @@
* 6: projectile - Object of the projectile that was shot <OBJECT> * 6: projectile - Object of the projectile that was shot <OBJECT>
* *
* Return Value: * Return Value:
* Nothing * None
* *
* Public: No * Public: No
*/ */

View File

@ -4,10 +4,10 @@
* HuntIR monitor system * HuntIR monitor system
* *
* Arguments: * Arguments:
* Nothing * None
* *
* Return Value: * Return Value:
* Nothing * None
* *
* Public: No * Public: No
*/ */
@ -35,21 +35,21 @@ createDialog "ace_huntir_cam_dialog_off";
GVAR(connectionDelay) = 5; GVAR(connectionDelay) = 5;
GVAR(state) = "searching"; GVAR(state) = "searching";
GVAR(message) = []; GVAR(message) = [];
GVAR(messageSearching) = toArray "Searching....."; GVAR(messageSearching) = toArray "Searching.....";
GVAR(messageConnecting) = toArray "Connecting....."; GVAR(messageConnecting) = toArray "Connecting.....";
[{ [{
//Close monitor if we no longer have item: //Close monitor if we no longer have item:
if ((!([ACE_player, "ACE_HuntIR_monitor"] call EFUNC(common,hasItem))) && {!isNull (uiNameSpace getVariable ["ace_huntir_monitor", displayNull])}) then { if ((!([ACE_player, "ACE_HuntIR_monitor"] call EFUNC(common,hasItem))) && {!isNull (uiNameSpace getVariable ["ace_huntir_monitor", displayNull])}) then {
closeDialog 0; closeDialog 0;
}; };
private ["_elapsedTime", "_nearestHuntIRs"]; private ["_elapsedTime", "_nearestHuntIRs"];
_elapsedTime = ACE_time - GVAR(startTime); _elapsedTime = ACE_time - GVAR(startTime);
_nearestHuntIRs = ACE_player nearEntities ["ACE_HuntIR", HUNTIR_MAX_TRANSMISSION_RANGE]; _nearestHuntIRs = ACE_player nearEntities ["ACE_HuntIR", HUNTIR_MAX_TRANSMISSION_RANGE];
if ((!dialog) || GVAR(done)) exitWith { if ((!dialog) || GVAR(done)) exitWith {
[_this select 1] call cba_fnc_removePerFrameHandler; [_this select 1] call cba_fnc_removePerFrameHandler;
if (dialog && GVAR(state) == "connected") then { if (dialog && GVAR(state) == "connected") then {
[_nearestHuntIRs select 0] call FUNC(cam); [_nearestHuntIRs select 0] call FUNC(cam);
} else { } else {

View File

@ -4,10 +4,10 @@
* HuntIR monitor compass * HuntIR monitor compass
* *
* Arguments: * Arguments:
* Nothing * None
* *
* Return Value: * Return Value:
* Nothing * None
* *
* Public: No * Public: No
*/ */