Skip to content

Commit

Permalink
Donov Learns to Spell
Browse files Browse the repository at this point in the history
  • Loading branch information
AdozenBABYdogs committed Nov 3, 2023
1 parent c56c529 commit 2b1eaad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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 @@ -27,7 +27,7 @@ params ["_projectile", "_ammo"];
[_this select 1] call CBA_fnc_removePerFrameHandler;
};

//Start of Donov HARM Guidence computer
//Start of Donov HARM Guidance computer
//systemChat "Missile Alive";
_missileTgtPos = [getPosASL _projectile, vectorDir _projectile, _projectile, vehicle _gunner] call ace_laser_fnc_shootRay;
/* Using Shoot ray to determine a spot in space where the missile is looking in front of it
Expand Down Expand Up @@ -67,7 +67,7 @@ params ["_projectile", "_ammo"];
};
} else {

//End of Donov HARM Guidence Code
//End of Donov HARM Guidance Code
if(time > _launchTime + 1 && _targetPos != objNull) then {
_targetCoordinates = _targetPos vectorAdd [0,0,0.2];
_position = getPosASL _projectile;
Expand Down
4 changes: 2 additions & 2 deletions addons/uh60_weapons/functions/fnc_fired.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ if (player == _gunner && local _gunner) then {
[_vehicle] call vtx_uh60_weapons_fnc_updateMFDValues;
};

//spaggetti code: Mix of Yax's ITC Air APKs and HARM Guidence by Donov
//spaggetti code: Mix of Yax's ITC Air APKs and HARM Guidance by Donov
if (_ammo == "vtx_ammo_Missile_HARM_HL" && vehicle _gunner == _vehicle) then {
_index = 0; //reset index to enter while loop
while {_index < 4} do {
Expand All @@ -28,6 +28,6 @@ if (_ammo == "vtx_ammo_Missile_HARM_HL" && vehicle _gunner == _vehicle) then {
};
_index = _index + 1; //python be like
};
[_projectile, _ammo] call vtx_uh60_weapons_fnc_HARMGuidence;
[_projectile, _ammo] call vtx_uh60_weapons_fnc_HARMGuidance;

};

0 comments on commit 2b1eaad

Please sign in to comment.