mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Disable zeus settings by default
Fixed newline characters
This commit is contained in:
parent
b09ebc9c79
commit
7cf52d13ca
@ -24,4 +24,4 @@ if (isNil {_logic getVariable _moduleVariable}) exitWith {
|
||||
};
|
||||
|
||||
// Set the setting globally and force it
|
||||
[_settingName, _logic getVariable _moduleVariable, true, true] call FUNC(setSetting);
|
||||
[_settingName, _logic getVariable _moduleVariable, true, true] call FUNC(setSetting);
|
||||
|
@ -1,23 +1,23 @@
|
||||
class ACE_Settings {
|
||||
class GVAR(zeusAscension) {
|
||||
typeName = "BOOL";
|
||||
value = 1;
|
||||
value = 0;
|
||||
};
|
||||
class GVAR(zeusBird) {
|
||||
typeName = "BOOL";
|
||||
value = 1;
|
||||
value = 0;
|
||||
};
|
||||
class GVAR(remoteWind) {
|
||||
typeName = "BOOL";
|
||||
value = 1;
|
||||
value = 0;
|
||||
};
|
||||
class GVAR(radioOrdnance) {
|
||||
typeName = "BOOL";
|
||||
value = 1;
|
||||
value = 0;
|
||||
};
|
||||
class GVAR(revealMines) {
|
||||
typeName = "SCALAR";
|
||||
value = 2;
|
||||
value = 0;
|
||||
values[] = {"Disabled", "Partially", "Fully"};
|
||||
};
|
||||
};
|
||||
|
@ -3,4 +3,4 @@ class CfgFactionClasses {
|
||||
class ADDON: NO_CATEGORY {
|
||||
displayName = "ACE Zeus";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -77,4 +77,4 @@ class CfgVehicles {
|
||||
class ModuleRemoteControl_F: Module_F {
|
||||
function = QUOTE(DFUNC(bi_moduleRemoteControl));
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -15,4 +15,4 @@ class CfgPatches {
|
||||
#include "CfgEventHandlers.hpp"
|
||||
#include "CfgFactionClasses.hpp"
|
||||
#include "CfgVehicles.hpp"
|
||||
#include "ACE_Settings.hpp"
|
||||
#include "ACE_Settings.hpp"
|
||||
|
@ -153,7 +153,7 @@ if (_activated) then {
|
||||
} foreach (_logic getvariable ["channels",[]]);
|
||||
|
||||
// Added by ACE_zeus to toggle ascension messages
|
||||
if (GETMVAR(GVAR(zeusAscension),true)) then {
|
||||
if GVAR(zeusAscension) then {
|
||||
//--- Sent notification to all assigned players
|
||||
{
|
||||
if (isplayer _x) then {
|
||||
@ -193,7 +193,7 @@ if (_activated) then {
|
||||
};
|
||||
|
||||
// Added by ACE_zeus to toggle eagle
|
||||
if (GETMVAR(GVAR(zeusBird),true)) then {
|
||||
if GVAR(zeusBird) then {
|
||||
//--- Create bird
|
||||
_birdType = _logic getvariable ["birdType","eagle_f"];
|
||||
if (_birdType != "") then {
|
||||
@ -218,7 +218,7 @@ if (_activated) then {
|
||||
_addons call bis_fnc_activateaddons;
|
||||
|
||||
// Added by ACE_zeus to toggle eagle
|
||||
if (GETMVAR(GVAR(zeusBird),true)) then {
|
||||
if GVAR(zeusBird) then {
|
||||
//--- Locality changed
|
||||
_logic addeventhandler [
|
||||
"local",
|
||||
@ -330,4 +330,4 @@ if (_activated) then {
|
||||
|
||||
player call bis_fnc_curatorRespawn;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -25,15 +25,14 @@ if (_activated) then {
|
||||
_explosive attachto [_logic];
|
||||
|
||||
// Added by ACE_zeus to control if mines are revealed
|
||||
_revealMines = GETMVAR(GVAR(revealMines),2);
|
||||
if (_revealMines > 0) then {
|
||||
if (GVAR(revealMines) > 0) then {
|
||||
//--- Reveal the mine to curator's side
|
||||
{
|
||||
_side = (getassignedcuratorunit _x) call bis_fnc_objectSide;
|
||||
_side revealmine _explosive;
|
||||
} foreach (objectcurators _logic);
|
||||
|
||||
if (_revealMines > 1) then {
|
||||
if (GVAR(revealMines) > 1) then {
|
||||
//--- Mark minefields in the map
|
||||
[] spawn bis_fnc_drawMinefields;
|
||||
};
|
||||
@ -46,4 +45,4 @@ if (_activated) then {
|
||||
if (isnull _logic) then {deletevehicle _explosive;} else {_explosive setdamage 1;};
|
||||
deletevehicle _logic;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -137,7 +137,7 @@ if (_activated) then {
|
||||
_soundSource = if (_soundSourceClass != "") then {createSoundSource [_soundSourceClass,_pos,[],0]} else {objnull};
|
||||
|
||||
// Added by ACE_zeus to toggle ordnance radio message
|
||||
if (GETMVAR(GVAR(radioOrdnance),true)) then {
|
||||
if GVAR(radioOrdnance) then {
|
||||
//--- Play radio warning
|
||||
[] call _fnc_playRadio;
|
||||
};
|
||||
@ -194,4 +194,4 @@ if (_activated) then {
|
||||
} else {
|
||||
["Cannot create projectile, 'ammo' config attribute is missing in %1",typeof _logic] call bis_fnc_error;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -48,7 +48,7 @@ if (_activated && local _logic && !isnull curatorcamera) then {
|
||||
_unit setvariable ["bis_fnc_moduleRemoteControl_owner",player,true];
|
||||
|
||||
// Added by ACE_zeus to toggle remote control wind sound
|
||||
if (GETMVAR(GVAR(remoteWind),true)) then {
|
||||
if GVAR(remoteWind) then {
|
||||
//--- Play wind cue to all players
|
||||
[format ["wind%1",ceil random 5],"bis_fnc_playsound"] call bis_fnc_mp;
|
||||
};
|
||||
@ -168,4 +168,4 @@ if (_activated && local _logic && !isnull curatorcamera) then {
|
||||
[objnull,_error] call bis_fnc_showCuratorFeedbackMessage;
|
||||
};
|
||||
deletevehicle _logic;
|
||||
};
|
||||
};
|
||||
|
@ -26,4 +26,4 @@ if !(_activated) exitWith {};
|
||||
[_logic, QGVAR(zeusBird), "zeusBird"] call EFUNC(common,readSettingFromModule);
|
||||
[_logic, QGVAR(radioOrdnance), "radioOrdnance"] call EFUNC(common,readSettingFromModule);
|
||||
[_logic, QGVAR(revealMines), "revealMines"] call EFUNC(common,readSettingFromModule);
|
||||
[_logic, QGVAR(remoteWind), "remoteWind"] call EFUNC(common,readSettingFromModule);
|
||||
[_logic, QGVAR(remoteWind), "remoteWind"] call EFUNC(common,readSettingFromModule);
|
||||
|
@ -9,4 +9,4 @@
|
||||
#define DEBUG_SETTINGS DEBUG_SETTINGS_ZEUS
|
||||
#endif
|
||||
|
||||
#include "\z\ace\addons\main\script_macros.hpp"
|
||||
#include "\z\ace\addons\main\script_macros.hpp"
|
||||
|
Loading…
Reference in New Issue
Block a user