mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
e2ac18a05d
* advanced_ballistics * advanced_fatigue * advanced_throwing * ai * aircraft * arsenal * atragmx * attach * backpacks * ballistics * captives * cargo * chemlights * common * concertina_wire * cookoff * dagr * disarming * disposable * dogtags * dragging * explosives * fastroping * fcs * finger * frag * gestures * gforces * goggles * grenades * gunbag * hearing * hitreactions * huntir * interact_menu * interaction * inventory * kestrel4500 * laser * laserpointer * logistics_uavbattery * logistics_wirecutter * magazinerepack * map * map_gestures * maptools * markers * medical * medical_ai * medical_blood * medical_menu * microdagr * minedetector * missileguidance * missionmodules * mk6mortar * modules * movement * nametags * nightvision * nlaw * optics * optionsmenu * overheating * overpressure * parachute * pylons * quickmount * rangecard * rearm * recoil * refuel * reload * reloadlaunchers * repair * respawn * safemode * sandbag * scopes * slideshow * spectator * spottingscope * switchunits * tacticalladder * tagging * trenches * tripod * ui * vector * vehiclelock * vehicles * viewdistance * weaponselect * weather * winddeflection * yardage450 * zeus * arsenal defines.hpp * optionals * DEBUG_MODE_FULL 1 * DEBUG_MODE_FULL 2 * Manual fixes * Add SQF Validator check for #include after block comment * explosives fnc_openTimerUI * fix uniqueItems
64 lines
2.2 KiB
Plaintext
64 lines
2.2 KiB
Plaintext
#include "script_component.hpp"
|
|
/*
|
|
* Author: Ruthberg
|
|
* Updates all target column input fields
|
|
*
|
|
* Arguments:
|
|
* None
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* call ace_atragmx_fnc_update_target
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
ctrlSetText [140000, Str(Round((GVAR(latitude) select GVAR(currentTarget)) * 100) / 100)];
|
|
ctrlSetText [140010, Str(Round((GVAR(directionOfFire) select GVAR(currentTarget)) * 100) / 100)];
|
|
if (GVAR(currentUnit) != 2) then {
|
|
ctrlSetText [140020, Str(Round((GVAR(windSpeed1) select GVAR(currentTarget)) * 2.23693629 * 100) / 100)];
|
|
ctrlSetText [140021, Str(Round((GVAR(windSpeed2) select GVAR(currentTarget)) * 2.23693629 * 100) / 100)];
|
|
} else {
|
|
ctrlSetText [140020, Str(Round((GVAR(windSpeed1) select GVAR(currentTarget)) * 100) / 100)];
|
|
ctrlSetText [140021, Str(Round((GVAR(windSpeed2) select GVAR(currentTarget)) * 100) / 100)];
|
|
};
|
|
ctrlSetText [140030, Str(Round((GVAR(windDirection) select GVAR(currentTarget))))];
|
|
ctrlSetText [140040, Str(Round((GVAR(inclinationAngle) select GVAR(currentTarget))))];
|
|
ctrlSetText [140041, Str(Round(cos(GVAR(inclinationAngle) select GVAR(currentTarget)) * 100) / 100)];
|
|
if (GVAR(currentUnit) != 2) then {
|
|
ctrlSetText [140050, Str(Round((GVAR(targetSpeed) select GVAR(currentTarget)) * 2.23693629 * 100) / 100)];
|
|
} else {
|
|
ctrlSetText [140050, Str(Round((GVAR(targetSpeed) select GVAR(currentTarget)) * 100) / 100)];
|
|
};
|
|
if ((GVAR(targetSpeedDirection) select GVAR(currentTarget)) == 1) then {
|
|
ctrlSetText [140051, ">"];
|
|
} else {
|
|
ctrlSetText [140051, "<"];
|
|
};
|
|
if (GVAR(currentUnit) == 1) then {
|
|
ctrlSetText [140060, Str(Round((GVAR(targetRange) select GVAR(currentTarget)) * 1.0936133))];
|
|
} else {
|
|
ctrlSetText [140060, Str(Round((GVAR(targetRange) select GVAR(currentTarget))))];
|
|
};
|
|
if (GVAR(currentUnit) == 0) then {
|
|
ctrlSetText [140061, "*"];
|
|
} else {
|
|
ctrlSetText [140061, ""];
|
|
};
|
|
|
|
if (GVAR(currentUnit) == 2) then {
|
|
ctrlSetText [14002, "Wind Speed (m/s)"];
|
|
ctrlSetText [14005, "Target Speed (m/s)"];
|
|
} else {
|
|
ctrlSetText [14002, "Wind Speed (mph)"];
|
|
ctrlSetText [14005, "Target Speed (mph)"];
|
|
};
|
|
|
|
if (GVAR(currentUnit) == 1) then {
|
|
ctrlSetText [14006, "Target Range (yards)"];
|
|
} else {
|
|
ctrlSetText [14006, "Target Range (meters)"];
|
|
};
|