Skip to content

Commit

Permalink
re-enabled Cruise Missiles
Browse files Browse the repository at this point in the history
after fix of https://feedback.bistudio.com/T182587 in Arma 2.18

relates to #44
  • Loading branch information
b-mayr-1984 committed Oct 10, 2024
1 parent 1d1c635 commit 19059e8
Show file tree
Hide file tree
Showing 3 changed files with 90 additions and 96 deletions.
11 changes: 8 additions & 3 deletions initPlayerLocal.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ if (playerSide == independent) then {
} call CBA_fnc_directCall; // ...which shall only be called in unscheduled environment
};

/*

// prevent non-commanders from using the cruise missile launcher
private _rankId = rankId player;
private _rankInfo = format ["%1 is a %2", name player, rank player];
Expand Down Expand Up @@ -46,9 +46,15 @@ if (_missileTracking) then {
{
_x addEventHandler ["Fired", {
params ["_unit", "_weapon", "_muzzle", "_mode", "_ammo", "_magazine", "_projectile", "_gunner"];
// handling of video live feed
if (playerSide in [east, west]) then { // video live feed only for normal players (causes problems with Zeus and spectator interface)
if (isNull _projectile) then {
_projectile = (getPos _unit) nearestObject _ammo;
};

diag_log format ["initPlayerLocal.sqf Fired_EH: missileTarget _projectile = '%1'", missileTarget _projectile];

[_projectile, missileTarget _projectile, player, 0] call BIS_fnc_liveFeed; // add video live feed when "Fired"
_projectile addEventHandler ["Deleted", { call BIS_fnc_liveFeedTerminate; }]; // terminate live feed when "Deleted"
};
Expand All @@ -58,7 +64,6 @@ if (_missileTracking) then {
}];
} forEach _VLStoMonitor;
};
*/


// prevent use of enemy UAV terminals and radios
Expand Down
Loading

0 comments on commit 19059e8

Please sign in to comment.