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
26 lines
570 B
Plaintext
26 lines
570 B
Plaintext
/*
|
|
* Author: Ruthberg
|
|
* Shifts all muzzle velocity entries in the muzzle velocity vs. temperature interpolation table
|
|
*
|
|
* Arguments:
|
|
* velocity - <NUMBER>
|
|
*
|
|
* Return Value:
|
|
* Nothing
|
|
*
|
|
* Example:
|
|
* 10 call ace_atragmx_fnc_shift_muzzle_velocity_data
|
|
*
|
|
* Public: No
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
if (_this == 0) exitWith {};
|
|
|
|
{
|
|
private _velocity = _x select 1;
|
|
if (_velocity > 0) then {
|
|
((GVAR(workingMemory) select 18) select _forEachIndex) set [1, 0 max (_velocity + _this) min 1400];
|
|
}
|
|
} forEach (GVAR(workingMemory) select 18);
|