diff --git a/addons/huntir/functions/fnc_cam.sqf b/addons/huntir/functions/fnc_cam.sqf index 234d083282..af229bfe75 100644 --- a/addons/huntir/functions/fnc_cam.sqf +++ b/addons/huntir/functions/fnc_cam.sqf @@ -54,7 +54,7 @@ GVAR(pphandle) ppEffectEnable true; GVAR(stop) = false; call FUNC(huntirCompass); -GVAR(no_cams) = ACE_player nearEntities ["ACE_HuntIR", 2000]; +GVAR(no_cams) = ACE_player nearEntities ["ACE_HuntIR", HUNTIR_MAX_TRANSMISSION_RANGE]; { GVAR(no_cams) set [_forEachIndex, [(getPosVisual ACE_player) vectorDistance (getPosVisual _x), _x]]; } forEach GVAR(no_cams); @@ -63,7 +63,7 @@ GVAR(no_cams) sort true; GVAR(no_cams) set [_forEachIndex, _x select 1]; } forEach GVAR(no_cams); [{ - GVAR(nearHuntIRs) = ACE_player nearEntities ["ACE_HuntIR", 2000]; + GVAR(nearHuntIRs) = ACE_player nearEntities ["ACE_HuntIR", HUNTIR_MAX_TRANSMISSION_RANGE]; { if (((getPosVisual _x) select 2) > 20 && {!(_x in GVAR(no_cams))}) then { GVAR(no_cams) pushBack _x; diff --git a/addons/huntir/functions/fnc_handleFired.sqf b/addons/huntir/functions/fnc_handleFired.sqf index 16afd17546..4d20c3f168 100644 --- a/addons/huntir/functions/fnc_handleFired.sqf +++ b/addons/huntir/functions/fnc_handleFired.sqf @@ -42,5 +42,6 @@ _y = (_pos select 1) + _b; private ["_huntir"]; _huntir = createVehicle ["ACE_HuntIR", [_x, _y, _z], [], 0, "FLY"]; _huntir setPosATL [_x, _y, _z]; + systemChat Str(getMass _huntir); }, [_x, _y, ((getPosATL _projectile) select 2) + 400], 5, 0] call EFUNC(common,waitAndExecute); }, [_projectile, _x, _y], 5, 0] call EFUNC(common,waitAndExecute); diff --git a/addons/huntir/functions/fnc_huntir.sqf b/addons/huntir/functions/fnc_huntir.sqf index 7f02191bab..585a49a6ac 100644 --- a/addons/huntir/functions/fnc_huntir.sqf +++ b/addons/huntir/functions/fnc_huntir.sqf @@ -40,7 +40,7 @@ createDialog "ace_huntir_cam_dialog_off"; [{ private ["_elapsedTime", "_nearestHuntIRs"]; _elapsedTime = ACE_time - GVAR(startTime); - _nearestHuntIRs = ACE_player nearEntities ["ACE_HuntIR", 2000]; + _nearestHuntIRs = ACE_player nearEntities ["ACE_HuntIR", HUNTIR_MAX_TRANSMISSION_RANGE]; if ((!dialog) || GVAR(done)) exitWith { [_this select 1] call cba_fnc_removePerFrameHandler; diff --git a/addons/huntir/script_component.hpp b/addons/huntir/script_component.hpp index 262cd3a08c..9f99437f67 100644 --- a/addons/huntir/script_component.hpp +++ b/addons/huntir/script_component.hpp @@ -12,4 +12,6 @@ #include "\z\ace\addons\main\script_macros.hpp" #define HUNTIR_BACKGROUND_LAYER_ID 13521 -#define HUNTIR_CAM_ROSE_LAYER_ID 13522 \ No newline at end of file +#define HUNTIR_CAM_ROSE_LAYER_ID 13522 + +#define HUNTIR_MAX_TRANSMISSION_RANGE 1600