mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Add new option to spectator unit filter setting
Adds an option to use playableUnits for scenarios where AI playable units are enabled.
This commit is contained in:
parent
07e09b60fa
commit
5200fd6a02
@ -1,8 +1,8 @@
|
||||
class ACE_Settings {
|
||||
class GVAR(filterUnits) {
|
||||
typeName = "SCALAR";
|
||||
value = 1;
|
||||
values[] = {CSTRING(units_none), CSTRING(units_players), CSTRING(units_all)};
|
||||
value = 2;
|
||||
values[] = {CSTRING(units_none), CSTRING(units_players), CSTRING(units_playable), CSTRING(units_all)};
|
||||
};
|
||||
class GVAR(filterSides) {
|
||||
typeName = "SCALAR";
|
||||
|
@ -21,11 +21,15 @@ class CfgVehicles {
|
||||
class players {
|
||||
name = CSTRING(units_players);
|
||||
value = 1;
|
||||
};
|
||||
class playable {
|
||||
name = CSTRING(units_playable);
|
||||
value = 2;
|
||||
default = 1;
|
||||
};
|
||||
class all {
|
||||
name = CSTRING(units_all);
|
||||
value = 2;
|
||||
value = 3;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -36,7 +36,7 @@ if !(_newUnits isEqualTo []) exitWith {
|
||||
private ["_sides","_cond","_filteredUnits","_color","_icon"];
|
||||
|
||||
// Unit setting filter
|
||||
_newUnits = [[],allPlayers,allUnits] select GVAR(filterUnits);
|
||||
_newUnits = [[],allPlayers,playableUnits,allUnits] select GVAR(filterUnits);
|
||||
|
||||
// Side setting filter
|
||||
_sides = [];
|
||||
|
@ -25,6 +25,9 @@
|
||||
<English>Only players</English>
|
||||
<Polish>Tylko gracze</Polish>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Spectator_units_playable">
|
||||
<English>Playable Units</English>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Spectator_units_all">
|
||||
<English>All units</English>
|
||||
<Polish>Wszystkie jednostki</Polish>
|
||||
|
Loading…
Reference in New Issue
Block a user