fix bwc for ACE_RangeTable_82mm

This commit is contained in:
PabstMirror 2019-07-09 17:55:19 -05:00
parent 76a1dd0ec0
commit a556fd1597
3 changed files with 43 additions and 0 deletions

View File

@ -3,5 +3,7 @@ PREP(csw_getProxyWeapon);
PREP(handleFired);
PREP(handlePlayerVehicleChanged);
PREP(moduleInit);
PREP(rangeTableCanUse);
PREP(rangeTableOpen);
PREP(toggleMils);
PREP(turretDisplayLoaded);

View File

@ -0,0 +1,21 @@
#include "script_component.hpp"
/*
* Author: PabstMirror
* Can player open 82mm rangetable.
*
* Arguments:
* 0: Vehicle <OBJECT>
* 1: Player <OBJECT>
*
* Return Value:
* Can Open <BOOL>
*
* Example:
* [bob, bob] call ace_mk6mortar_fnc_rangeTableCanUse
*
* Public: No
*/
params ["_vehicle", "_player"];
"ACE_RangeTable_82mm" in (_player call EFUNC(common,uniqueItems));

View File

@ -0,0 +1,20 @@
#include "script_component.hpp"
/*
* Author: PabstMirror
* Opens the rangetable and fills the charge listbox.
*
* Arguments:
* None
*
* Return Value:
* None
*
* Example:
* [] call ace_mk6mortar_fnc_rangeTableOpen
*
* Public: No
*/
TRACE_1("rangeTableOpen - defer to artillerytables",_this);
["mortar_82mm", 45, 88, GVAR(airResistanceEnabled) || EGVAR(artillerytables,advancedCorrections)] call EFUNC(artillerytables,rangeTableOpen);