summaryrefslogtreecommitdiffstats
path: root/Common/Config/Config_Structures.sqf
diff options
context:
space:
mode:
authorhybrid <hybrid@hybridlabs.pro>2026-06-11 19:55:04 +0300
committerhybrid <hybrid@hybridlabs.pro>2026-06-11 19:55:04 +0300
commitb06990293397d4b6d0374097f09d1cc5679216e3 (patch)
tree5719922562e317a8083250c178f24376b6692569 /Common/Config/Config_Structures.sqf
downloada2wf_saralite-b06990293397d4b6d0374097f09d1cc5679216e3.tar.gz
a2wf_saralite-b06990293397d4b6d0374097f09d1cc5679216e3.tar.bz2
a2wf_saralite-b06990293397d4b6d0374097f09d1cc5679216e3.zip
init
Diffstat (limited to 'Common/Config/Config_Structures.sqf')
-rw-r--r--Common/Config/Config_Structures.sqf78
1 files changed, 78 insertions, 0 deletions
diff --git a/Common/Config/Config_Structures.sqf b/Common/Config/Config_Structures.sqf
new file mode 100644
index 0000000..dc30d3f
--- /dev/null
+++ b/Common/Config/Config_Structures.sqf
@@ -0,0 +1,78 @@
+Private ["_n"];
+
+/* Call in dynamically the west structures. */
+Call Compile PreprocessFile Format["Common\Config\Core_Structures\%1\Structures_%2.sqf",WFBE_V_West_StructuresRootVersion,WFBE_V_West_StructuresFaction];
+
+/* Call in dynamically the east structures. */
+Call Compile PreprocessFile Format["Common\Config\Core_Structures\%1\Structures_%2.sqf",WFBE_V_East_StructuresRootVersion,WFBE_V_East_StructuresFaction];
+
+switch (true) do {
+ case WF_A2_Vanilla: {
+ WFDEPOT = ["WarfareBDepot"];
+ WFCAMP = ["WarfareBCamp"];
+ WFHANGAR = ["WarfareBAirport"];
+ WFFLAG = "FlagCarrierGUE";
+
+ /* RESISTANCE STATIONARY DEFENSES */
+ _n = ["GUE_WarfareBMGNest_PK"];
+ _n = _n + ["DSHKM_Gue"];
+ _n = _n + ["SPG9_Gue"];
+ _n = _n + ["ZU23_Gue"];
+
+ ['WFBE_RESISTANCEDEFENSENAMES',_n,true] Call SetNamespace;
+
+ }; case WF_A2_Arrowhead: {
+ WFDEPOT = ["Land_fortified_nest_big_EP1"];
+ WFCAMP = ["Land_Fort_Watchtower_EP1"];
+ WFHANGAR = ["Land_Mil_hangar_EP1"];
+ WFFLAG = "FlagCarrierTakistan_EP1";
+
+ /* RESISTANCE STATIONARY DEFENSES */
+ _n = ["WarfareBMGNest_PK_TK_GUE_EP1"];
+ _n = _n + ["DSHKM_TK_GUE_EP1"];
+ _n = _n + ["AGS_TK_GUE_EP1"];
+ _n = _n + ["SPG9_TK_GUE_EP1"];
+ _n = _n + ["ZU23_TK_GUE_EP1"];
+ _n = _n + ["D30_TK_GUE_EP1"];
+
+ ['WFBE_RESISTANCEDEFENSENAMES',_n,true] Call SetNamespace;
+
+ }; case WF_A2_CombinedOps: {
+ WFDEPOT = ["Land_fortified_nest_big_EP1","WarfareBDepot"];
+ WFCAMP = ["Land_Fort_Watchtower_EP1","WarfareBCamp"];
+ WFHANGAR = ["Land_Mil_hangar_EP1","WarfareBAirport"];
+ WFFLAG = "FlagCarrierTakistan_EP1";
+
+ /* RESISTANCE STATIONARY DEFENSES */
+ _n = ["WarfareBMGNest_PK_TK_GUE_EP1"];
+ _n = _n + ["GUE_WarfareBMGNest_PK"];
+ _n = _n + ["DSHKM_Gue"];
+ _n = _n + ["SPG9_Gue"];
+ _n = _n + ["ZU23_Gue"];
+ _n = _n + ["DSHKM_TK_GUE_EP1"];
+ _n = _n + ["AGS_TK_GUE_EP1"];
+ _n = _n + ["SPG9_TK_GUE_EP1"];
+ _n = _n + ["D30_TK_GUE_EP1"];
+ _n = _n + ["ZU23_TK_GUE_EP1"];
+
+ ['WFBE_RESISTANCEDEFENSENAMES',_n,true] Call SetNamespace;
+
+ };
+};
+
+//--- Multiply the building cost when money only is being used.
+if (paramMoneyOnly) then {
+ Private ["_i","_list"];
+
+ _list = 'WFBE_WESTSTRUCTURECOSTS' Call GetNamespace;
+ for '_i' from 0 to count(_list)-1 do {
+ _list set [_i, round((_list select _i) * 5)];
+ };
+
+ _list = 'WFBE_EASTSTRUCTURECOSTS' Call GetNamespace;
+ for '_i' from 0 to count(_list)-1 do {
+ _list set [_i, round((_list select _i) * 5)];
+ };
+};
+
+diag_log Format ["[WFBE (INIT)][frameno:%1 | ticktime:%2] Config_Structures: Initialization (West: %3 | East: %4) - [Done]",diag_frameno,diag_tickTime,WFBE_V_West_StructuresFaction,WFBE_V_East_StructuresFaction]; \ No newline at end of file