First module now working via 3den placement syncing. Visible in Zeus, but not functional.
This commit is contained in:
1 parent
c5755fb259
commit
00eee092c3
34 files changed
+154
-45
No files matched your search
@@ -1,8 +1,26 @@
|
||||
class Extended_PreStart_EventHandlers
|
||||
{
|
||||
class ADDON
|
||||
{
|
||||
// init = "call compile preprocessFileLineNumbers 'logistics\\XEH_preInit.sqf'";
|
||||
init = QUOTE(call COMPILE_SCRIPT(XEH_preStart));
|
||||
};
|
||||
};
|
||||
|
||||
class Extended_PreInit_EventHandlers
|
||||
{
|
||||
class CLF_PreInit
|
||||
class ADDON
|
||||
{
|
||||
// init = "call compile preprocessFileLineNumbers 'logistics\\XEH_preInit.sqf'";
|
||||
init = QUOTE(call COMPILE_SCRIPT(XEH_preInit));
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
class Extended_PostInit_EventHandlers
|
||||
{
|
||||
class ADDON
|
||||
{
|
||||
// init = "call compile preprocessFileLineNumbers 'logistics\\XEH_preInit.sqf'";
|
||||
init = QUOTE(call COMPILE_SCRIPT(XEH_postInit));
|
||||
};
|
||||
};
|
||||
@@ -1,6 +1,7 @@
|
||||
class CfgFactionClasses {
|
||||
class NO_CATEGORY;
|
||||
class CLF: NO_CATEGORY {
|
||||
//class NO_CATEGORY;
|
||||
class CLF //: NO_CATEGORY
|
||||
{
|
||||
displayName = "Clarkson's Logi";
|
||||
priority = 2;
|
||||
side = 7;
|
||||
@@ -8,4 +9,13 @@ class CfgFactionClasses {
|
||||
//class CLF_Logistics: CLF {
|
||||
// displayName = "CLF - Logistics";
|
||||
//};
|
||||
|
||||
/*
|
||||
class GVAR(Logistics)
|
||||
{
|
||||
displayName = "Clarkson's Logi";
|
||||
priority = 2;
|
||||
side = 7;
|
||||
};
|
||||
*/
|
||||
};
|
||||
@@ -1,3 +1,4 @@
|
||||
//diag_log "LOGISTICS XEH_PREP RUNNING";
|
||||
|
||||
// Root folder functions
|
||||
PREP(vehicleLoadMateriel);
|
||||
@@ -6,26 +7,26 @@ PREP(vehicleUnloadMateriel);
|
||||
PREP(vehicleUnloadOre);
|
||||
|
||||
// Init folder functions
|
||||
PREP_S(initEngineeringBay,init)
|
||||
PREP_S(initEngineeringBayInteractions,init)
|
||||
PREP_S(initFactory,init)
|
||||
PREP_S(initFactoryInteractions,init)
|
||||
PREP_S(initFOB,init)
|
||||
PREP_S(initFOBInteractions,init)
|
||||
PREP_S(initHQ,init)
|
||||
PREP_S(initHQInteractions,init)
|
||||
PREP_S(initMaterielDepot,init)
|
||||
PREP_S(initMaterielDepotInteractions,init)
|
||||
PREP_S(initOreDepot,init)
|
||||
PREP_S(initOreDepotInteractions,init)
|
||||
PREP_S(initSupplyVehicle,init)
|
||||
PREP_S(initSupplyVehicleInteractions,init)
|
||||
PREP_S(initEngineeringBay,init);
|
||||
PREP_S(initEngineeringBayInteractions,init);
|
||||
PREP_S(initFactory,init);
|
||||
PREP_S(initFactoryInteractions,init);
|
||||
PREP_S(initFOB,init);
|
||||
PREP_S(initFOBInteractions,init);
|
||||
PREP_S(initHQ,init);
|
||||
PREP_S(initHQInteractions,init);
|
||||
PREP_S(initMaterielDepot,init);
|
||||
PREP_S(initMaterielDepotInteractions,init);
|
||||
PREP_S(initOreDepot,init);
|
||||
PREP_S(initOreDepotInteractions,init);
|
||||
PREP_S(initSupplyVehicle,init);
|
||||
PREP_S(initSupplyVehicleInteractions,init);
|
||||
|
||||
// Module folder functions
|
||||
PREP_S(moduleInitEngineeringBay,modules)
|
||||
PREP_S(moduleInitFactory,modules)
|
||||
PREP_S(moduleInitFOB,modules)
|
||||
PREP_S(moduleInitHQ,modules)
|
||||
PREP_S(moduleInitMaterielDepot,modules)
|
||||
PREP_S(moduleInitOreDepot,modules)
|
||||
PREP_S(moduleInitSupplyVehicle,modules)
|
||||
PREP_S(moduleInitEngineeringBay,modules);
|
||||
PREP_S(moduleInitFactory,modules);
|
||||
PREP_S(moduleInitFOB,modules);
|
||||
PREP_S(moduleInitHQ,modules);
|
||||
PREP_S(moduleInitMaterielDepot,modules);
|
||||
PREP_S(moduleInitOreDepot,modules);
|
||||
PREP_S(moduleInitSupplyVehicle,modules);
|
||||
@@ -12,6 +12,8 @@
|
||||
] call CBA_settings_fnc_init;
|
||||
*/
|
||||
|
||||
#include "XEH_PREP.hpp"
|
||||
|
||||
// Setting up for auto-naming of new bases etc. in mission
|
||||
GVAR(baseNames) = [
|
||||
"Alpha",
|
||||
|
||||
@@ -22,7 +22,7 @@ class CfgVehicles
|
||||
};
|
||||
|
||||
// Base module class for any initialisation modules
|
||||
class CLF_Init_Base: Module_F
|
||||
class CLF_initBase: Module_F
|
||||
{
|
||||
scope = 2;
|
||||
scopeCurator = 2;
|
||||
@@ -31,18 +31,19 @@ class CfgVehicles
|
||||
isDisposable = 1;
|
||||
// is3DEN = 1;
|
||||
curatorCanAttach = 1;
|
||||
//curatorInfoType = "";
|
||||
canSetArea = 0; // Allows for setting the area values in the Attributes menu in 3DEN
|
||||
canSetAreaShape = 0; // Allows for setting "Rectangle" or "Ellipse" in Attributes menu in 3DEN
|
||||
canSetAreaHeight = 0; // Allows for setting height or Z value in Attributes menu in 3DEN
|
||||
};
|
||||
|
||||
class CLF_Init_HQ: CLF_Init_Base
|
||||
class GVAR(initHQ): CLF_initBase
|
||||
{
|
||||
author = "Clarky";
|
||||
displayName = "Initialise HQ";
|
||||
//icon = "";
|
||||
category = "CLF"
|
||||
function = FUNC(moduleInitHQ);
|
||||
category = "CLF";
|
||||
function = QFUNC(moduleInitHQ);
|
||||
functionPriority = 1;
|
||||
|
||||
class Attributes : AttributesBase
|
||||
@@ -60,7 +61,7 @@ class CfgVehicles
|
||||
class westSide { name = "$STR_WEST"; value = 1; };
|
||||
class eastSide { name = "$STR_east"; value = 2; };
|
||||
class indSide { name = "$STR_guerrila"; value = 3; };
|
||||
class civSide { name = "$STR_civilian"; value = 4; }
|
||||
class civSide { name = "$STR_civilian"; value = 4; };
|
||||
};
|
||||
};
|
||||
|
||||
@@ -69,7 +70,7 @@ class CfgVehicles
|
||||
|
||||
class ModuleDescription : ModuleDescription
|
||||
{
|
||||
description = "Initialises HQ object for given side."
|
||||
description = "Initialises HQ object for given side.";
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -2,12 +2,21 @@
|
||||
|
||||
class CfgPatches
|
||||
{
|
||||
class ClarkonsLogisticsFramework
|
||||
class ADDON
|
||||
{
|
||||
units[] = { /*CLF_Init_Base*/ };
|
||||
units[] = {
|
||||
QGVAR(initHQ),
|
||||
QGVAR(initFOB),
|
||||
QGVAR(initFactory),
|
||||
QGVAR(initEngineeringBay),
|
||||
QGVAR(initMaterielDepot),
|
||||
QGVAR(initOreDepot),
|
||||
QGVAR(initSupplyVehicle)
|
||||
};
|
||||
weapons[] = {};
|
||||
requiredVersion = REQUIRED_VERSION;
|
||||
requiredAddons[] = {
|
||||
"A3_Modules_F",
|
||||
"cba_main",
|
||||
"cba_xeh"
|
||||
};
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#include "..\script_component.hpp"
|
||||
/*
|
||||
* Author: Clarky
|
||||
* Description:
|
||||
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
#include "..\script_component.hpp"
|
||||
/*
|
||||
Author: Clarky
|
||||
Usage:
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
#include "..\script_component.hpp"
|
||||
/*
|
||||
Author: Clarky
|
||||
Usage:
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
#include "..\script_component.hpp"
|
||||
/*
|
||||
Author: Clarky
|
||||
Usage:
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
#include "..\script_component.hpp"
|
||||
/*
|
||||
Author: Clarky
|
||||
Usage:
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
#include "..\..\script_component.hpp"
|
||||
/*
|
||||
* Author: Clarky
|
||||
* Description:
|
||||
+15
@@ -1,3 +1,18 @@
|
||||
#include "..\..\script_component.hpp"
|
||||
/*
|
||||
* Author: Clarky
|
||||
* Description:
|
||||
* Describe the function
|
||||
*
|
||||
* Arguments:
|
||||
* 0: Linked HQ <OBJECT>
|
||||
* 1: Engineering Bay <OBJECT>
|
||||
*
|
||||
* Usage:
|
||||
* [_object, _integer] call CLF_fnc_template
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* Author: Clarky
|
||||
* Usage:
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
#include "..\..\script_component.hpp"
|
||||
/*
|
||||
* Author: Clarky
|
||||
* Description:
|
||||
File renamed without changes.
+1
@@ -1,3 +1,4 @@
|
||||
#include "..\..\script_component.hpp"
|
||||
/*
|
||||
* Author: Clarky
|
||||
* Description:
|
||||
File renamed without changes.
+12
-11
@@ -1,3 +1,4 @@
|
||||
#include "..\..\script_component.hpp"
|
||||
/*
|
||||
* Author: Clarky
|
||||
* Description:
|
||||
@@ -37,35 +38,35 @@ _hq setVariable [
|
||||
true
|
||||
];*/
|
||||
|
||||
private _name = ""
|
||||
private _name = "";
|
||||
|
||||
switch (_side)
|
||||
switch (_side) do
|
||||
{
|
||||
case west:
|
||||
case 1:
|
||||
{
|
||||
_name = GVAR(baseNames) select GVAR(bluforBaseIndex);
|
||||
_hq setVariable ["baseName", _name, true];
|
||||
INC(GVAR(bluforBaseIndex));
|
||||
}
|
||||
case east:
|
||||
};
|
||||
case 2:
|
||||
{
|
||||
_name = GVAR(baseNames) select GVAR(opforBaseIndex);
|
||||
_hq setVariable ["baseName", _name, true];
|
||||
INC(GVAR(opforBaseIndex));
|
||||
}
|
||||
case independent:
|
||||
};
|
||||
case 3:
|
||||
{
|
||||
_name = GVAR(baseNames) select GVAR(independentBaseIndex);
|
||||
_hq setVariable ["baseName", _name, true];
|
||||
INC(GVAR(independentBaseIndex));
|
||||
}
|
||||
case civilian:
|
||||
};
|
||||
case 4:
|
||||
{
|
||||
_name = GVAR(baseNames) select GVAR(civilianBaseIndex);
|
||||
_hq setVariable ["baseName", _name, true];
|
||||
INC(GVAR(civilianBaseIndex));
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
private _baseMarker = createMarker [format ["%1 [HQ]", _name], _hq];
|
||||
_baseMarker setMarkerShape "ICON";
|
||||
File renamed without changes.
+1
@@ -1,3 +1,4 @@
|
||||
#include "..\..\script_component.hpp"
|
||||
/*
|
||||
* Author: Clarky
|
||||
* Description:
|
||||
File renamed without changes.
+1
@@ -1,3 +1,4 @@
|
||||
#include "..\..\script_component.hpp"
|
||||
/*
|
||||
* Author: Clarky
|
||||
* Description:
|
||||
File renamed without changes.
+1
@@ -1,3 +1,4 @@
|
||||
#include "..\..\script_component.hpp"
|
||||
/*
|
||||
* Author: Clarky
|
||||
* Description:
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+17
@@ -1,3 +1,5 @@
|
||||
#include "..\..\script_component.hpp"
|
||||
|
||||
params [
|
||||
["_logic", objNull, [objNull]], // Argument 0 is module logic
|
||||
["_units", [], [[]]], // Argument 1 is a list of affected units (affected by value selected in the 'class Units' argument))
|
||||
@@ -11,3 +13,18 @@ private _side = _logic getVariable ["Side", -1];
|
||||
{
|
||||
[_x, _side] remoteExec [QFUNC(initHQ), 2];
|
||||
} forEach synchronizedObjects _logic;
|
||||
|
||||
diag_log format [
|
||||
"Synced objects: %1",
|
||||
synchronizedObjects _logic
|
||||
];
|
||||
|
||||
diag_log format [
|
||||
"Synced units: %1",
|
||||
_units
|
||||
];
|
||||
|
||||
diag_log format [
|
||||
"Attached objects: %1",
|
||||
attachedObjects _logic
|
||||
];
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,24 @@
|
||||
class RscControlsGroup;
|
||||
class RscControlsGroupNoScrollbars;
|
||||
class RscText;
|
||||
class RscListBox;
|
||||
class RscCombo;
|
||||
class RscEdit;
|
||||
class RscXSliderH;
|
||||
class RscCheckBox;
|
||||
class RscActivePicture;
|
||||
class RscPicture;
|
||||
class ctrlToolbox;
|
||||
class RscButton;
|
||||
|
||||
class RscDisplayAttributes {
|
||||
class Controls {
|
||||
class Background;
|
||||
class Title;
|
||||
class Content: RscControlsGroup {
|
||||
class controls;
|
||||
};
|
||||
class ButtonOK;
|
||||
class ButtonCancel;
|
||||
};
|
||||
};
|
||||
Reference in new issue
Block a user