mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
private array cleanup p1
This commit is contained in:
parent
d264aa438a
commit
d285fe4ad0
File diff suppressed because one or more lines are too long
@ -12,6 +12,9 @@
|
||||
Github:
|
||||
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 {
|
||||
[_this,player,Epoch_personalToken] remoteExec ["EPOCH_server_lootContainer",2];
|
||||
|
||||
|
@ -12,7 +12,9 @@
|
||||
Github:
|
||||
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;
|
||||
{
|
||||
|
||||
|
@ -12,7 +12,9 @@
|
||||
Github:
|
||||
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";
|
||||
{
|
||||
_magazines = magazinesAmmoCargo _x;
|
||||
|
@ -12,7 +12,9 @@
|
||||
Github:
|
||||
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;
|
||||
_nrBuilds = nearestObjects [getPosATL _trgt,["house"],50];
|
||||
|
||||
|
@ -12,7 +12,9 @@
|
||||
Github:
|
||||
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"];
|
||||
|
||||
// check for access of a locked container
|
||||
|
@ -12,7 +12,9 @@
|
||||
Github:
|
||||
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 = {
|
||||
{_this disableAI _x}forEach["TARGET","AUTOTARGET","FSM"];
|
||||
|
@ -12,7 +12,9 @@
|
||||
Github:
|
||||
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];
|
||||
if !(surfaceIsWater _currentPos) then {
|
||||
|
@ -12,7 +12,9 @@
|
||||
Github:
|
||||
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);
|
||||
|
||||
_customVars = "";
|
||||
|
@ -12,7 +12,9 @@
|
||||
Github:
|
||||
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];
|
||||
if (surfaceIsWater _currentPos) then {
|
||||
|
@ -12,7 +12,9 @@
|
||||
Github:
|
||||
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;
|
||||
if (!isNull _this) then {
|
||||
_vehSlot = _this getVariable ["VEHICLE_SLOT", "ABORT"];
|
||||
|
@ -12,8 +12,9 @@
|
||||
Github:
|
||||
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 {
|
||||
EPOCH_lastMineRocks = diag_tickTime;
|
||||
if (random 1 < 0.16) then {
|
||||
|
@ -12,7 +12,9 @@
|
||||
Github:
|
||||
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 {
|
||||
deleteVehicle EP_light;
|
||||
};
|
||||
|
@ -21,7 +21,7 @@
|
||||
Returns:
|
||||
|
||||
*/
|
||||
_paramres = params [["_mName",""]];
|
||||
params [["_mName",""]];
|
||||
diag_log format["Epoch: ADMIN: Removing marker %1.", _mName];
|
||||
|
||||
if(_mName == "")exitWith{};
|
||||
|
@ -12,7 +12,9 @@
|
||||
Github:
|
||||
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"];
|
||||
|
||||
_player = player; //need to check on change owner
|
||||
@ -58,7 +60,7 @@ for "_i" from 0 to (_unitCount - 1) do {
|
||||
if (_aiskill<_minAISkill) then {_aiskill=_minAISkill};
|
||||
_unit setSkill [_arrSkills select _i,_arrVals select _i];
|
||||
};
|
||||
|
||||
|
||||
if (_i == 0) then {
|
||||
_grp selectLeader _unit;
|
||||
[_pos,_copter,_player,_unit] execFSM "\x\addons\a3_epoch_code\System\Group_Leader_Brain.fsm";
|
||||
|
@ -12,7 +12,9 @@
|
||||
Github:
|
||||
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/EPOCH_unitSpawnDecrease.sqf
|
||||
*/
|
||||
//[[[cog import generate_private_arrays ]]]
|
||||
private ["_index"];
|
||||
//[[[end]]]
|
||||
params ["_spawnName", ["_decrease",1]];
|
||||
_index = EPOCH_spawnIndex find _spawnName;
|
||||
if (_index != -1) then{
|
||||
|
@ -12,7 +12,9 @@
|
||||
Github:
|
||||
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/EPOCH_unitSpawnIncrease.sqf
|
||||
*/
|
||||
//[[[cog import generate_private_arrays ]]]
|
||||
private ["_index"];
|
||||
//[[[end]]]
|
||||
params ["_spawnName", ["_increase",1]];
|
||||
_index = EPOCH_spawnIndex find _spawnName;
|
||||
if (_index != -1) then{
|
||||
|
@ -13,7 +13,9 @@
|
||||
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/EPOCH_updateLoadingScreen.sqf
|
||||
*/
|
||||
disableSerialization;
|
||||
//[[[cog import generate_private_arrays ]]]
|
||||
private ["_display"];
|
||||
//[[[end]]]
|
||||
_display = uiNameSpace getVariable ["EPOCH_loadingScreen",displayNull];
|
||||
if (!isNull _display) then {
|
||||
(_display displayCtrl 50) ctrlSetText _this;
|
||||
|
@ -1,5 +1,7 @@
|
||||
// BIS function
|
||||
private ["_v","_d","_x","_y"];
|
||||
//[[[cog import generate_private_arrays ]]]
|
||||
private ["_d","_v","_x","_y"];
|
||||
//[[[end]]]
|
||||
_v = +(_this select 0);
|
||||
_d = _this select 1;
|
||||
|
||||
|
@ -23,8 +23,10 @@
|
||||
Returns:
|
||||
BOOL
|
||||
*/
|
||||
private ["_cat","_file","_fnc_path","_var_name","_file_raw","_itemCompile","_tag","_file_tag","_config","_returnConfig","_version"];
|
||||
params [["_configName","",[""]]];
|
||||
//[[[cog import generate_private_arrays ]]]
|
||||
private ["_cat","_config","_file","_file_raw","_file_tag","_fnc_path","_itemCompile","_return","_returnConfig","_tag","_var_name","_version"];
|
||||
//[[[end]]]
|
||||
params [["_configName","",[""] ] ];
|
||||
|
||||
_returnConfig = {
|
||||
private["_return", "_config"];
|
||||
|
@ -25,7 +25,9 @@ _this select 1: SCALAR - state
|
||||
Returns:
|
||||
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[
|
||||
["_object", objNull],
|
||||
["_anim", ""],
|
||||
|
@ -21,7 +21,9 @@
|
||||
Returns:
|
||||
ARRAY of BOOLs
|
||||
*/
|
||||
private ["_out","_objType","_config"];
|
||||
//[[[cog import generate_private_arrays ]]]
|
||||
private ["_config","_objType","_out"];
|
||||
//[[[end]]]
|
||||
_out = [false, false, false];
|
||||
|
||||
if !(isNil "EPOCH_simulSwap_Lock") exitWith{ _out };
|
||||
|
@ -21,7 +21,9 @@
|
||||
Returns:
|
||||
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 {
|
||||
|
||||
|
@ -21,7 +21,9 @@
|
||||
Returns:
|
||||
BOOL
|
||||
*/
|
||||
private ["_targeter","_stability"];
|
||||
//[[[cog import generate_private_arrays ]]]
|
||||
private ["_stability","_targeter"];
|
||||
//[[[end]]]
|
||||
|
||||
if !(isNil "EPOCH_simulSwap_Lock") exitWith{ false };
|
||||
if !(isNull EPOCH_Target) exitWith{ false };
|
||||
|
@ -21,7 +21,9 @@
|
||||
Returns:
|
||||
BOOL
|
||||
*/
|
||||
private ["_buildingJammerRange","_jammed","_config","_jammer"];
|
||||
//[[[cog import generate_private_arrays ]]]
|
||||
private ["_buildingJammerRange","_config","_jammed","_jammer"];
|
||||
//[[[end]]]
|
||||
|
||||
_config = "CfgEpochClient" call EPOCH_returnConfig;
|
||||
_buildingJammerRange = getNumber(_config >> "buildingJammerRange");
|
||||
|
@ -21,7 +21,10 @@
|
||||
Returns:
|
||||
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 (EPOCH_playerCrypto > 0) then {
|
||||
_config = "CfgEpochClient" call EPOCH_returnConfig;
|
||||
|
@ -22,7 +22,9 @@
|
||||
Returns:
|
||||
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 [
|
||||
["_object",objNull,[objNull]],
|
||||
["_index",-1,[0]]
|
||||
|
@ -21,11 +21,13 @@
|
||||
Returns:
|
||||
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{};
|
||||
|
||||
_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;
|
||||
_animalPos = nil;
|
||||
|
@ -13,7 +13,9 @@
|
||||
Github:
|
||||
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"];
|
||||
if (_unit == player) then {
|
||||
_start = getPosWorld _vehicle;
|
||||
|
@ -23,7 +23,9 @@
|
||||
Returns:
|
||||
MIXED
|
||||
*/
|
||||
private ["_ratio","_b","_r","_g"];
|
||||
//[[[cog import generate_private_arrays ]]]
|
||||
private ["_b","_color","_g","_r","_ratio","_return"];
|
||||
//[[[end]]]
|
||||
params ["_minimum", "_maximum", "_value", "_alpha"];
|
||||
_ratio = 2 * (_value-_minimum) / (_maximum - _minimum);
|
||||
_b = 0 max (255*(1 - _ratio));
|
||||
|
@ -23,7 +23,9 @@
|
||||
Returns:
|
||||
MIXED
|
||||
*/
|
||||
private["_config", "_varData","_missionconfig","_finalconfig"];
|
||||
//[[[cog import generate_private_arrays ]]]
|
||||
private ["_config","_finalconfig","_missionconfig","_sapperRndChance","_varData"];
|
||||
//[[[end]]]
|
||||
params ["_configClass","_variableName","_defaultData"];
|
||||
_varData = _defaultData;
|
||||
_config = (configfile >> _configClass);
|
||||
|
@ -21,7 +21,9 @@
|
||||
Returns:
|
||||
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 {
|
||||
EPOCH_CURRENT_WEATHER = 75;
|
||||
|
@ -22,7 +22,9 @@
|
||||
Returns:
|
||||
BOOL
|
||||
*/
|
||||
private ["_wHPos","_wH","_nearByHolder"];
|
||||
//[[[cog import generate_private_arrays ]]]
|
||||
private ["_nearByHolder","_wH","_wHPos"];
|
||||
//[[[end]]]
|
||||
params [["_item","",[""]],["_count",1]];
|
||||
for "_i" from 1 to _count do
|
||||
{
|
||||
|
@ -24,7 +24,9 @@
|
||||
Returns:
|
||||
(OBJECT or objNull)
|
||||
*/
|
||||
private ["_ins"];
|
||||
//[[[cog import generate_private_arrays ]]]
|
||||
private ["_ins","_target"];
|
||||
//[[[end]]]
|
||||
params [["_distance",10], ["_lod1", "VIEW"], ["_lod2","FIRE"], ["_sort",true]];
|
||||
if (EPOCH_playerIsSwimming) then {
|
||||
_ins = lineIntersectsSurfaces [AGLToASL positionCameraToWorld [0,0,0],AGLToASL positionCameraToWorld [0,0,_distance],player,objNull,_sort,1,_lod1,_lod2];
|
||||
|
@ -23,7 +23,9 @@
|
||||
Returns:
|
||||
SCALAR - (direction 0-360)
|
||||
*/
|
||||
private ["_ret"];
|
||||
//[[[cog import generate_private_arrays ]]]
|
||||
private ["_dirToF","_pos1","_pos2","_ret"];
|
||||
//[[[end]]]
|
||||
params ["_pos1","_pos2",["_spread",32]];
|
||||
|
||||
//if objects, not positions, were passed in, then get their positions
|
||||
|
@ -25,7 +25,9 @@
|
||||
Returns:
|
||||
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]];
|
||||
|
||||
_rnd = ((180 +_offset) - (_arcIn / 2)) + (random _arcIn);
|
||||
|
@ -26,7 +26,9 @@
|
||||
Returns:
|
||||
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]];
|
||||
|
||||
_rDist = (random (_MaxDist - _MinDist))+_MinDist;
|
||||
|
@ -26,7 +26,9 @@
|
||||
Returns:
|
||||
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"];
|
||||
|
||||
_dirTo = (position _unitIn) getDir (position _trgtIn);
|
||||
|
@ -21,7 +21,9 @@
|
||||
Returns:
|
||||
BOOL
|
||||
*/
|
||||
private ["_playerPosASL","_abovePlayerPosASL"];
|
||||
//[[[cog import generate_private_arrays ]]]
|
||||
private ["_abovePlayerPosASL","_inBuilding","_playerPosASL"];
|
||||
//[[[end]]]
|
||||
_playerPosASL = visiblePositionASL player;
|
||||
_abovePlayerPosASL = [_playerPosASL select 0,_playerPosASL select 1,(_playerPosASL select 2) + 10];
|
||||
//Return:
|
||||
|
@ -27,7 +27,9 @@
|
||||
Returns:
|
||||
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"];
|
||||
EPOCH_lastFiredLocation = getPosATL player;
|
||||
switch true do {
|
||||
|
@ -22,8 +22,14 @@
|
||||
Returns:
|
||||
STRING
|
||||
*/
|
||||
//[[[cog import generate_private_arrays ]]]
|
||||
private ["_arrFull","_arrOut","_strIn","_trimmedStr"];
|
||||
//[[[end]]]
|
||||
private["_arrFull","_arrOut"];
|
||||
params ["_strIn",["_count",0,[0]]];
|
||||
params [
|
||||
"_strIn",
|
||||
["_count",0,[0]]
|
||||
];
|
||||
_arrOut = [];
|
||||
if !(_strIn isEqualType "STRING") then {_strIn = str(_strIn)};
|
||||
_arrFull = toArray _strIn;
|
||||
|
@ -1,6 +1,7 @@
|
||||
// EPOCH_giveAttributes
|
||||
|
||||
private ["_return","_addPlus","_editableVars","_selectedVar","_varName","_celcuis","_celcuisNew","_customVarIndex","_limits","_currentVal","_newValue"];
|
||||
//[[[cog import generate_private_arrays ]]]
|
||||
private ["_addPlus","_celcuis","_celcuisNew","_currentVal","_customVarIndex","_data","_limits","_max","_min","_newValue","_return","_varName"];
|
||||
//[[[end]]]
|
||||
params ["_selectedVarName",["_data",0],["_randomizeData",0]];
|
||||
_addPlus = if (_data > 0) then {"+"} else {""};
|
||||
_return = "";
|
||||
|
@ -21,7 +21,9 @@
|
||||
Returns:
|
||||
STRING
|
||||
*/
|
||||
private ["_return"];
|
||||
//[[[cog import generate_private_arrays ]]]
|
||||
private ["_displayName","_return"];
|
||||
//[[[end]]]
|
||||
params ["_item"];
|
||||
_return = "";
|
||||
if ([_item, "CfgVehicles"] call EPOCH_fnc_isAny) then {
|
||||
|
@ -13,7 +13,7 @@
|
||||
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/functions/EPOCH_itemPicture.sqf
|
||||
|
||||
Example:
|
||||
_picture = _part call EPOCH_itemPicture;
|
||||
_part call EPOCH_itemPicture;
|
||||
|
||||
Parameter(s):
|
||||
_this: STRING - Vehicle, Weapon, or Magazine config class name
|
||||
@ -21,7 +21,9 @@
|
||||
Returns:
|
||||
STRING
|
||||
*/
|
||||
//[[[cog import generate_private_arrays ]]]
|
||||
private ["_return"];
|
||||
//[[[end]]]
|
||||
params ["_item"];
|
||||
_return = "";
|
||||
if ([_item, "CfgVehicles"] call EPOCH_fnc_isAny) then {
|
||||
|
@ -21,7 +21,9 @@
|
||||
Returns:
|
||||
NOTHING
|
||||
*/
|
||||
private ["_lastSave","_customVars","_time"];
|
||||
//[[[cog import generate_private_arrays ]]]
|
||||
private ["_customVars","_lastSave","_time"];
|
||||
//[[[end]]]
|
||||
_time = if (_this) then [{15},{80}];
|
||||
_lastSave = missionNamespace getVariable["EPOCH_lastSave", diag_tickTime];
|
||||
if ((diag_tickTime - _lastSave) >= _time) then {
|
||||
|
@ -21,7 +21,9 @@
|
||||
Returns:
|
||||
CONFIG
|
||||
*/
|
||||
private["_return", "_config"];
|
||||
//[[[cog import generate_private_arrays ]]]
|
||||
private ["_config","_return"];
|
||||
//[[[end]]]
|
||||
_return = (configfile >> _this);
|
||||
_config = (getMissionConfig _this);
|
||||
if (isClass _config) then{
|
||||
|
@ -22,7 +22,9 @@
|
||||
Returns:
|
||||
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"];
|
||||
_return = false;
|
||||
_config = 'CfgEpochClient' call EPOCH_returnConfig;
|
||||
|
@ -22,7 +22,9 @@
|
||||
Returns:
|
||||
ARRAY of ARRAYS
|
||||
*/
|
||||
private ["_sorted","_closest","_testPos","_closestPos"];
|
||||
//[[[cog import generate_private_arrays ]]]
|
||||
private ["_closest","_closestPos","_pos","_sorted","_testPos","_unsorted"];
|
||||
//[[[end]]]
|
||||
params ["_unsorted","_pos"];
|
||||
if (_pos isEqualType objNull) then {_pos = getpos _pos;};
|
||||
_sorted = [];
|
||||
|
@ -25,7 +25,9 @@
|
||||
Returns:
|
||||
BOOL
|
||||
*/
|
||||
private ["_handled","_currentPos"];
|
||||
//[[[cog import generate_private_arrays ]]]
|
||||
private ["_currentPos","_disableBuildMode","_handled"];
|
||||
//[[[end]]]
|
||||
params ["_display","_dikCode","_shift","_ctrl","_alt"];
|
||||
|
||||
_handled = false;
|
||||
|
@ -25,7 +25,9 @@
|
||||
Returns:
|
||||
BOOL
|
||||
*/
|
||||
private["_handled"];
|
||||
//[[[cog import generate_private_arrays ]]]
|
||||
private ["_handled"];
|
||||
//[[[end]]]
|
||||
params ["_display","_dikCode","_shift","_ctrl","_alt"];
|
||||
_handled = false;
|
||||
//Main actions
|
||||
|
@ -22,7 +22,9 @@
|
||||
Returns:
|
||||
NOTHING
|
||||
*/
|
||||
private ["_textArr","_num"];
|
||||
//[[[cog import generate_private_arrays ]]]
|
||||
private ["_num","_textArr"];
|
||||
//[[[end]]]
|
||||
params ["_control",["_maxLimit",0]];
|
||||
_textArr = toArray(ctrlText(_control select 0));
|
||||
{
|
||||
|
@ -21,7 +21,9 @@
|
||||
Returns:
|
||||
NUMBER
|
||||
*/
|
||||
private ["_gearArmor","_gearConfig","_passThrough","_armor"];
|
||||
//[[[cog import generate_private_arrays ]]]
|
||||
private ["_armor","_gearArmor","_gearConfig","_passThrough","_vestArmor"];
|
||||
//[[[end]]]
|
||||
_gearConfig = (configfile >> "CfgWeapons" >> _this);
|
||||
_passThrough = getNumber(_gearConfig >> "ItemInfo" >> "passThrough");
|
||||
_armor = getNumber(_gearConfig >> "ItemInfo" >> "armor");
|
||||
|
@ -23,7 +23,9 @@
|
||||
Returns:
|
||||
NOHTING
|
||||
*/
|
||||
private ["_display","_color","_colorCompare","_bar","_bar_compare"];
|
||||
//[[[cog import generate_private_arrays ]]]
|
||||
private ["_bar","_bar_compare","_color","_colorCompare","_display"];
|
||||
//[[[end]]]
|
||||
disableSerialization;
|
||||
|
||||
EPOCH_InteractedItem = [];
|
||||
|
@ -12,7 +12,9 @@
|
||||
Github:
|
||||
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;
|
||||
_data = EPOCH_InteractedItem select 1;
|
||||
|
||||
|
@ -12,7 +12,9 @@
|
||||
Github:
|
||||
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;
|
||||
_data = EPOCH_InteractedItem select 1;
|
||||
_config = 'CfgCrafting' call EPOCH_returnConfig;
|
||||
|
@ -21,7 +21,9 @@
|
||||
Returns:
|
||||
NOTHING
|
||||
*/
|
||||
private ["_curArmor","_maxArmorUniform","_maxArmorVest","_maxArmorHeadgear"];
|
||||
//[[[cog import generate_private_arrays ]]]
|
||||
private ["_curArmor","_maxArmorHeadgear","_maxArmorUniform","_maxArmorVest"];
|
||||
//[[[end]]]
|
||||
_maxArmorUniform = 0;
|
||||
{
|
||||
_curArmor = ([getNumber(_x >> 'passThrough'),getNumber(_x >> 'armor')] call EPOCH_factorArmor) + getNumber(_x >> 'armorStructural');
|
||||
|
@ -21,7 +21,9 @@
|
||||
Returns:
|
||||
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;
|
||||
if (!isNull findDisplay 602) then {
|
||||
|
||||
|
@ -22,7 +22,9 @@
|
||||
Returns:
|
||||
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"];
|
||||
EPOCH_InteractedItem = [];
|
||||
|
||||
|
@ -21,7 +21,9 @@
|
||||
Returns:
|
||||
NUMBER
|
||||
*/
|
||||
private ["_uniformClass","_uniformArmor","_uniformConfig","_uniformArmorStructural"];
|
||||
//[[[cog import generate_private_arrays ]]]
|
||||
private ["_newArmor","_uniformArmor","_uniformArmorStructural","_uniformClass","_uniformConfig"];
|
||||
//[[[end]]]
|
||||
|
||||
_uniformClass = _this;
|
||||
if (isClass (configFile >> "CfgWeapons" >> _this)) then {
|
||||
|
@ -23,7 +23,9 @@
|
||||
Returns:
|
||||
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]];
|
||||
|
||||
_masterConfig = 'CfgBuildingLootPos' call EPOCH_returnConfig;
|
||||
|
@ -12,7 +12,9 @@
|
||||
Github:
|
||||
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"];
|
||||
|
||||
_cagePos = (getPosATL _trader) findEmptyPosition [1,50,"Land_Cages_F"];
|
||||
|
@ -12,7 +12,9 @@
|
||||
Github:
|
||||
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 disableAI _x}forEach["TARGET","AUTOTARGET","FSM"];
|
||||
[_unit] execFSM "\x\addons\a3_epoch_code\System\Construct_Brain.fsm";
|
||||
|
@ -12,7 +12,9 @@
|
||||
Github:
|
||||
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 {
|
||||
_unit = createGroup RESISTANCE createUnit ["Epoch_Female_F", getPos player, [], 400, "CAN_COLLIDE"];
|
||||
_unit addBackPack "B_FieldPack_blk";
|
||||
|
@ -12,7 +12,9 @@
|
||||
Github:
|
||||
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 (vehicle player != player || vehicle EPOCH_p2ptradeTarget != EPOCH_p2ptradeTarget) exitWith { EPOCH_p2ptradeTarget = ObjNull; };
|
||||
|
@ -12,7 +12,9 @@
|
||||
Github:
|
||||
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"];
|
||||
if (!isNull _otherPlyr) then {
|
||||
_distance = player distance _otherPlyr;
|
||||
|
@ -12,8 +12,9 @@
|
||||
Github:
|
||||
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;
|
||||
if !(createdialog "Trade") exitWith {};
|
||||
|
||||
|
@ -21,8 +21,9 @@
|
||||
Returns:
|
||||
Mixed
|
||||
*/
|
||||
|
||||
private ["_keyMap","_args","_input","_return"];
|
||||
//[[[cog import generate_private_arrays ]]]
|
||||
private ["_arr","_keyMap","_return","_s"];
|
||||
//[[[end]]]
|
||||
params [["_args",0],["_input",0]];
|
||||
|
||||
_keyMap =
|
||||
|
@ -22,7 +22,9 @@
|
||||
Returns:
|
||||
NOTHING
|
||||
*/
|
||||
private ["_ply","_group","_playerObject"];
|
||||
//[[[cog import generate_private_arrays ]]]
|
||||
private ["_group","_playerObject","_ply"];
|
||||
//[[[end]]]
|
||||
_playerObject = _this select 0;
|
||||
if !(alive player && alive _playerObject && !isPlayer _playerObject) then {
|
||||
_ply = player;
|
||||
|
@ -23,7 +23,9 @@
|
||||
NOTHING
|
||||
*/
|
||||
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"];
|
||||
|
||||
if !(isNull EPOCH_lastNPCtradeTarget) then {
|
||||
|
@ -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;
|
||||
_class = configFile >> "CfgVehicles" >> (typeOf EPCH);
|
||||
if (isclass _class) then {
|
||||
|
@ -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"];
|
||||
|
||||
if !(isNull EPOCH_lastNPCtradeTarget) then {
|
||||
|
@ -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"];
|
||||
|
||||
_allowAdd = true;
|
||||
|
@ -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"];
|
||||
|
||||
_uiItem = (_selected select 0) lbData(_selected select 1);
|
||||
|
@ -1,5 +1,7 @@
|
||||
// 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;
|
||||
_dialog = "";
|
||||
_handled = false;
|
||||
|
@ -1,4 +1,6 @@
|
||||
private["_ok"];
|
||||
//[[[cog import generate_private_arrays ]]]
|
||||
private ["_ok"];
|
||||
//[[[end]]]
|
||||
if (isNull _this) exitWith {};
|
||||
if !(alive _this) exitWith {};
|
||||
_ok = createdialog "MissionSelect";
|
||||
|
@ -1,4 +1,6 @@
|
||||
//[[[cog import generate_private_arrays ]]]
|
||||
private ["_ok","_slot","_target"];
|
||||
//[[[end]]]
|
||||
_target = cursorTarget;
|
||||
if (alive _target) then {
|
||||
_slot = _target getVariable ["AI_SLOT",-1];
|
||||
|
@ -21,7 +21,9 @@
|
||||
Returns:
|
||||
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_STARTED") exitWith{};
|
||||
|
@ -1,4 +1,6 @@
|
||||
private["_getCrypto"];
|
||||
//[[[cog import generate_private_arrays ]]]
|
||||
private ["_getCrypto"];
|
||||
//[[[end]]]
|
||||
if !(isNil "EPOCH_takeCryptoLock") exitWith {};
|
||||
EPOCH_takeCryptoLock = true;
|
||||
if (!isNull _this) then {
|
||||
|
@ -1,5 +1,7 @@
|
||||
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"];
|
||||
|
||||
// [weapons, mags, items]
|
||||
|
@ -12,6 +12,9 @@
|
||||
Github:
|
||||
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;
|
||||
if (!isNull cursorTarget) then {
|
||||
_vehicles = player nearEntities[["LandVehicle", "Ship", "Air", "Tank"], 30];
|
||||
|
@ -12,6 +12,9 @@
|
||||
Github:
|
||||
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"];
|
||||
if (local _vehicle) then {
|
||||
_currentDMG = _vehicle getHitIndex (_value select 0);
|
||||
|
@ -13,7 +13,9 @@
|
||||
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/gui/scripts/EPOCH_InterruptConfigActions.sqf
|
||||
*/
|
||||
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"];
|
||||
|
||||
_mainGrp = Epoch_interrupt_controls select 1;
|
||||
|
@ -17,7 +17,9 @@
|
||||
Usage:
|
||||
_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"];
|
||||
|
||||
disableSerialization;
|
||||
|
@ -17,7 +17,9 @@
|
||||
Usage:
|
||||
_ctrl ctrlSetEventHandler ["MouseMoving", "[_this,control3D] call Epoch_3DctrlPitchYaw"];
|
||||
*/
|
||||
private["_inX","_inY"];
|
||||
//[[[cog import generate_private_arrays ]]]
|
||||
private ["_inX","_inY"];
|
||||
//[[[end]]]
|
||||
params ["_arr","_ctrl3D"];
|
||||
|
||||
disableSerialization;
|
||||
|
@ -12,7 +12,9 @@
|
||||
Github:
|
||||
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;
|
||||
_max = safezoneX + 0.6 * safezoneW;
|
||||
_r = linearConversion [_min, _max, _this, 0.2, -1, true];
|
||||
|
@ -13,7 +13,9 @@
|
||||
Github:
|
||||
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;
|
||||
|
||||
_list = missionNamespace getVariable ["rmx_var_uniqueIDC",[]];
|
||||
|
@ -12,7 +12,9 @@
|
||||
Github:
|
||||
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/gui/scripts/Epoch_secureStorageHandler.sqf
|
||||
*/
|
||||
//[[[cog import generate_private_arrays ]]]
|
||||
private ["_out"];
|
||||
//[[[end]]]
|
||||
params [["_in",false]];
|
||||
_out = switch (typeName _in) do {
|
||||
case "STRING":
|
||||
|
@ -15,7 +15,9 @@
|
||||
Example:
|
||||
_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"];
|
||||
|
||||
_display = if (typeName _ctrl isEqualTo "CONTROL") then {ctrlParent _ctrl} else {displayNull};
|
||||
|
@ -12,7 +12,9 @@
|
||||
Github:
|
||||
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;
|
||||
_STdesc = rmx_var_crafting_ctrl_main select 2;
|
||||
|
@ -12,7 +12,9 @@
|
||||
Github:
|
||||
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"];
|
||||
//[[[end]]]
|
||||
|
||||
_idx = lbCurSel (rmx_var_crafting_ctrl_main select 1);
|
||||
_txt = (rmx_var_crafting_ctrl_main select 1) lbData _idx;
|
||||
|
@ -12,7 +12,9 @@
|
||||
Github:
|
||||
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"];
|
||||
|
||||
_nearObjects = nearestObjects [position player,["WeaponHolder","LandVehicle","Air"],10];
|
||||
|
@ -12,7 +12,9 @@
|
||||
Github:
|
||||
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]];
|
||||
_arr params ["_type","_check"];
|
||||
_result = false;
|
||||
|
@ -12,8 +12,10 @@
|
||||
Github:
|
||||
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"];
|
||||
params [["_in",false,[true]]];
|
||||
//[[[cog import generate_private_arrays ]]]
|
||||
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
|
||||
_out = true;
|
||||
|
@ -14,7 +14,9 @@
|
||||
*/
|
||||
|
||||
disableSerialization;
|
||||
private "_display";
|
||||
//[[[cog import generate_private_arrays ]]]
|
||||
private ["_display"];
|
||||
//[[[end]]]
|
||||
|
||||
_display = findDisplay 77700;
|
||||
|
||||
|
@ -13,7 +13,9 @@
|
||||
Github:
|
||||
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]];
|
||||
if !(typeName (_arrIn select 0) isEqualTo "CONFIG") exitWith {[]};
|
||||
|
@ -15,7 +15,9 @@
|
||||
if !(isNil "rmx_var_craftProgressInProgress") exitWith {false};
|
||||
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;
|
||||
_txt = param [0,"No text"];
|
||||
|
@ -12,7 +12,9 @@
|
||||
Github:
|
||||
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]];
|
||||
|
||||
_cleanupVars = {
|
||||
|
@ -16,17 +16,14 @@
|
||||
[_configName, _index] call epoch_getHUDCtrl;
|
||||
["myHudName", 2] call epoch_getHUDCtrl;
|
||||
*/
|
||||
|
||||
//[[[cog import generate_private_arrays ]]]
|
||||
private ["_gIdx"];
|
||||
//[[[end]]]
|
||||
if !(_this isEqualTypeArray ["",0]) exitWith {controlNull};
|
||||
|
||||
params ["_gName","_cIdx"];
|
||||
|
||||
_gIdx = -1;
|
||||
|
||||
{
|
||||
if ((_x select 0) isEqualTo _gName) exitWith {_gIdx = _forEachIndex};
|
||||
} forEach rmx_var_dynamicHUD_groupCTRL;
|
||||
|
||||
if (_gIdx == -1) exitWith {controlNull};
|
||||
|
||||
(rmx_var_dynamicHUD_groupCTRL select _gIdx) select _cIdx
|
||||
|
@ -15,7 +15,9 @@
|
||||
Usage:
|
||||
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"];
|
||||
//[[[end]]]
|
||||
_ctrl = param [0];
|
||||
_curr = ctrlPosition _Ctrl;
|
||||
_mpos = getmousePosition;
|
||||
@ -23,4 +25,4 @@ _mpos = getmousePosition;
|
||||
if (rmx_var_drag_MouseDown) then {
|
||||
_ctrl ctrlSetPosition [(_mpos select 0) - (_curr select 2) / 2, (_mpos select 1) - (_curr select 3) / 2 ];
|
||||
_ctrl ctrlCommit 0;
|
||||
};
|
||||
};
|
||||
|
@ -12,7 +12,9 @@
|
||||
Github:
|
||||
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;
|
||||
_BtnInvite = (findDisplay -1300) displayCtrl 30;
|
||||
_playerUID = getPlayerUID player;
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user