Skip to content

Commit

Permalink
Pulau map port (#284)
Browse files Browse the repository at this point in the history
* Pulau Map Port

* Fix HBarrier Bunkers/Towers
  • Loading branch information
stutpip123 authored Aug 30, 2024
1 parent 8fd4a4e commit 3d41713
Show file tree
Hide file tree
Showing 16 changed files with 36,437 additions and 2 deletions.
15 changes: 13 additions & 2 deletions A3A/addons/core/functions/CREATE/fn_milBuildings.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -245,14 +245,25 @@ for "_i" from 0 to (count _buildings) - 1 do
private _type = selectRandom (_faction get "staticMGs");
private _dir = (getDir _building) - 180;
private _zpos = AGLToASL (position _building);
private _zOffset = [0, 0, 2.25];
private _zOffset = [0, 0, 2.55];
_zpos = _zpos vectorAdd _zOffset;
private _pos = _zpos getPos [1.5, _dir];
_pos = ASLToATL ([_pos select 0, _pos select 1, _zpos select 2]);
private _static = [_type, _pos, _dir] call _fnc_spawnStatic;
_static setPos _pos;
};
if (_typeB isEqualTo "Land_HBarrier_01_tower_green_F" or {_typeB isEqualTo "Land_BagBunker_Tower_F"}) exitWith {
private _type = selectRandom (_faction get "staticMGs");
private _dir = (getDir _building) - 180;
private _zpos = AGLToASL (position _building);
private _zOffset = [0, 0, 2.55];
_zpos = _zpos vectorAdd _zOffset;
private _pos = _zpos getPos [1.5, _dir];
_pos = ASLToATL ([_pos select 0, _pos select 1, _zpos select 2]);
private _static = [_type, _pos, _dir] call _fnc_spawnStatic;
_static setPos _pos;
};
if (_typeB isEqualTo "Land_Fort_Watchtower_EP1" or {_typeB isEqualTo "Land_Fort_Watchtower" or {_typeB isEqualTo "Land_HBarrier_01_tower_green_F" or {_typeB isEqualTo "Land_BagBunker_Tower_F"}}}) exitWith {
if (_typeB isEqualTo "Land_Fort_Watchtower_EP1" or {_typeB isEqualTo "Land_Fort_Watchtower"}) exitWith {
private _type = selectRandom (_faction get "staticMGs");
private _dir = (getDir _building) - 180;
private _zpos = AGLToASL (position _building);
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions A3A/addons/maps/Antistasi_pulau.pulau/cba_settings.sqf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include "\x\A3A\Addons\core\Includes\cba_settings.sqf"
30 changes: 30 additions & 0 deletions A3A/addons/maps/Antistasi_pulau.pulau/description.ext
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#include "..\missionDescription\master.hpp"

OnLoadName = $STR_antistasi_mission_info_pulau_mapname_short_text;
OnLoadMission = $STR_antistasi_mission_info_pulau_blurb_text;
briefingName = $STR_antistasi_mission_info_pulau_mapname_text;
overviewText = $STR_antistasi_mission_info_pulau_description_text;
loadScreen = LOAD_SCREEN_IMAGE;
overviewPicture = OVERVIEW_IMAGE;

class CfgDiscordRichPresence
{
applicationID="1270380812684230746";
defaultDetails="In campaign";
defaultState="Tanoa";
defaultLargeImageKey="tanoa";
defaultLargeImageText="Rebelling in Pulau";
defaultSmallImageKey="au-logo";
defaultSmallImageText="Antistasi Ultimate";
useTimeElapsed=1;
};
//Workshop Link: https://steamcommunity.com/sharedfiles/filedetails/?id=1423583812
class CfgNotifications
{
#include "..\missionDescription\CfgNotificationsContents.hpp"
};

class CfgDebriefing {
#include "..\missionDescription\CfgDebriefingContents.hpp"
};

1 change: 1 addition & 0 deletions A3A/addons/maps/Antistasi_pulau.pulau/initPlayerLocal.sqf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_this call A3A_fnc_initClient;
1 change: 1 addition & 0 deletions A3A/addons/maps/Antistasi_pulau.pulau/initServer.sqf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
call A3A_fnc_initServer;
53 changes: 53 additions & 0 deletions A3A/addons/maps/Antistasi_pulau.pulau/mapInfo.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
class pulau {
population[] = {
{"DefaultKeyPoint1",38},
{"DefaultKeyPoint2",59},
{"DefaultKeyPoint3",76},
{"DefaultKeyPoint4",41},
{"DefaultKeyPoint5",57},
{"DefaultKeyPoint7",43},
{"DefaultKeyPoint8",28},
{"DefaultKeyPoint10",47},
{"DefaultKeyPoint15",31},
{"DefaultKeyPoint19",33},
{"DefaultKeyPoint20",64},
{"DefaultKeyPoint21",34},
{"DefaultKeyPoint22",27},
{"DefaultKeyPoint23",58},
{"DefaultKeyPoint24",30},
{"DefaultKeyPoint25",38},
{"DefaultKeyPoint26",33},
{"DefaultKeyPoint27",59},
{"DefaultKeyPoint28",52},
{"DefaultKeyPoint32",31},
{"Loholoho",233}
};
disabledTowns[] = {"DefaultKeyPoint6","DefaultKeyPoint9","DefaultKeyPoint11","DefaultKeyPoint12","DefaultKeyPoint13","DefaultKeyPoint14","DefaultKeyPoint16","DefaultKeyPoint17","DefaultKeyPoint18","DefaultKeyPoint29","DefaultKeyPoint30","DefaultKeyPoint31"};
antennas[] = {
{6004.48,6269.15,-7.62939e-006},{5367.93,8981.39,0.00322723},{7329.88,2402.91,0.0544472},{1907,7127.88,0.0916786},{9409.2,3129.01,0.885342},{7075.77,1006.8,7.62939e-005},{2626.32,1945.44,0.00999451}
};
antennasBlacklistIndex[] = {};
banks[] = {
{5934.3,5828.19,0}
};
garrison[] = {
{},{"seaport_1","outpost_1","outpost_18"},{},{"control_0","control_1","control_2","control_10","control_11"}
};
fuelStationTypes[] = {
"Land_FuelStation_Feed_F","Land_fs_feed_F","Land_FuelStation_01_pump_malevil_F","Land_FuelStation_01_pump_F","Land_FuelStation_02_pump_F","Land_FuelStation_03_pump_F"
};
milAdministrations[] = {
{6128.569,5533.379,0.283},{4084.472,1422.668,0}
};
climate = "tropical";
buildObjects[] = {
// Large vanilla tropical structures
{"Land_BagBunker_01_large_green_F", 300}, {"Land_HBarrier_01_tower_green_F", 300}, {"Land_BagBunker_01_small_green_F", 60},
{"Land_Shed_09_F", 120}, {"Land_Shed_10_F", 140},
// vanilla tropical sandbag walls
{"Land_BagFence_01_short_green_F", 10}, {"Land_BagFence_01_round_green_F", 10}, {"Land_BagFence_01_long_green_F", 10},
// Non-camo vanilla stuff
{"Land_SandbagBarricade_01_half_F", 20}, {"Land_SlumWall_01_s_2m_F", 5}, {"Land_PillboxBunker_01_hex_F", 200},
{"Land_Barricade_01_4m_F", 30}, {"Land_GuardBox_01_brown_F", 80}, {"Land_Tyres_F", 10}
};
};
Loading

0 comments on commit 3d41713

Please sign in to comment.