Skip to content

Commit

Permalink
Revert "Fixed Guidence Code"
Browse files Browse the repository at this point in the history
This reverts commit 2c24fe7fa668fb364027e407c19cda2cf9cc51ce.
  • Loading branch information
AdozenBABYdogs committed Nov 3, 2023
1 parent 2b1eaad commit c872c3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/uh60_weapons/functions/fnc_HARMGuidence.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ params ["_projectile", "_ammo"];

//Start of Donov HARM Guidance computer
//systemChat "Missile Alive";
_missileTgtPos = [getPosASL _projectile, vectorDir _projectile, _projectile, vehicle _gunner] call ace_laser_fnc_shootRay;
_missileTgtPos = [getPosASL _projectile, vectorDir _projectile, _projectile] call ace_laser_fnc_shootRay;
/* Using Shoot ray to determine a spot in space where the missile is looking in front of it
* Then using nearestObjects to pull a list of "AllVehicles" from the radius of the seekerhead
* Then sorting through the list of "AllVehicls" and setting the target as the first vehicle (closest) in the list
Expand All @@ -52,7 +52,7 @@ params ["_projectile", "_ammo"];
*/
_vecDir = [6000 + ((getPosATL _projectile) # 2), getDir _projectile, -30] call CBA_fnc_polar2vect;
_vecDir = vectorNormalized _vecDir;
_missileTgtPos = [getPosASL _projectile, _vecDir, _projectile, blockey] call ace_laser_fnc_shootRay;
_missileTgtPos = [getPosASL _projectile, _vecDir, _projectile] call ace_laser_fnc_shootRay;
if ((_missileTgtPos # 1) != 0) then {
_target = [_projectile, ((_missileTgtPos # 1)*5.6712818 + 10), (_missileTgtPos # 0)] call vtx_uh60_weapons_fnc_getHARMTarget;
if (_target != objNull) then {
Expand Down

0 comments on commit c872c3b

Please sign in to comment.