Skip to content

Commit

Permalink
General Readability
Browse files Browse the repository at this point in the history
  • Loading branch information
UAC-MaxxLite committed Aug 20, 2024
2 parents 2af1b53 + 8b36ab1 commit 7929eed
Show file tree
Hide file tree
Showing 12 changed files with 28 additions and 18 deletions.
2 changes: 1 addition & 1 deletion A3A/addons/core/functions/Builder/fn_buildingPlacer.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -292,4 +292,4 @@ private _eventHanderEachFrame = addMissionEventHandler ["EachFrame", {

}];

A3A_building_EHDB set [EACH_FRAME_EH, _eventHanderEachFrame];
A3A_building_EHDB set [EACH_FRAME_EH, _eventHanderEachFrame];
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class SPE_Mortain {
buildObjects[] = {
BUILDABLES_HISTORIC,
BUILDABLES_TEMPERATE,
BUILDABLES_SPEARHEAD,
BUILDABLES_SPE,
BUILDABLES_UNIVERSAL
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class SPE_Normandy {
buildObjects[] = {
BUILDABLES_HISTORIC,
BUILDABLES_TEMPERATE,
BUILDABLES_SPEARHEAD,
BUILDABLES_SPE,
BUILDABLES_UNIVERSAL
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class sefrouramal {
BUILDABLES_HISTORIC,
BUILDABLES_MODERN_SAND,
BUILDABLES_ARID,
BUILDABLES_WESTREN,
BUILDABLES_WS,
BUILDABLES_UNIVERSAL
};
// Needs to be re-done when possible
Expand Down
8 changes: 4 additions & 4 deletions A3A/addons/maps/Antistasi_Stratis.Stratis/mapInfo.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ class stratis {
BUILDABLES_TROPIC,
BUILDABLES_CUP,
BUILDABLES_JBAD,
BUILDABLES_MOBILAZATION,
BUILDABLES_GM,,
BUILDABLES_MODERN_GREEN,
BUILDABLES_MODERN_SAND,
BUILDABLES_PRAIRIE,
BUILDABLES_SPEARHEAD,
BUILDABLES_WESTREN,
BUILDABLES_SOGPF,
BUILDABLES_SPE,
#define BUILDABLES_WS,
BUILDABLES_UNIVERSAL
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class WW2_Omaha_Beach {
buildObjects[] = {
BUILDABLES_HISTORIC,
BUILDABLES_TEMPERATE,
BUILDABLES_SPEARHEAD,
BUILDABLES_SPE,
BUILDABLES_UNIVERSAL
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class cam_lao_nam {
buildObjects[] = {
BUILDABLES_HISTORIC,
BUILDABLES_TROPIC,
BUILDABLES_PRAIRIE,
BUILDABLES_SOGPF,
BUILDABLES_UNIVERSAL
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class gm_weferlingen_summer {
buildObjects[] = {
BUILDABLES_HISTORIC,
BUILDABLES_TEMPERATE,
BUILDABLES_MOBILAZATION,
BUILDABLES_GM,,
BUILDABLES_UNIVERSAL
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class gm_weferlingen_winter {
buildObjects[] = {
BUILDABLES_HISTORIC,
BUILDABLES_ARCTIC,
BUILDABLES_MOBILAZATION,
BUILDABLES_GM,,
BUILDABLES_UNIVERSAL
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class spex_utah_beach {
buildObjects[] = {
BUILDABLES_HISTORIC,
BUILDABLES_TEMPERATE,
BUILDABLES_SPEARHEAD,
BUILDABLES_SPE,
BUILDABLES_UNIVERSAL
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class vn_khe_sanh {
buildObjects[] = {
BUILDABLES_HISTORIC,
BUILDABLES_TROPIC,
BUILDABLES_PRAIRIE,
BUILDABLES_SOGPF,
BUILDABLES_UNIVERSAL
};
};
18 changes: 14 additions & 4 deletions A3A/addons/maps/BuildObjectsList.hpp
Original file line number Diff line number Diff line change
@@ -1,25 +1,35 @@
//Remmember to update the list @ A3A\addons\scrt\UI\fn_ui_setAvailableBuildingTypes.sqf
//Era Modifiers (Depends on map not modset)
#define BUILDABLES_MODERN_GREEN {"Land_GuardTower_01_F", 300}, {"Land_HBarrier_01_line_3_green_F", 100}, {"Land_HBarrier_01_line_5_green_F", 150}, {"Land_HBarrier_01_line_1_green_F", 50}, {"Land_HBarrier_01_big_4_green_F", 300}, {"Land_HBarrier_01_wall_corridor_green_F", 250}, {"Land_HBarrier_01_wall_corner_green_F", 250}, {"Land_HBarrier_01_wall_6_green_F", 450}, {"Land_HBarrier_01_wall_4_green_F", 400}, {"Land_HBarrier_01_big_tower_green_F", 500}

#define BUILDABLES_MODERN_SAND {"Land_GuardTower_01_F", 300}, {"Land_HBarrier_3_F", 100}, {"Land_HBarrier_5_F", 150}, {"Land_HBarrier_1_F", 50}, {"Land_HBarrier_Big_F", 300}, {"Land_HBarrierWall_corridor_F", 250}, {"Land_HBarrierWall_corner_F", 250}, {"Land_HBarrierWall6_F", 450}, {"Land_HBarrierWall4_F", 400}, {"Land_HBarrierTower_F", 500}

#define BUILDABLES_HISTORIC {"Land_Tyres_F", 20}, {"Land_Barricade_01_10m_F", 50}, {"Land_Barricade_01_4m_F", 30}, {"Land_DeerStand_01_F", 100}

#define BUILDABLES_SCIFI {"A3AU_Cargo_Post", 450}, {"A3AU_Cargo_Tower", 1000}, {"A3AU_Cargo_HQ", 500}, {"A3AU_Cargo_House", 350}

//Map Climate Modifiers (What type of terrain is the biggest area of the map)
#define BUILDABLES_ARID {"Land_BagFence_Corner_F", 10}, {"Land_BagFence_End_F", 10}, {"Land_BagFence_Long_F", 30}, {"Land_BagFence_Round_F", 30}, {"Land_BagFence_Short_F", 20}

#define BUILDABLES_TEMPERATE {"Land_BagFence_01_corner_green_F", 10}, {"Land_BagFence_01_end_green_F", 10}, {"Land_BagFence_01_long_green_F", 30}, {"Land_BagFence_01_round_green_F", 30}, {"Land_BagFence_01_short_green_F", 20}

#define BUILDABLES_ARCTIC {"Land_BagFence_Corner_F", 10}, {"Land_BagFence_End_F", 10}, {"Land_BagFence_Long_F", 30}, {"Land_BagFence_Round_F", 30}, {"Land_BagFence_Short_F", 20}

#define BUILDABLES_TROPIC {"Land_BagFence_01_corner_green_F", 10}, {"Land_BagFence_01_end_green_F", 10}, {"Land_BagFence_01_long_green_F", 30}, {"Land_BagFence_01_round_green_F", 30}, {"Land_BagFence_01_short_green_F", 20}

//Modlist Modifiers (Only for maps that have dependency mods with usable items in them)
#define BUILDABLES_CUP {"TK_GUE_WarfareBBarrier5x_EP1", 600}, {"TK_GUE_WarfareBBarrier10xTall_EP1", 700}, {"TK_WarfareBBarrier10x_EP1", 650}, {"Land_Misc_deerstand", 60}, {"Land_Hlaska", 120}

#define BUILDABLES_JBAD {"jbad_Wall_L_2m5", 100}, {"jbad_Wall_L_2m5_corner", 75}, {"jbad_Wall_L_2m5_gate", 75}, {"jbad_wall_l_5m", 150}, {"jbad_wall_L_5m_hole_big", 125}

//cDLC Modifiers (For cDLC dependent maps)
#define BUILDABLES_SPEARHEAD
#define BUILDABLES_PRAIRIE
#define BUILDABLES_MOBILAZATION
#define BUILDABLES_WESTREN
#define BUILDABLES_SPE

#define BUILDABLES_SOGPF

#define BUILDABLES_GM

#define BUILDABLES_WS

//Ending Build List. (Universal Items)
#define BUILDABLES_UNIVERSAL {"Land_GuardTower_02_F", 150}, {"Land_PortableLight_double_F", 50}, {"Land_LampShabby_F", 75}, {"Land_LampHarbour_F", 100}, {"Land_BarGate_F", 100}, {"Land_SandbagBarricade_01_half_F", 40}, {"Land_SandbagBarricade_01_hole_F", 40}, {"Land_SandbagBarricade_01_F", 40}, {"A3AU_RebHelipad_Square_F", 100}, {"A3AU_RebHelipad_Circle_F", 100}, {"Land_BagBunker_Large_F", 250}, {"Land_BagBunker_Small_F", 150}, {"Land_Bunker_02_light_double_F", 500}, {"Land_GuardBox_01_brown_F", 100}, {"Land_CzechHedgehog_01_new_F", 15}, {"Land_Razorwire_F", 15}

0 comments on commit 7929eed

Please sign in to comment.