diff options
| author | hybrid <hybrid@hybridlabs.pro> | 2026-06-11 19:53:22 +0300 |
|---|---|---|
| committer | hybrid <hybrid@hybridlabs.pro> | 2026-06-11 19:53:22 +0300 |
| commit | c055d44dcdb87e8db49fb23e632fc086aa44cce6 (patch) | |
| tree | 7ac98d865915930bebc86b36b512a859c31538e5 /Common/Config/Config_Structures.sqf | |
| download | a2wf_zargabad-c055d44dcdb87e8db49fb23e632fc086aa44cce6.tar.gz a2wf_zargabad-c055d44dcdb87e8db49fb23e632fc086aa44cce6.tar.bz2 a2wf_zargabad-c055d44dcdb87e8db49fb23e632fc086aa44cce6.zip | |
init
Diffstat (limited to 'Common/Config/Config_Structures.sqf')
| -rw-r--r-- | Common/Config/Config_Structures.sqf | 78 |
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 |
