2015-04-06 13:51:59 +00:00
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
|
2015-04-15 13:06:28 +00:00
|
|
|
|
#include "initKeybinds.sqf"
|
2015-04-06 13:51:59 +00:00
|
|
|
|
|
2015-04-18 15:45:32 +00:00
|
|
|
|
if ((profileNamespace getVariable ["ACE_ATragMX_profileNamespaceVersion", 0]) == ATRAGMX_PROFILE_NAMESPACE_VERSION && count (profileNamespace getVariable ["ACE_ATragMX_gunList", []]) > 0) then {
|
2015-04-08 09:05:28 +00:00
|
|
|
|
GVAR(gunList) = profileNamespace getVariable "ACE_ATragMX_gunList";
|
2015-04-06 13:51:59 +00:00
|
|
|
|
} else {
|
2015-04-19 10:07:27 +00:00
|
|
|
|
// Profile Name, Muzzle Velocity, Zero Range, Scope Base Angle, AirFriction, Bore Height, Scope Unit, Scope Click Unit, Scope Click Number, Maximum Elevation, Dialed Elevation, Dialed Windage, Mass, Bullet Diameter, Rifle Twist, BC, Drag Model, Atmosphere Model
|
2015-05-25 08:28:20 +00:00
|
|
|
|
GVAR(gunList) = [["12.7x108mm" , 820, 100, 0.0657, -0.0006469, 3.81, 0, 2, 10, 120, 0, 0, 48.28, 12.7, 38.10, 0.630, 1, "ASM" ],
|
2015-04-15 20:50:04 +00:00
|
|
|
|
|
2015-05-25 08:28:20 +00:00
|
|
|
|
["12.7x99mm AMAX" , 860, 100, 0.0612, -0.0003722, 3.81, 0, 2, 10, 120, 0, 0, 48.60, 12.7, 38.10, 1.050, 1, "ASM" ],
|
|
|
|
|
["12.7x99mm" , 900, 100, 0.0623, -0.0005942, 3.81, 0, 2, 10, 120, 0, 0, 41.92, 12.7, 38.10, 0.670, 1, "ASM" ],
|
2015-04-15 20:50:04 +00:00
|
|
|
|
|
2015-05-25 08:28:20 +00:00
|
|
|
|
["12.7x54mm" , 300, 100, 0.3395, -0.0001877, 3.81, 0, 2, 10, 120, 0, 0, 48.60, 12.7, 24.13, 1.050, 1, "ASM" ],
|
2015-04-15 20:50:04 +00:00
|
|
|
|
|
2015-05-25 08:28:20 +00:00
|
|
|
|
[".408 Chey Tac" , 910, 100, 0.0571, -0.0003958, 3.81, 0, 2, 10, 120, 0, 0, 27.15, 10.4, 33.02, 0.970, 1, "ASM" ],
|
2015-04-15 20:50:04 +00:00
|
|
|
|
|
2015-05-25 08:28:20 +00:00
|
|
|
|
["9.3×64mm" , 870, 100, 0.0619, -0.0010921, 3.81, 0, 2, 10, 120, 0, 0, 14.90, 9.30, 35.56, 0.368, 1, "ASM" ],
|
2015-04-15 20:50:04 +00:00
|
|
|
|
|
2015-05-25 08:28:20 +00:00
|
|
|
|
[".338LM 250gr" , 880, 100, 0.0598, -0.0006234, 3.81, 0, 2, 10, 120, 0, 0, 16.20, 8.58, 25.40, 0.322, 7, "ICAO"],
|
|
|
|
|
[".338LM 300gr" , 800, 100, 0.0677, -0.0005397, 3.81, 0, 2, 10, 120, 0, 0, 19.44, 8.58, 25.40, 0.381, 7, "ICAO"],
|
|
|
|
|
[".338LM API526" , 895, 100, 0.0601, -0.0007120, 3.81, 0, 2, 10, 120, 0, 0, 16.39, 8.58, 25.40, 0.560, 1, "ASM" ],
|
2015-04-15 20:50:04 +00:00
|
|
|
|
|
2015-05-25 08:28:20 +00:00
|
|
|
|
[".300WM Mk248 Mod 0", 900, 100, 0.0584, -0.0007305, 3.81, 0, 2, 10, 120, 0, 0, 13.31, 7.80, 25.40, 0.268, 7, "ICAO"],
|
|
|
|
|
[".300WM Mk248 Mod 1", 867, 100, 0.0611, -0.0006326, 3.81, 0, 2, 10, 120, 0, 0, 14.26, 7.80, 25.40, 0.310, 7, "ICAO"],
|
|
|
|
|
[".300WM Berger OTM" , 853, 100, 0.0622, -0.0005271, 3.81, 0, 2, 10, 120, 0, 0, 14.90, 7.80, 25.40, 0.368, 7, "ICAO"],
|
2015-04-15 20:50:04 +00:00
|
|
|
|
|
2015-05-25 08:28:20 +00:00
|
|
|
|
["7.62x54mmR" , 800, 100, 0.0692, -0.0010165, 3.81, 0, 2, 10, 120, 0, 0, 9.849, 7.92, 24.13, 0.400, 1, "ICAO"],
|
2015-04-15 20:50:04 +00:00
|
|
|
|
|
2015-05-25 08:28:20 +00:00
|
|
|
|
["7.62x51mm M80" , 810, 100, 0.0679, -0.0010319, 3.81, 0, 2, 10, 120, 0, 0, 9.525, 7.82, 25.40, 0.200, 7, "ICAO"],
|
|
|
|
|
["7.62x51mm M118LR" , 780, 100, 0.0710, -0.0008497, 3.81, 0, 2, 10, 120, 0, 0, 11.34, 7.82, 25.40, 0.243, 7, "ICAO"],
|
|
|
|
|
["7.62x51mm Mk319" , 910, 100, 0.0585, -0.0010435, 3.81, 0, 2, 10, 120, 0, 0, 8.424, 7.82, 25.40, 0.377, 1, "ICAO"],
|
|
|
|
|
["7.62x51mm M993" , 930, 100, 0.0585, -0.0010914, 3.81, 0, 2, 10, 120, 0, 0, 8.230, 7.82, 25.40, 0.359, 1, "ICAO"],
|
|
|
|
|
["7.62x51mm Subsonic", 320, 100, 0.3060, -0.0004145, 3.81, 0, 2, 10, 120, 0, 0, 12.96, 7.82, 25.40, 0.235, 7, "ICAO"],
|
2015-04-15 20:50:04 +00:00
|
|
|
|
|
2015-05-25 08:28:20 +00:00
|
|
|
|
["6.5x39mm" , 800, 100, 0.0683, -0.0007728, 3.81, 0, 2, 10, 120, 0, 0, 7.970, 6.71, 22.86, 0.263, 7, "ICAO"],
|
|
|
|
|
["6.5x47mm Lapua" , 800, 100, 0.0682, -0.0006977, 3.81, 0, 2, 10, 120, 0, 0, 9.007, 6.71, 22.86, 0.290, 7, "ICAO"],
|
|
|
|
|
["6.5mm Creedmor" , 840, 100, 0.0637, -0.0006136, 3.81, 0, 2, 10, 120, 0, 0, 9.072, 6.71, 22.86, 0.317, 7, "ICAO"],
|
2015-04-15 20:50:04 +00:00
|
|
|
|
|
2015-05-25 08:28:20 +00:00
|
|
|
|
["5.56x45mm M855" , 870, 100, 0.0626, -0.0013685, 3.81, 0, 2, 10, 120, 0, 0, 4.018, 5.70, 17.78, 0.151, 7, "ASM" ],
|
|
|
|
|
["5.56x45mm Mk262" , 820, 100, 0.0671, -0.0011287, 3.81, 0, 2, 10, 120, 0, 0, 4.990, 5.70, 17.78, 0.361, 1, "ASM" ],
|
|
|
|
|
["5.56x45mm Mk318" , 880, 100, 0.0616, -0.0013064, 3.81, 0, 2, 10, 120, 0, 0, 4.018, 5.70, 17.78, 0.307, 1, "ASM" ],
|
|
|
|
|
["5.56x45mm M995" , 869, 100, 0.0616, -0.0012972, 3.81, 0, 2, 10, 120, 0, 0, 4.536, 5.70, 17.78, 0.310, 1, "ASM" ]];
|
2015-04-07 20:44:26 +00:00
|
|
|
|
|
2015-04-18 15:45:32 +00:00
|
|
|
|
[] call FUNC(clear_user_data);
|
2015-04-08 09:05:28 +00:00
|
|
|
|
profileNamespace setVariable ["ACE_ATragMX_gunList", GVAR(gunList)];
|
2015-04-06 13:51:59 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
[] call FUNC(init);
|
2015-04-17 22:11:53 +00:00
|
|
|
|
[] call FUNC(restore_user_data);
|
2015-04-12 17:51:13 +00:00
|
|
|
|
|
|
|
|
|
["RangerfinderData", {_this call FUNC(sord)}] call EFUNC(common,addEventHandler);
|