Skip to content
This repository was archived by the owner on Jun 26, 2023. It is now read-only.

Commit e5cc178

Browse files
committed
Add activate sector button, fix civs healing self, update docs
1 parent 6c67c1c commit e5cc178

File tree

7 files changed

+51
-10
lines changed

7 files changed

+51
-10
lines changed

AW_Server/Secondary/fn_provideAid.sqf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ _marker setMarkerSize [1.5,1.5];
4545
[_civilian,0.25,(selectRandom _bodyParts),(selectRandom _damageTypes)] call ace_medical_fnc_addDamageToUnit;
4646
};
4747
[_civilian,true,150,true] call ace_medical_fnc_setUnconscious;
48-
_civilian setVariable ["ace_medical_ai_lastFired",300];
48+
_civilian setVariable ["ace_medical_ai_lastFired",(CBA_missionTime + 300)];
4949
};
5050
[[_group],_sectorCentre] call AW_fnc_initSectorPatrol;
5151

AW_Server/Sectors/fn_monitorSector.sqf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ if (_captureRatio > _requiredCaptureRatio) then {
5757
[_civilian,0.25,(selectRandom _bodyParts),(selectRandom _damageTypes)] call ace_medical_fnc_addDamageToUnit;
5858
};
5959
[_civilian,true,150,true] call ace_medical_fnc_setUnconscious;
60-
_civilian setVariable ["ace_medical_ai_lastFired",300];
60+
_civilian setVariable ["ace_medical_ai_lastFired",(CBA_missionTime + 300)];
6161

6262
private _position = (getPosATL _civilian) getPos [random 25,random 360];
6363
private _marker = createMarker [format["downedCiv%1",_i],_position];

Frontlines.Malden/Client/GUI/fn_manualZeusAction.sqf

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,17 @@ switch _action do {
8585
["Reinforcements have been called in - they will arrive in the configured time."] call AW_fnc_notify;
8686
};
8787

88+
case "activateSector": {
89+
private _index = lbCurSel _sectorListbox;
90+
if (_index isEqualTo -1) exitWith {};
91+
92+
private _sector = _sectorListbox lbData _index;
93+
if (_sector in AW_bluforSectors) exitWith {["This sector is already captured."] call AW_fnc_notify};
94+
if (_sector in AW_activeSectors) exitWith {["Sector must be inactive."] call AW_fnc_notify};
95+
96+
[_sector] remoteExecCall ["AW_fnc_activateSector",2];
97+
};
98+
8899
case "captureSector": {
89100
private _index = lbCurSel _sectorListbox;
90101
if (_index isEqualTo -1) exitWith {};

Frontlines.Malden/GUI/zeusMenu.hpp

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ class AW_zeusMenu {
128128
idc = 2409;
129129
text = "Call Reinforcements"; //--- ToDo: Localize;
130130
x = 0.5825 * safezoneW + safezoneX;
131-
y = 0.335 * safezoneH + safezoneY;
131+
y = 0.368 * safezoneH + safezoneY;
132132
w = 0.118594 * safezoneW;
133133
h = 0.022 * safezoneH;
134134
};
@@ -139,7 +139,7 @@ class AW_zeusMenu {
139139
idc = 2410;
140140
text = "Capture Sector"; //--- ToDo: Localize;
141141
x = 0.5825 * safezoneW + safezoneX;
142-
y = 0.269 * safezoneH + safezoneY;
142+
y = 0.302 * safezoneH + safezoneY;
143143
w = 0.118594 * safezoneW;
144144
h = 0.022 * safezoneH;
145145
};
@@ -150,7 +150,7 @@ class AW_zeusMenu {
150150
idc = 2411;
151151
text = "Lose Sector"; //--- ToDo: Localize;
152152
x = 0.5825 * safezoneW + safezoneX;
153-
y = 0.302 * safezoneH + safezoneY;
153+
y = 0.335 * safezoneH + safezoneY;
154154
w = 0.118594 * safezoneW;
155155
h = 0.022 * safezoneH;
156156
};
@@ -161,7 +161,7 @@ class AW_zeusMenu {
161161
idc = 2412;
162162
text = "FOB Assault"; //--- ToDo: Localize;
163163
x = 0.5825 * safezoneW + safezoneX;
164-
y = 0.368 * safezoneH + safezoneY;
164+
y = 0.401 * safezoneH + safezoneY;
165165
w = 0.118594 * safezoneW;
166166
h = 0.022 * safezoneH;
167167
};
@@ -172,7 +172,7 @@ class AW_zeusMenu {
172172
idc = 2413;
173173
text = "Convoy Ambush"; //--- ToDo: Localize;
174174
x = 0.5825 * safezoneW + safezoneX;
175-
y = 0.401 * safezoneH + safezoneY;
175+
y = 0.434 * safezoneH + safezoneY;
176176
w = 0.118594 * safezoneW;
177177
h = 0.022 * safezoneH;
178178
};
@@ -183,7 +183,7 @@ class AW_zeusMenu {
183183
idc = 2414;
184184
text = "Counter-Attack"; //--- ToDo: Localize;
185185
x = 0.5825 * safezoneW + safezoneX;
186-
y = 0.434 * safezoneH + safezoneY;
186+
y = 0.467 * safezoneH + safezoneY;
187187
w = 0.118594 * safezoneW;
188188
h = 0.022 * safezoneH;
189189
};
@@ -262,6 +262,17 @@ class AW_zeusMenu {
262262
w = 0.0721875 * safezoneW;
263263
h = 0.022 * safezoneH;
264264
};
265+
class RscButtonMenu_2422: AW_RscButtonGeneral
266+
{
267+
onButtonClick="[""activateSector""] call AW_fnc_manualZeusAction";
268+
269+
idc = 2422;
270+
text = "Activate Sector"; //--- ToDo: Localize;
271+
x = 0.5825 * safezoneW + safezoneX;
272+
y = 0.269 * safezoneH + safezoneY;
273+
w = 0.118594 * safezoneW;
274+
h = 0.022 * safezoneH;
275+
};
265276
class RscListbox_1500: RscListbox
266277
{
267278
idc = 1500;

Frontlines.Malden/initPlayerLocal.sqf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ if (AW_showIntro) then {
4949
<t align='center' size='6' shadow='0'><br/>Frontlines</t><br/>
5050
Welcome to Frontlines, a gamemode made for Ahoyworld by Dom and the Ahoyworld Team.<br/><br/>
5151
<a color='#00DFFF'>•</a> Github: <a href='https://github.com/DomT602/Frontlines' color='#56BDD6'> https://github.com/DomT602/Frontlines</a><br/>
52+
<a color='#00DFFF'>•</a> Discord: <a href='https://discord.gg/82tAKdsT79' color='#56BDD6'> https://discord.gg/82tAKdsT79</a>
5253
";
5354

5455
_text ctrlSetStructuredText (parseText _message);

Frontlines.Malden/initServer.sqf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#include "\arma3_readme.txt"
21
AW_serverReady = false;
32
publicVariable "AW_serverReady";
43

README.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,28 @@ Frontlines is a highly configurable persistent sector control game-mode to invad
1414

1515
## Reccommended Mods
1616
- <a href="https://steamcommunity.com/sharedfiles/filedetails/?id=2512672547">View Distance Menu</a>
17+
- <a href="https://steamcommunity.com/sharedfiles/filedetails/?id=1638341685">DUI - Squad Radar</a>
1718

1819
## Features
19-
- Coming soon
20+
Need 1 line Intro here
21+
- Fight along the Frontline, with all activity focused around this area to provide logical progress
22+
- Different sector types which all have specific characteristics and interactions
23+
- A simple building system to enable FOBs to be built and expanded upon, utilising three different resources
24+
- An enemy which counters you with 'side' missions which will hinder your progress
25+
- A variety of 'secondary' missions which can provide various benefits if completed successfully
26+
- An enemy threat system which increases by your actions, which will increase the enemy difficulty and reactiveness
27+
- A civilian reputation system which dictates how the local population will help, or hinder, your progress
28+
- Guerillas who can be called upon for a variety of supports through a simple to use menu
29+
- Ambient civilian and opfor providing each map additional life and surprises around any corner
30+
- A persistent campaign saved on the profile of the server to maintain your progress
31+
- A zeus menu to allow admins to gain direct access to a variety of Frontline specific features
32+
- All features seemlessly integrated into ACE providing a consistent experience
33+
- Various user settings which can be customised via CBA Addon Options
34+
- In-built support for 1 headless client
2035

2136
## Factions
2237
Each faction provided in the Map and Factions folder has differing mod requirements, so please check what they use and edit as necessary. You can make your own factions which is detailed in this <a href="https://github.com/DomT602/Frontlines/blob/DomT602-patch-1/Map%20and%20Factions/New_Config_Map_Guide.md">guide</a>.
38+
39+
<p align="center">
40+
![Discord Banner 2](https://discordapp.com/api/guilds/908047463141761036/widget.png?style=banner2)
41+
</p>

0 commit comments

Comments
 (0)