Skip to content

Commit 75ea0cb

Browse files
author
TheTrainDoctor
authored
Merge pull request #116 from unitedoperations/dev
Dev to master
2 parents 0a48ff4 + 2f17596 commit 75ea0cb

File tree

56 files changed

+874
-510
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+874
-510
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ Thumbs.db
1010
*.log
1111
*.zip
1212
*.7z
13+
.vscode

CHANGELOG.md

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,30 @@ All notable changes to this project will be documented in this file.
33
The version number refer to VERSION define in script_mod.
44
The date refers to the date when changes have been merged into DEV branch.
55

6-
## [Unreleased]
6+
## [1.0.6]
7+
### Added
8+
- View Distance limit sliders now avaliable!
9+
- Note: Minimumn view-distance enforced by Arma is 200 meters.
10+
- Added unit babel language
11+
12+
### Changed
13+
- CaptureZone modules used hint, changed to hintSilent
14+
- The extraction end-condition is now longer dependent upon another end-condition to fire.
15+
16+
### Fixed
17+
- All run "module on respawn" settings are now configurable.
18+
- Individual ticketed respawns now fully functional
19+
- Team tickets and unlimited respawn options now functional
20+
- Respawn as a different faction is now functional
21+
- Spectator is now at the correct location
22+
- ACRE Set Radio Channel now works correctly
23+
- ACRE Set Ear now works correctly
24+
25+
### Removed
26+
27+
### Known Issues
28+
29+
## [1.0.5]
730
### Added
831
- Legacy mission support switches for functions: `EGVAR(Core,Version_UpdatedNumber)` and `EGVAR(Core,Version_CreatedNumber)` available in PreInit past `EGVAR(Core,Enabled)` check. Can be used for specific function changes and redirects based on version changes. Functions specific to an older version should be placed in an additional `\Legacy\` folder.
932
- Gear System CBA Events for loading 3den attribute unit and vehicle loadouts, as well as forcing specific loadouts to units and vehicles.
@@ -44,8 +67,7 @@ The date refers to the date when changes have been merged into DEV branch.
4467
- Debug display naming
4568

4669
### Removed
47-
48-
70+
- N/A
4971

5072
## [1.0.2] - 2018-22-02
5173
### Added

uo_sys_framework/ACREModule/cfgAttributeCategories/Object.hpp

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class EGVAR(ACRE,UnitOptions) {
3636
control = QEGVAR(ACRE,EarSetting);
3737
expression = ENTITY_EXPRESSION;
3838
condition = "objectControllable";
39-
defaultValue = "0";
39+
defaultValue = "1";
4040
};
4141
class EGVAR(ACRE,LR_RADIO_Enabled) {
4242
property = QEGVAR(ACRE,LR_RADIO_Enabled);
@@ -63,7 +63,7 @@ class EGVAR(ACRE,UnitOptions) {
6363
control = QEGVAR(ACRE,EarSetting);
6464
expression = ENTITY_EXPRESSION;
6565
condition = "objectControllable";
66-
defaultValue = "0";
66+
defaultValue = "1";
6767
};
6868
class EGVAR(ACRE,PK_RADIO_Enabled) {
6969
property = QEGVAR(ACRE,PK_RADIO_Enabled);
@@ -90,7 +90,17 @@ class EGVAR(ACRE,UnitOptions) {
9090
control = QEGVAR(ACRE,EarSetting);
9191
expression = ENTITY_EXPRESSION;
9292
condition = "objectControllable";
93-
defaultValue = "0";
93+
defaultValue = "1";
94+
};
95+
class EGVAR(ACRE,AdditionalLanguage) {
96+
displayName = "Additional Language";
97+
tooltip = "Selected Language will be added to the list of spoken Babbel langauges. The language must be defined in the main acre settings.";
98+
property = QEGVAR(ACRE,AdditionalLanguage);
99+
control = QEGVAR(ACRE,AdditionalLanguageAttribute);
100+
typeName = "STRING";
101+
expression = ENTITY_EXPRESSION;
102+
condition = "objectControllable";
103+
defaultValue = "'None'";
94104
};
95105
};
96106
};
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
#include "CfgAttributes\EarSettingAttribute.hpp"
22
#include "CfgAttributes\RadioSelectAttribute.hpp"
33
#include "CfgAttributes\ChannelSelectAttribute.hpp"
4+
#include "CfgAttributes\AdditionalLanguageAttribute.hpp"
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
class EGVAR(ACRE,AdditionalLanguageAttribute): Combo {
2+
//save the lbData from the selected entry upon exit
3+
attributeSave = "\
4+
private _value = ((_this controlsGroupCtrl 100) lbData lbCurSel (_this controlsGroupCtrl 100));\
5+
private _unit = ((get3denselected 'object') select 0);\
6+
private _name = gettext (_config >> 'property');\
7+
_unit setvariable [_name,_value];\
8+
_value\
9+
";
10+
//_this - config, _value - saved value
11+
attributeLoad="\
12+
private _control = (_this controlsGroupCtrl 100);\
13+
private _name = gettext (_config >> 'property');\
14+
private _unit = ((get3denselected 'object') select 0);\
15+
private _nameArray = ['None','English','Russian','French','Arabic','Greek','BluforCustomLanguage1','BluforCustomLanguage2','OpforCustomLanguage1','OpforCustomLanguage2','IndforCustomLanguage1','IndforCustomLanguage2','CivCustomLanguage1','CivCustomLanguage2'];\
16+
{\
17+
private _index = _control lbadd _x;\
18+
_control lbsetdata [_index,_x];\
19+
_control lbsetValue [_index,_foreachIndex];\
20+
if (_value isEqualto (_control lbData _index)) then {\
21+
_control lbSetCurSel _index;\
22+
_unit setvariable [_name,_value];\
23+
};\
24+
} foreach _nameArray;\
25+
";
26+
class Controls: Controls {
27+
class Title: Title {};
28+
class Value: Value {};
29+
};
30+
};

uo_sys_framework/ACREModule/cfgXEH/init/ClientPreInit.sqf

Lines changed: 42 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
EXEC_CHECK(CLIENT);
1313
if !(UO_FW_Server_ACREModule_Allowed) exitwith {};
1414

15-
#define RADIONETARRAY(TEAMNAME) \
16-
[(GETMVAR(RADIONET_NAME1##TEAMNAME,"")),(GETMVAR(RADIONET_NAME2##TEAMNAME,"")),(GETMVAR(RADIONET_NAME3##TEAMNAME,"")),(GETMVAR(RADIONET_NAME4##TEAMNAME,"")),(GETMVAR(RADIONET_NAME5##TEAMNAME,"")),(GETMVAR(RADIONET_NAME6##TEAMNAME,"")),(GETMVAR(RADIONET_NAME7##TEAMNAME,""))]
1715

1816
[QGVAR(Init_Event), {
1917
if !(GETMVAR(Enabled,false)) exitwith {};
@@ -32,6 +30,21 @@ if !(UO_FW_Server_ACREModule_Allowed) exitwith {};
3230
};
3331
//Channel names stuff
3432
LOG("ACRE Init");
33+
34+
_radioNetNamesBlufor = [(GETMVAR(RADIONET_NAME1_Blufor ,"PLTNET 1")),(GETMVAR(RADIONET_NAME2_Blufor ,"PLTNET 2")),(GETMVAR(RADIONET_NAME3_Blufor ,"PLTNET 3")),
35+
(GETMVAR(RADIONET_NAME4_Blufor ,"PLTNET 4")),(GETMVAR(RADIONET_NAME5_Blufor ,"Coy")),(GETMVAR(RADIONET_NAME6_Blufor ,"Cas")),(GETMVAR(RADIONET_NAME7_Blufor ,"Fires"))];
36+
37+
_radioNetNamesOpfor = [(GETMVAR(RADIONET_NAME1_Opfor ,"PLTNET 1")),(GETMVAR(RADIONET_NAME2_Opfor ,"PLTNET 2")),(GETMVAR(RADIONET_NAME3_Opfor ,"PLTNET 3")),
38+
(GETMVAR(RADIONET_NAME4_Opfor ,"PLTNET 4")),(GETMVAR(RADIONET_NAME5_Opfor ,"Coy")),(GETMVAR(RADIONET_NAME6_Opfor ,"Cas")),(GETMVAR(RADIONET_NAME7_Opfor ,"Fires"))];
39+
40+
_radioNetNamesIndfor = [(GETMVAR(RADIONET_NAME1_Indfor ,"PLTNET 1")),(GETMVAR(RADIONET_NAME2_Indfor ,"PLTNET 2")),(GETMVAR(RADIONET_NAME3_Indfor ,"PLTNET 3")),
41+
(GETMVAR(RADIONET_NAME4_Indfor ,"PLTNET 4")),(GETMVAR(RADIONET_NAME5_Indfor ,"Coy")),(GETMVAR(RADIONET_NAME6_Indfor ,"Cas")),(GETMVAR(RADIONET_NAME7_Indfor ,"Fires"))];
42+
43+
_radioNetNamesCiv = [(GETMVAR(RADIONET_NAME1_Civ ,"PLTNET 1")),(GETMVAR(RADIONET_NAME2_Civ ,"PLTNET 2")),(GETMVAR(RADIONET_NAME3_Civ ,"PLTNET 3")),
44+
(GETMVAR(RADIONET_NAME4_Civ ,"PLTNET 4")),(GETMVAR(RADIONET_NAME5_Civ ,"Coy")),(GETMVAR(RADIONET_NAME6_Civ ,"Cas")),(GETMVAR(RADIONET_NAME7_Civ ,"Fires"))];
45+
46+
47+
3548
if ((GETMVAR(RADIONET_Enabled_BLUFOR,false)) && {(side player isEqualTo west)}) then {
3649
{
3750
private _index = _forEachIndex + 1;
@@ -42,7 +55,7 @@ if !(UO_FW_Server_ACREModule_Allowed) exitwith {};
4255
[_x, GVAR(Preset_BLUFOR), _index, _label, _name] call acre_api_fnc_setPresetChannelField;
4356
} forEach ["ACRE_PRC117F", "ACRE_PRC148", "ACRE_PRC152"];
4457
};
45-
} foreach RADIONETARRAY(BLUFOR);
58+
} foreach _radioNetNamesBlufor;
4659
};
4760
if ((GETMVAR(RADIONET_Enabled_OPFOR,false)) && {(side player isEqualTo east)}) then {
4861
{
@@ -54,7 +67,7 @@ if !(UO_FW_Server_ACREModule_Allowed) exitwith {};
5467
[_x, GVAR(Preset_OPFOR), _index, _label, _name] call acre_api_fnc_setPresetChannelField;
5568
} forEach ["ACRE_PRC117F", "ACRE_PRC148", "ACRE_PRC152"];
5669
};
57-
} foreach RADIONETARRAY(OPFOR);
70+
} foreach _radioNetNamesOpfor;
5871
};
5972
if ((GETMVAR(RADIONET_Enabled_Indfor,false)) && {(side player isEqualTo independent)}) then {
6073
{
@@ -66,7 +79,7 @@ if !(UO_FW_Server_ACREModule_Allowed) exitwith {};
6679
[_x, GVAR(Preset_Indfor), _index, _label, _name] call acre_api_fnc_setPresetChannelField;
6780
} forEach ["ACRE_PRC117F", "ACRE_PRC148", "ACRE_PRC152"];
6881
};
69-
} foreach RADIONETARRAY(INDEPENDENT);
82+
} foreach _radioNetNamesIndfor;
7083
};
7184
if ((GETMVAR(RADIONET_Enabled_Civ,false)) && {(side player isEqualTo civilian)}) then {
7285
{
@@ -78,20 +91,20 @@ if !(UO_FW_Server_ACREModule_Allowed) exitwith {};
7891
[_x, GVAR(Preset_Civ), _index, _label, _name] call acre_api_fnc_setPresetChannelField;
7992
} forEach ["ACRE_PRC117F", "ACRE_PRC148", "ACRE_PRC152"];
8093
};
81-
} foreach RADIONETARRAY(CIVILIAN);
94+
} foreach _radioNetNamesCiv;
8295
};
8396

8497
if (GETMVAR(RADIONET_Enabled_BLUFOR,false)) then {
85-
LOG_1("Setting Netnames. Blu: %1",(RADIONETARRAY(BLUFOR)));
98+
LOG_1("Setting Netnames. Blu: %1",(_radioNetNamesBlufor));
8699
};
87100
if (GETMVAR(RADIONET_Enabled_OPFOR,false)) then {
88-
LOG_1("Setting Netnames. Opf: %1",(RADIONETARRAY(OPFOR)));
101+
LOG_1("Setting Netnames. Opf: %1",(_radioNetNamesOpfor));
89102
};
90103
if (GETMVAR(RADIONET_Enabled_INDEPENDENT,false)) then {
91-
LOG_1("Setting Netnames. Ind: %1",(RADIONETARRAY(INDEPENDENT)));
104+
LOG_1("Setting Netnames. Ind: %1",(_radioNetNamesIndfor));
92105
};
93106
if (GETMVAR(RADIONET_Enabled_Civ,false)) then {
94-
LOG_1("Setting Netnames. Civ: %1",(RADIONETARRAY(CIVILIAN)));
107+
LOG_1("Setting Netnames. Civ: %1",( _radioNetNamesCiv));
95108
};
96109

97110
[{(!isNull player) && {(!isNull acre_player)} && {([] call acre_api_fnc_isInitialized)}},{
@@ -232,6 +245,22 @@ if !(UO_FW_Server_ACREModule_Allowed) exitwith {};
232245
} forEach [QGVAR(Babel_Custom_Civ),QGVAR(Babel_Custom2_Civ)];
233246
} forEach _CURRENTBABEL_LANGUAGES;
234247

248+
_additonalLanguage = GETPLVAR(AdditionalLanguage,"None");
249+
_lang = ["None","English","Russian","French","Arabic","Greek","BluforCustomLanguage1","BluforCustomLanguage2",
250+
"OpforCustomLanguage1","OpforCustomLanguage2","IndforCustomLanguage1","IndforCustomLanguage2","CivCustomLanguage1","CivCustomLanguage2"];
251+
252+
_possibleLang = ["None","en","ru","fr","ar","gk","cl1","cl2","cl3","cl4","cl5","cl6","cl7","cl8"];
253+
254+
255+
_addIndex = _lang find _additonalLanguage;
256+
//ignore None by index
257+
if(_addIndex > 0) then
258+
{
259+
_ACRE_BLUFOR_BABEL_LANGUAGES pushBackUnique (_possibleLang select _addIndex);
260+
_ACRE_OPFOR_BABEL_LANGUAGES pushBackUnique (_possibleLang select _addIndex);
261+
_ACRE_Indfor_BABEL_LANGUAGES pushBackUnique (_possibleLang select _addIndex);
262+
_ACRE_Civ_BABEL_LANGUAGES pushBackUnique (_possibleLang select _addIndex);
263+
};
235264

236265
if (GVAR(Babel_Enabled_BLUFOR) && {(side player isEqualTo west)}) then {
237266
_ACRE_BLUFOR_BABEL_LANGUAGES call acre_api_fnc_babelSetSpokenLanguages;
@@ -344,7 +373,7 @@ if !(UO_FW_Server_ACREModule_Allowed) exitwith {};
344373
[_radioID, _result] call acre_api_fnc_setRadioChannel;
345374
};
346375

347-
[_radioID, (["CENTER", "LEFT", "RIGHT"] select (GETPLVAR(SR_RADIO_EAR,0)))] call acre_api_fnc_setRadioSpatial;
376+
[_radioID, (["LEFT","CENTER", "RIGHT"] select (GETPLVAR(SR_RADIO_EAR,1)))] call acre_api_fnc_setRadioSpatial;
348377
};
349378
} forEach ["ACRE_PRC343", "ACRE_SEM52SL"];
350379

@@ -357,7 +386,7 @@ if !(UO_FW_Server_ACREModule_Allowed) exitwith {};
357386
} else {
358387
[_radioID, _result] call acre_api_fnc_setRadioChannel;
359388
};
360-
[_radioID, (["CENTER", "LEFT", "RIGHT"] select (GETPLVAR(LR_RADIO_EAR,0)))] call acre_api_fnc_setRadioSpatial;
389+
[_radioID, ([ "LEFT","CENTER", "RIGHT"] select (GETPLVAR(LR_RADIO_EAR,1)))] call acre_api_fnc_setRadioSpatial;
361390
};
362391
} forEach ["ACRE_PRC343", "ACRE_PRC148", "ACRE_PRC152"];
363392

@@ -372,7 +401,7 @@ if !(UO_FW_Server_ACREModule_Allowed) exitwith {};
372401
[_radioID, _result] call acre_api_fnc_setRadioChannel;
373402
};
374403
};
375-
[_radioID, (["CENTER", "LEFT", "RIGHT"] select (GETPLVAR(PK_RADIO_EAR,0)))] call acre_api_fnc_setRadioSpatial;
404+
[_radioID, (["LEFT","CENTER", "RIGHT"] select (GETPLVAR(PK_RADIO_EAR,1)))] call acre_api_fnc_setRadioSpatial;
376405
};
377406
} forEach ["ACRE_PRC117F", "ACRE_PRC77", "ACRE_SEM70"];
378407
};

uo_sys_framework/BriefingModule/defines/blufor_briefing.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ if (GETMVAR(NATO_BLUFOR,false)) then {
118118
_execStr = _execStr + "<font color='#5BD527' size='14.0'><h1>Commanders Intent:</h1></font color><br/>" + _execCIntent + "<br/><br/>";
119119
};
120120

121-
private _execManeuver = GETMVAR(NATO_EXECUTION_INTENT_BLUFOR,"");
121+
private _execManeuver = GETMVAR(NATO_EXECUTION_MANEUVER_BLUFOR,"");
122122
if !(_execManeuver isEqualTo "") then {
123123
_execStr = _execStr + "<font color='#5BD527' size='14.0'><h1>Maneuver:</h1></font color><br/>" + _execManeuver + "<br/><br/>";
124124
};

0 commit comments

Comments
 (0)