mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-17 09:10:27 +03:00
+ [ADDED] Added 4 more new military skins as rare drops on militaryclothes: (FR_OHara_DZ,FR_Rodriguez_DZ,CZ_Soldier_Sniper_EP1_DZ,Graves_Light_DZ) Picture. Left to right. http://i.imgur.com/HlE4o2R.jpg + [CHANGED] You can now only sell vehicles to the trader if they are between 75% and 100% health. + [ADDED] Added generator as build-able and now can be started with one 20 liter Jerrycan and runs until server restart. + [CHANGED] Lowered building preview time from 50 seconds to 15. + [ADDED] First release of PHP tool to help config traders. + [ADDED] Player Zombie vision. + [CHANGED] You must now be the owner of a plot or a friend of an owner to build. + [CHANGED] When removing base building elements and not the owner or friend removal counter is doubled. + [FIXED] Potential fix for shifting position of mg nest. + [ADDED] New sniper rifle SCAR_H_LNG_Sniper_SD (ammo: 20Rnd_762x51_SB_SCAR) added to MassGrave loot tables. + [ADDED] New Machine Gun Pecheneg_DZ to MilitarySpecial loot tables and to traders. (ammo:100Rnd_762x54_PK) + [ADDED] New SMG: Sa61_EP1 (ammo: 20Rnd_B_765x17_Ball), UZI_SD_EP1 (ammo: 30Rnd_9x19_UZI_SD) added to traders and Military loot tables. + [ADDED] New Pistol added to traders and loot tables MassGrave,DynamicDebrisMilitary, and Residential : MakarovSD (ammo: 8Rnd_9x18_MakarovSD) + [ADDED] Bikeys Added for playwith versions of taviana, namalsk, celle, lingor. + [INFO] Attention server owners should change @tavi_DayZ_Epoch folder on the server to @taviana and your players can then connect and install automatically with play.withsix.com with the above mentioned bikeys.
70 lines
1.7 KiB
Plaintext
70 lines
1.7 KiB
Plaintext
|
|
private ["_gen","_caller","_id","_NV","_NVOn","_OldAperture"];
|
|
_gen = _this select 0;
|
|
_caller = _this select 1;
|
|
_id = _this select 2;
|
|
|
|
_gen removeAction _id;
|
|
|
|
// get first rbg + m
|
|
_NV1 = player getvariable ["NV1",[1.8,-1.5,-0.5,0]];
|
|
_NV2 = player getvariable ["NV2",[2.4,0.6,0.3,-0.3]];
|
|
_NV3 = player getvariable ["NV3",[-0.6,0.8,0.3,0.6]];
|
|
|
|
_NV = player getvariable ["NV", ["OFF", 0.1]];
|
|
_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 ["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, _NV1, _NV2, _NV3];
|
|
ppColor ppEffectCommit 0;
|
|
|
|
/*
|
|
ppInversion = ppEffectCreate ['colorInversion', 2555];
|
|
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];
|
|
|
|
|
|
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 setVariable ["NV1",_NV1];
|
|
player setVariable ["NV2",_NV2];
|
|
player setVariable ["NV3",_NV3];
|
|
|
|
|
|
player addAction ["Vision", "\z\addons\dayz_code\actions\pzombie\pz_vision.sqf", [], 0, false, true, "nightVision", "_this == _target"];
|
|
exit; |