mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
3f4564605b
* Muzzle Velocity vs. Temperature Interpolation * C1 Ballistic Coefficient vs. Distance Interpolation * Coriolis and Spin drift output * Options menu * Truing Drop --------------------------------- * Overworked default gun profiles --------------------------------- * Fixed the Cancel buttons on the gun-, atmosphere- and target columns. * Fixed some muzzle velocity entries in the default gun list. * Fixed divide by zero error in the target range estimator
34 lines
658 B
Plaintext
34 lines
658 B
Plaintext
/*
|
|
* Author: Ruthberg
|
|
* Restores the truing drop defaults
|
|
*
|
|
* Arguments:
|
|
* update display <BOOL>
|
|
*
|
|
* Return Value:
|
|
* Nothing
|
|
*
|
|
* Example:
|
|
* call ace_atragmx_fnc_restore_truing_drop
|
|
*
|
|
* Public: No
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
private _updateDisplay = _this;
|
|
|
|
GVAR(truingDropMode) = 0;
|
|
GVAR(truingDropRangeData) = [0, 0];
|
|
GVAR(truingDropDropData) = [0, 0, 0];
|
|
GVAR(truingDropReferenceDropData) = [0, 0, 0];
|
|
GVAR(truingDropC1) = 0;
|
|
GVAR(truingDropMuzzleVelocity) = 0;
|
|
|
|
// Resets input fields
|
|
call FUNC(update_truing_drop_selection);
|
|
|
|
if (_updateDisplay) then {
|
|
// Repopulates input fields
|
|
false call FUNC(calculate_truing_drop);
|
|
};
|