mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
fix bwc for ACE_RangeTable_82mm
This commit is contained in:
parent
76a1dd0ec0
commit
a556fd1597
@ -3,5 +3,7 @@ PREP(csw_getProxyWeapon);
|
|||||||
PREP(handleFired);
|
PREP(handleFired);
|
||||||
PREP(handlePlayerVehicleChanged);
|
PREP(handlePlayerVehicleChanged);
|
||||||
PREP(moduleInit);
|
PREP(moduleInit);
|
||||||
|
PREP(rangeTableCanUse);
|
||||||
|
PREP(rangeTableOpen);
|
||||||
PREP(toggleMils);
|
PREP(toggleMils);
|
||||||
PREP(turretDisplayLoaded);
|
PREP(turretDisplayLoaded);
|
||||||
|
21
addons/mk6mortar/functions/fnc_rangeTableCanUse.sqf
Normal file
21
addons/mk6mortar/functions/fnc_rangeTableCanUse.sqf
Normal 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));
|
20
addons/mk6mortar/functions/fnc_rangeTableOpen.sqf
Normal file
20
addons/mk6mortar/functions/fnc_rangeTableOpen.sqf
Normal 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);
|
Loading…
Reference in New Issue
Block a user