Skip to content

Commit 1e1ae4b

Browse files
committed
d
1 parent af3f5e9 commit 1e1ae4b

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

addons/missile_manpad/functions/fnc_eachFrame.sqf

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* Public: No
1616
*/
1717
params ["_args"];
18-
_args params ["_unit", "_pfid", "_actionId", "_config", "_lockCanidate", "_lockStartTime", "_haveLock", "_lastSound", "_lastSoundTimeout"];
18+
_args params ["_unit", "_pfid", "_actionId", "_config", "_lockCandidate", "_lockStartTime", "_haveLock", "_lastSound", "_lastSoundTimeout"];
1919
_config params ["_seekerMaxRange", "_lockAngle", "_uncageAngle", "_lockingTimeMin", "_lockingTimeMax", "_lockingSound", "_lockedSound"];
2020

2121
private _fnc_playSound = {
@@ -62,15 +62,15 @@ private _fnc_searchTarget = {
6262
if (!GVAR(isLockKeyDown) || {(currentMagazine _unit) == ""}) exitWith {
6363
"" call _fnc_playSound;
6464
_unit setVariable [QEGVAR(missileguidance,target), nil];
65-
_args set [4, objNull]; // _lockCanidate = objNull
65+
_args set [4, objNull]; // _lockCandidate = objNull
6666
};
6767

6868
private _source = _unit;
6969
private _seekerASL = eyePos _source;
7070
private _seekerDir = _source weaponDirection currentWeapon _source;
7171

7272
private _lockFeedback = 0;
73-
if (isNull _lockCanidate) then {
73+
if (isNull _lockCandidate) then {
7474
// find any target within seeker range
7575
private _potentialTargets = _source nearEntities ["Air", _seekerMaxRange];
7676
private _bestValue = 0;
@@ -86,16 +86,16 @@ if (isNull _lockCanidate) then {
8686
} forEach _potentialTargets;
8787
if (!isNull _bestTarget) then {
8888
TRACE_1("new target",_bestTarget);
89-
_args set [4, _bestTarget]; // _lockCanidate = _bestTarget;
89+
_args set [4, _bestTarget]; // _lockCandidate = _bestTarget;
9090
_args set [5, CBA_missionTime]; // _lockStartTime = CBA_missionTime;
9191
_args set [6, false]; // _haveLock = false;
9292
};
9393
} else {
9494
private _angle = [_lockAngle, _uncageAngle] select CBA_events_control;
95-
private _strength = [_lockCanidate, _angle, _seekerMaxRange] call _fnc_searchTarget;
95+
private _strength = [_lockCandidate, _angle, _seekerMaxRange] call _fnc_searchTarget;
9696
if (_strength == 0) exitWith {
9797
_haveLock = false;
98-
_args set [4, objNull]; // _lockCanidate = objNull;
98+
_args set [4, objNull]; // _lockCandidate = objNull;
9999
};
100100

101101
if (_haveLock) then {
@@ -121,8 +121,8 @@ switch (true) do {
121121
};
122122

123123

124-
if ((isNull _lockCanidate) || {!_haveLock}) then {
124+
if ((isNull _lockCandidate) || {!_haveLock}) then {
125125
_unit setVariable [QEGVAR(missileguidance,target), nil];
126126
} else {
127-
_unit setVariable [QEGVAR(missileguidance,target), _lockCanidate];
127+
_unit setVariable [QEGVAR(missileguidance,target), _lockCandidate];
128128
};

0 commit comments

Comments
 (0)