Parameter for a3 vanilla dynamic fog on/off

This commit is contained in:
Wyqer 2019-08-25 14:23:09 +02:00
parent a3ac463269
commit 1b90576cea
No known key found for this signature in database
GPG Key ID: D7E2F8BD7F1E48FA
5 changed files with 32 additions and 1 deletions

View File

@ -44,7 +44,7 @@ execVM "scripts\server\battlegroup\readiness_increase.sqf";
execVM "scripts\server\game\apply_default_permissions.sqf";
execVM "scripts\server\game\capture_vehicles.sqf";
execVM "scripts\server\game\cleanup_vehicles.sqf";
execVM "scripts\server\game\fucking_set_fog.sqf";
if (!KP_liberation_fog_param) then {execVM "scripts\server\game\fucking_set_fog.sqf";};
execVM "scripts\server\game\manage_time.sqf";
execVM "scripts\server\game\manage_weather.sqf";
execVM "scripts\server\game\periodic_save.sqf";

View File

@ -59,6 +59,7 @@ if(isServer) then {
GET_PARAM_BOOL(KP_liberation_mobilerespawn, "MobileRespawn", 1);
GET_PARAM_BOOL(KP_liberation_mobilearsenal, "MobileArsenal", 1);
GET_PARAM_BOOL(KP_liberation_arsenal_type, "ArsenalType", 0);
GET_PARAM_BOOL(KP_liberation_fog_param, "VanillaFog", 1);
GET_PARAM_BOOL(GRLIB_adaptive_opfor, "AdaptToPlayercount", 1);
GET_PARAM_BOOL(GRLIB_deployment_cinematic, "DeploymentCinematic", 1);
@ -256,6 +257,24 @@ if (!isDedicated && hasInterface) then {
};
_text = _text + format ["<font color='#ff8000'>%1</font><br />%2<br /><br />", _param, _value];
_param = localize "STR_FOG_PARAM";
_value = if (KP_liberation_fog_param) then {localize "STR_PARAMS_ENABLED";} else {localize "STR_PARAMS_DISABLED";};
_text = _text + format ["<font color='#ff8000'>%1</font><br />%2<br /><br />", _param, _value];
_param = localize "STR_PARAMS_ARSENAL";
_value = if (KP_liberation_arsenal_type) then {localize "STR_PARAMS_ARSENAL_ACE";} else {localize "STR_PARAMS_ARSENAL_BI";};
_text = _text + format ["<font color='#ff8000'>%1</font><br />%2<br /><br />", _param, _value];
_param = localize "STR_PARAMS_VICTORYCONDITION";
switch (GRLIB_weather_param) do {
case 1: {_value = localize "STR_PARAMS_VICTORYCONDITION_1";};
case 2: {_value = localize "STR_PARAMS_VICTORYCONDITION_2";};
case 3: {_value = localize "STR_PARAMS_VICTORYCONDITION_3";};
case 4: {_value = localize "STR_PARAMS_VICTORYCONDITION_4";};
default {_value = localize "STR_PARAMS_VICTORYCONDITION_0";};
};
_text = _text + format ["<font color='#ff8000'>%1</font><br />%2<br /><br />", _param, _value];
_param = localize "STR_PARAMS_RESOURCESMULTIPLIER";
_value = format ["x%1", GRLIB_resources_multiplier];
_text = _text + format ["<font color='#ff8000'>%1</font><br />%2<br /><br />", _param, _value];

View File

@ -6264,5 +6264,9 @@
<German>FOB eingepackt.\nEventuelle Gebietsräumung wird zum Serverneustart rückgängig gemacht.</German>
<Russian>FOB свернуто.\nВозможно, созданное разрешение будет отменено после перезапуска сервера.</Russian>
</Key>
<Key ID="STR_FOG_PARAM">
<Original>Dynamic fog (A3 Vanilla)</Original>
<German>Dynamischer Nebel (A3 Vanilla)</German>
</Key>
</Package>
</Project>

View File

@ -96,6 +96,12 @@ class Params
texts[] = { $STR_WEATHER_PARAM1, $STR_WEATHER_PARAM2, $STR_WEATHER_PARAM3 };
default = 3;
};
class VanillaFog {
title = $STR_FOG_PARAM;
values[] = {1, 0};
texts[] = {$STR_PARAMS_ENABLED, $STR_PARAMS_DISABLED};
default = 1;
};
class ResourcesMultiplier {
title = $STR_PARAMS_RESOURCESMULTIPLIER;
values[] = { 0, 1, 2, 3, 4, 5, 6, 7 };

View File

@ -189,6 +189,7 @@ class Missions
### 0.96.6 (tbd)
* Added: [Swedish Forces Pack](https://steamcommunity.com/sharedfiles/filedetails/?id=826911897) transport configs. Thanks to [Dahlgren](https://github.com/Dahlgren)
* Added: Parameter to enable/disable the vanilla A3 dynamic fog behavior. Default enabled, so `fucking_set_fog.sqf` isn't running by default.
* Updated: Russian localization. Thanks to [DjHaski](https://github.com/DjHaski)
* Tweaked: Initial FOB box doesn't have equipment in the inventory anmore.
* Tweaked: Height check for mobile respawn now relies on `isTouchingGround` instead of z value of position.
@ -198,6 +199,7 @@ class Missions
* Fixed: Some Presets had CUP Towing Tractor in the wrong place or duplicated. Thanks to [Eogos](https://github.com/Eogos)
* Fixed: CUP Presets still had the Nemmera in the support vehicle section. Thanks to [Eogos](https://github.com/Eogos)
* Fixed: FOB resources weren't updated in build dialog, when building infantry units.
* Fixed: Some missing parameter information in the map screens parameter overview.
### 0.96.5 (26th July 2019 due to Contacts Release)
* Added: Contact DLC LDF preset.