
All checks were successful
Build / Build (push) Successful in 28s
This commit refactors several client-side functions to improve code consistency and readability. - Standardizes function descriptions by removing redundant "Function: forge_client..." prefixes and "[Description]" sections, focusing on concise descriptions of the function's purpose. - Updates variable handling in arsenal functions to use GVAR and EGVARS for default values, improving consistency and reducing code duplication. - Removes the bank init function as it is no longer needed. - Adds a done variable to the preinit file.
24 lines
598 B
Plaintext
24 lines
598 B
Plaintext
#include "script_component.hpp"
|
|
ADDON = false;
|
|
|
|
PREP_RECOMPILE_START;
|
|
#include "XEH_PREP.hpp"
|
|
PREP_RECOMPILE_END;
|
|
|
|
GVAR(armory_unlocks) = [];
|
|
GVAR(garage_unlocks) = [];
|
|
|
|
GVAR(car_unlocks) = [];
|
|
GVAR(armor_unlocks) = [];
|
|
GVAR(heli_unlocks) = [];
|
|
GVAR(plane_unlocks) = [];
|
|
GVAR(naval_unlocks) = [];
|
|
GVAR(static_unlocks) = [];
|
|
|
|
GVAR(default_armory) = [[],[],[],[]];
|
|
GVAR(default_garage) = [[],[],[],[],[],[]];
|
|
GVAR(pdb_mode) = "PDB_MODE" call BFUNC(getParamValue);
|
|
GVAR(armory_type) = "ARS_TYPE" call BFUNC(getParamValue);
|
|
GVAR(gear_box) = "ReammoBox_F" createVehicleLocal [0, 0, -999];
|
|
|
|
ADDON = true; |