mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Comment CleanUp
This commit is contained in:
@ -7,7 +7,7 @@
|
|||||||
* 0: HuntIR <OBJECT>
|
* 0: HuntIR <OBJECT>
|
||||||
*
|
*
|
||||||
* Return Value:
|
* Return Value:
|
||||||
* Nothing
|
* None
|
||||||
*
|
*
|
||||||
* Public: No
|
* Public: No
|
||||||
*/
|
*/
|
||||||
|
@ -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
|
||||||
*/
|
*/
|
||||||
|
@ -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 {
|
||||||
|
@ -4,10 +4,10 @@
|
|||||||
* HuntIR monitor compass
|
* HuntIR monitor compass
|
||||||
*
|
*
|
||||||
* Arguments:
|
* Arguments:
|
||||||
* Nothing
|
* None
|
||||||
*
|
*
|
||||||
* Return Value:
|
* Return Value:
|
||||||
* Nothing
|
* None
|
||||||
*
|
*
|
||||||
* Public: No
|
* Public: No
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user