mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Reduced the max. transmission range
This commit is contained in:
parent
618d557227
commit
cb2b120023
@ -54,7 +54,7 @@ GVAR(pphandle) ppEffectEnable true;
|
|||||||
GVAR(stop) = false;
|
GVAR(stop) = false;
|
||||||
call FUNC(huntirCompass);
|
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]];
|
GVAR(no_cams) set [_forEachIndex, [(getPosVisual ACE_player) vectorDistance (getPosVisual _x), _x]];
|
||||||
} forEach GVAR(no_cams);
|
} forEach GVAR(no_cams);
|
||||||
@ -63,7 +63,7 @@ GVAR(no_cams) sort true;
|
|||||||
GVAR(no_cams) set [_forEachIndex, _x select 1];
|
GVAR(no_cams) set [_forEachIndex, _x select 1];
|
||||||
} forEach GVAR(no_cams);
|
} 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 {
|
if (((getPosVisual _x) select 2) > 20 && {!(_x in GVAR(no_cams))}) then {
|
||||||
GVAR(no_cams) pushBack _x;
|
GVAR(no_cams) pushBack _x;
|
||||||
|
@ -42,5 +42,6 @@ _y = (_pos select 1) + _b;
|
|||||||
private ["_huntir"];
|
private ["_huntir"];
|
||||||
_huntir = createVehicle ["ACE_HuntIR", [_x, _y, _z], [], 0, "FLY"];
|
_huntir = createVehicle ["ACE_HuntIR", [_x, _y, _z], [], 0, "FLY"];
|
||||||
_huntir setPosATL [_x, _y, _z];
|
_huntir setPosATL [_x, _y, _z];
|
||||||
|
systemChat Str(getMass _huntir);
|
||||||
}, [_x, _y, ((getPosATL _projectile) select 2) + 400], 5, 0] call EFUNC(common,waitAndExecute);
|
}, [_x, _y, ((getPosATL _projectile) select 2) + 400], 5, 0] call EFUNC(common,waitAndExecute);
|
||||||
}, [_projectile, _x, _y], 5, 0] call EFUNC(common,waitAndExecute);
|
}, [_projectile, _x, _y], 5, 0] call EFUNC(common,waitAndExecute);
|
||||||
|
@ -40,7 +40,7 @@ createDialog "ace_huntir_cam_dialog_off";
|
|||||||
[{
|
[{
|
||||||
private ["_elapsedTime", "_nearestHuntIRs"];
|
private ["_elapsedTime", "_nearestHuntIRs"];
|
||||||
_elapsedTime = ACE_time - GVAR(startTime);
|
_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 {
|
if ((!dialog) || GVAR(done)) exitWith {
|
||||||
[_this select 1] call cba_fnc_removePerFrameHandler;
|
[_this select 1] call cba_fnc_removePerFrameHandler;
|
||||||
|
@ -13,3 +13,5 @@
|
|||||||
|
|
||||||
#define HUNTIR_BACKGROUND_LAYER_ID 13521
|
#define HUNTIR_BACKGROUND_LAYER_ID 13521
|
||||||
#define HUNTIR_CAM_ROSE_LAYER_ID 13522
|
#define HUNTIR_CAM_ROSE_LAYER_ID 13522
|
||||||
|
|
||||||
|
#define HUNTIR_MAX_TRANSMISSION_RANGE 1600
|
||||||
|
Loading…
Reference in New Issue
Block a user