Skip to content

Commit

Permalink
Laser - Revert default code to 1111 (#9588)
Browse files Browse the repository at this point in the history
  • Loading branch information
BroBeansCPG authored Nov 6, 2023
1 parent 163d750 commit 4fb9da7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions addons/laser/XEH_preInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ PREP_RECOMPILE_START;
PREP_RECOMPILE_END;

// Laser default variables
ACE_DEFAULT_LASER_CODE = 1688;
ACE_DEFAULT_LASER_WAVELENGTH = 1064;
ACE_DEFAULT_LASER_CODE = 1111;
ACE_DEFAULT_LASER_WAVELENGTH = 1550;
ACE_DEFAULT_LASER_BEAMSPREAD = 1;

GVAR(laserEmitters) = createHashMap;
Expand Down
2 changes: 1 addition & 1 deletion addons/laser/functions/fnc_dev_drawVisibleLaserTargets.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ private _testSeekerDir = vectorDirVisual _seekerVehicle;
drawLine3D [ASLtoAGL _testSeekerPosASL, ASLtoAGL _resultPos, [0,0,1,1]];
drawIcon3D ["\a3\ui_f\data\IGUI\Cfg\Cursors\select_target_ca.paa", [0,0,1,1], (ASLtoAGL _resultPos), 1.5, 1.5, 45, format ["%1 from %2", _code, _results select 1], 0.5, 0.025, "TahomaB"];
};
} forEach [1111, ACE_DEFAULT_LASER_CODE]; // Scan at codes 1111 and 1688
} forEach [ACE_DEFAULT_LASER_CODE, 1688]; // Scan at codes 1111 and 1688


// Draw all lasers
Expand Down
6 changes: 3 additions & 3 deletions addons/laser/functions/fnc_laserOn.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* 0: Emitter <OBJECT>
* 1: Owner <OBJECT>
* 2: Method, can be code, which emitter and owner are passed to, a string function name, an array with a position memory point and weapon name, or an array with a position memory point, a vector begining memory point, and vector ending memory point. <STRING><CODE><ARRAY>
* 3: Wavelength (1064nm is typical) <NUMBER>
* 3: Wavelength (1550nm is typical) <NUMBER>
* 4: Laser code <NUMBER>
* 5: Beam divergence (in mils off beam center) <NUMBER>
* 6: Method Args <ANY> (default: nil)
Expand All @@ -16,8 +16,8 @@
* UUID for sending to laserOff function <STRING>
*
* Example:
* [hmg, hmg, [[0,0,1], "HMG_static"], 1064, 1688, 1] call ace_laser_fnc_laserOn
* [player, player, "ace_laser_fnc_findLaserSource", 1064, 1688, 1, ["pilot"]] call ace_laser_fnc_laserOn
* [hmg, hmg, [[0,0,1], "HMG_static"], 1550, 1111, 1] call ace_laser_fnc_laserOn
* [player, player, "ace_laser_fnc_findLaserSource", 1550, 1111, 1, ["pilot"]] call ace_laser_fnc_laserOn
*
* Public: No
*/
Expand Down
4 changes: 2 additions & 2 deletions addons/laser/functions/fnc_seekerFindLaserSpot.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* 1: Direction vector (will be normalized) <ARRAY>
* 2: Seeker FOV in degrees <NUMBER>
* 3: Seeker max distance in meters <NUMBER>
* 4: Seeker wavelength sensitivity range, [1064,1064] is common <ARRAY>
* 4: Seeker wavelength sensitivity range, [1550,1550] is common <ARRAY>
* 5: Seeker laser code. <NUMBER>
* 6: Ignore 1 (e.g. Player's vehicle) <OBJECT> (default: objNull)
* 7: Ignore 2 (e.g. Attached object) <OBJECT> (default: objNull)
Expand All @@ -19,7 +19,7 @@
* [Strongest compatible laser spot ASL pos, owner object] Nil array values if nothing found <ARRAY>
*
* Example:
* [getPosASL player, [0,1,0], 90, [1064, 1064], 1688, player] call ace_laser_fnc_seekerFindLaserSpot
* [getPosASL player, [0,1,0], 90, [1550, 1550], 1111, player] call ace_laser_fnc_seekerFindLaserSpot
*
* Public: No
*/
Expand Down

0 comments on commit 4fb9da7

Please sign in to comment.