mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-18 01:30:26 +03:00
Script Cleanup
This commit is contained in:
@@ -15,8 +15,7 @@ _NV = player getvariable ["NV", ["OFF", 0.1]];
|
||||
_NVOn = (_NV select 0);
|
||||
_OldAperture = (_NV select 1);
|
||||
|
||||
if(_NVOn == "ON")
|
||||
exitwith
|
||||
if(_NVOn == "ON") exitwith
|
||||
{
|
||||
setaperture -1;
|
||||
ppEffectDestroy ppColor;
|
||||
@@ -28,7 +27,6 @@ exitwith
|
||||
ppEffectDestroy ppColor;
|
||||
ppEffectDestroy ppBlur;
|
||||
|
||||
|
||||
ppColor = ppEffectCreate ["ColorCorrections", 1999];
|
||||
ppColor ppEffectEnable true;
|
||||
ppColor ppEffectAdjust [1, 1, 0, _NV1, _NV2, _NV3];
|
||||
@@ -40,16 +38,13 @@ ppInversion ppEffectEnable false;
|
||||
ppInversion ppEffectAdjust [1,1,1];
|
||||
ppInversion ppEffectCommit 0;
|
||||
*/
|
||||
|
||||
diag_log format ["DEBUG: Aperture : %1 First %2 Second %3 Third %4", _OldAperture, _NV1,_NV2,_NV3];
|
||||
|
||||
//diag_log format ["DEBUG: Aperture : %1 First %2 Second %3 Third %4", _OldAperture, _NV1,_NV2,_NV3];
|
||||
|
||||
ppBlur = ppEffectCreate ["dynamicBlur", 505];
|
||||
ppBlur ppEffectEnable true;
|
||||
ppBlur ppEffectAdjust [.2];
|
||||
ppBlur ppEffectCommit 0;
|
||||
|
||||
|
||||
aperture = 0.0001;
|
||||
while { aperture < _oldAperture } do
|
||||
{
|
||||
@@ -58,13 +53,9 @@ while { aperture < _oldAperture } do
|
||||
sleep 0.001;
|
||||
};
|
||||
|
||||
|
||||
|
||||
player setVariable ["NV", ["ON", _oldAperture]];
|
||||
player setVariable ["NV1",_NV1];
|
||||
player setVariable ["NV2",_NV2];
|
||||
player setVariable ["NV3",_NV3];
|
||||
|
||||
|
||||
s_pz_player2 = player addAction ["Vision", "\z\addons\dayz_code\actions\pzombie\pz_vision.sqf", [], 0, false, true, "nightVision", "_this == _target"];
|
||||
exit;
|
||||
Reference in New Issue
Block a user