mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Remove Old toMerge
This commit is contained in:
parent
c10b12174b
commit
6a204aa7b9
Binary file not shown.
@ -1,30 +0,0 @@
|
|||||||
// by commy2
|
|
||||||
|
|
||||||
if (!hasInterface) exitWith {};
|
|
||||||
|
|
||||||
AGM_NightVision_ppEffectBlur = ppEffectCreate ["dynamicBlur", 1234];
|
|
||||||
AGM_NightVision_ppEffectBlur ppEffectForceInNVG true;
|
|
||||||
AGM_NightVision_ppEffectBlur ppEffectAdjust [0];
|
|
||||||
AGM_NightVision_ppEffectBlur ppEffectCommit 0;
|
|
||||||
|
|
||||||
AGM_NightVision_ppEffectRadialBlur = ppEffectCreate ["radialBlur", 1238];
|
|
||||||
AGM_NightVision_ppEffectRadialBlur ppEffectForceInNVG true;
|
|
||||||
AGM_NightVision_ppEffectRadialBlur ppEffectAdjust [0, 0, 0, 0];
|
|
||||||
AGM_NightVision_ppEffectRadialBlur ppEffectCommit 0;
|
|
||||||
|
|
||||||
AGM_NightVision_ppEffect = ppEffectCreate ["FilmGrain", 1235];
|
|
||||||
AGM_NightVision_ppEffect ppEffectAdjust [0.25, 2.5, 2.5, 2.5*0.3, 2.5*0.3, false];
|
|
||||||
AGM_NightVision_ppEffect ppEffectCommit 0;
|
|
||||||
|
|
||||||
AGM_NightVision_ppEffectNVGBrightness = ppEffectCreate ["ColorCorrections", 1236];
|
|
||||||
AGM_NightVision_ppEffectNVGBrightness ppEffectForceInNVG true;
|
|
||||||
AGM_NightVision_ppEffectNVGBrightness ppEffectAdjust [1, 1, 0, [0, 0, 0, 0], [0, 0, 0, 1], [0, 0, 0, 1]];
|
|
||||||
AGM_NightVision_ppEffectNVGBrightness ppEffectCommit 0;
|
|
||||||
|
|
||||||
AGM_NightVision_ppEffectMuzzleFlash = ppEffectCreate ["ColorCorrections", 1237];
|
|
||||||
AGM_NightVision_ppEffectMuzzleFlash ppEffectEnable true;
|
|
||||||
AGM_NightVision_ppEffectMuzzleFlash ppEffectForceInNVG true;
|
|
||||||
AGM_NightVision_ppEffectMuzzleFlash ppEffectAdjust [1, 1, 0, [0, 0, 0, 0], [0, 0, 0, 1], [0, 0, 0, 1]];
|
|
||||||
AGM_NightVision_ppEffectMuzzleFlash ppEffectCommit 0;
|
|
||||||
|
|
||||||
0 spawn compile preprocessFileLineNumbers "\AGM_NightVision\nightVision.sqf";
|
|
@ -1,142 +0,0 @@
|
|||||||
class CfgPatches {
|
|
||||||
class AGM_NightVision {
|
|
||||||
units[] = {};
|
|
||||||
weapons[] = {"AGM_NVG_Gen1", "AGM_NVG_Gen2", /*"AGM_NVG_Gen3",*/ "AGM_NVG_Gen4", "AGM_NVG_Wide"};
|
|
||||||
requiredVersion = 0.60;
|
|
||||||
requiredAddons[] = {AGM_Core};
|
|
||||||
version = "0.95";
|
|
||||||
versionStr = "0.95";
|
|
||||||
versionAr[] = {0,95,0};
|
|
||||||
author[] = {"commy2", "KoffeinFlummi"};
|
|
||||||
authorUrl = "https://github.com/commy2/";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
class CfgFunctions {
|
|
||||||
class AGM_NightVision {
|
|
||||||
class AGM_NightVision {
|
|
||||||
file = "\AGM_nightvision\functions";
|
|
||||||
class blending;
|
|
||||||
class decreaseNVGBrightness;
|
|
||||||
class increaseNVGBrightness;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
class Extended_PostInit_EventHandlers {
|
|
||||||
class AGM_NightVision {
|
|
||||||
clientInit = "call compile preprocessFileLineNumbers '\AGM_NightVision\clientInit.sqf'";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
class Extended_FiredBIS_EventHandlers {
|
|
||||||
class AllVehicles {
|
|
||||||
class AGM_NightVision_Blending {
|
|
||||||
clientFiredBIS = "if (_this select 0 == vehicle AGM_player && {currentVisionMode (_this select 0) == 1}) then {_this call AGM_NightVision_fnc_blending};";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
class AGM_Core_Default_Keys {
|
|
||||||
class increaseNVGBrightness {
|
|
||||||
displayName = "$STR_AGM_NightVision_IncreaseNVGBrightness";
|
|
||||||
condition = "currentVisionMode _player == 1";
|
|
||||||
statement = "[_player, _vehicle] call AGM_NightVision_fnc_increaseNVGBrightness";
|
|
||||||
key = 201;
|
|
||||||
shift = 0;
|
|
||||||
control = 0;
|
|
||||||
alt = 1;
|
|
||||||
allowHolding = 1;
|
|
||||||
};
|
|
||||||
class decreaseNVGBrightness {
|
|
||||||
displayName = "$STR_AGM_NightVision_DecreaseNVGBrightness";
|
|
||||||
condition = "currentVisionMode _player == 1";
|
|
||||||
statement = "[_player, _vehicle] call AGM_NightVision_fnc_decreaseNVGBrightness";
|
|
||||||
key = 209;
|
|
||||||
shift = 0;
|
|
||||||
control = 0;
|
|
||||||
alt = 1;
|
|
||||||
allowHolding = 1;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
class CfgVehicles {
|
|
||||||
class All {
|
|
||||||
AGM_NightVision_grain = 0.75;
|
|
||||||
AGM_NightVision_blur = 0.055;
|
|
||||||
};
|
|
||||||
|
|
||||||
#define MACRO_ADDITEM(ITEM,COUNT) class _xx_##ITEM { \
|
|
||||||
name = #ITEM; \
|
|
||||||
count = COUNT; \
|
|
||||||
};
|
|
||||||
|
|
||||||
class Box_NATO_Support_F;
|
|
||||||
class AGM_Box_Misc: Box_NATO_Support_F {
|
|
||||||
class TransportItems {
|
|
||||||
MACRO_ADDITEM(AGM_NVG_Gen1,6)
|
|
||||||
MACRO_ADDITEM(AGM_NVG_Gen2,6)
|
|
||||||
//MACRO_ADDITEM(AGM_NVG_Gen3,6)
|
|
||||||
MACRO_ADDITEM(AGM_NVG_Gen4,6)
|
|
||||||
MACRO_ADDITEM(AGM_NVG_Wide,6)
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
class CfgWeapons {
|
|
||||||
class Binocular;
|
|
||||||
class NVGoggles: Binocular {
|
|
||||||
displayName = "$STR_AGM_NightVision_NVG_Gen3_brown";
|
|
||||||
AGM_NightVision_grain = 0.75;
|
|
||||||
AGM_NightVision_blur = 0.055;
|
|
||||||
AGM_NightVision_radBlur = 0.001;
|
|
||||||
};
|
|
||||||
class NVGoggles_OPFOR: NVGoggles {
|
|
||||||
displayName = "$STR_AGM_NightVision_NVG_Gen3_black";
|
|
||||||
};
|
|
||||||
class NVGoggles_INDEP: NVGoggles {
|
|
||||||
displayName = "$STR_AGM_NightVision_NVG_Gen3_green";
|
|
||||||
};
|
|
||||||
|
|
||||||
class AGM_NVG_Gen1: NVGoggles_OPFOR {
|
|
||||||
author = "$STR_AGM_Core_AGMTeam";
|
|
||||||
modelOptics = "\A3\weapons_f\reticle\optics_night";
|
|
||||||
displayName = "$STR_AGM_NightVision_NVG_Gen1";
|
|
||||||
AGM_NightVision_grain = 2.25;
|
|
||||||
AGM_NightVision_blur = 0.22;
|
|
||||||
AGM_NightVision_radBlur = 0.004;
|
|
||||||
};
|
|
||||||
class AGM_NVG_Gen2: NVGoggles_INDEP {
|
|
||||||
author = "$STR_AGM_Core_AGMTeam";
|
|
||||||
modelOptics = "\A3\weapons_f\reticle\optics_night";
|
|
||||||
displayName = "$STR_AGM_NightVision_NVG_Gen2";
|
|
||||||
AGM_NightVision_grain = 1.5;
|
|
||||||
AGM_NightVision_blur = 0.11;
|
|
||||||
AGM_NightVision_radBlur = 0.002;
|
|
||||||
};
|
|
||||||
/*class AGM_NVG_Gen3: NVGoggles {
|
|
||||||
author = "$STR_AGM_Core_AGMTeam";
|
|
||||||
modelOptics = "\A3\weapons_f\reticle\optics_night";
|
|
||||||
displayName = "$STR_AGM_NightVision_NVG_Gen3";
|
|
||||||
AGM_NightVision_grain = 0.75;
|
|
||||||
AGM_NightVision_blur = 0.055;
|
|
||||||
AGM_NightVision_radBlur = 0.001;
|
|
||||||
};*/
|
|
||||||
class AGM_NVG_Gen4: NVGoggles {
|
|
||||||
author = "$STR_AGM_Core_AGMTeam";
|
|
||||||
modelOptics = "\A3\weapons_f\reticle\optics_night";
|
|
||||||
displayName = "$STR_AGM_NightVision_NVG_Gen4";
|
|
||||||
AGM_NightVision_grain = 0.0;
|
|
||||||
AGM_NightVision_blur = 0.0;
|
|
||||||
AGM_NightVision_radBlur = 0.0;
|
|
||||||
};
|
|
||||||
class AGM_NVG_Wide: NVGoggles {
|
|
||||||
author = "$STR_AGM_Core_AGMTeam";
|
|
||||||
// modelOptics = "\AGM_NightVision\weapons\agm_nvg_wide";
|
|
||||||
modelOptics = "\agm_nightvision\agm_nvg_wide_optics.p3d";
|
|
||||||
displayName = "$STR_AGM_NightVision_NVG_FullScreen";
|
|
||||||
AGM_NightVision_grain = 0.75;
|
|
||||||
AGM_NightVision_blur = 0.055;
|
|
||||||
AGM_NightVision_radBlur = 0.001;
|
|
||||||
};
|
|
||||||
};
|
|
@ -1,67 +0,0 @@
|
|||||||
// by commy2
|
|
||||||
|
|
||||||
private ["_vehicle", "_weapon", "_ammo", "_magazine", "_player"];
|
|
||||||
|
|
||||||
_vehicle = _this select 0;
|
|
||||||
_weapon = _this select 1;
|
|
||||||
_ammo = _this select 4;
|
|
||||||
_magazine = _this select 5;
|
|
||||||
|
|
||||||
_player = AGM_player;
|
|
||||||
|
|
||||||
if (_player != _vehicle && {!(_weapon in (_vehicle weaponsTurret ([_player] call AGM_Core_fnc_getTurretIndex)))}) exitWith {};
|
|
||||||
|
|
||||||
private ["_silencer", "_visibleFireCoef", "_visibleFireTimeCoef", "_visibleFire", "_visibleFireTime", "_nvgBrightnessCoef", "_fnc_isTracer", "_darkness"];
|
|
||||||
|
|
||||||
_silencer = switch (_weapon) do {
|
|
||||||
case (primaryWeapon _player) : {primaryWeaponItems _player select 0};
|
|
||||||
case (secondaryWeapon _player) : {secondaryWeaponItems _player select 0};
|
|
||||||
case (handgunWeapon _player) : {handgunItems _player select 0};
|
|
||||||
default {""};
|
|
||||||
};
|
|
||||||
|
|
||||||
_visibleFireCoef = 1;
|
|
||||||
_visibleFireTimeCoef = 1;
|
|
||||||
if (_silencer != "") then {
|
|
||||||
_visibleFireCoef = getNumber (configFile >> "CfgWeapons" >> _silencer >> "ItemInfo" >> "AmmoCoef" >> "visibleFire");
|
|
||||||
_visibleFireTimeCoef = getNumber (configFile >> "CfgWeapons" >> _silencer >> "ItemInfo" >> "AmmoCoef" >> "visibleFireTime");
|
|
||||||
};
|
|
||||||
|
|
||||||
_visibleFire = getNumber (configFile >> "CfgAmmo" >> _ammo >> "visibleFire");
|
|
||||||
_visibleFireTime = getNumber (configFile >> "CfgAmmo" >> _ammo >> "visibleFireTime");
|
|
||||||
|
|
||||||
_nvgBrightnessCoef = 1 + (_player getVariable ["AGM_NVGBrightness", 0]) / 4;
|
|
||||||
|
|
||||||
_fnc_isTracer = {
|
|
||||||
private ["_indexShot", "_lastRoundsTracer", "_tracersEvery"];
|
|
||||||
|
|
||||||
if (getNumber (configFile >> "CfgAmmo" >> _ammo >> "nvgOnly") > 0) exitWith {false};
|
|
||||||
|
|
||||||
_indexShot = (_player ammo _weapon) + 1;
|
|
||||||
|
|
||||||
_lastRoundsTracer = getNumber (configFile >> "CfgMagazines" >> _magazine >> "lastRoundsTracer");
|
|
||||||
if (_indexShot <= _lastRoundsTracer) exitWith {true};
|
|
||||||
|
|
||||||
_tracersEvery = getNumber (configFile >> "CfgMagazines" >> _magazine >> "tracersEvery");
|
|
||||||
if (_tracersEvery == 0) exitWith {false};
|
|
||||||
|
|
||||||
(_indexShot - _lastRoundsTracer) % _tracersEvery == 0
|
|
||||||
};
|
|
||||||
|
|
||||||
if (call _fnc_isTracer) then {
|
|
||||||
_visibleFire = _visibleFire + 2;
|
|
||||||
_visibleFireTime = _visibleFireTime + 2;
|
|
||||||
};
|
|
||||||
|
|
||||||
_darkness = 1 - (call AGM_Core_fnc_ambientBrightness);
|
|
||||||
|
|
||||||
_visibleFire = _darkness * _visibleFireCoef * _visibleFire * _nvgBrightnessCoef / 10 min 1;
|
|
||||||
_visibleFireTime = _darkness * _visibleFireTimeCoef * _visibleFireTime * _nvgBrightnessCoef / 10 min 0.5;
|
|
||||||
|
|
||||||
["NightVision", [_visibleFire, _visibleFireTime], {format ["visibleFire: %1 - visibleFireTime: %2", _this select 0, _this select 1]}] call AGM_Debug_fnc_log;
|
|
||||||
|
|
||||||
AGM_NightVision_ppEffectMuzzleFlash ppEffectAdjust [1, 1, _visibleFire, [0, 0, 0, 0], [0, 0, 0, 1], [0, 0, 0, 1]];
|
|
||||||
AGM_NightVision_ppEffectMuzzleFlash ppEffectCommit 0;
|
|
||||||
|
|
||||||
AGM_NightVision_ppEffectMuzzleFlash ppEffectAdjust [1, 1, 0, [0, 0, 0, 0], [0, 0, 0, 1], [0, 0, 0, 1]];
|
|
||||||
AGM_NightVision_ppEffectMuzzleFlash ppEffectCommit _visibleFireTime;
|
|
@ -1,20 +0,0 @@
|
|||||||
// by commy2
|
|
||||||
|
|
||||||
private ["_player", "_vehicle", "_brightness"];
|
|
||||||
|
|
||||||
_player = _this select 0;
|
|
||||||
_vehicle = _this select 1;
|
|
||||||
|
|
||||||
_brightness = _player getVariable ["AGM_NVGBrightness", 0];
|
|
||||||
|
|
||||||
if (_brightness > -1) then {
|
|
||||||
_brightness = round (10 * _brightness - 1) / 10;
|
|
||||||
|
|
||||||
_player setVariable ["AGM_NVGBrightness", _brightness, false];
|
|
||||||
|
|
||||||
AGM_NightVision_ppEffectNVGBrightness ppEffectAdjust [1, 1, _brightness / 4, [0, 0, 0, 0], [0, 0, 0, 1], [0, 0, 0, 1]];
|
|
||||||
AGM_NightVision_ppEffectNVGBrightness ppEffectCommit 0;
|
|
||||||
|
|
||||||
[format [localize "STR_AGM_NightVision_NVGBrightness", format ["%1%", _brightness * 100]]] call AGM_Core_fnc_displayTextStructured;
|
|
||||||
playSound "AGM_Sound_Click";
|
|
||||||
};
|
|
@ -1,20 +0,0 @@
|
|||||||
// by commy2
|
|
||||||
|
|
||||||
private ["_player", "_vehicle", "_brightness"];
|
|
||||||
|
|
||||||
_player = _this select 0;
|
|
||||||
_vehicle = _this select 1;
|
|
||||||
|
|
||||||
_brightness = _player getVariable ["AGM_NVGBrightness", 0];
|
|
||||||
|
|
||||||
if (_brightness < 1) then {
|
|
||||||
_brightness = round (10 * _brightness + 1) / 10;
|
|
||||||
|
|
||||||
_player setVariable ["AGM_NVGBrightness", _brightness, false];
|
|
||||||
|
|
||||||
AGM_NightVision_ppEffectNVGBrightness ppEffectAdjust [1, 1, _brightness / 4, [0, 0, 0, 0], [0, 0, 0, 1], [0, 0, 0, 1]];
|
|
||||||
AGM_NightVision_ppEffectNVGBrightness ppEffectCommit 0;
|
|
||||||
|
|
||||||
[format [localize "STR_AGM_NightVision_NVGBrightness", format ["%1%", _brightness * 100]]] call AGM_Core_fnc_displayTextStructured;
|
|
||||||
playSound "AGM_Sound_Click";
|
|
||||||
};
|
|
@ -1,100 +0,0 @@
|
|||||||
//by commy2
|
|
||||||
|
|
||||||
private ["_currentVehicle", "_currentTurret", "_currentHMD", "_grainSetting", "_blurSetting"];
|
|
||||||
|
|
||||||
_currentView = "";
|
|
||||||
_currentVehicle = objNull;
|
|
||||||
_currentTurret = [-1];
|
|
||||||
_currentHMD = "";
|
|
||||||
|
|
||||||
while {true} do {
|
|
||||||
AGM_NightVision_ppEffect ppEffectEnable false;
|
|
||||||
AGM_NightVision_ppEffectBlur ppEffectEnable false;
|
|
||||||
AGM_NightVision_ppEffectRadialBlur ppEffectEnable false;
|
|
||||||
AGM_NightVision_ppEffectNVGBrightness ppEffectEnable false;
|
|
||||||
|
|
||||||
waitUntil {currentVisionMode AGM_player == 1};
|
|
||||||
|
|
||||||
AGM_NightVision_ppEffect ppEffectEnable true;
|
|
||||||
AGM_NightVision_ppEffectBlur ppEffectEnable true;
|
|
||||||
AGM_NightVision_ppEffectRadialBlur ppEffectEnable true;
|
|
||||||
AGM_NightVision_ppEffectNVGBrightness ppEffectEnable true;
|
|
||||||
|
|
||||||
waitUntil {
|
|
||||||
// any updates?
|
|
||||||
if (hmd AGM_player != _currentHMD || {cameraView != _currentView} || {vehicle AGM_player != _currentVehicle} || {!(_currentTurret isEqualTo []) && {AGM_player != _currentVehicle turretUnit _currentTurret}}) then {
|
|
||||||
_currentHMD = hmd AGM_player;
|
|
||||||
_currentView = cameraView;
|
|
||||||
_currentVehicle = vehicle AGM_player;
|
|
||||||
_currentTurret = [AGM_player] call AGM_Core_fnc_getTurretIndex;
|
|
||||||
|
|
||||||
private ["_config", "_fnc_isUsingHMD"];
|
|
||||||
_config = configFile >> "CfgVehicles" >> typeOf _currentVehicle;
|
|
||||||
|
|
||||||
_fnc_isUsingHMD = {
|
|
||||||
if (_currentView != "GUNNER") exitWith {true}; // asume hmd usage outside of gunner view
|
|
||||||
|
|
||||||
if (AGM_player == driver _currentVehicle) exitWith {
|
|
||||||
!("NVG" in getArray (_config >> "ViewOptics" >> "visionMode"));
|
|
||||||
};
|
|
||||||
|
|
||||||
private "_turretConfig";
|
|
||||||
_turretConfig = [_config, _currentTurret] call AGM_Core_fnc_getTurretConfigPath;
|
|
||||||
_turretConfig = _turretConfig >> "OpticsIn";
|
|
||||||
|
|
||||||
private "_result";
|
|
||||||
_result = true;
|
|
||||||
for "_index" from 0 to (count _turretConfig - 1) do {
|
|
||||||
if ("NVG" in getArray (_turretConfig select _index >> "visionMode")) exitWith {_result = false};
|
|
||||||
true
|
|
||||||
};
|
|
||||||
|
|
||||||
_result
|
|
||||||
};
|
|
||||||
|
|
||||||
// on foot or in vehicle using hmd
|
|
||||||
if (_currentVehicle == AGM_player || _fnc_isUsingHMD) then {
|
|
||||||
_grainSetting = getNumber (configFile >> "CfgWeapons" >> _currentHMD >> "AGM_NightVision_grain");
|
|
||||||
_blurSetting = getNumber (configFile >> "CfgWeapons" >> _currentHMD >> "AGM_NightVision_blur");
|
|
||||||
_radBlurSetting = getNumber (configFile >> "CfgWeapons" >> _currentHMD >> "AGM_NightVision_radBlur");
|
|
||||||
|
|
||||||
AGM_NightVision_ppEffect ppEffectAdjust [0.25, 2.5, 2.5, _grainSetting, _grainSetting, false];
|
|
||||||
AGM_NightVision_ppEffect ppEffectCommit 0;
|
|
||||||
AGM_NightVision_ppEffectBlur ppEffectAdjust [_blurSetting];
|
|
||||||
AGM_NightVision_ppEffectBlur ppEffectCommit 0;
|
|
||||||
AGM_NightVision_ppEffectRadialBlur ppEffectAdjust [_radBlurSetting, _radBlurSetting, 0.2, 0.2];
|
|
||||||
AGM_NightVision_ppEffectRadialBlur ppEffectCommit 0;
|
|
||||||
|
|
||||||
// in vehicle and not using hmd
|
|
||||||
} else {
|
|
||||||
_grainSetting = _currentVehicle getVariable ["AGM_NightVision_grain", getNumber (_config >> "AGM_NightVision_grain")];
|
|
||||||
_blurSetting = _currentVehicle getVariable ["AGM_NightVision_blur", getNumber (_config >> "AGM_NightVision_blur")];
|
|
||||||
_radBlurSetting = _currentVehicle getVariable ["AGM_NightVision_radBlur", getNumber (_config >> "AGM_NightVision_radBlur")];
|
|
||||||
|
|
||||||
AGM_NightVision_ppEffect ppEffectAdjust [0.25, 2.5, 2.5, _grainSetting, _grainSetting, false];
|
|
||||||
AGM_NightVision_ppEffect ppEffectCommit 0;
|
|
||||||
AGM_NightVision_ppEffectBlur ppEffectAdjust [_blurSetting];
|
|
||||||
AGM_NightVision_ppEffectBlur ppEffectCommit 0;
|
|
||||||
AGM_NightVision_ppEffectRadialBlur ppEffectAdjust [_radBlurSetting, _radBlurSetting, 0.2, 0.2];
|
|
||||||
AGM_NightVision_ppEffectRadialBlur ppEffectCommit 0;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
// Detect if curator interface is open and disable effects
|
|
||||||
if (!isNull findDisplay 312) then {
|
|
||||||
AGM_NightVision_ppEffect ppEffectEnable false;
|
|
||||||
AGM_NightVision_ppEffectBlur ppEffectEnable false;
|
|
||||||
AGM_NightVision_ppEffectRadialBlur ppEffectEnable false;
|
|
||||||
AGM_NightVision_ppEffectNVGBrightness ppEffectEnable false;
|
|
||||||
|
|
||||||
waitUntil {isNull findDisplay 312};
|
|
||||||
|
|
||||||
AGM_NightVision_ppEffect ppEffectEnable true;
|
|
||||||
AGM_NightVision_ppEffectBlur ppEffectEnable true;
|
|
||||||
AGM_NightVision_ppEffectRadialBlur ppEffectEnable true;
|
|
||||||
AGM_NightVision_ppEffectNVGBrightness ppEffectEnable true;
|
|
||||||
};
|
|
||||||
|
|
||||||
currentVisionMode AGM_player != 1
|
|
||||||
};
|
|
||||||
};
|
|
@ -1,127 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<!-- Edited with tabler - 2014-12-17 -->
|
|
||||||
<Project name="AGM">
|
|
||||||
<Package name="NightVision">
|
|
||||||
<Key ID="STR_AGM_NightVision_NVG_Gen1">
|
|
||||||
<English>NV Goggles (Gen1)</English>
|
|
||||||
<Czech>Noktovizor (Gen1)</Czech>
|
|
||||||
<French>JVN (Gen1)</French>
|
|
||||||
<German>NS-Brille (Gen1)</German>
|
|
||||||
<Italian>Occhiali notturni (Gen1)</Italian>
|
|
||||||
<Polish>Gogle noktowizyjne (Gen1)</Polish>
|
|
||||||
<Portuguese>Óculos de visão noturna (Gen1)</Portuguese>
|
|
||||||
<Russian>ПНВ (Gen1)</Russian>
|
|
||||||
<Spanish>Sistema de visión nocturna (Gen1)</Spanish>
|
|
||||||
</Key>
|
|
||||||
<Key ID="STR_AGM_NightVision_NVG_Gen2">
|
|
||||||
<English>NV Goggles (Gen2)</English>
|
|
||||||
<Czech>Noktovizor (Gen2)</Czech>
|
|
||||||
<French>JVN (Gen2)</French>
|
|
||||||
<German>NS-Brille (Gen2)</German>
|
|
||||||
<Italian>Occhiali notturni (Gen2)</Italian>
|
|
||||||
<Polish>Gogle noktowizyjne (Gen2)</Polish>
|
|
||||||
<Portuguese>Óculos de visão noturna (Gen2)</Portuguese>
|
|
||||||
<Russian>ПНВ (Gen2)</Russian>
|
|
||||||
<Spanish>Sistema de visión nocturna (Gen2)</Spanish>
|
|
||||||
</Key>
|
|
||||||
<Key ID="STR_AGM_NightVision_NVG_Gen3">
|
|
||||||
<English>NV Goggles (Gen3)</English>
|
|
||||||
<Czech>Noktovizor (Gen3)</Czech>
|
|
||||||
<French>JVN (Gen3)</French>
|
|
||||||
<German>NS-Brille (Gen3)</German>
|
|
||||||
<Italian>Occhiali notturni (Gen3)</Italian>
|
|
||||||
<Polish>Gogle noktowizyjne (Gen3)</Polish>
|
|
||||||
<Portuguese>Óculos de visão noturna (Gen3)</Portuguese>
|
|
||||||
<Russian>ПНВ (Gen3)</Russian>
|
|
||||||
<Spanish>Sistema de visión nocturna (Gen3)</Spanish>
|
|
||||||
</Key>
|
|
||||||
<Key ID="STR_AGM_NightVision_NVG_Gen3_brown">
|
|
||||||
<English>NV Goggles (Gen3, Brown)</English>
|
|
||||||
<Czech>Noktovizor (Gen3, hnědý)</Czech>
|
|
||||||
<French>JVN (Gen3, marron)</French>
|
|
||||||
<German>NS-Brille (Gen3, Braun)</German>
|
|
||||||
<Italian>Occhiali notturni (Gen3, marroni)</Italian>
|
|
||||||
<Polish>Gogle noktowizyjne (Gen3, brązowe)</Polish>
|
|
||||||
<Portuguese>Óculos de visão noturna (Gen3, marrons)</Portuguese>
|
|
||||||
<Russian>ПНВ (Gen3, коричневый)</Russian>
|
|
||||||
<Spanish>Sistema de visión nocturna (Gen3, marrón)</Spanish>
|
|
||||||
</Key>
|
|
||||||
<Key ID="STR_AGM_NightVision_NVG_Gen3_green">
|
|
||||||
<English>NV Goggles (Gen3, Green)</English>
|
|
||||||
<Czech>Noktovizor (Gen3, zelený)</Czech>
|
|
||||||
<French>JVN (Gen3, vertes)</French>
|
|
||||||
<German>NS-Brille (Gen3, Grün)</German>
|
|
||||||
<Italian>Occhiali notturni (Gen3, verdi)</Italian>
|
|
||||||
<Polish>Gogle noktowizyjne (Gen3, zielone)</Polish>
|
|
||||||
<Portuguese>Óculos de visão noturna (Gen3, verdes)</Portuguese>
|
|
||||||
<Russian>ПНВ (Gen3, зеленый)</Russian>
|
|
||||||
<Spanish>Sistema de visión nocturna (Gen3, verde)</Spanish>
|
|
||||||
</Key>
|
|
||||||
<Key ID="STR_AGM_NightVision_NVG_Gen3_black">
|
|
||||||
<English>NV Goggles (Gen3, Black)</English>
|
|
||||||
<Czech>Noktovizor (Gen3, černý)</Czech>
|
|
||||||
<French>JVN (Gen3, noires)</French>
|
|
||||||
<German>NS-Brille (Gen3, Schwarz)</German>
|
|
||||||
<Italian>Occhiali notturni (Gen3, neri)</Italian>
|
|
||||||
<Polish>Gogle noktowizyjne (Gen3, czarne)</Polish>
|
|
||||||
<Portuguese>Óculos de visão noturna (Gen3, pretos)</Portuguese>
|
|
||||||
<Russian>ПНВ (Gen3, черный)</Russian>
|
|
||||||
<Spanish>Sistema de visión nocturna (Gen3, negro)</Spanish>
|
|
||||||
</Key>
|
|
||||||
<Key ID="STR_AGM_NightVision_NVG_Gen4">
|
|
||||||
<English>NV Goggles (Gen4)</English>
|
|
||||||
<Czech>Noktovizor (Gen4)</Czech>
|
|
||||||
<French>JVN (Gen4)</French>
|
|
||||||
<German>NS-Brille (Gen4)</German>
|
|
||||||
<Italian>Occhiali notturni (Gen4)</Italian>
|
|
||||||
<Polish>Gogle noktowizyjne (Gen4)</Polish>
|
|
||||||
<Portuguese>Óculos de visão noturna (Gen4)</Portuguese>
|
|
||||||
<Russian>ПНВ (Gen4)</Russian>
|
|
||||||
<Spanish>Sistema de visión nocturna (Gen4)</Spanish>
|
|
||||||
</Key>
|
|
||||||
<Key ID="STR_AGM_NightVision_NVG_FullScreen">
|
|
||||||
<English>NV Goggles (Wide)</English>
|
|
||||||
<German>NS-Brille (Weitwinkel)</German>
|
|
||||||
<Spanish>Sistema de visión nocturna (Panorámicas)</Spanish>
|
|
||||||
<Polish>Gogle noktowizyjne (panoramiczne)</Polish>
|
|
||||||
<Czech>Noktovizor (Široký)</Czech>
|
|
||||||
<Russian>ПНВ (Широкий)</Russian>
|
|
||||||
</Key>
|
|
||||||
<Key ID="STR_AGM_NightVision_NVGBrightness">
|
|
||||||
<English>Brightness: %1</English>
|
|
||||||
<German>Helligkeit: %1</German>
|
|
||||||
<Spanish>Brillo: %1</Spanish>
|
|
||||||
<Polish>Czułość: %1</Polish>
|
|
||||||
<Czech>Zvýšení: %1</Czech>
|
|
||||||
<French>Luminosité : %1</French>
|
|
||||||
<Russian>Контраст: </Russian>
|
|
||||||
<Hungarian>Fényerő: %1</Hungarian>
|
|
||||||
<Portuguese>Luminosidade: %1</Portuguese>
|
|
||||||
<Italian>Luminosità: %1</Italian>
|
|
||||||
</Key>
|
|
||||||
<Key ID="STR_AGM_NightVision_IncreaseNVGBrightness">
|
|
||||||
<English>Increase NVG Brightness</English>
|
|
||||||
<German>Nachtsichtgerätshelligkeit erhöhen</German>
|
|
||||||
<Spanish>Aumentar el brillo de las NVG</Spanish>
|
|
||||||
<Polish>Zwiększ czułość noktowizji</Polish>
|
|
||||||
<Czech>Zvýšení jasu noktovizoru</Czech>
|
|
||||||
<French>Augmenter la luminosité des JVN</French>
|
|
||||||
<Russian>Увеличить яркость ПНВ</Russian>
|
|
||||||
<Hungarian>Fényerő növelése</Hungarian>
|
|
||||||
<Portuguese>Aumentar Luminosidade do EVN</Portuguese>
|
|
||||||
<Italian>Aumenta la luminosità dell'NVG</Italian>
|
|
||||||
</Key>
|
|
||||||
<Key ID="STR_AGM_NightVision_DecreaseNVGBrightness">
|
|
||||||
<English>Decrease NVG Brightness</English>
|
|
||||||
<German>Nachtsichtgerätshelligkeit verringern</German>
|
|
||||||
<Spanish>Disminuir el brillo de las NVG</Spanish>
|
|
||||||
<Polish>Zmniejsz czułość noktowizji</Polish>
|
|
||||||
<Czech>Snížení jasu noktovizoru</Czech>
|
|
||||||
<French>Baisser la luminosité des JVN</French>
|
|
||||||
<Russian>Уменьшить яркость ПНВ</Russian>
|
|
||||||
<Hungarian>Fényerő csökkentése</Hungarian>
|
|
||||||
<Portuguese>Diminuir Luminosidade do EVN</Portuguese>
|
|
||||||
<Italian>Riduci la luminosità dell'NVG</Italian>
|
|
||||||
</Key>
|
|
||||||
</Package>
|
|
||||||
</Project>
|
|
@ -16,7 +16,9 @@ class CfgPatches {
|
|||||||
#include "CfgVehicles.hpp"
|
#include "CfgVehicles.hpp"
|
||||||
#include "CfgWeapons.hpp"
|
#include "CfgWeapons.hpp"
|
||||||
|
|
||||||
class ACE_Core_Default_Keys {
|
|
||||||
|
// class EGVAR(common,Default_Keys) { //???
|
||||||
|
class ACE_common_Default_Keys {
|
||||||
class increaseNVGBrightness {
|
class increaseNVGBrightness {
|
||||||
displayName = "$STR_ACE_NightVision_IncreaseNVGBrightness";
|
displayName = "$STR_ACE_NightVision_IncreaseNVGBrightness";
|
||||||
condition = QUOTE( currentVisionMode _player == 1 );
|
condition = QUOTE( currentVisionMode _player == 1 );
|
||||||
|
Loading…
Reference in New Issue
Block a user