private array cleanup p1

This commit is contained in:
vbawol 2016-08-31 19:29:08 -05:00
parent d264aa438a
commit d285fe4ad0
112 changed files with 331 additions and 112 deletions

File diff suppressed because one or more lines are too long

View File

@ -12,6 +12,9 @@
Github: Github:
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/EPOCH_LootIT.sqf https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/EPOCH_LootIT.sqf
*/ */
//[[[cog import generate_private_arrays ]]]
private ["_cam"];
//[[[end]]]
if (!isNull _this) then { if (!isNull _this) then {
[_this,player,Epoch_personalToken] remoteExec ["EPOCH_server_lootContainer",2]; [_this,player,Epoch_personalToken] remoteExec ["EPOCH_server_lootContainer",2];

View File

@ -12,7 +12,9 @@
Github: Github:
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/EPOCH_QuickTakeAll.sqf https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/EPOCH_QuickTakeAll.sqf
*/ */
private ["_magazines","_items","_weapons"]; //[[[cog import generate_private_arrays ]]]
private ["_items","_magazines","_weapons"];
//[[[end]]]
closeDialog 0; closeDialog 0;
{ {

View File

@ -12,7 +12,9 @@
Github: Github:
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/EPOCH_QuickTakeLoad.sqf https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/EPOCH_QuickTakeLoad.sqf
*/ */
private ["_magazines"]; //[[[cog import generate_private_arrays ]]]
private ["_index","_magazines"];
//[[[end]]]
createDialog "QuickTake"; createDialog "QuickTake";
{ {
_magazines = magazinesAmmoCargo _x; _magazines = magazinesAmmoCargo _x;

View File

@ -12,7 +12,9 @@
Github: Github:
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/EPOCH_SpawnTraderMiltia.sqf https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/EPOCH_SpawnTraderMiltia.sqf
*/ */
private ["_startPos","_rndHouse","_unit","_trgt","_nrBuilds","_grp"]; //[[[cog import generate_private_arrays ]]]
private ["_allpositions","_grp","_nrBuilds","_rndHouse","_startPos","_trgt","_unit"];
//[[[end]]]
_trgt = player; _trgt = player;
_nrBuilds = nearestObjects [getPosATL _trgt,["house"],50]; _nrBuilds = nearestObjects [getPosATL _trgt,["house"],50];

View File

@ -12,7 +12,9 @@
Github: Github:
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/EPOCH_UnisexCheck.sqf https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/EPOCH_UnisexCheck.sqf
*/ */
private ["_femaleVariant","_vest","_item","_config","_woman","_maleVariant","_vestItems","_mags"]; //[[[cog import generate_private_arrays ]]]
private ["_config","_femaleVariant","_mags","_maleVariant","_vest","_vestItems","_woman"];
//[[[end]]]
params ["_unit","_container","_item"]; params ["_unit","_container","_item"];
// check for access of a locked container // check for access of a locked container

View File

@ -12,7 +12,9 @@
Github: Github:
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/EPOCH_callSapperMigration.sqf https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/EPOCH_callSapperMigration.sqf
*/ */
private ["_trgt","_sapperCount","_notReady","_start","_dirTo","_finish","_nrPlyrs","_abortAfter","_pos","_axeSapper","_disableAI"]; //[[[cog import generate_private_arrays ]]]
private ["_abortAfter","_axeSapper","_dirTo","_disableAI","_finish","_notReady","_nrPlyrs","_pos","_sapperCount","_start","_trgt"];
//[[[end]]]
_disableAI = { _disableAI = {
{_this disableAI _x}forEach["TARGET","AUTOTARGET","FSM"]; {_this disableAI _x}forEach["TARGET","AUTOTARGET","FSM"];

View File

@ -12,7 +12,9 @@
Github: Github:
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/EPOCH_chopWood.sqf https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/EPOCH_chopWood.sqf
*/ */
private ["_currentPos","_object","_type","_start","_end","_p3dName","_finalConfig","_str","_sel_object","_findStart","_objects","_config"]; //[[[cog import generate_private_arrays ]]]
private ["_config","_currentPos","_getWorldTypes","_object","_objects","_sel_object","_str","_type","_worldTypes"];
//[[[end]]]
_currentPos = player modelToWorld[0, 5, 0]; _currentPos = player modelToWorld[0, 5, 0];
if !(surfaceIsWater _currentPos) then { if !(surfaceIsWater _currentPos) then {

View File

@ -12,7 +12,9 @@
Github: Github:
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/EPOCH_debugMonitor.sqf https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/EPOCH_debugMonitor.sqf
*/ */
private ["_customVars","_hours"]; //[[[cog import generate_private_arrays ]]]
private ["_customVars","_hours","_val"];
//[[[end]]]
_hours = floor(servertime/60/60); _hours = floor(servertime/60/60);
_customVars = ""; _customVars = "";

View File

@ -12,7 +12,9 @@
Github: Github:
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/EPOCH_fish.sqf https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/EPOCH_fish.sqf
*/ */
private ["_bobber","_diffTime","_fishes","_fish","_randomChanceMax","_randomChance","_castTime","_nearByBobbers","_nearByBobbersLocal","_objects","_currentPos"]; //[[[cog import generate_private_arrays ]]]
private ["_bobber","_castTime","_currentPos","_diffTime","_fish","_fishes","_objects","_randomChance","_randomChanceMax"];
//[[[end]]]
_currentPos = player modelToWorld[0, 5 + (random 5), 0]; _currentPos = player modelToWorld[0, 5 + (random 5), 0];
if (surfaceIsWater _currentPos) then { if (surfaceIsWater _currentPos) then {

View File

@ -12,7 +12,9 @@
Github: Github:
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/EPOCH_interact.sqf https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/EPOCH_interact.sqf
*/ */
private ["_vehSlot","_storSlot"]; //[[[cog import generate_private_arrays ]]]
private ["_storSlot","_vehSlot"];
//[[[end]]]
0 call EPOCH_refeshUI; 0 call EPOCH_refeshUI;
if (!isNull _this) then { if (!isNull _this) then {
_vehSlot = _this getVariable ["VEHICLE_SLOT", "ABORT"]; _vehSlot = _this getVariable ["VEHICLE_SLOT", "ABORT"];

View File

@ -12,8 +12,9 @@
Github: Github:
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/EPOCH_mineRocks.sqf https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/EPOCH_mineRocks.sqf
*/ */
private ["_currentPos","_found","_foundIndex","_start","_end","_p3dName","_finalConfig","_str","_findStart","_object","_objects","_config"]; //[[[cog import generate_private_arrays ]]]
private ["_config","_currentPos","_found","_foundIndex","_getWorldTypes","_object","_objects","_str","_worldTypes"];
//[[[end]]]
if ((diag_tickTime - EPOCH_lastMineRocks) >= 2) then { if ((diag_tickTime - EPOCH_lastMineRocks) >= 2) then {
EPOCH_lastMineRocks = diag_tickTime; EPOCH_lastMineRocks = diag_tickTime;
if (random 1 < 0.16) then { if (random 1 < 0.16) then {

View File

@ -12,7 +12,9 @@
Github: Github:
https://github.com/EpochModTeam/Epoch/tree/master/Sources/epoch_code/compile/EPOCH_niteLight.sqf https://github.com/EpochModTeam/Epoch/tree/master/Sources/epoch_code/compile/EPOCH_niteLight.sqf
*/ */
private ["_pos"]; //[[[cog import generate_private_arrays ]]]
private ["_config","_nlSettings","_pos"];
//[[[end]]]
if (!isNull EP_light) then { if (!isNull EP_light) then {
deleteVehicle EP_light; deleteVehicle EP_light;
}; };

View File

@ -21,7 +21,7 @@
Returns: Returns:
*/ */
_paramres = params [["_mName",""]]; params [["_mName",""]];
diag_log format["Epoch: ADMIN: Removing marker %1.", _mName]; diag_log format["Epoch: ADMIN: Removing marker %1.", _mName];
if(_mName == "")exitWith{}; if(_mName == "")exitWith{};

View File

@ -12,7 +12,9 @@
Github: Github:
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/EPOCH_supportCopter.sqf https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/EPOCH_supportCopter.sqf
*/ */
private ["_aiskill","_unit","_player","_grp","_arrUnits","_arrSkills","_units"]; //[[[cog import generate_private_arrays ]]]
private ["_aiskill","_arrSkills","_arrUnits","_arrVals","_grp","_minAISkill","_player","_unit","_unitCount","_units"];
//[[[end]]]
params ["_pos","_copter"]; params ["_pos","_copter"];
_player = player; //need to check on change owner _player = player; //need to check on change owner

View File

@ -12,7 +12,9 @@
Github: Github:
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/EPOCH_unitSpawnDecrease.sqf https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/EPOCH_unitSpawnDecrease.sqf
*/ */
//[[[cog import generate_private_arrays ]]]
private ["_index"]; private ["_index"];
//[[[end]]]
params ["_spawnName", ["_decrease",1]]; params ["_spawnName", ["_decrease",1]];
_index = EPOCH_spawnIndex find _spawnName; _index = EPOCH_spawnIndex find _spawnName;
if (_index != -1) then{ if (_index != -1) then{

View File

@ -12,7 +12,9 @@
Github: Github:
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/EPOCH_unitSpawnIncrease.sqf https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/EPOCH_unitSpawnIncrease.sqf
*/ */
//[[[cog import generate_private_arrays ]]]
private ["_index"]; private ["_index"];
//[[[end]]]
params ["_spawnName", ["_increase",1]]; params ["_spawnName", ["_increase",1]];
_index = EPOCH_spawnIndex find _spawnName; _index = EPOCH_spawnIndex find _spawnName;
if (_index != -1) then{ if (_index != -1) then{

View File

@ -13,7 +13,9 @@
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/EPOCH_updateLoadingScreen.sqf https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/EPOCH_updateLoadingScreen.sqf
*/ */
disableSerialization; disableSerialization;
//[[[cog import generate_private_arrays ]]]
private ["_display"]; private ["_display"];
//[[[end]]]
_display = uiNameSpace getVariable ["EPOCH_loadingScreen",displayNull]; _display = uiNameSpace getVariable ["EPOCH_loadingScreen",displayNull];
if (!isNull _display) then { if (!isNull _display) then {
(_display displayCtrl 50) ctrlSetText _this; (_display displayCtrl 50) ctrlSetText _this;

View File

@ -1,5 +1,7 @@
// BIS function // BIS function
private ["_v","_d","_x","_y"]; //[[[cog import generate_private_arrays ]]]
private ["_d","_v","_x","_y"];
//[[[end]]]
_v = +(_this select 0); _v = +(_this select 0);
_d = _this select 1; _d = _this select 1;

View File

@ -23,8 +23,10 @@
Returns: Returns:
BOOL BOOL
*/ */
private ["_cat","_file","_fnc_path","_var_name","_file_raw","_itemCompile","_tag","_file_tag","_config","_returnConfig","_version"]; //[[[cog import generate_private_arrays ]]]
params [["_configName","",[""]]]; private ["_cat","_config","_file","_file_raw","_file_tag","_fnc_path","_itemCompile","_return","_returnConfig","_tag","_var_name","_version"];
//[[[end]]]
params [["_configName","",[""] ] ];
_returnConfig = { _returnConfig = {
private["_return", "_config"]; private["_return", "_config"];

View File

@ -25,7 +25,9 @@ _this select 1: SCALAR - state
Returns: Returns:
NOTHING NOTHING
*/ */
private["_recipeItem", "_recipeQty", "_hasRecipeItems", "_msg", "_recipeCount", "_currentCount", "_numRemoved", "_items", "_mags", "_recipe", "_craftItem", "_craftQty", "_config", "_objClass"]; //[[[cog import generate_private_arrays ]]]
private ["_config","_craftItem","_craftQty","_currentCount","_hasRecipeItems","_items","_mags","_msg","_numRemoved","_objClass","_recipe","_recipeCount","_recipeItem","_recipeQty"];
//[[[end]]]
params[ params[
["_object", objNull], ["_object", objNull],
["_anim", ""], ["_anim", ""],

View File

@ -21,7 +21,9 @@
Returns: Returns:
ARRAY of BOOLs ARRAY of BOOLs
*/ */
private ["_out","_objType","_config"]; //[[[cog import generate_private_arrays ]]]
private ["_config","_objType","_out"];
//[[[end]]]
_out = [false, false, false]; _out = [false, false, false];
if !(isNil "EPOCH_simulSwap_Lock") exitWith{ _out }; if !(isNil "EPOCH_simulSwap_Lock") exitWith{ _out };

View File

@ -21,7 +21,9 @@
Returns: Returns:
NOTHING NOTHING
*/ */
private ["_cfgBaseBuilding","_posObj","_savedBuildPos","_previousBuildPos","_saveCheck","_endTime","_worldspace","_class","_newObj","_startTime","_objClass"]; //[[[cog import generate_private_arrays ]]]
private ["_cfgBaseBuilding","_class","_endTime","_newObj","_objClass","_posObj","_previousBuildPos","_saveCheck","_savedBuildPos","_startTime","_worldspace"];
//[[[end]]]
if (!isNull _this) then { if (!isNull _this) then {

View File

@ -21,7 +21,9 @@
Returns: Returns:
BOOL BOOL
*/ */
private ["_targeter","_stability"]; //[[[cog import generate_private_arrays ]]]
private ["_stability","_targeter"];
//[[[end]]]
if !(isNil "EPOCH_simulSwap_Lock") exitWith{ false }; if !(isNil "EPOCH_simulSwap_Lock") exitWith{ false };
if !(isNull EPOCH_Target) exitWith{ false }; if !(isNull EPOCH_Target) exitWith{ false };

View File

@ -21,7 +21,9 @@
Returns: Returns:
BOOL BOOL
*/ */
private ["_buildingJammerRange","_jammed","_config","_jammer"]; //[[[cog import generate_private_arrays ]]]
private ["_buildingJammerRange","_config","_jammed","_jammer"];
//[[[end]]]
_config = "CfgEpochClient" call EPOCH_returnConfig; _config = "CfgEpochClient" call EPOCH_returnConfig;
_buildingJammerRange = getNumber(_config >> "buildingJammerRange"); _buildingJammerRange = getNumber(_config >> "buildingJammerRange");

View File

@ -21,7 +21,10 @@
Returns: Returns:
NOTHING NOTHING
*/ */
private ["_buildingJammerRange","_maintainCount","_rnd","_config"]; //[[[cog import generate_private_arrays ]]]
private ["_buildingJammerRange","_config","_maintainCount","_rnd"];
//[[[end]]]
if !(isNil "EPOCH_maintainLockout") exitWith {["Already Maintaining a base.", 5] call Epoch_message;}; if !(isNil "EPOCH_maintainLockout") exitWith {["Already Maintaining a base.", 5] call Epoch_message;};
if (EPOCH_playerCrypto > 0) then { if (EPOCH_playerCrypto > 0) then {
_config = "CfgEpochClient" call EPOCH_returnConfig; _config = "CfgEpochClient" call EPOCH_returnConfig;

View File

@ -22,7 +22,9 @@
Returns: Returns:
NOTHING NOTHING
*/ */
private ["_buildingJammerRange","_buildingCountLimit","_nearestJammer","_ownedJammerExists","_buildingAllowed","_missingCount","_canUpgrade","_missingParts","_part","_req","_partCheck","_canUpgradePartCount","_removedPartCount","_return","_upgrade","_upgradeParts","_config","_upgrades","_targeter","_stability","_jammer"]; //[[[cog import generate_private_arrays ]]]
private ["_buildingAllowed","_buildingCountLimit","_buildingJammerRange","_canUpgrade","_canUpgradePartCount","_config","_jammer","_missingCount","_missingParts","_nearestJammer","_ownedJammerExists","_part","_partCheck","_removedPartCount","_req","_return","_stability","_targeter","_upgrade","_upgradeParts","_upgrades"];
//[[[end]]]
params [ params [
["_object",objNull,[objNull]], ["_object",objNull,[objNull]],
["_index",-1,[0]] ["_index",-1,[0]]

View File

@ -21,11 +21,13 @@
Returns: Returns:
NOTHING NOTHING
*/ */
private ["_randomAIClass","_animalPos","_tryAnimalPos","_id","_animal","_animalAiTables","_playerPos"]; //[[[cog import generate_private_arrays ]]]
private ["_animal","_animalAiTables","_animalPos","_id","_playerPos","_randomAIClass","_tryAnimalPos"];
//[[[end]]]
if (count(player nearEntities["Animal_Base_F", 200]) >= 1) exitWith{}; if (count(player nearEntities["Animal_Base_F", 200]) >= 1) exitWith{};
_animalAiTables = ["CfgEpochClient", "animalAiTables", ["Sheep_random_EPOCH", "Sheep_random_EPOCH", "Goat_random_EPOCH", "Goat_random_EPOCH", "Goat_random_EPOCH", ["Cock_random_EPOCH", "Hen_random_EPOCH"], ["Cock_random_EPOCH", "Hen_random_EPOCH"], "Rabbit_EPOCH", "Rabbit_EPOCH", "Rabbit_EPOCH", "Snake_random_EPOCH", "Snake2_random_EPOCH", ["Fin_random_EPOCH", "Alsatian_Random_EPOCH"]]] call EPOCH_fnc_returnConfigEntryV2; _animalAiTables = ["CfgEpochClient", "animalAiTables", ["Sheep_random_EPOCH", "Sheep_random_EPOCH", "Goat_random_EPOCH", "Goat_random_EPOCH", "Goat_random_EPOCH", ["Cock_random_EPOCH", "Hen_random_EPOCH"], ["Cock_random_EPOCH", "Hen_random_EPOCH"], "Rabbit_EPOCH", "Rabbit_EPOCH", "Rabbit_EPOCH", "Snake_random_EPOCH", "Snake2_random_EPOCH", ["Fin_random_EPOCH", "Alsatian_Random_EPOCH"] ] ] call EPOCH_fnc_returnConfigEntryV2;
_randomAIClass = selectRandom _animalAiTables; _randomAIClass = selectRandom _animalAiTables;
_animalPos = nil; _animalPos = nil;

View File

@ -13,7 +13,9 @@
Github: Github:
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/EPOCH_getOutMan_EH.sqf https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/EPOCH_getOutMan_EH.sqf
*/ */
private ["_start","_end","_dirTo"]; //[[[cog import generate_private_arrays ]]]
private ["_dirTo","_end","_start"];
//[[[end]]]
params ["_unit","_position","_vehicle"]; params ["_unit","_position","_vehicle"];
if (_unit == player) then { if (_unit == player) then {
_start = getPosWorld _vehicle; _start = getPosWorld _vehicle;

View File

@ -23,7 +23,9 @@
Returns: Returns:
MIXED MIXED
*/ */
private ["_ratio","_b","_r","_g"]; //[[[cog import generate_private_arrays ]]]
private ["_b","_color","_g","_r","_ratio","_return"];
//[[[end]]]
params ["_minimum", "_maximum", "_value", "_alpha"]; params ["_minimum", "_maximum", "_value", "_alpha"];
_ratio = 2 * (_value-_minimum) / (_maximum - _minimum); _ratio = 2 * (_value-_minimum) / (_maximum - _minimum);
_b = 0 max (255*(1 - _ratio)); _b = 0 max (255*(1 - _ratio));

View File

@ -23,7 +23,9 @@
Returns: Returns:
MIXED MIXED
*/ */
private["_config", "_varData","_missionconfig","_finalconfig"]; //[[[cog import generate_private_arrays ]]]
private ["_config","_finalconfig","_missionconfig","_sapperRndChance","_varData"];
//[[[end]]]
params ["_configClass","_variableName","_defaultData"]; params ["_configClass","_variableName","_defaultData"];
_varData = _defaultData; _varData = _defaultData;
_config = (configfile >> _configClass); _config = (configfile >> _configClass);

View File

@ -21,7 +21,9 @@
Returns: Returns:
NOTHING NOTHING
*/ */
private ["_warming","_wet","_increaseWet","_isNearFire","_playerPosATL","_maxTemp","_airTemp","_waterTemp","_wetsuit"]; //[[[cog import generate_private_arrays ]]]
private ["_airTemp","_increaseWet","_isNearFire","_maxTemp","_playerPosATL","_warming","_waterTemp","_wet","_wetsuit"];
//[[[end]]]
if (isNil "EPOCH_CURRENT_WEATHER") then { if (isNil "EPOCH_CURRENT_WEATHER") then {
EPOCH_CURRENT_WEATHER = 75; EPOCH_CURRENT_WEATHER = 75;

View File

@ -22,7 +22,9 @@
Returns: Returns:
BOOL BOOL
*/ */
private ["_wHPos","_wH","_nearByHolder"]; //[[[cog import generate_private_arrays ]]]
private ["_nearByHolder","_wH","_wHPos"];
//[[[end]]]
params [["_item","",[""]],["_count",1]]; params [["_item","",[""]],["_count",1]];
for "_i" from 1 to _count do for "_i" from 1 to _count do
{ {

View File

@ -24,7 +24,9 @@
Returns: Returns:
(OBJECT or objNull) (OBJECT or objNull)
*/ */
private ["_ins"]; //[[[cog import generate_private_arrays ]]]
private ["_ins","_target"];
//[[[end]]]
params [["_distance",10], ["_lod1", "VIEW"], ["_lod2","FIRE"], ["_sort",true]]; params [["_distance",10], ["_lod1", "VIEW"], ["_lod2","FIRE"], ["_sort",true]];
if (EPOCH_playerIsSwimming) then { if (EPOCH_playerIsSwimming) then {
_ins = lineIntersectsSurfaces [AGLToASL positionCameraToWorld [0,0,0],AGLToASL positionCameraToWorld [0,0,_distance],player,objNull,_sort,1,_lod1,_lod2]; _ins = lineIntersectsSurfaces [AGLToASL positionCameraToWorld [0,0,0],AGLToASL positionCameraToWorld [0,0,_distance],player,objNull,_sort,1,_lod1,_lod2];

View File

@ -23,7 +23,9 @@
Returns: Returns:
SCALAR - (direction 0-360) SCALAR - (direction 0-360)
*/ */
private ["_ret"]; //[[[cog import generate_private_arrays ]]]
private ["_dirToF","_pos1","_pos2","_ret"];
//[[[end]]]
params ["_pos1","_pos2",["_spread",32]]; params ["_pos1","_pos2",["_spread",32]];
//if objects, not positions, were passed in, then get their positions //if objects, not positions, were passed in, then get their positions

View File

@ -25,7 +25,9 @@
Returns: Returns:
ARRAY ARRAY
*/ */
private ["_dir","_rnd","_pos","_dist","_minIn","_outPos"]; //[[[cog import generate_private_arrays ]]]
private ["_dir","_dist","_moveTo","_pos","_rnd"];
//[[[end]]]
params ["_maxIn","_minIn","_arcIn","_unitIn",["_offset",0]]; params ["_maxIn","_minIn","_arcIn","_unitIn",["_offset",0]];
_rnd = ((180 +_offset) - (_arcIn / 2)) + (random _arcIn); _rnd = ((180 +_offset) - (_arcIn / 2)) + (random _arcIn);

View File

@ -26,7 +26,9 @@
Returns: Returns:
ARRAY ARRAY
*/ */
private["_rDist","_rDir","_outPos","_nrRoad","_nrRoads"]; //[[[cog import generate_private_arrays ]]]
private ["_moveTo","_nrRoad","_nrRoads","_outPos","_rDir","_rDist"];
//[[[end]]]
params ["_inPos","_MinDist","_MaxDist",["_outHeight",0],["_onRoad",false]]; params ["_inPos","_MinDist","_MaxDist",["_outHeight",0],["_onRoad",false]];
_rDist = (random (_MaxDist - _MinDist))+_MinDist; _rDist = (random (_MaxDist - _MinDist))+_MinDist;

View File

@ -26,7 +26,9 @@
Returns: Returns:
ARRAY ARRAY
*/ */
private ["_dir","_dirTo","_rnd","_pos","_dist"]; //[[[cog import generate_private_arrays ]]]
private ["_dir","_dirTo","_dist","_moveTo","_pos","_rnd"];
//[[[end]]]
params ["_maxIn","_minIn","_arcIn","_unitIn","_offset","_trgtIn"]; params ["_maxIn","_minIn","_arcIn","_unitIn","_offset","_trgtIn"];
_dirTo = (position _unitIn) getDir (position _trgtIn); _dirTo = (position _unitIn) getDir (position _trgtIn);

View File

@ -21,7 +21,9 @@
Returns: Returns:
BOOL BOOL
*/ */
private ["_playerPosASL","_abovePlayerPosASL"]; //[[[cog import generate_private_arrays ]]]
private ["_abovePlayerPosASL","_inBuilding","_playerPosASL"];
//[[[end]]]
_playerPosASL = visiblePositionASL player; _playerPosASL = visiblePositionASL player;
_abovePlayerPosASL = [_playerPosASL select 0,_playerPosASL select 1,(_playerPosASL select 2) + 10]; _abovePlayerPosASL = [_playerPosASL select 0,_playerPosASL select 1,(_playerPosASL select 2) + 10];
//Return: //Return:

View File

@ -27,7 +27,9 @@
Returns: Returns:
NOTHING NOTHING
*/ */
private ["_heal","_highestDMG","_currentHIT","_currentDMG","_newDMG","_attachments","_cursorTarget","_repaired","_gesture","_nuisanceLevel"]; //[[[cog import generate_private_arrays ]]]
private ["_ammoConfig","_attachments","_currentDMG","_currentHIT","_cursorTarget","_gesture","_heal","_highestDMG","_newDMG","_nuisanceLevel","_repaired"];
//[[[end]]]
params ["_unit","_weapon","_muzzle","_mode","_ammo","_magazine","_projectile"]; params ["_unit","_weapon","_muzzle","_mode","_ammo","_magazine","_projectile"];
EPOCH_lastFiredLocation = getPosATL player; EPOCH_lastFiredLocation = getPosATL player;
switch true do { switch true do {

View File

@ -22,8 +22,14 @@
Returns: Returns:
STRING STRING
*/ */
//[[[cog import generate_private_arrays ]]]
private ["_arrFull","_arrOut","_strIn","_trimmedStr"];
//[[[end]]]
private["_arrFull","_arrOut"]; private["_arrFull","_arrOut"];
params ["_strIn",["_count",0,[0]]]; params [
"_strIn",
["_count",0,[0]]
];
_arrOut = []; _arrOut = [];
if !(_strIn isEqualType "STRING") then {_strIn = str(_strIn)}; if !(_strIn isEqualType "STRING") then {_strIn = str(_strIn)};
_arrFull = toArray _strIn; _arrFull = toArray _strIn;

View File

@ -1,6 +1,7 @@
// EPOCH_giveAttributes // EPOCH_giveAttributes
//[[[cog import generate_private_arrays ]]]
private ["_return","_addPlus","_editableVars","_selectedVar","_varName","_celcuis","_celcuisNew","_customVarIndex","_limits","_currentVal","_newValue"]; private ["_addPlus","_celcuis","_celcuisNew","_currentVal","_customVarIndex","_data","_limits","_max","_min","_newValue","_return","_varName"];
//[[[end]]]
params ["_selectedVarName",["_data",0],["_randomizeData",0]]; params ["_selectedVarName",["_data",0],["_randomizeData",0]];
_addPlus = if (_data > 0) then {"+"} else {""}; _addPlus = if (_data > 0) then {"+"} else {""};
_return = ""; _return = "";

View File

@ -21,7 +21,9 @@
Returns: Returns:
STRING STRING
*/ */
private ["_return"]; //[[[cog import generate_private_arrays ]]]
private ["_displayName","_return"];
//[[[end]]]
params ["_item"]; params ["_item"];
_return = ""; _return = "";
if ([_item, "CfgVehicles"] call EPOCH_fnc_isAny) then { if ([_item, "CfgVehicles"] call EPOCH_fnc_isAny) then {

View File

@ -13,7 +13,7 @@
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/functions/EPOCH_itemPicture.sqf https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/functions/EPOCH_itemPicture.sqf
Example: Example:
_picture = _part call EPOCH_itemPicture; _part call EPOCH_itemPicture;
Parameter(s): Parameter(s):
_this: STRING - Vehicle, Weapon, or Magazine config class name _this: STRING - Vehicle, Weapon, or Magazine config class name
@ -21,7 +21,9 @@
Returns: Returns:
STRING STRING
*/ */
//[[[cog import generate_private_arrays ]]]
private ["_return"]; private ["_return"];
//[[[end]]]
params ["_item"]; params ["_item"];
_return = ""; _return = "";
if ([_item, "CfgVehicles"] call EPOCH_fnc_isAny) then { if ([_item, "CfgVehicles"] call EPOCH_fnc_isAny) then {

View File

@ -21,7 +21,9 @@
Returns: Returns:
NOTHING NOTHING
*/ */
private ["_lastSave","_customVars","_time"]; //[[[cog import generate_private_arrays ]]]
private ["_customVars","_lastSave","_time"];
//[[[end]]]
_time = if (_this) then [{15},{80}]; _time = if (_this) then [{15},{80}];
_lastSave = missionNamespace getVariable["EPOCH_lastSave", diag_tickTime]; _lastSave = missionNamespace getVariable["EPOCH_lastSave", diag_tickTime];
if ((diag_tickTime - _lastSave) >= _time) then { if ((diag_tickTime - _lastSave) >= _time) then {

View File

@ -21,7 +21,9 @@
Returns: Returns:
CONFIG CONFIG
*/ */
private["_return", "_config"]; //[[[cog import generate_private_arrays ]]]
private ["_config","_return"];
//[[[end]]]
_return = (configfile >> _this); _return = (configfile >> _this);
_config = (getMissionConfig _this); _config = (getMissionConfig _this);
if (isClass _config) then{ if (isClass _config) then{

View File

@ -22,7 +22,9 @@
Returns: Returns:
BOOL or ARRAY of BOOLs BOOL or ARRAY of BOOLs
*/ */
private ["_str","_return","_config","_findStart","_start","_end","_p3dName","_finalConfig","_checkType"]; //[[[cog import generate_private_arrays ]]]
private ["_config","_end","_finalConfig","_findStart","_isTree","_p3dName","_return","_start"];
//[[[end]]]
params ["_str","_checkType"]; params ["_str","_checkType"];
_return = false; _return = false;
_config = 'CfgEpochClient' call EPOCH_returnConfig; _config = 'CfgEpochClient' call EPOCH_returnConfig;

View File

@ -22,7 +22,9 @@
Returns: Returns:
ARRAY of ARRAYS ARRAY of ARRAYS
*/ */
private ["_sorted","_closest","_testPos","_closestPos"]; //[[[cog import generate_private_arrays ]]]
private ["_closest","_closestPos","_pos","_sorted","_testPos","_unsorted"];
//[[[end]]]
params ["_unsorted","_pos"]; params ["_unsorted","_pos"];
if (_pos isEqualType objNull) then {_pos = getpos _pos;}; if (_pos isEqualType objNull) then {_pos = getpos _pos;};
_sorted = []; _sorted = [];

View File

@ -25,7 +25,9 @@
Returns: Returns:
BOOL BOOL
*/ */
private ["_handled","_currentPos"]; //[[[cog import generate_private_arrays ]]]
private ["_currentPos","_disableBuildMode","_handled"];
//[[[end]]]
params ["_display","_dikCode","_shift","_ctrl","_alt"]; params ["_display","_dikCode","_shift","_ctrl","_alt"];
_handled = false; _handled = false;

View File

@ -25,7 +25,9 @@
Returns: Returns:
BOOL BOOL
*/ */
private["_handled"]; //[[[cog import generate_private_arrays ]]]
private ["_handled"];
//[[[end]]]
params ["_display","_dikCode","_shift","_ctrl","_alt"]; params ["_display","_dikCode","_shift","_ctrl","_alt"];
_handled = false; _handled = false;
//Main actions //Main actions

View File

@ -22,7 +22,9 @@
Returns: Returns:
NOTHING NOTHING
*/ */
private ["_textArr","_num"]; //[[[cog import generate_private_arrays ]]]
private ["_num","_textArr"];
//[[[end]]]
params ["_control",["_maxLimit",0]]; params ["_control",["_maxLimit",0]];
_textArr = toArray(ctrlText(_control select 0)); _textArr = toArray(ctrlText(_control select 0));
{ {

View File

@ -21,7 +21,9 @@
Returns: Returns:
NUMBER NUMBER
*/ */
private ["_gearArmor","_gearConfig","_passThrough","_armor"]; //[[[cog import generate_private_arrays ]]]
private ["_armor","_gearArmor","_gearConfig","_passThrough","_vestArmor"];
//[[[end]]]
_gearConfig = (configfile >> "CfgWeapons" >> _this); _gearConfig = (configfile >> "CfgWeapons" >> _this);
_passThrough = getNumber(_gearConfig >> "ItemInfo" >> "passThrough"); _passThrough = getNumber(_gearConfig >> "ItemInfo" >> "passThrough");
_armor = getNumber(_gearConfig >> "ItemInfo" >> "armor"); _armor = getNumber(_gearConfig >> "ItemInfo" >> "armor");

View File

@ -23,7 +23,9 @@
Returns: Returns:
NOHTING NOHTING
*/ */
private ["_display","_color","_colorCompare","_bar","_bar_compare"]; //[[[cog import generate_private_arrays ]]]
private ["_bar","_bar_compare","_color","_colorCompare","_display"];
//[[[end]]]
disableSerialization; disableSerialization;
EPOCH_InteractedItem = []; EPOCH_InteractedItem = [];

View File

@ -12,7 +12,9 @@
Github: Github:
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/inventory/EPOCH_itemInteractClick.sqf https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/inventory/EPOCH_itemInteractClick.sqf
*/ */
private ["_data","_confData","_type","_interactOption","_buttonTXT","_magCount","_text","_pic","_display","_useBtn","_config","_craftingConfig"]; //[[[cog import generate_private_arrays ]]]
private ["_buttonTXT","_cfgItemInteractions","_config","_data","_display","_interactOption","_magCount","_type","_useBtn"];
//[[[end]]]
_this call EPOCH_selectInventoryItem; _this call EPOCH_selectInventoryItem;
_data = EPOCH_InteractedItem select 1; _data = EPOCH_InteractedItem select 1;

View File

@ -12,7 +12,9 @@
Github: Github:
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/inventory/EPOCH_itemInteractDblClick.sqf https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/inventory/EPOCH_itemInteractDblClick.sqf
*/ */
private ["_data","_confData","_text","_pic","_config","_craftingConfig"]; //[[[cog import generate_private_arrays ]]]
private ["_config","_data"];
//[[[end]]]
_this call EPOCH_selectInventoryItem; _this call EPOCH_selectInventoryItem;
_data = EPOCH_InteractedItem select 1; _data = EPOCH_InteractedItem select 1;
_config = 'CfgCrafting' call EPOCH_returnConfig; _config = 'CfgCrafting' call EPOCH_returnConfig;

View File

@ -21,7 +21,9 @@
Returns: Returns:
NOTHING NOTHING
*/ */
private ["_curArmor","_maxArmorUniform","_maxArmorVest","_maxArmorHeadgear"]; //[[[cog import generate_private_arrays ]]]
private ["_curArmor","_maxArmorHeadgear","_maxArmorUniform","_maxArmorVest"];
//[[[end]]]
_maxArmorUniform = 0; _maxArmorUniform = 0;
{ {
_curArmor = ([getNumber(_x >> 'passThrough'),getNumber(_x >> 'armor')] call EPOCH_factorArmor) + getNumber(_x >> 'armorStructural'); _curArmor = ([getNumber(_x >> 'passThrough'),getNumber(_x >> 'armor')] call EPOCH_factorArmor) + getNumber(_x >> 'armorStructural');

View File

@ -21,7 +21,9 @@
Returns: Returns:
NOTHING NOTHING
*/ */
private ["_selectedClass","_newArmor","_totalArmor","_totalArmorMax","_selectedItem","_bar","_uniformArmor","_finalArmor","_vestArmor","_headgearArmor","_totalArmorUI","_bar_compare"]; //[[[cog import generate_private_arrays ]]]
private ["_bar","_bar_compare","_finalArmor","_headgearArmor","_newArmor","_selectedClass","_selectedItem","_totalArmor","_totalArmorMax","_totalArmorUI","_uniformArmor","_vestArmor"];
//[[[end]]]
disableSerialization; disableSerialization;
if (!isNull findDisplay 602) then { if (!isNull findDisplay 602) then {

View File

@ -22,7 +22,9 @@
Returns: Returns:
NOTHING NOTHING
*/ */
private ["_arr","_exit","_data","_name","_text","_pic","_craftingArray","_craftingArrayNames"]; //[[[cog import generate_private_arrays ]]]
private ["_arr","_craftingArray","_craftingArrayNames","_data","_exit","_index","_name","_pic","_text"];
//[[[end]]]
params ["_control","_index"]; params ["_control","_index"];
EPOCH_InteractedItem = []; EPOCH_InteractedItem = [];

View File

@ -21,7 +21,9 @@
Returns: Returns:
NUMBER NUMBER
*/ */
private ["_uniformClass","_uniformArmor","_uniformConfig","_uniformArmorStructural"]; //[[[cog import generate_private_arrays ]]]
private ["_newArmor","_uniformArmor","_uniformArmorStructural","_uniformClass","_uniformConfig"];
//[[[end]]]
_uniformClass = _this; _uniformClass = _this;
if (isClass (configFile >> "CfgWeapons" >> _this)) then { if (isClass (configFile >> "CfgWeapons" >> _this)) then {

View File

@ -23,7 +23,9 @@
Returns: Returns:
BOOL BOOL
*/ */
private ["_class","_randomColor","_positions","_posName","_color","_colors","_randomIndex","_selectedLoot","_position","_pos","_m2WPos","_dir","_relDir","_item","_return","_possibleCount","_possibleLoots","_masterConfig","_config","_cfgBaseBuilding","_lootBias","_lootType","_loots","_lootLimit"]; //[[[cog import generate_private_arrays ]]]
private ["_cfgBaseBuilding","_class","_color","_colors","_config","_delete","_dir","_item","_lootBias","_lootLimit","_lootType","_loots","_masterConfig","_pos","_positions","_possibleCount","_possibleLoots","_randomIndex","_return","_selectedLoot"];
//[[[end]]]
params [["_building",objNull,[objNull]], ["_lootCheckBufferLimit",333], ["_lootObjectLimit",33]]; params [["_building",objNull,[objNull]], ["_lootCheckBufferLimit",333], ["_lootObjectLimit",33]];
_masterConfig = 'CfgBuildingLootPos' call EPOCH_returnConfig; _masterConfig = 'CfgBuildingLootPos' call EPOCH_returnConfig;

View File

@ -12,7 +12,9 @@
Github: Github:
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/missions/EPOCH_mission_cage_sapper.sqf https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/missions/EPOCH_mission_cage_sapper.sqf
*/ */
private ["_sounds","_sound","_cagePos","_cage","_cage2","_startCage"]; //[[[cog import generate_private_arrays ]]]
private ["_cage","_cage2","_cagePos","_sapper","_sound","_sounds","_startCage"];
//[[[end]]]
params ["_sapper","_trader"]; params ["_sapper","_trader"];
_cagePos = (getPosATL _trader) findEmptyPosition [1,50,"Land_Cages_F"]; _cagePos = (getPosATL _trader) findEmptyPosition [1,50,"Land_Cages_F"];

View File

@ -12,7 +12,9 @@
Github: Github:
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/missions/EPOCH_spawn_construct.sqf https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/missions/EPOCH_spawn_construct.sqf
*/ */
private["_unit"]; //[[[cog import generate_private_arrays ]]]
private ["_unit"];
//[[[end]]]
_unit = createAgent ["Construct_F", getPos player, [], 520, "FORM"]; _unit = createAgent ["Construct_F", getPos player, [], 520, "FORM"];
{_unit disableAI _x}forEach["TARGET","AUTOTARGET","FSM"]; {_unit disableAI _x}forEach["TARGET","AUTOTARGET","FSM"];
[_unit] execFSM "\x\addons\a3_epoch_code\System\Construct_Brain.fsm"; [_unit] execFSM "\x\addons\a3_epoch_code\System\Construct_Brain.fsm";

View File

@ -12,7 +12,9 @@
Github: Github:
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/missions/EPOCH_spawn_looters.sqf https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/missions/EPOCH_spawn_looters.sqf
*/ */
private["_unit"]; //[[[cog import generate_private_arrays ]]]
private ["_unit"];
//[[[end]]]
for "_i" from 0 to 4 step 1 do { for "_i" from 0 to 4 step 1 do {
_unit = createGroup RESISTANCE createUnit ["Epoch_Female_F", getPos player, [], 400, "CAN_COLLIDE"]; _unit = createGroup RESISTANCE createUnit ["Epoch_Female_F", getPos player, [], 400, "CAN_COLLIDE"];
_unit addBackPack "B_FieldPack_blk"; _unit addBackPack "B_FieldPack_blk";

View File

@ -12,7 +12,9 @@
Github: Github:
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/p2p_trading/EPOCH_TradeLoop.sqf https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/p2p_trading/EPOCH_TradeLoop.sqf
*/ */
private ["_item","_index","_removeCount","_sizeOut","_array","_cryptoOffer","_offerArray","_tradeOffer","_tradeCryptoOffer","_isAcceptedOther","_isAccepted"]; //[[[cog import generate_private_arrays ]]]
private ["_array","_cryptoOffer","_index","_isAccepted","_isAcceptedOther","_item","_offerArray","_removeCount","_sizeOut","_tradeCryptoOffer","_tradeOffer"];
//[[[end]]]
if (EPOCH_p2ptradeTarget distance player > 8) exitWith{ EPOCH_p2ptradeTarget = ObjNull; }; if (EPOCH_p2ptradeTarget distance player > 8) exitWith{ EPOCH_p2ptradeTarget = ObjNull; };
if (vehicle player != player || vehicle EPOCH_p2ptradeTarget != EPOCH_p2ptradeTarget) exitWith { EPOCH_p2ptradeTarget = ObjNull; }; if (vehicle player != player || vehicle EPOCH_p2ptradeTarget != EPOCH_p2ptradeTarget) exitWith { EPOCH_p2ptradeTarget = ObjNull; };

View File

@ -12,7 +12,9 @@
Github: Github:
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/p2p_trading/EPOCH_startTRADEREQ.sqf https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/p2p_trading/EPOCH_startTRADEREQ.sqf
*/ */
private["_distance"]; //[[[cog import generate_private_arrays ]]]
private ["_distance"];
//[[[end]]]
params ["_otherPlyr"]; params ["_otherPlyr"];
if (!isNull _otherPlyr) then { if (!isNull _otherPlyr) then {
_distance = player distance _otherPlyr; _distance = player distance _otherPlyr;

View File

@ -12,8 +12,9 @@
Github: Github:
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/p2p_trading/EPOCH_startTrade.sqf https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/p2p_trading/EPOCH_startTrade.sqf
*/ */
private["_index"]; //[[[cog import generate_private_arrays ]]]
private ["_index"];
//[[[end]]]
closeDialog 0; closeDialog 0;
if !(createdialog "Trade") exitWith {}; if !(createdialog "Trade") exitWith {};

View File

@ -21,8 +21,9 @@
Returns: Returns:
Mixed Mixed
*/ */
//[[[cog import generate_private_arrays ]]]
private ["_keyMap","_args","_input","_return"]; private ["_arr","_keyMap","_return","_s"];
//[[[end]]]
params [["_args",0],["_input",0]]; params [["_args",0],["_input",0]];
_keyMap = _keyMap =

View File

@ -22,7 +22,9 @@
Returns: Returns:
NOTHING NOTHING
*/ */
private ["_ply","_group","_playerObject"]; //[[[cog import generate_private_arrays ]]]
private ["_group","_playerObject","_ply"];
//[[[end]]]
_playerObject = _this select 0; _playerObject = _this select 0;
if !(alive player && alive _playerObject && !isPlayer _playerObject) then { if !(alive player && alive _playerObject && !isPlayer _playerObject) then {
_ply = player; _ply = player;

View File

@ -23,7 +23,9 @@
NOTHING NOTHING
*/ */
disableSerialization; disableSerialization;
private ["_item","_itemCount","_itemOfferCount","_wpn","_bpck","_config","_name","_picture","_type","_vehicles","_sizeOut","_offerArray","_itemName","_itemIcon","_qty","_items","_qtys","_aiItems","_filterArray","_filterMagazines","_filterItems","_filterVehicle","_slot","_isPlayerFilter"]; //[[[cog import generate_private_arrays ]]]
private ["_aiItems","_bpck","_config","_filterArray","_filterItems","_filterMagazines","_filterVehicle","_filterWeapons","_index","_isPlayerFilter","_item","_itemCount","_itemIcon","_itemName","_itemOfferCount","_items","_name","_offerArray","_picture","_qty","_qtys","_sizeOut","_slot","_type","_vehicles","_wpn"];
//[[[end]]]
params ["_control","_index"]; params ["_control","_index"];
if !(isNull EPOCH_lastNPCtradeTarget) then { if !(isNull EPOCH_lastNPCtradeTarget) then {

View File

@ -1,4 +1,6 @@
private ["_index","_action","_displayname","_position","_condition","_statement","_unlock","_doorIndex","_disabledDoor","_uniqueActions","_useractions","_class"]; //[[[cog import generate_private_arrays ]]]
private ["_action","_class","_condition","_disabledDoor","_displayname","_doorIndex","_index","_position","_statement","_uniqueActions","_unlock","_useractions"];
//[[[end]]]
lbClear 1550; lbClear 1550;
_class = configFile >> "CfgVehicles" >> (typeOf EPCH); _class = configFile >> "CfgVehicles" >> (typeOf EPCH);
if (isclass _class) then { if (isclass _class) then {

View File

@ -1,4 +1,6 @@
private ["_stockLimit","_allowAdd","_limit","_slot","_aiItems","_itemClasses","_itemQtys","_qtyIndex","_item","_sizeOut","_worth","_cryptoCount","_itemWorth","_itemTax","_tax","_index","_uiItem","_config"]; //[[[cog import generate_private_arrays ]]]
private ["_action","_class","_condition","_disabledDoor","_displayname","_doorIndex","_index","_position","_statement","_uniqueActions","_unlock","_useractions"];
//[[[end]]]
params ["_control","_selected"]; params ["_control","_selected"];
if !(isNull EPOCH_lastNPCtradeTarget) then { if !(isNull EPOCH_lastNPCtradeTarget) then {

View File

@ -1,4 +1,6 @@
private ["_allowAdd","_item","_sizeOut","_qty","_worth","_cryptoCount","_itemWorth","_itemTax","_tax","_itemName","_index","_itemIcon","_uiQty","_uiItem","_config"]; //[[[cog import generate_private_arrays ]]]
private ["_allowAdd","_array","_config","_cryptoCount","_index","_item","_itemIcon","_itemName","_itemTax","_itemWorth","_qty","_sizeOut","_tax","_uiItem","_uiQty","_worth"];
//[[[end]]]
params ["_control","_selected"]; params ["_control","_selected"];
_allowAdd = true; _allowAdd = true;

View File

@ -1,4 +1,6 @@
private ["_item","_worth","_cryptoCount","_itemWorth","_itemTax","_tax","_sizeOut","_uiItem","_config"]; //[[[cog import generate_private_arrays ]]]
private ["_array","_config","_cryptoCount","_item","_itemTax","_itemWorth","_sizeOut","_tax","_uiItem","_worth"];
//[[[end]]]
params ["_control","_selected"]; params ["_control","_selected"];
_uiItem = (_selected select 0) lbData(_selected select 1); _uiItem = (_selected select 0) lbData(_selected select 1);

View File

@ -1,5 +1,7 @@
// TODO remove unused file // TODO remove unused file
private ["_target","_forceGear","_targets","_handled","_dialog","_vehicle"]; //[[[cog import generate_private_arrays ]]]
private ["_dialog","_forceGear","_handled","_target","_targets","_vehicle"];
//[[[end]]]
closeDialog 0; closeDialog 0;
_dialog = ""; _dialog = "";
_handled = false; _handled = false;

View File

@ -1,4 +1,6 @@
private["_ok"]; //[[[cog import generate_private_arrays ]]]
private ["_ok"];
//[[[end]]]
if (isNull _this) exitWith {}; if (isNull _this) exitWith {};
if !(alive _this) exitWith {}; if !(alive _this) exitWith {};
_ok = createdialog "MissionSelect"; _ok = createdialog "MissionSelect";

View File

@ -1,4 +1,6 @@
//[[[cog import generate_private_arrays ]]]
private ["_ok","_slot","_target"]; private ["_ok","_slot","_target"];
//[[[end]]]
_target = cursorTarget; _target = cursorTarget;
if (alive _target) then { if (alive _target) then {
_slot = _target getVariable ["AI_SLOT",-1]; _slot = _target getVariable ["AI_SLOT",-1];

View File

@ -21,7 +21,9 @@
Returns: Returns:
NOTHING NOTHING
*/ */
private ["_vehSlot","_vehicle","_vehicles","_item","_current_crypto","_itemWorth","_itemTax","_tax","_config","_sizeOut","_arrayIn","_arrayOut"]; //[[[cog import generate_private_arrays ]]]
private ["_addWeaponToHands","_arrayIn","_arrayOut","_config","_current_crypto","_errorMsg","_item","_itemTax","_itemWorth","_sizeOut","_tax","_type","_vehSlot","_vehicle","_vehicles"];
//[[[end]]]
if (!isNil "EPOCH_TRADE_COMPLETE") exitWith {}; if (!isNil "EPOCH_TRADE_COMPLETE") exitWith {};
if (!isNil "EPOCH_TRADE_STARTED") exitWith{}; if (!isNil "EPOCH_TRADE_STARTED") exitWith{};

View File

@ -1,4 +1,6 @@
private["_getCrypto"]; //[[[cog import generate_private_arrays ]]]
private ["_getCrypto"];
//[[[end]]]
if !(isNil "EPOCH_takeCryptoLock") exitWith {}; if !(isNil "EPOCH_takeCryptoLock") exitWith {};
EPOCH_takeCryptoLock = true; EPOCH_takeCryptoLock = true;
if (!isNull _this) then { if (!isNull _this) then {

View File

@ -1,5 +1,7 @@
disableSerialization; disableSerialization;
private ["_item","_xIndex","_filterArray","_magazines","_items","_sizeOut","_array"]; //[[[cog import generate_private_arrays ]]]
private ["_array","_filterArray","_item","_items","_magazines","_sizeOut","_weapons","_xIndex"];
//[[[end]]]
params ["_control","_index"]; params ["_control","_index"];
// [weapons, mags, items] // [weapons, mags, items]

View File

@ -12,6 +12,9 @@
Github: Github:
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/vehicles/EPOCH_client_gearVehicle.sqf https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/vehicles/EPOCH_client_gearVehicle.sqf
*/ */
//[[[cog import generate_private_arrays ]]]
private ["_vehicles"];
//[[[end]]]
closeDialog 0; closeDialog 0;
if (!isNull cursorTarget) then { if (!isNull cursorTarget) then {
_vehicles = player nearEntities[["LandVehicle", "Ship", "Air", "Tank"], 30]; _vehicles = player nearEntities[["LandVehicle", "Ship", "Air", "Tank"], 30];

View File

@ -12,6 +12,9 @@
Github: Github:
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/vehicles/EPOCH_client_repairVehicle.sqf https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/vehicles/EPOCH_client_repairVehicle.sqf
*/ */
//[[[cog import generate_private_arrays ]]]
private ["_currentDMG"];
//[[[end]]]
params ["_vehicle","_value"]; params ["_vehicle","_value"];
if (local _vehicle) then { if (local _vehicle) then {
_currentDMG = _vehicle getHitIndex (_value select 0); _currentDMG = _vehicle getHitIndex (_value select 0);

View File

@ -13,7 +13,9 @@
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/gui/scripts/EPOCH_InterruptConfigActions.sqf https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/gui/scripts/EPOCH_InterruptConfigActions.sqf
*/ */
disableSerialization; disableSerialization;
private ["_pos","_mainGrp","_display","_data","_value","_mainGrpPos","_group","_width"]; //[[[cog import generate_private_arrays ]]]
private ["_data","_display","_group","_mainGrp","_mainGrpPos","_pos","_value","_width"];
//[[[end]]]
params ["_ctrl","_idx"]; params ["_ctrl","_idx"];
_mainGrp = Epoch_interrupt_controls select 1; _mainGrp = Epoch_interrupt_controls select 1;

View File

@ -17,7 +17,9 @@
Usage: Usage:
_ctrl ctrlSetEventHandler ["MouseMoving", "[_this,control3D] call Epoch_3DctrlPitchYaw"]; _ctrl ctrlSetEventHandler ["MouseMoving", "[_this,control3D] call Epoch_3DctrlPitchYaw"];
*/ */
private ["_inX","_inY","_dirY","_upY","_dirX","_upX"]; //[[[cog import generate_private_arrays ]]]
private ["_dirX","_dirY","_inX","_inY","_upX","_upY"];
//[[[end]]]
params ["_arr","_ctrl3D"]; params ["_arr","_ctrl3D"];
disableSerialization; disableSerialization;

View File

@ -17,7 +17,9 @@
Usage: Usage:
_ctrl ctrlSetEventHandler ["MouseMoving", "[_this,control3D] call Epoch_3DctrlPitchYaw"]; _ctrl ctrlSetEventHandler ["MouseMoving", "[_this,control3D] call Epoch_3DctrlPitchYaw"];
*/ */
private["_inX","_inY"]; //[[[cog import generate_private_arrays ]]]
private ["_inX","_inY"];
//[[[end]]]
params ["_arr","_ctrl3D"]; params ["_arr","_ctrl3D"];
disableSerialization; disableSerialization;

View File

@ -12,7 +12,9 @@
Github: Github:
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/gui/scripts/Epoch_genderSelection.sqf https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/gui/scripts/Epoch_genderSelection.sqf
*/ */
private ["_min","_max","_r","_r2","_r3"]; //[[[cog import generate_private_arrays ]]]
private ["_max","_min","_r","_r2","_r3"];
//[[[end]]]
_min = safezoneX + 0.4 * safezoneW; _min = safezoneX + 0.4 * safezoneW;
_max = safezoneX + 0.6 * safezoneW; _max = safezoneX + 0.6 * safezoneW;
_r = linearConversion [_min, _max, _this, 0.2, -1, true]; _r = linearConversion [_min, _max, _this, 0.2, -1, true];

View File

@ -13,7 +13,9 @@
Github: Github:
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/gui/scripts/Epoch_getIDC.sqf https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/gui/scripts/Epoch_getIDC.sqf
*/ */
private ["_in","_list","_out","_find"]; //[[[cog import generate_private_arrays ]]]
private ["_find","_in","_list","_out"];
//[[[end]]]
_in = [_this, 0, controlNull, [controlNull]] call BIS_fnc_param; _in = [_this, 0, controlNull, [controlNull]] call BIS_fnc_param;
_list = missionNamespace getVariable ["rmx_var_uniqueIDC",[]]; _list = missionNamespace getVariable ["rmx_var_uniqueIDC",[]];

View File

@ -12,7 +12,9 @@
Github: Github:
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/gui/scripts/Epoch_secureStorageHandler.sqf https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/gui/scripts/Epoch_secureStorageHandler.sqf
*/ */
//[[[cog import generate_private_arrays ]]]
private ["_out"]; private ["_out"];
//[[[end]]]
params [["_in",false]]; params [["_in",false]];
_out = switch (typeName _in) do { _out = switch (typeName _in) do {
case "STRING": case "STRING":

View File

@ -15,7 +15,9 @@
Example: Example:
_this call Epoch_config_keymap; _this call Epoch_config_keymap;
*/ */
private ["_idx","_display","_input"]; //[[[cog import generate_private_arrays ]]]
private ["_arr","_ctrl","_ctrlCurrent","_ctrlDefault","_ctrlEdit","_data","_default","_display","_idx","_input","_lb","_new","_old","_txt","_txtCurrent","_txtDefault","_var"];
//[[[end]]]
params ["_ctrl"]; params ["_ctrl"];
_display = if (typeName _ctrl isEqualTo "CONTROL") then {ctrlParent _ctrl} else {displayNull}; _display = if (typeName _ctrl isEqualTo "CONTROL") then {ctrlParent _ctrl} else {displayNull};

View File

@ -12,7 +12,9 @@
Github: Github:
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/gui/scripts/craftingv2/EPOCH_crafting_LB_defaults.sqf https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/gui/scripts/craftingv2/EPOCH_crafting_LB_defaults.sqf
*/ */
private ["_y","_idx","_recipeCTRL","_STdesc","_lbColor","_playerGear"]; //[[[cog import generate_private_arrays ]]]
private ["_STdesc","_idx","_lbColor","_playerGear","_recipeCTRL","_y"];
//[[[end]]]
_recipeCTRL = rmx_var_crafting_ctrl_main select 0; _recipeCTRL = rmx_var_crafting_ctrl_main select 0;
_STdesc = rmx_var_crafting_ctrl_main select 2; _STdesc = rmx_var_crafting_ctrl_main select 2;

View File

@ -12,7 +12,9 @@
Github: Github:
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/gui/scripts/craftingv2/EPOCH_crafting_LB_doubleClick.sqf https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/gui/scripts/craftingv2/EPOCH_crafting_LB_doubleClick.sqf
*/ */
//[[[cog import generate_private_arrays ]]]
private ["_idx","_txt"]; private ["_idx","_txt"];
//[[[end]]]
_idx = lbCurSel (rmx_var_crafting_ctrl_main select 1); _idx = lbCurSel (rmx_var_crafting_ctrl_main select 1);
_txt = (rmx_var_crafting_ctrl_main select 1) lbData _idx; _txt = (rmx_var_crafting_ctrl_main select 1) lbData _idx;

View File

@ -12,7 +12,9 @@
Github: Github:
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/gui/scripts/craftingv2/EPOCH_crafting_checkGear.sqf https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/gui/scripts/craftingv2/EPOCH_crafting_checkGear.sqf
*/ */
private ["_recipes","_nearObjects","_near","_out","_player","_recipe","_cP","_cN"]; //[[[cog import generate_private_arrays ]]]
private ["_cN","_cP","_near","_nearObjects","_out","_player","_recipe"];
//[[[end]]]
params ["_recipes"]; params ["_recipes"];
_nearObjects = nearestObjects [position player,["WeaponHolder","LandVehicle","Air"],10]; _nearObjects = nearestObjects [position player,["WeaponHolder","LandVehicle","Air"],10];

View File

@ -12,7 +12,9 @@
Github: Github:
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/gui/scripts/craftingv2/EPOCH_crafting_checkNearby.sqf https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/gui/scripts/craftingv2/EPOCH_crafting_checkNearby.sqf
*/ */
private ["_nearObjects","_result","_tmpResult","_config","_configWorldInteractions","_countOnFire","_countAlive"]; //[[[cog import generate_private_arrays ]]]
private ["_check","_config","_configWorldInteractions","_countAlive","_countOnFire","_find","_nearObjects","_result","_test1","_test2","_tmpResult"];
//[[[end]]]
params ["","","",["_arr",[2,""]],["_dist",0],["_cnt",1],["_inflamed",0],["_alive",0]]; params ["","","",["_arr",[2,""]],["_dist",0],["_cnt",1],["_inflamed",0],["_alive",0]];
_arr params ["_type","_check"]; _arr params ["_type","_check"];
_result = false; _result = false;

View File

@ -12,8 +12,10 @@
Github: Github:
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/gui/scripts/craftingv2/EPOCH_crafting_checkResources.sqf https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/gui/scripts/craftingv2/EPOCH_crafting_checkResources.sqf
*/ */
private ["_display","_ncGroup","_ncCFrame","_ncRFrame","_ncRText","_ncCLB","_out","_cfg","_selection","_nearbyArr"]; //[[[cog import generate_private_arrays ]]]
params [["_in",false,[true]]]; private ["_animSpeed","_cfg","_chck","_cnt","_color","_count","_countTxt","_ctrl","_display","_h","_img","_imgParsed","_ncCFrame","_ncCLB","_ncGroup","_ncRFrame","_ncRText","_nearbyArr","_out","_selection","_stText","_txt"];
//[[[end]]]
params [["_in",false,[true] ] ];
//Defines //Defines
_out = true; _out = true;

View File

@ -14,7 +14,9 @@
*/ */
disableSerialization; disableSerialization;
private "_display"; //[[[cog import generate_private_arrays ]]]
private ["_display"];
//[[[end]]]
_display = findDisplay 77700; _display = findDisplay 77700;

View File

@ -13,7 +13,9 @@
Github: Github:
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/gui/scripts/craftingv2/EPOCH_crafting_getConfig.sqf https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/gui/scripts/craftingv2/EPOCH_crafting_getConfig.sqf
*/ */
private ["_cName","_arr","_cDisplayName","_cPicture","_cDescShort","_cModel","_cPriority","_cCTime","_cRecipeArr","_cNearbyArr","_cUsedInArr","_cPreviewArr","_cPreviewScale","_cPreviewVector","_cDescFull","_cType","_arrIn","_type0","_type1","_type2","_type3","_out"]; //[[[cog import generate_private_arrays ]]]
private ["_arr","_arrIn","_cCTime","_cDescFull","_cDescShort","_cDisplayName","_cModel","_cName","_cNearbyArr","_cPicture","_cPreviewArr","_cPreviewScale","_cPreviewVector","_cPriority","_cRecipeArr","_cType","_cUsedInArr","_out","_type0","_type1","_type2","_type3"];
//[[[end]]]
_arrIn = param [0,[0]]; _arrIn = param [0,[0]];
if !(typeName (_arrIn select 0) isEqualTo "CONFIG") exitWith {[]}; if !(typeName (_arrIn select 0) isEqualTo "CONFIG") exitWith {[]};

View File

@ -15,7 +15,9 @@
if !(isNil "rmx_var_craftProgressInProgress") exitWith {false}; if !(isNil "rmx_var_craftProgressInProgress") exitWith {false};
rmx_var_craftProgressInProgress = true; rmx_var_craftProgressInProgress = true;
private ["_out","_txt","_time","_posY","_posX","_w","_h","_idc","_stColor","_layer","_display","_ctrl3","_ctrl","_ctrl2","_tick"]; //[[[cog import generate_private_arrays ]]]
private ["_ctrl","_ctrl2","_ctrl3","_display","_h","_idc","_layer","_out","_posX","_posY","_stColor","_tick","_time","_txt","_w"];
//[[[end]]]
disableSerialization; disableSerialization;
_txt = param [0,"No text"]; _txt = param [0,"No text"];

View File

@ -12,7 +12,9 @@
Github: Github:
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/gui/scripts/dynamenu/Epoch_dynamicMenuCleanup.sqf https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/gui/scripts/dynamenu/Epoch_dynamicMenuCleanup.sqf
*/ */
private ["_close","_cleanupVars"]; //[[[cog import generate_private_arrays ]]]
private ["_cfg","_cleanupVars","_close"];
//[[[end]]]
_close = param [0,false,[false]]; _close = param [0,false,[false]];
_cleanupVars = { _cleanupVars = {

View File

@ -16,17 +16,14 @@
[_configName, _index] call epoch_getHUDCtrl; [_configName, _index] call epoch_getHUDCtrl;
["myHudName", 2] call epoch_getHUDCtrl; ["myHudName", 2] call epoch_getHUDCtrl;
*/ */
//[[[cog import generate_private_arrays ]]]
private ["_gIdx"];
//[[[end]]]
if !(_this isEqualTypeArray ["",0]) exitWith {controlNull}; if !(_this isEqualTypeArray ["",0]) exitWith {controlNull};
params ["_gName","_cIdx"]; params ["_gName","_cIdx"];
_gIdx = -1; _gIdx = -1;
{ {
if ((_x select 0) isEqualTo _gName) exitWith {_gIdx = _forEachIndex}; if ((_x select 0) isEqualTo _gName) exitWith {_gIdx = _forEachIndex};
} forEach rmx_var_dynamicHUD_groupCTRL; } forEach rmx_var_dynamicHUD_groupCTRL;
if (_gIdx == -1) exitWith {controlNull}; if (_gIdx == -1) exitWith {controlNull};
(rmx_var_dynamicHUD_groupCTRL select _gIdx) select _cIdx (rmx_var_dynamicHUD_groupCTRL select _gIdx) select _cIdx

View File

@ -15,7 +15,9 @@
Usage: Usage:
No direct usage, simply create your control in configs following example in HPP mentioned in description No direct usage, simply create your control in configs following example in HPP mentioned in description
*/ */
//[[[cog import generate_private_arrays ]]]
private ["_ctrl","_curr","_mpos"]; private ["_ctrl","_curr","_mpos"];
//[[[end]]]
_ctrl = param [0]; _ctrl = param [0];
_curr = ctrlPosition _Ctrl; _curr = ctrlPosition _Ctrl;
_mpos = getmousePosition; _mpos = getmousePosition;

View File

@ -12,7 +12,9 @@
Github: Github:
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/gui/group/EPOCH_Group_BtnInvite.sqf https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/gui/group/EPOCH_Group_BtnInvite.sqf
*/ */
private ["_txt","_InvitePlayerCombo","_playerUID","_playerName","_upgradeSlots","_upgradePrice","_found","_currentMember","_currentMaxMember","_BtnInvite"]; //[[[cog import generate_private_arrays ]]]
private ["_BtnInvite","_InvitePlayerCombo","_currentMaxMember","_currentMember","_found","_playerName","_playerUID","_ret","_txt","_upgradePrice","_upgradeSlots"];
//[[[end]]]
disableSerialization; disableSerialization;
_BtnInvite = (findDisplay -1300) displayCtrl 30; _BtnInvite = (findDisplay -1300) displayCtrl 30;
_playerUID = getPlayerUID player; _playerUID = getPlayerUID player;

Some files were not shown because too many files have changed in this diff Show More