mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
remove unused non API functions
This commit is contained in:
parent
8233661d55
commit
02b2a21300
@ -233,10 +233,6 @@ PREP(showUser);
|
||||
PREP(dumpPerformanceCounters);
|
||||
PREP(dumpArray);
|
||||
|
||||
// ACE_CuratorFix
|
||||
PREP(addCuratorUnloadEventhandler);
|
||||
PREP(fixCrateContent);
|
||||
|
||||
PREP(globalEvent);
|
||||
PREP(_handleNetEvent);
|
||||
PREP(addEventHandler);
|
||||
|
@ -1,22 +0,0 @@
|
||||
/*
|
||||
* Author: commy2
|
||||
*
|
||||
* Arguments:
|
||||
* Display where the Unload event was added <DISPLAY>
|
||||
*
|
||||
* Return Value:
|
||||
* None
|
||||
*
|
||||
* Public: No
|
||||
*/
|
||||
#include "script_component.hpp"
|
||||
|
||||
disableSerialization;
|
||||
|
||||
private _dlg = ctrlParent _this;
|
||||
|
||||
_dlg displayAddEventHandler ["unload", {
|
||||
if (_this select 1 == 1) then {
|
||||
[missionnamespace getVariable ["BIS_fnc_initCuratorAttributes_target", objNull]] call FUNC(fixCrateContent);
|
||||
};
|
||||
}];
|
@ -1,43 +0,0 @@
|
||||
/*
|
||||
* Author: commy2
|
||||
* Fixes zeus placed crates containing buged mine detectors and ace items.
|
||||
*
|
||||
* Arguments:
|
||||
* 0: Crate <OBJECT>
|
||||
*
|
||||
* Return Value:
|
||||
* None
|
||||
*
|
||||
* Public: No
|
||||
*/
|
||||
#include "script_component.hpp"
|
||||
|
||||
params ["_crate"];
|
||||
|
||||
// get all weapons inside the crate
|
||||
private _weapons = weaponCargo _crate;
|
||||
private _items = [];
|
||||
|
||||
// if the "weapon" is supposed to be an item, move those from the weapon array to the item array
|
||||
{
|
||||
if (getText (configFile >> "CfgWeapons" >> _x >> "simulation") == "ItemMineDetector") then {
|
||||
_weapons set [_forEachIndex, ""];
|
||||
_items pushBack _x;
|
||||
};
|
||||
} forEach _weapons;
|
||||
|
||||
_weapons = _weapons - [""];
|
||||
|
||||
// exit now if everything is fine
|
||||
if (count _items == 0) exitWith {};
|
||||
|
||||
// otherwise clear weapon cargo and re-add items and weapons
|
||||
clearWeaponCargoGlobal _crate;
|
||||
|
||||
{
|
||||
_crate addWeaponCargoGlobal [_x, 1];
|
||||
} forEach _weapons;
|
||||
|
||||
{
|
||||
_crate addItemCargoGlobal [_x, 1];
|
||||
} forEach _items;
|
Loading…
Reference in New Issue
Block a user