mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-18 01:30:26 +03:00
+ [ADDED] 30m_plot_kit as a trader only item so that server admins can control how many any the cost. + [ADDED] Building now requires a plot pole within 30 meters. + [FIXED] Building preview will now be cancelled if you get in combat. + [FIXED] When building constructioncount config variable is now used correctly. + [ADDED] Removal of some build-ables now come with a refund of parts. + [ADDED] Requirement and consumption of a M240_DZ when crafting mg240 nest. + [CHANGED] Added crowbar requirement to remove some new build-ables. + [FIXED] Removed refuel,siphon,repair,salvage from m240 nest. + [ADDED] one more non auto refuel large fuel capacity truck V3S_Refuel_TK_GUE_EP1_DZ + [ADDED] Building loot for 3 more Namalsk buildings. + [FIXED] Made sure we do not lock the mg nest and other buildables with within allvehicles. + [ADDED] Experiment with player zombie night vision. + [FIXED] Added fix to allow new storage devices to use cargo check feature. + [FIXED] offset with oil/fuel barrel should be fixed TODO: binarize + [CHANGED] Removed ammo from m240 nest, players must supply their own.
48 lines
1.2 KiB
Plaintext
48 lines
1.2 KiB
Plaintext
|
|
private ["_gen","_caller","_id","_NV","_NVOn","_OldAperture"];
|
|
_gen = _this select 0;
|
|
_caller = _this select 1;
|
|
_id = _this select 2;
|
|
|
|
_gen removeAction _id;
|
|
|
|
_NV = player getvariable "NV";
|
|
_NVOn = (_NV select 0);
|
|
_OldAperture = (_NV select 1);
|
|
|
|
if(_NVOn == "ON")
|
|
exitwith
|
|
{
|
|
setaperture -1;
|
|
ppEffectDestroy ppColor;
|
|
ppEffectDestroy ppBlur;
|
|
player setvariable ["NV",["OFF",_oldAperture]];
|
|
player addAction ["Night Vision", "\z\addons\dayz_code\actions\pzombie\pz_vision.sqf", [], 0, false, true, "nightVision", "_this == _target"];
|
|
};
|
|
|
|
ppEffectDestroy ppColor;
|
|
ppEffectDestroy ppBlur;
|
|
|
|
ppColor = ppEffectCreate ["ColorCorrections", 1999];
|
|
ppColor ppEffectEnable true;
|
|
ppColor ppEffectAdjust [1, 1, 0, [0.4, 1, 0.4, 0], [0.4, 1, 0.4, 0.0], [0.4, 1, 0.4, 1.0]];
|
|
ppColor ppEffectCommit 0;
|
|
|
|
ppBlur = ppEffectCreate ["dynamicBlur", 505];
|
|
ppBlur ppEffectEnable true;
|
|
ppBlur ppEffectAdjust [.2];
|
|
ppBlur ppEffectCommit 0;
|
|
|
|
aperture = 0.0001;
|
|
while { aperture < _oldAperture } do
|
|
{
|
|
aperture = aperture + 0.0005;
|
|
setAperture aperture;
|
|
sleep 0.001;
|
|
};
|
|
|
|
|
|
player setVariable ["NV", ["ON", _oldAperture]];
|
|
|
|
player addAction ["Vision", "\z\addons\dayz_code\actions\pzombie\pz_vision.sqf", [], 0, false, true, "nightVision", "_this == _target"];
|
|
exit; |