Merge pull request #731 from facoptere/master

Security update
This commit is contained in:
vbawol
2013-11-19 05:55:37 -08:00
30 changed files with 483 additions and 830 deletions

View File

@@ -0,0 +1,43 @@
//Prevent SVI hack using BattleFieldClearance & al.
class Logic;
class BattleFieldClearance: Logic
{
vehicleClass = "Modules";
class Eventhandlers
{
init = "if (isServer) then { diag_log(""WARNING, b4ttlefieldclearance attack from player PID#""+str(owner this)); deleteVehicle this;};";
};
};
class HighCommandSubordinate: Logic
{
vehicleClass = "Modules";
class Eventhandlers
{
init = "if (isServer) then { diag_log(""WARNING, HighCommand5ubordinate attack from player PID#""+str(owner this)); deleteVehicle this;};";
};
};
class FirstAidSystem: Logic
{
vehicleClass = "Modules";
class Eventhandlers
{
init = "if (isServer) then { diag_log(""WARNING, First4idSystem attack from player PID#""+str(owner this)); deleteVehicle this;};";
};
};
class AlternativeInjurySimulation: Logic
{
vehicleClass = "Modules";
class Eventhandlers
{
init = "if (isServer) then { diag_log(""WARNING, 4lternativeInjurySimulation attack from player PID#""+str(owner this)); deleteVehicle this;};";
};
};
class FunctionsManager : Logic {
vehicleClass = "Modules";
class Eventhandlers
{
init = "diag_log format ['PRELOAD_ Functions\init %1', [_this, BIS_functions_mainscope]];if (isnil 'BIS_functions_mainscope') then { BIS_functions_mainscope = _this select 0; if (isServer) then {_this execVM 'ca\modules\functions\main.sqf'};} else {_this spawn { diag_log format ['PRELOAD_ Functions\init ERROR: deleting redundant FM! %1', [_this, (_this select 0), BIS_functions_mainscope]]; _mygrp = group (_this select 0); deleteVehicle (_this select 0); deleteGroup _mygrp;};};if (isnil 'RE') then {diag_log 'MPframework inited';[] execVM '\ca\Modules\MP\data\scripts\MPframework.sqf'};";
};
};

View File

@@ -0,0 +1,90 @@
// check that plants libs are properly loaded
// thanks to Tansien
class faplants : HouseBase {};
class grass: faplants
{
model = "\ca\data\cl_grass1.p3d";
displayName = "grass";
vehicleClass = "grass";
class AnimationSources {};
};
class prunus: faplants
{
model = "\ca\plants2\bush\b_prunus.p3d";
displayName = "prunus";
vehicleClass = "prunus";
class AnimationSources {};
};
class picea: faplants
{
model = "\ca\plants2\clutter\c_picea.p3d";
displayName = "picea";
vehicleClass = "picea";
class AnimationSources {};
};
class fallentree: faplants
{
model = "\ca\plants2\misc\misc_fallentree1.p3d";
displayName = "fallentree";
vehicleClass = "fallentree";
class AnimationSources {};
};
class phragmites: faplants
{
model = "\ca\plants2\plant\p_phragmites.p3d";
displayName = "phragmites";
vehicleClass = "phragmites";
class AnimationSources {};
};
class acer: faplants
{
model = "\ca\plants2\tree\t_acer2s.p3d";
displayName = "acer";
vehicleClass = "acer";
class AnimationSources {};
};
class amygdalusn: faplants
{
model = "\ca\plants_e\bush\b_amygdalusn1s_ep1.p3d";
displayName = "amygdalusn";
vehicleClass = "amygdalusn";
class AnimationSources {};
};
class Brush: faplants
{
model = "\ca\plants_E\Clutter\c_Brush_Hard_EP1.p3d";
displayName = "Brush";
vehicleClass = "Brush";
class AnimationSources {};
};
class fiberplant: faplants
{
model = "\ca\plants_e\plant\p_fiberplant_ep1.p3d";
displayName = "fiberplant";
vehicleClass = "fiberplant";
class AnimationSources {};
};
class amygdalusc: faplants
{
model = "\ca\plants_e\tree\t_amygdalusc2s_ep1.p3d";
displayName = "amygdalusc";
vehicleClass = "amygdalusc";
class AnimationSources {};
};
class boulder: faplants
{
model = "\ca\rocks2\R2_Boulder1.p3d";
displayName = "boulder";
vehicleClass = "boulder";
class AnimationSources {};
};

View File

@@ -9,12 +9,13 @@ class CfgVehicles {
#include "CfgVehicles\Zeds\NewZeds.hpp" #include "CfgVehicles\Zeds\NewZeds.hpp"
#include "CfgVehicles\Zeds\PlayerZeds.hpp" #include "CfgVehicles\Zeds\PlayerZeds.hpp"
#include "CfgVehicles\Females\females.hpp" #include "CfgVehicles\Females\females.hpp"
#include "CfgVehicles\antihack_logic.hpp"
class All; class All;
class HouseBase; class HouseBase;
class Ruins: HouseBase {}; class Ruins: HouseBase {};
#include "CfgVehicles\antihack_plants.hpp"
#include "CfgVehicles\DZE\Doors.hpp" #include "CfgVehicles\DZE\Doors.hpp"
class AllVehicles; class AllVehicles;

View File

@@ -1,144 +1,69 @@
private["_fl","_sm","_expl","_dr","_tv","_i","_wave","_splash","_velz","_v","_int","_t","_pos"]; private["_fl","_sm","_expl","_dr","_tv","_i","_wave","_splash","_velz","_v","_int","_t","_pos"];
_v=_this select 0; _v=_this select 0;
_int=(fuel _v)*(8+random 2); _int=(fuel _v)*(8+random 2);
_t=time; _t=time;
if(!isDedicated)then{
if !(isDedicated) then { //dw, particle stuff don't need run on dedicated _fl="#particlesource"createVehicleLocal getPosATL _v;
_fl = "#particlesource" createVehicleLocal getpos _v;
_fl attachto[_v,[0,0,0],"destructionEffect2"]; _fl attachto[_v,[0,0,0],"destructionEffect2"];
_fl setParticleRandom[0.3,[1,1,0],[0,0,0],0,0.3,[0,0,0,0],0,0]; _fl setParticleRandom[0.3,[1,1,0],[0,0,0],0,0.3,[0,0,0,0],0,0];
_fl setParticleParams [["\Ca\Data\ParticleEffects\Universal\Universal", 16, 10, 32], "", "Billboard", 1, 2, "destructionEffect2", _fl setParticleParams[["\Ca\Data\ParticleEffects\Universal\Universal",16,10,32],"","Billboard",1,2,"destructionEffect2",[0,0,5],0,10,7.9,0.075,[4,7,9,10],[[1,1,1,-1],[1,1,1,-1],[1,1,1,-1],[1,1,1,-0.5],[1,1,1,-0]],[1,0.5],1,0,"","",_v];
[0, 0, 5], 0, 10, 7.9, 0.075, [4,7,9,10], [[1, 1, 1, -1], [1, 1, 1, -1],
[1, 1, 1, -1], [1, 1, 1, -0.5], [1, 1, 1, -0]], [1,0.5], 1, 0, "", "", _v];
_fl setDropInterval 1; _fl setDropInterval 1;
_sm="#particlesource"createVehicleLocal getPosATL _v;
_sm = "#particlesource" createVehicleLocal getpos _v;
_sm attachto[_v,[0,0,0],"destructionEffect1"]; _sm attachto[_v,[0,0,0],"destructionEffect1"];
_sm setParticleRandom[2,[2,2,0],[0,0,0],0,0.3,[0,0,0,0.1],0,0]; _sm setParticleRandom[2,[2,2,0],[0,0,0],0,0.3,[0,0,0,0.1],0,0];
_sm setParticleParams [["\Ca\Data\ParticleEffects\Universal\Universal", 16, 7, 48], "", "Billboard", 1, 5, "destructionEffect1", _sm setParticleParams[["\Ca\Data\ParticleEffects\Universal\Universal",16,7,48],"","Billboard",1,5,"destructionEffect1",[0,0,5],0,10,7.9,0.075,[4,8,12,14],[[0.3,0.3,0.3,1],[0.45,0.45,0.45,1],[0.6,0.6,0.6,0.6],[0.7,0.7,0.7,0.25],[1,1,1,0]],[0.8,0.3,0.25],1,0,"","",_v];
[0, 0, 5], 0, 10, 7.9, 0.075, [4,8,12,14], [[0.3, 0.3, 0.3, 1],
[0.45, 0.45, 0.45, 1],[0.6, 0.6, 0.6, 0.6], [0.7, 0.7, 0.7, 0.25], [1, 1, 1, 0]], [0.8,0.3,0.25], 1, 0, "", "", _v];
_sm setDropInterval 1; _sm setDropInterval 1;
};
}; // end of dedicated check
_i=0; _i=0;
_dr=0.2; _dr=0.2;
_tv=11; _tv=11;
//Remove weapons/ammo to prevent explosion. Script will create its own explosions (doesnt work?)
removeallweapons _v; removeallweapons _v;
if(local _v AND{(_v isKindOf"Air")})then{
if (local _v) then {_expl="HelicopterExploSmall" createvehicle (getpos _v);}; _expl=createVehicle["HelicopterExploSmall",(getPosATL _v),[],0,"CAN_COLLIDE"];
};
if !(isDedicated) then { //dw, particle stuff don't need run on dedicated if(!isDedicated)then{
while {_i <1200 && ((velocity _v select 2)<-20 || (getpos _v select 2)>8) && !(alive _v) && !(isnull _v) && (getpos _v select 2)>1} do while{_i<1200&&((velocity _v select 2)<-20||(getPosATL _v select 2)>8)&&!(alive _v)&&!(isnull _v)&&(getPosATL _v select 2)>1}do{
{
_tv=abs(velocity _v select 0)+abs(velocity _v select 1)+abs(velocity _v select 2); _tv=abs(velocity _v select 0)+abs(velocity _v select 1)+abs(velocity _v select 2);
if (_tv>2) then {_dr=1/_tv} else {_dr=1}; _dr=if(_tv>2)then{1/_tv}else{1};
_fl setDropInterval _dr; _fl setDropInterval _dr;
_sm setDropInterval _dr; _sm setDropInterval _dr;
_i=_i+1; _i=_i+1;
sleep 0.2; sleep 0.2;
}; };
}; // end of dedicated check };
_pos=getPosATL _v;
_pos=getpos _v;
clearVehicleInit _v; clearVehicleInit _v;
if(!isDedicated)then{
if !(isDedicated) then { //dw, particle stuff don't need run on dedicated deletevehicle _fl;
deletevehicle _fl;deletevehicle _sm; deletevehicle _sm;
}; // end of dedicated check };
if (surfaceiswater(_pos) && (_pos select 2)<9 ) then if(surfaceiswater(_pos)&&(_pos select 2)<9)then{
{ if(!isDedicated)then{
if !(isDedicated) then { //dw, particle stuff don't need run on dedicated _wave="#particlesource"createVehicleLocal getPosATL _v;
_wave = "#particlesource" createVehicleLocal getpos _v;
_wave attachto[_v,[0,0,0],"destructionEffect1"]; _wave attachto[_v,[0,0,0],"destructionEffect1"];
_wave setParticleRandom[0.3,[1,1,0],[0.5,0.5,0],0,0.3,[0,0,0,0],0,0]; _wave setParticleRandom[0.3,[1,1,0],[0.5,0.5,0],0,0.3,[0,0,0,0],0,0];
_wave setParticleParams [["\Ca\Data\ParticleEffects\Universal\Universal", 16, 12, 13,0], "", "Billboard", 1, 1.6, "destructionEffect1", _wave setParticleParams[["\Ca\Data\ParticleEffects\Universal\Universal",16,12,13,0],"","Billboard",1,1.6,"destructionEffect1",[0,0,0],0,10,7.9,0.075,[3,8],[[0.7,0.8,1,0.6],[0.85,0.9,1,0.0]],[1000],1,0,"","",_v];
[0, 0, 0], 0, 10, 7.9, 0.075, [3,8],
[[0.7,0.8,1,0.6],[0.85,0.9,1,0.0]], [1000], 1, 0, "", "", _v];
_wave setparticlecircle[2,[0,16,0]]; _wave setparticlecircle[2,[0,16,0]];
_wave setDropInterval 0.0015; _wave setDropInterval 0.0015;
_splash="#particlesource"createVehicleLocal getPosATL _v;
_splash = "#particlesource" createVehicleLocal getpos _v;
_splash attachto[_v,[0,0,0],"destructionEffect1"]; _splash attachto[_v,[0,0,0],"destructionEffect1"];
_splash setParticleRandom[2,[2,2,0],[2,2,7],0,0.5,[0,0,0,0],0,0]; _splash setParticleRandom[2,[2,2,0],[2,2,7],0,0.5,[0,0,0,0],0,0];
_splash setParticleParams [["\Ca\Data\ParticleEffects\Universal\Universal", 16, 13, 6, 0], "", "Billboard", 1, 4, "destructionEffect1", _splash setParticleParams[["\Ca\Data\ParticleEffects\Universal\Universal",16,13,6,0],"","Billboard",1,4,"destructionEffect1",[0,0,0],0,30,7.9,0.075,[8,15],[[0.7,0.7,0.7,1],[1,1,1,0]],[1000],1,0,"","",_v];
[0, 0, 0], 0, 30, 7.9, 0.075, [8,15],
[[0.7,0.7,0.7,1],[1,1,1,0]], [1000], 1, 0, "", "", _v];
_splash setparticlecircle[2,[0,3,15]]; _splash setparticlecircle[2,[0,3,15]];
_splash setDropInterval 0.002; _splash setDropInterval 0.002;
sleep 0.2; sleep 0.2;
deletevehicle _wave;deletevehicle _splash; deletevehicle _wave;
}; // end of dedicated check deletevehicle _splash;
/*
if (local _v) then
{
_wreck=GetText (configFile >> "CfgVehicles" >> (typeof _v) >> "wreck");
if (_wreck!="") then
{
_pos = getpos _v;
_dir = vectordir _v;
_vecUp = vectorup _v;
_vel = velocity _v;
clearvehicleinit _v;
_crw= crew _v;
clearvehicleinit _v;
deleteVehicle _v;
_v =(_wreck) createvehicle _pos;
{_x moveincargo _v} foreach _crw;
_v setVectorDirAndUp [_dir,_vecUp];
_v setFuel 0;
_v setdamage 0;
_v setvelocity _vel;
//Send to garbage collecter so wreck can be deleted later
[_v] call BIS_GC_trashItFunc;
}; };
}; */
} }
else else{
{ if(local _v)then{
if (local _v) then
{
//_velx = velocity _v select 0; _velx = _velx / 4;
//_vely = velocity _v select 1; _vely = _vely / 4;
_velz=velocity _v select 2; _velz=velocity _v select 2;
if (_velz>1) then {_v setvelocity [velocity _v select 0,velocity _v select 1,0]}; if(_velz>1)then{
_expl="HelicopterExploBig" createvehicle [_pos select 0,_pos select 1,(_pos select 2) + 1]; _v setvelocity[velocity _v select 0,velocity _v select 1,0]
};
_expl=createVehicle["HelicopterExploBig",[_pos select 0,_pos select 1,(_pos select 2)+1],[],0,"CAN_COLLIDE"];
sleep 0.05; sleep 0.05;
/*
_wreck=GetText (configFile >> "CfgVehicles" >> (typeof _v) >> "wreck");
if (_wreck!="") then
{
_pos = getpos _v;
_dir = vectordir _v;
_vecUp = vectorup _v;
_vel = velocity _v;
_crw= crew _v;
clearvehicleinit _v;
deleteVehicle _v;
_v =(_wreck) createvehicle _pos;
{_x moveincargo _v} foreach _crw;
//sleep 0.05;
_v setvelocity _vel;
//_v setPos _pos;
_v setvectordir (_dir);
_v setvectorup _vecUp;
_v setFuel 0;
_v setdamage 0;
}; */
//_v setVehicleInit format ["[this, %1, %2]spawn BIS_Effects_AirDestructionStage2",_int, _t];
//processInitCommands; //ClearvehicleInit done at end of burn script
["AirDestructionStage2",_v,_int,_t]call BIS_Effects_globalEvent; ["AirDestructionStage2",_v,_int,_t]call BIS_Effects_globalEvent;
}; };
}; };

View File

@@ -1,85 +1,57 @@
private ["_v","_pos", "_int","_t","_smoke","_fire","_dirt","_i","_xv","_yv","_zv","_dir","_Crater","_speed","_velz","_tv","_dr"];
private ["_dr","_pos","_xv","_yv","_dir","_Crater","_speed","_velz","_tv","_zv","_shards","_i","_smoke","_fire","_dirt","_int","_t","_v"]; _v=_this select 0;
_int=_this select 1; _int=_this select 1;
_t=_this select 2; _t=_this select 2;
_pos=getpos _v; _pos=getPosATL _v;
// Particle effects if(!isDedicated)then{
if !(isDedicated) then { //dw, particle stuff don't need run on dedicated
_smoke="#particlesource"createVehicleLocal _pos; _smoke="#particlesource"createVehicleLocal _pos;
_smoke attachto[_v,[0,0,0],"destructionEffect1"]; _smoke attachto[_v,[0,0,0],"destructionEffect1"];
_smoke setParticleParams [["\ca\Data\ParticleEffects\Universal\Universal",16,7,48], _smoke setParticleParams[["\ca\Data\ParticleEffects\Universal\Universal",16,7,48],"","Billboard",1,15,[0,0,0],[0,0,0],1,1.275,1,0,[8,14],[[0.1,0.1,0.1,1],[0.1,0.1,0.1,0]],[0.5],0.1,0.1,"","",_v];
"", "Billboard", 1, 15, [0, 0, 0], [0, 0, 0], 1, 1.275, 1, 0, [8,14],
[[0.1,0.1,0.1,1],[0.1,0.1,0.1,0]], [0.5], 0.1, 0.1, "", "", _v];
//_smoke setParticleCircle [2,[0,0,0]];
_smoke setParticleRandom[4,[2,2,2],[0,0,0],0,0,[0,0,0,0],0,0]; _smoke setParticleRandom[4,[2,2,2],[0,0,0],0,0,[0,0,0,0],0,0];
_smoke setDropInterval 0.02; _smoke setDropInterval 0.02;
_fire="#particlesource"createVehicleLocal _pos; _fire="#particlesource"createVehicleLocal _pos;
_fire attachto[_v,[0,0,0],"destructionEffect2"]; _fire attachto[_v,[0,0,0],"destructionEffect2"];
/*_fire setParticleParams [["\ca\Data\ParticleEffects\Universal\Universal",16,2,32], "", "Billboard", 1, 1, [0, 1, 0], [0, 0, 0], 1, 1.275, 1, 0, [10,15], _fire setParticleParams[["\ca\Data\ParticleEffects\Universal\Universal",16,2,80],"","Billboard",1,2,[0,1,0],[0,0,0],1,1.275,1,0,[7,13],[[1,1,1,-1],[1,1,1,0]],[0.5],0.01,0.01,"","",_v,360];
[[1,1,1,-1],[1,1,1,0]], [0.5], 0.01, 0.01, "", "", _v,360]; */
_fire setParticleParams [["\ca\Data\ParticleEffects\Universal\Universal",16,2,80],
"", "Billboard", 1, 2, [0, 1, 0], [0, 0, 0], 1, 1.275, 1, 0, [7,13],
[[1,1,1,-1],[1,1,1,0]], [0.5], 0.01, 0.01, "", "", _v,360];
_fire setParticleRandom[0.5,[0.5,0.5,0.5],[0,0,0],0,0,[0,0,0,0],0,0]; _fire setParticleRandom[0.5,[0.5,0.5,0.5],[0,0,0],0,0,[0,0,0,0],0,0];
_fire setDropInterval 0.01; _fire setDropInterval 0.01;
/*
_shards = "#particlesource" createVehicleLocal _pos;
//_shards attachto [_v,[0,0,0],"destructionEffect1"];
_shards setParticleParams [["\CA\Data\ParticleEffects\Shard\shard",1,0,1], "", "SpaceObject", 1, 60, [0, 0, 0], [0, 0, 0], 0, 1.275, 1, 0, [1,1],
[[1,1,1,1]], [0.5], 0, 0, "", "", _v];
_shards setParticleRandom [30, [1, 1, 0], [0, 0, 0], 0, 0, [0, 0, 0, 0], 0, 0];
_shards setParticleCircle [2,[0.001,0.001,-0.001]];
_shards setDropInterval 0.05;
*/
_dirt="#particlesource"createVehicleLocal _pos; _dirt="#particlesource"createVehicleLocal _pos;
_dirt attachto[_v,[0,0,0],"destructionEffect1"]; _dirt attachto[_v,[0,0,0],"destructionEffect1"];
_dirt setParticleParams [["\ca\Data\ParticleEffects\Universal\Universal",16,12,9,0], "", "Billboard", 1, 5, [0, 0, 0], [0, 0, 5], 0, 5, 1, 0, [10,20], _dirt setParticleParams[["\ca\Data\ParticleEffects\Universal\Universal",16,12,9,0],"","Billboard",1,5,[0,0,0],[0,0,5],0,5,1,0,[10,20],[[0.1,0.1,0.1,1],[0.1,0.1,0.1,0.7],[0.1,0.1,0.1,0]],[1000],0,0,"","",_v,360];
[[0.1,0.1,0.1,1],[0.1,0.1,0.1,0.7],[0.1,0.1,0.1,0]], [1000], 0, 0, "", "", _v,360];
_dirt setParticleRandom[0,[1,1,1],[1,1,2.5],0,0,[0,0,0,0.5],0,0]; _dirt setParticleRandom[0,[1,1,1],[1,1,2.5],0,0,[0,0,0,0.5],0,0];
_dirt setDropInterval 0.05; _dirt setDropInterval 0.05;
//creating ground craters
_i=0; _i=0;
while {(speed _v) > 0.1} do while{(speed _v)>0.1}do{
{ _pos=getPosATL _v;
_pos=getpos _v;
_xv=velocity _v select 0; _xv=velocity _v select 0;
_yv=velocity _v select 1; _yv=velocity _v select 1;
_zv=velocity _v select 2;
_dir=abs(_xv atan2 _yv); _dir=abs(_xv atan2 _yv);
_Crater="CraterLong"createvehiclelocal[_pos select 0,_pos select 1,0]; _Crater="CraterLong"createvehiclelocal[_pos select 0,_pos select 1,0];
_Crater setdir(_dir+(180*_i)); _Crater setdir(_dir+(180*_i));
_Crater setpos[_pos select 0,_pos select 1,0]; _Crater setpos[_pos select 0,_pos select 1,0];
_Crater setPos [_pos select 0, _pos select 1, ((0 - _i)/13)]; //all setpos commands so it is placed correctly on sloped terrain _Crater setPos[_pos select 0,_pos select 1,((0-_i)/13)];
_speed=(speed _v); _speed=(speed _v);
_velz=velocity _v select 2; _velz=velocity _v select 2;
if(_velz>1)then{
if (_velz>1) then {_v setvelocity [_xv/1.3,_yv/1.3,0]} _v setvelocity[_xv/1.3,_yv/1.3,0]
else {_v setvelocity [_xv/1.2,_yv/1.2,velocity _v select 2]}; }
else{
_v setvelocity[_xv/1.2,_yv/1.2,velocity _v select 2]
};
_tv=abs(_xv)+abs(_yv)+abs(_zv); _tv=abs(_xv)+abs(_yv)+abs(_zv);
if (_tv>2) then {_dr=1/_tv} else {_dr=1}; _dr=if(_tv>2)then{1/_tv}else{1};
_smoke setDropInterval _dr*1.5; _smoke setDropInterval _dr*1.5;
_fire setDropInterval _dr*1.5; _fire setDropInterval _dr*1.5;
_dirt setDropInterval _dr; _dirt setDropInterval _dr;
_shards setDropInterval _dr;
sleep(0.25-(_speed/1000)); sleep(0.25-(_speed/1000));
_i=_i+1; _i=_i+1;
}; };
deleteVehicle _smoke; deleteVehicle _smoke;
deleteVehicle _fire; deleteVehicle _fire;
deleteVehicle _shards;
deleteVehicle _dirt; deleteVehicle _dirt;
};
}; // end of dedicated check
_v setvelocity[0,0,-0.1]; _v setvelocity[0,0,-0.1];
if (local _v) then if(local _v)then{
{
//_v setVehicleInit format ["[this, %1, %2,false,true]spawn BIS_Effects_Burn",_int, _t];
//processInitCommands; //ClearvehicleInit done at end of burn script
["Burn",_v,_int,_t]call BIS_Effects_globalEvent; ["Burn",_v,_int,_t]call BIS_Effects_globalEvent;
[_v,_int,false]spawn BIS_Effects_Secondaries; [_v,_int,false]spawn BIS_Effects_Secondaries;
}; };

View File

@@ -0,0 +1,40 @@
[] spawn {
while {true} do {
waitUntil {((isNil "BIS_Effects_Rifle") OR {(count(toArray(str(BIS_Effects_Rifle)))!=7)})};
diag_log "Res3tting B!S effects...";
/* BIS_Effects_* fixes from Dwarden */
BIS_Effects_Rifle = {false};
BIS_Effects_EH_Fired = {false};
BIS_Effects_EH_Killed = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\killed.sqf";
BIS_Effects_AirDestruction = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\AirDestruction.sqf";
BIS_Effects_AirDestructionStage2 = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\AirDestructionStage2.sqf";
BIS_Effects_Secondaries = "\z\addons\dayz_code\system\BIS_Effects\secondaries.sqf";
BIS_Effects_globalEvent = {
BIS_effects_gepv = _this;
publicVariable "BIS_effects_gepv";
_this call BIS_Effects_startEvent;
};
BIS_Effects_startEvent = {
switch (_this select 0) do {
case "AirDestruction": {
[_this select 1] spawn BIS_Effects_AirDestruction;
};
case "AirDestructionStage2": {
[_this select 1, _this select 2, _this select 3] spawn BIS_Effects_AirDestructionStage2;
};
case "Burn": {
[_this select 1, _this select 2, _this select 3, false, true] spawn BIS_Effects_Burn;
};
};
};
"BIS_effects_gepv" addPublicVariableEventHandler {
(_this select 1) call BIS_Effects_startEvent;
};
sleep 1;
};
};

View File

@@ -1,34 +1,19 @@
private ["_v","_int","_t","_b"]; private ["_v","_int","_t","_b"];
_v=_this select 0; _v=_this select 0;
if (_v iskindof "helicopter" || _v iskindof "plane") if(_v iskindof"helicopter"||_v iskindof"plane")then{
then
{
//_v setVehicleInit "[this] spawn BIS_Effects_AirDestruction";
//processInitCommands; //ClearvehicleInit done at end of burn script
["AirDestruction",_v]call BIS_Effects_globalEvent; ["AirDestruction",_v]call BIS_Effects_globalEvent;
}; };
if (_v iskindof "tank") if(_v iskindof"tank")then{
then
{
_int=(fuel _v)*(2+random 2); _int=(fuel _v)*(2+random 2);
_t=time; _t=time;
//_v setVehicleInit format ["[this, %1, %2]spawn BIS_Effects_Burn",_int, _t]; - disabled to prepaire for move into engine
//processInitCommands; //ClearvehicleInit done at end of burn script
[_v,_int]spawn BIS_Effects_Secondaries; [_v,_int]spawn BIS_Effects_Secondaries;
}; };
if (_v iskindof "car" || _v iskindof "ship") if(_v iskindof"car"||_v iskindof"ship")then{
then
{
_int=(fuel _v)*(2+random 1); _int=(fuel _v)*(2+random 1);
_t=time; _t=time;
//_v setVehicleInit format ["[this, %1, %2]spawn BIS_Effects_Burn; ",_int, _t]; - disabled to prepaire for move into engine
//processInitCommands; //ClearvehicleInit done at end of burn script
[_v,_int]spawn BIS_Effects_Secondaries; [_v,_int]spawn BIS_Effects_Secondaries;
if((random _int)>2.2)then{
//Possible initial explosion _b=createVehicle["SmallSecondary",(getPosATL _v),[],0,"CAN_COLLIDE"];
if ((random _int)>2.2) then
{
_b="SmallSecondary" createvehicle (getpos _v);
}; };
}; };

View File

@@ -0,0 +1,22 @@
private ["_v","_int","_list","_lifecheck","_effect2pos","_t"];
_v=_this select 0;
_int=_this select 1;
_list=[];
_lifecheck=true;
if(count _this>2)then{
_lifecheck=_this select 2
};
_int=_int min 3;
if(!((_v isKindOf"Air")OR{((_v isKindOf"LandVehicle")OR{(_v isKindOf"Ship")})}))exitWith{};
_effect2pos=_v selectionposition"destructionEffect2";
while{_int>1}do{
_int=_int-1;
_t=(random 45)+1;
_list=_list+[_t];
};
{
sleep _x;
if((_lifecheck&&(alive _v))||(isnull _v)||(((getposASL _v)select 2)<0))exitwith{};
"SmallSecondary"createvehicle(_v modelToWorld _effect2pos);
}foreach(_list);

View File

@@ -4,44 +4,131 @@
Refactored By Alby Refactored By Alby
*/ */
private ["_curpos","_lastpos","_curheight","_lastheight","_terrainHeight","_curtime","_lasttime","_distance","_difftime","_speed","_topSpeed","_debug"]; private ["_log","_playerName","_playerUID","_al1veOnce","_debug","_lastpos","_lastheight","_lasttime","_lastVehicle","_v","_h","_topv","_toph","_curpos","_distance","_curtime","_difftime","_plant","_curheight","_speed","_topSpeed","_terrainHeight","_differenceCheck","_lastPosVar","_safetyVehicle","_curPos"];
waitUntil {vehicle player == player}; waitUntil {vehicle player == player};
[] spawn {
private ["_playerName","_playerUID"];
_playerName = name player;
_playerUID = getPlayerUID player;
while {true} do {
if (typeName player != "OBJECT") then {
atp = format["WARNING typename error for player UID#%1", _playerUID];
publicVariableServer "atp";
//forceEnd;
endMission "LOSER";
sleep 10; //Bypass spam
};
};
};
_al1veOnce = false;
while {true} do {
_debug = getMarkerpos "respawn_west";
_lastpos = getPosATL (vehicle player); _lastpos = getPosATL (vehicle player);
_lastheight = (ATLtoASL _lastpos) select 2; _lastheight = (ATLtoASL _lastpos) select 2;
_lasttime = time; _lasttime = diag_ticktime;
_lastVehicle = vehicle player;
while {alive player} do // freefall detection:
{ _v = 0;
_h = 0;
_topv = 0;
_toph = 0;
while {((typeName player == "OBJECT") AND {((player in playableUnits) AND {(alive player)})})} do {
//[-18697.58,379.53012,25815.256]
/*
if ([getMarkerPos "respawn_west", [0,0,0]] call BIS_fnc_areEqual || !([getMarkerPos "respawn_west", _debug] call BIS_fnc_areEqual)) then {
createMarkerLocal ["respawn_west", _debug];
"respawn_west" setMarkerType "EMPTY";
};
*/
_curpos = getPosATL (vehicle player); _curpos = getPosATL (vehicle player);
_curheight = (ATLtoASL _curpos) select 2;
_curtime = time;
_distance = _lastpos distance _curpos; _distance = _lastpos distance _curpos;
_difftime = (_curtime - _lasttime) max 0.001; _curtime = diag_ticktime;
_difftime = _curtime - _lasttime;
if ((_distance > 10) OR {(_difftime > 1)}) then {
if (!_al1veOnce) then {
private [ "_loc", "_plant"];
// check that plants libs are properly loaded
// thanks to Tansien the great
// run only once per character life
{
_plant = _x createVehicleLocal _debug;
sleep 0.1;
if (sizeOf _x == 0) exitWith {
atp = "Plants texture hack for type " + _x;
publicVariableServer "atp";
endMission "LOSER";
};
deleteVehicle _plant;
} forEach ["grass", "prunus", "picea", "fallentree", "phragmites", "acer", "amygdalusn", "Brush", "fiberplant", "amygdalusc", "boulder"];
diag_log format [ "%1: Plants libs tests done!", __FILE__];
};
_al1veOnce = true;
_curheight = (ATLtoASL _curpos) select 2;
_speed = _distance / _difftime; _speed = _distance / _difftime;
_topSpeed = 10; _topSpeed = 10;
if (vehicle player != player) then { if (vehicle player != player) then {
_topSpeed = getNumber (configFile >> "CfgVehicles" >> typeOf (vehicle player) >> "maxSpeed"); _topSpeed = (getNumber (configFile >> "CfgVehicles" >> typeOf (vehicle player) >> "maxSpeed")) min 500;
}; };
_terrainHeight = getTerrainHeightASL [_curpos select 0, _curpos select 1]; _terrainHeight = getTerrainHeightASL [_curpos select 0, _curpos select 1];
//diag_log format["DEBUG: terrain: %1 current: %2", _terrainHeight, _curheight]; /*
//diag_log format["DEBUG: all: %1 player: %2 fall: %3 terrain: %4", !((vehicle player == player) && (_curheight < _lastheight) && ((_curheight - _terrainHeight) > 1)), (vehicle player == player), (_curheight < _lastheight), (_curheight - _terrainHeight) > 1]; _differenceCheck = false;
_lastPosVar = player getVariable ["lastPos", []];
if (count _lastPosVar > 0) then {
_differenceCheck = (_lastPosVar distance _lastpos) > _topSpeed;
} else {
diag_log "LASTPOS RESET";
};
*/
_debug = getMarkerPos "respawn_west"; _safetyVehicle = vehicle player;
if (_lastVehicle == vehicle player) then {
if ((_speed > _topSpeed) && (alive player) && ((driver (vehicle player) == player) or (isNull (driver (vehicle player)))) && (_debug distance _lastpos > 3000) && !((vehicle player == player) && (_curheight < _lastheight) && ((_curheight - _terrainHeight) > 1))) then { if ((_speed > _topSpeed) && (alive player) && ((driver (vehicle player) == player) or (isNull (driver (vehicle player)))) && (_debug distance _lastpos > 3000) && !((vehicle player == player) && (_curheight < _lastheight) && ((_curheight - _terrainHeight) > 1))) then {
(vehicle player) setpos _lastpos; (vehicle player) setposATL _lastpos;
// atp = format["TELEPORT REVERT for player UID#%1 from %2 to %3, %4 meters, now at %5", getPlayerUID player, _lastpos, _curPos, round(_lastpos distance _curpos), getPosATL player];
atp = [name player, dayz_characterID, _lastpos, _curPos, getPosATL player]; atp = [name player, dayz_characterID, _lastpos, _curPos, getPosATL player];
publicVariableServer "atp"; publicVariableServer "atp";
} else { } else {
_lastpos = _curpos; _lastpos = _curpos;
_lastheight = _curheight; _lastheight = _curheight;
}; };
_lasttime = _curtime; _lasttime = _curtime;
sleep 0.5; };
if (_safetyVehicle == vehicle player) then {
_lastVehicle = vehicle player;
};
};
// freefall detection:
_v = -((velocity player) select 2);
_h = (getPosATL player) select 2;
if (_v > 4 AND _h > 3) then {
_topv = _topv max _v;
_toph = _toph max _h;
Dayz_freefall = [ time, _toph, _topv ];
}
else {
_topv = 0;
_toph = 0;
};
sleep 0.25;
};
// if (_al1veOnce) then {
// sleep 5;
// endMission "LOSER";
// }
// else {
sleep 0.1;
// };
}; };

View File

@@ -54,35 +54,6 @@ progressLoadingScreen 1.0;
"filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic"; "filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic";
/* BIS_Effects_* fixes from Dwarden */
BIS_Effects_EH_Killed = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\killed.sqf";
BIS_Effects_AirDestruction = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\AirDestruction.sqf";
BIS_Effects_AirDestructionStage2 = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\AirDestructionStage2.sqf";
BIS_Effects_globalEvent = {
BIS_effects_gepv = _this;
publicVariable "BIS_effects_gepv";
_this call BIS_Effects_startEvent;
};
BIS_Effects_startEvent = {
switch (_this select 0) do {
case "AirDestruction": {
[_this select 1] spawn BIS_Effects_AirDestruction;
};
case "AirDestructionStage2": {
[_this select 1, _this select 2, _this select 3] spawn BIS_Effects_AirDestructionStage2;
};
case "Burn": {
[_this select 1, _this select 2, _this select 3, false, true] spawn BIS_Effects_Burn;
};
};
};
"BIS_effects_gepv" addPublicVariableEventHandler {
(_this select 1) call BIS_Effects_startEvent;
};
if (isServer) then { if (isServer) then {
//Compile vehicle configs //Compile vehicle configs
@@ -110,3 +81,5 @@ if (!isDedicated) then {
#include "\z\addons\dayz_code\system\REsec.sqf" #include "\z\addons\dayz_code\system\REsec.sqf"
//Start Dynamic Weather //Start Dynamic Weather
execVM "\z\addons\dayz_code\external\DynamicWeatherEffects.sqf"; execVM "\z\addons\dayz_code\external\DynamicWeatherEffects.sqf";
#include "\z\addons\dayz_code\system\BIS_Effects\init.sqf"

View File

@@ -54,35 +54,6 @@ progressLoadingScreen 1.0;
"filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic"; "filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic";
/* BIS_Effects_* fixes from Dwarden */
BIS_Effects_EH_Killed = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\killed.sqf";
BIS_Effects_AirDestruction = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\AirDestruction.sqf";
BIS_Effects_AirDestructionStage2 = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\AirDestructionStage2.sqf";
BIS_Effects_globalEvent = {
BIS_effects_gepv = _this;
publicVariable "BIS_effects_gepv";
_this call BIS_Effects_startEvent;
};
BIS_Effects_startEvent = {
switch (_this select 0) do {
case "AirDestruction": {
[_this select 1] spawn BIS_Effects_AirDestruction;
};
case "AirDestructionStage2": {
[_this select 1, _this select 2, _this select 3] spawn BIS_Effects_AirDestructionStage2;
};
case "Burn": {
[_this select 1, _this select 2, _this select 3, false, true] spawn BIS_Effects_Burn;
};
};
};
"BIS_effects_gepv" addPublicVariableEventHandler {
(_this select 1) call BIS_Effects_startEvent;
};
if (isServer) then { if (isServer) then {
call compile preprocessFileLineNumbers "dynamic_vehicle.sqf"; //Compile vehicle configs call compile preprocessFileLineNumbers "dynamic_vehicle.sqf"; //Compile vehicle configs
@@ -108,3 +79,5 @@ if (!isDedicated) then {
#include "\z\addons\dayz_code\system\REsec.sqf" #include "\z\addons\dayz_code\system\REsec.sqf"
//Start Dynamic Weather //Start Dynamic Weather
execVM "\z\addons\dayz_code\external\DynamicWeatherEffects.sqf"; execVM "\z\addons\dayz_code\external\DynamicWeatherEffects.sqf";
#include "\z\addons\dayz_code\system\BIS_Effects\init.sqf"

View File

@@ -54,35 +54,6 @@ progressLoadingScreen 1.0;
"filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic"; "filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic";
/* BIS_Effects_* fixes from Dwarden */
BIS_Effects_EH_Killed = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\killed.sqf";
BIS_Effects_AirDestruction = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\AirDestruction.sqf";
BIS_Effects_AirDestructionStage2 = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\AirDestructionStage2.sqf";
BIS_Effects_globalEvent = {
BIS_effects_gepv = _this;
publicVariable "BIS_effects_gepv";
_this call BIS_Effects_startEvent;
};
BIS_Effects_startEvent = {
switch (_this select 0) do {
case "AirDestruction": {
[_this select 1] spawn BIS_Effects_AirDestruction;
};
case "AirDestructionStage2": {
[_this select 1, _this select 2, _this select 3] spawn BIS_Effects_AirDestructionStage2;
};
case "Burn": {
[_this select 1, _this select 2, _this select 3, false, true] spawn BIS_Effects_Burn;
};
};
};
"BIS_effects_gepv" addPublicVariableEventHandler {
(_this select 1) call BIS_Effects_startEvent;
};
if (isServer) then { if (isServer) then {
call compile preprocessFileLineNumbers "\z\addons\dayz_server\missions\DayZ_Epoch_11.Chernarus\dynamic_vehicle.sqf"; call compile preprocessFileLineNumbers "\z\addons\dayz_server\missions\DayZ_Epoch_11.Chernarus\dynamic_vehicle.sqf";
//Compile vehicle configs //Compile vehicle configs
@@ -109,3 +80,5 @@ if (!isDedicated) then {
#include "\z\addons\dayz_code\system\REsec.sqf" #include "\z\addons\dayz_code\system\REsec.sqf"
//Start Dynamic Weather //Start Dynamic Weather
execVM "\z\addons\dayz_code\external\DynamicWeatherEffects.sqf"; execVM "\z\addons\dayz_code\external\DynamicWeatherEffects.sqf";
#include "\z\addons\dayz_code\system\BIS_Effects\init.sqf"

View File

@@ -54,35 +54,6 @@ progressLoadingScreen 1.0;
"filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic"; "filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic";
/* BIS_Effects_* fixes from Dwarden */
BIS_Effects_EH_Killed = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\killed.sqf";
BIS_Effects_AirDestruction = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\AirDestruction.sqf";
BIS_Effects_AirDestructionStage2 = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\AirDestructionStage2.sqf";
BIS_Effects_globalEvent = {
BIS_effects_gepv = _this;
publicVariable "BIS_effects_gepv";
_this call BIS_Effects_startEvent;
};
BIS_Effects_startEvent = {
switch (_this select 0) do {
case "AirDestruction": {
[_this select 1] spawn BIS_Effects_AirDestruction;
};
case "AirDestructionStage2": {
[_this select 1, _this select 2, _this select 3] spawn BIS_Effects_AirDestructionStage2;
};
case "Burn": {
[_this select 1, _this select 2, _this select 3, false, true] spawn BIS_Effects_Burn;
};
};
};
"BIS_effects_gepv" addPublicVariableEventHandler {
(_this select 1) call BIS_Effects_startEvent;
};
if (isServer) then { if (isServer) then {
call compile preprocessFileLineNumbers "dynamic_vehicle.sqf"; //Compile vehicle configs call compile preprocessFileLineNumbers "dynamic_vehicle.sqf"; //Compile vehicle configs
@@ -108,3 +79,5 @@ if (!isDedicated) then {
#include "\z\addons\dayz_code\system\REsec.sqf" #include "\z\addons\dayz_code\system\REsec.sqf"
//Start Dynamic Weather //Start Dynamic Weather
execVM "\z\addons\dayz_code\external\DynamicWeatherEffects.sqf"; execVM "\z\addons\dayz_code\external\DynamicWeatherEffects.sqf";
#include "\z\addons\dayz_code\system\BIS_Effects\init.sqf"

View File

@@ -58,35 +58,6 @@ progressLoadingScreen 1.0;
"filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic"; "filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic";
/* BIS_Effects_* fixes from Dwarden */
BIS_Effects_EH_Killed = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\killed.sqf";
BIS_Effects_AirDestruction = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\AirDestruction.sqf";
BIS_Effects_AirDestructionStage2 = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\AirDestructionStage2.sqf";
BIS_Effects_globalEvent = {
BIS_effects_gepv = _this;
publicVariable "BIS_effects_gepv";
_this call BIS_Effects_startEvent;
};
BIS_Effects_startEvent = {
switch (_this select 0) do {
case "AirDestruction": {
[_this select 1] spawn BIS_Effects_AirDestruction;
};
case "AirDestructionStage2": {
[_this select 1, _this select 2, _this select 3] spawn BIS_Effects_AirDestructionStage2;
};
case "Burn": {
[_this select 1, _this select 2, _this select 3, false, true] spawn BIS_Effects_Burn;
};
};
};
"BIS_effects_gepv" addPublicVariableEventHandler {
(_this select 1) call BIS_Effects_startEvent;
};
if (isServer) then { if (isServer) then {
call compile preprocessFileLineNumbers "dynamic_vehicle.sqf"; //Compile vehicle configs call compile preprocessFileLineNumbers "dynamic_vehicle.sqf"; //Compile vehicle configs
@@ -112,3 +83,5 @@ if (!isDedicated) then {
#include "\z\addons\dayz_code\system\REsec.sqf" #include "\z\addons\dayz_code\system\REsec.sqf"
//Start Dynamic Weather //Start Dynamic Weather
execVM "\z\addons\dayz_code\external\DynamicWeatherEffects.sqf"; execVM "\z\addons\dayz_code\external\DynamicWeatherEffects.sqf";
#include "\z\addons\dayz_code\system\BIS_Effects\init.sqf"

View File

@@ -56,35 +56,6 @@ progressLoadingScreen 1.0;
"filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic"; "filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic";
/* BIS_Effects_* fixes from Dwarden */
BIS_Effects_EH_Killed = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\killed.sqf";
BIS_Effects_AirDestruction = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\AirDestruction.sqf";
BIS_Effects_AirDestructionStage2 = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\AirDestructionStage2.sqf";
BIS_Effects_globalEvent = {
BIS_effects_gepv = _this;
publicVariable "BIS_effects_gepv";
_this call BIS_Effects_startEvent;
};
BIS_Effects_startEvent = {
switch (_this select 0) do {
case "AirDestruction": {
[_this select 1] spawn BIS_Effects_AirDestruction;
};
case "AirDestructionStage2": {
[_this select 1, _this select 2, _this select 3] spawn BIS_Effects_AirDestructionStage2;
};
case "Burn": {
[_this select 1, _this select 2, _this select 3, false, true] spawn BIS_Effects_Burn;
};
};
};
"BIS_effects_gepv" addPublicVariableEventHandler {
(_this select 1) call BIS_Effects_startEvent;
};
if (isServer) then { if (isServer) then {
call compile preprocessFileLineNumbers "dynamic_vehicle.sqf"; //Compile vehicle configs call compile preprocessFileLineNumbers "dynamic_vehicle.sqf"; //Compile vehicle configs
@@ -110,3 +81,5 @@ if (!isDedicated) then {
#include "\z\addons\dayz_code\system\REsec.sqf" #include "\z\addons\dayz_code\system\REsec.sqf"
//Start Dynamic Weather //Start Dynamic Weather
execVM "\z\addons\dayz_code\external\DynamicWeatherEffects.sqf"; execVM "\z\addons\dayz_code\external\DynamicWeatherEffects.sqf";
#include "\z\addons\dayz_code\system\BIS_Effects\init.sqf"

View File

@@ -81,3 +81,5 @@ if (!isDedicated) then {
#include "\z\addons\dayz_code\system\REsec.sqf" #include "\z\addons\dayz_code\system\REsec.sqf"
//Start Dynamic Weather //Start Dynamic Weather
execVM "\z\addons\dayz_code\external\DynamicWeatherEffects.sqf"; execVM "\z\addons\dayz_code\external\DynamicWeatherEffects.sqf";
#include "\z\addons\dayz_code\system\BIS_Effects\init.sqf"

View File

@@ -54,35 +54,6 @@ progressLoadingScreen 1.0;
"filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic"; "filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic";
/* BIS_Effects_* fixes from Dwarden */
BIS_Effects_EH_Killed = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\killed.sqf";
BIS_Effects_AirDestruction = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\AirDestruction.sqf";
BIS_Effects_AirDestructionStage2 = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\AirDestructionStage2.sqf";
BIS_Effects_globalEvent = {
BIS_effects_gepv = _this;
publicVariable "BIS_effects_gepv";
_this call BIS_Effects_startEvent;
};
BIS_Effects_startEvent = {
switch (_this select 0) do {
case "AirDestruction": {
[_this select 1] spawn BIS_Effects_AirDestruction;
};
case "AirDestructionStage2": {
[_this select 1, _this select 2, _this select 3] spawn BIS_Effects_AirDestructionStage2;
};
case "Burn": {
[_this select 1, _this select 2, _this select 3, false, true] spawn BIS_Effects_Burn;
};
};
};
"BIS_effects_gepv" addPublicVariableEventHandler {
(_this select 1) call BIS_Effects_startEvent;
};
if (isServer) then { if (isServer) then {
call compile preprocessFileLineNumbers "dynamic_vehicle.sqf"; //Compile vehicle configs call compile preprocessFileLineNumbers "dynamic_vehicle.sqf"; //Compile vehicle configs
@@ -108,3 +79,5 @@ if (!isDedicated) then {
#include "\z\addons\dayz_code\system\REsec.sqf" #include "\z\addons\dayz_code\system\REsec.sqf"
//Start Dynamic Weather //Start Dynamic Weather
execVM "\z\addons\dayz_code\external\DynamicWeatherEffects.sqf"; execVM "\z\addons\dayz_code\external\DynamicWeatherEffects.sqf";
#include "\z\addons\dayz_code\system\BIS_Effects\init.sqf"

View File

@@ -79,3 +79,4 @@ if (!isDedicated) then {
#include "\z\addons\dayz_code\system\REsec.sqf" #include "\z\addons\dayz_code\system\REsec.sqf"
//Start Dynamic Weather //Start Dynamic Weather
execVM "\z\addons\dayz_code\external\DynamicWeatherEffects.sqf"; execVM "\z\addons\dayz_code\external\DynamicWeatherEffects.sqf";
#include "\z\addons\dayz_code\system\BIS_Effects\init.sqf"

View File

@@ -53,35 +53,6 @@ progressLoadingScreen 1.0;
"filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic"; "filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic";
/* BIS_Effects_* fixes from Dwarden */
BIS_Effects_EH_Killed = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\killed.sqf";
BIS_Effects_AirDestruction = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\AirDestruction.sqf";
BIS_Effects_AirDestructionStage2 = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\AirDestructionStage2.sqf";
BIS_Effects_globalEvent = {
BIS_effects_gepv = _this;
publicVariable "BIS_effects_gepv";
_this call BIS_Effects_startEvent;
};
BIS_Effects_startEvent = {
switch (_this select 0) do {
case "AirDestruction": {
[_this select 1] spawn BIS_Effects_AirDestruction;
};
case "AirDestructionStage2": {
[_this select 1, _this select 2, _this select 3] spawn BIS_Effects_AirDestructionStage2;
};
case "Burn": {
[_this select 1, _this select 2, _this select 3, false, true] spawn BIS_Effects_Burn;
};
};
};
"BIS_effects_gepv" addPublicVariableEventHandler {
(_this select 1) call BIS_Effects_startEvent;
};
if (isServer) then { if (isServer) then {
call compile preprocessFileLineNumbers "dynamic_vehicle.sqf"; //Compile vehicle configs call compile preprocessFileLineNumbers "dynamic_vehicle.sqf"; //Compile vehicle configs
@@ -107,3 +78,4 @@ if (!isDedicated) then {
#include "\z\addons\dayz_code\system\REsec.sqf" #include "\z\addons\dayz_code\system\REsec.sqf"
//Start Dynamic Weather //Start Dynamic Weather
execVM "\z\addons\dayz_code\external\DynamicWeatherEffects.sqf"; execVM "\z\addons\dayz_code\external\DynamicWeatherEffects.sqf";
#include "\z\addons\dayz_code\system\BIS_Effects\init.sqf"

View File

@@ -54,35 +54,6 @@ progressLoadingScreen 1.0;
"filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic"; "filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic";
/* BIS_Effects_* fixes from Dwarden */
BIS_Effects_EH_Killed = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\killed.sqf";
BIS_Effects_AirDestruction = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\AirDestruction.sqf";
BIS_Effects_AirDestructionStage2 = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\AirDestructionStage2.sqf";
BIS_Effects_globalEvent = {
BIS_effects_gepv = _this;
publicVariable "BIS_effects_gepv";
_this call BIS_Effects_startEvent;
};
BIS_Effects_startEvent = {
switch (_this select 0) do {
case "AirDestruction": {
[_this select 1] spawn BIS_Effects_AirDestruction;
};
case "AirDestructionStage2": {
[_this select 1, _this select 2, _this select 3] spawn BIS_Effects_AirDestructionStage2;
};
case "Burn": {
[_this select 1, _this select 2, _this select 3, false, true] spawn BIS_Effects_Burn;
};
};
};
"BIS_effects_gepv" addPublicVariableEventHandler {
(_this select 1) call BIS_Effects_startEvent;
};
if (isServer) then { if (isServer) then {
//Compile vehicle configs //Compile vehicle configs
@@ -110,3 +81,5 @@ if (!isDedicated) then {
#include "\z\addons\dayz_code\system\REsec.sqf" #include "\z\addons\dayz_code\system\REsec.sqf"
//Start Dynamic Weather //Start Dynamic Weather
execVM "\z\addons\dayz_code\external\DynamicWeatherEffects.sqf"; execVM "\z\addons\dayz_code\external\DynamicWeatherEffects.sqf";
#include "\z\addons\dayz_code\system\BIS_Effects\init.sqf"

View File

@@ -54,35 +54,6 @@ progressLoadingScreen 1.0;
"filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic"; "filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic";
/* BIS_Effects_* fixes from Dwarden */
BIS_Effects_EH_Killed = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\killed.sqf";
BIS_Effects_AirDestruction = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\AirDestruction.sqf";
BIS_Effects_AirDestructionStage2 = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\AirDestructionStage2.sqf";
BIS_Effects_globalEvent = {
BIS_effects_gepv = _this;
publicVariable "BIS_effects_gepv";
_this call BIS_Effects_startEvent;
};
BIS_Effects_startEvent = {
switch (_this select 0) do {
case "AirDestruction": {
[_this select 1] spawn BIS_Effects_AirDestruction;
};
case "AirDestructionStage2": {
[_this select 1, _this select 2, _this select 3] spawn BIS_Effects_AirDestructionStage2;
};
case "Burn": {
[_this select 1, _this select 2, _this select 3, false, true] spawn BIS_Effects_Burn;
};
};
};
"BIS_effects_gepv" addPublicVariableEventHandler {
(_this select 1) call BIS_Effects_startEvent;
};
if (isServer) then { if (isServer) then {
call compile preprocessFileLineNumbers "dynamic_vehicle.sqf"; //Compile vehicle configs call compile preprocessFileLineNumbers "dynamic_vehicle.sqf"; //Compile vehicle configs
@@ -108,3 +79,5 @@ if (!isDedicated) then {
#include "\z\addons\dayz_code\system\REsec.sqf" #include "\z\addons\dayz_code\system\REsec.sqf"
//Start Dynamic Weather //Start Dynamic Weather
execVM "\z\addons\dayz_code\external\DynamicWeatherEffects.sqf"; execVM "\z\addons\dayz_code\external\DynamicWeatherEffects.sqf";
#include "\z\addons\dayz_code\system\BIS_Effects\init.sqf"

View File

@@ -54,35 +54,6 @@ progressLoadingScreen 1.0;
"filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic"; "filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic";
/* BIS_Effects_* fixes from Dwarden */
BIS_Effects_EH_Killed = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\killed.sqf";
BIS_Effects_AirDestruction = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\AirDestruction.sqf";
BIS_Effects_AirDestructionStage2 = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\AirDestructionStage2.sqf";
BIS_Effects_globalEvent = {
BIS_effects_gepv = _this;
publicVariable "BIS_effects_gepv";
_this call BIS_Effects_startEvent;
};
BIS_Effects_startEvent = {
switch (_this select 0) do {
case "AirDestruction": {
[_this select 1] spawn BIS_Effects_AirDestruction;
};
case "AirDestructionStage2": {
[_this select 1, _this select 2, _this select 3] spawn BIS_Effects_AirDestructionStage2;
};
case "Burn": {
[_this select 1, _this select 2, _this select 3, false, true] spawn BIS_Effects_Burn;
};
};
};
"BIS_effects_gepv" addPublicVariableEventHandler {
(_this select 1) call BIS_Effects_startEvent;
};
if (isServer) then { if (isServer) then {
call compile preprocessFileLineNumbers "dynamic_vehicle.sqf"; //Compile vehicle configs call compile preprocessFileLineNumbers "dynamic_vehicle.sqf"; //Compile vehicle configs
@@ -108,3 +79,4 @@ if (!isDedicated) then {
#include "\z\addons\dayz_code\system\REsec.sqf" #include "\z\addons\dayz_code\system\REsec.sqf"
//Start Dynamic Weather //Start Dynamic Weather
execVM "\z\addons\dayz_code\external\DynamicWeatherEffects.sqf"; execVM "\z\addons\dayz_code\external\DynamicWeatherEffects.sqf";
#include "\z\addons\dayz_code\system\BIS_Effects\init.sqf"

View File

@@ -54,35 +54,6 @@ progressLoadingScreen 1.0;
"filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic"; "filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic";
/* BIS_Effects_* fixes from Dwarden */
BIS_Effects_EH_Killed = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\killed.sqf";
BIS_Effects_AirDestruction = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\AirDestruction.sqf";
BIS_Effects_AirDestructionStage2 = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\AirDestructionStage2.sqf";
BIS_Effects_globalEvent = {
BIS_effects_gepv = _this;
publicVariable "BIS_effects_gepv";
_this call BIS_Effects_startEvent;
};
BIS_Effects_startEvent = {
switch (_this select 0) do {
case "AirDestruction": {
[_this select 1] spawn BIS_Effects_AirDestruction;
};
case "AirDestructionStage2": {
[_this select 1, _this select 2, _this select 3] spawn BIS_Effects_AirDestructionStage2;
};
case "Burn": {
[_this select 1, _this select 2, _this select 3, false, true] spawn BIS_Effects_Burn;
};
};
};
"BIS_effects_gepv" addPublicVariableEventHandler {
(_this select 1) call BIS_Effects_startEvent;
};
if (isServer) then { if (isServer) then {
//Compile vehicle configs //Compile vehicle configs
@@ -110,3 +81,5 @@ if (!isDedicated) then {
#include "\z\addons\dayz_code\system\REsec.sqf" #include "\z\addons\dayz_code\system\REsec.sqf"
//Start Dynamic Weather //Start Dynamic Weather
execVM "\z\addons\dayz_code\external\DynamicWeatherEffects.sqf"; execVM "\z\addons\dayz_code\external\DynamicWeatherEffects.sqf";
#include "\z\addons\dayz_code\system\BIS_Effects\init.sqf"

View File

@@ -54,35 +54,6 @@ progressLoadingScreen 1.0;
"filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic"; "filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic";
/* BIS_Effects_* fixes from Dwarden */
BIS_Effects_EH_Killed = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\killed.sqf";
BIS_Effects_AirDestruction = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\AirDestruction.sqf";
BIS_Effects_AirDestructionStage2 = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\AirDestructionStage2.sqf";
BIS_Effects_globalEvent = {
BIS_effects_gepv = _this;
publicVariable "BIS_effects_gepv";
_this call BIS_Effects_startEvent;
};
BIS_Effects_startEvent = {
switch (_this select 0) do {
case "AirDestruction": {
[_this select 1] spawn BIS_Effects_AirDestruction;
};
case "AirDestructionStage2": {
[_this select 1, _this select 2, _this select 3] spawn BIS_Effects_AirDestructionStage2;
};
case "Burn": {
[_this select 1, _this select 2, _this select 3, false, true] spawn BIS_Effects_Burn;
};
};
};
"BIS_effects_gepv" addPublicVariableEventHandler {
(_this select 1) call BIS_Effects_startEvent;
};
if (isServer) then { if (isServer) then {
//Compile vehicle configs //Compile vehicle configs
@@ -110,3 +81,5 @@ if (!isDedicated) then {
#include "\z\addons\dayz_code\system\REsec.sqf" #include "\z\addons\dayz_code\system\REsec.sqf"
//Start Dynamic Weather //Start Dynamic Weather
execVM "\z\addons\dayz_code\external\DynamicWeatherEffects.sqf"; execVM "\z\addons\dayz_code\external\DynamicWeatherEffects.sqf";
#include "\z\addons\dayz_code\system\BIS_Effects\init.sqf"

View File

@@ -54,35 +54,6 @@ progressLoadingScreen 1.0;
"filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic"; "filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic";
/* BIS_Effects_* fixes from Dwarden */
BIS_Effects_EH_Killed = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\killed.sqf";
BIS_Effects_AirDestruction = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\AirDestruction.sqf";
BIS_Effects_AirDestructionStage2 = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\AirDestructionStage2.sqf";
BIS_Effects_globalEvent = {
BIS_effects_gepv = _this;
publicVariable "BIS_effects_gepv";
_this call BIS_Effects_startEvent;
};
BIS_Effects_startEvent = {
switch (_this select 0) do {
case "AirDestruction": {
[_this select 1] spawn BIS_Effects_AirDestruction;
};
case "AirDestructionStage2": {
[_this select 1, _this select 2, _this select 3] spawn BIS_Effects_AirDestructionStage2;
};
case "Burn": {
[_this select 1, _this select 2, _this select 3, false, true] spawn BIS_Effects_Burn;
};
};
};
"BIS_effects_gepv" addPublicVariableEventHandler {
(_this select 1) call BIS_Effects_startEvent;
};
if (isServer) then { if (isServer) then {
call compile preprocessFileLineNumbers "dynamic_vehicle.sqf"; //Compile vehicle configs call compile preprocessFileLineNumbers "dynamic_vehicle.sqf"; //Compile vehicle configs
@@ -108,3 +79,5 @@ if (!isDedicated) then {
#include "\z\addons\dayz_code\system\REsec.sqf" #include "\z\addons\dayz_code\system\REsec.sqf"
//Start Dynamic Weather //Start Dynamic Weather
execVM "\z\addons\dayz_code\external\DynamicWeatherEffects.sqf"; execVM "\z\addons\dayz_code\external\DynamicWeatherEffects.sqf";
#include "\z\addons\dayz_code\system\BIS_Effects\init.sqf"

View File

@@ -55,35 +55,6 @@ progressLoadingScreen 1.0;
"filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic"; "filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic";
/* BIS_Effects_* fixes from Dwarden */
BIS_Effects_EH_Killed = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\killed.sqf";
BIS_Effects_AirDestruction = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\AirDestruction.sqf";
BIS_Effects_AirDestructionStage2 = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\AirDestructionStage2.sqf";
BIS_Effects_globalEvent = {
BIS_effects_gepv = _this;
publicVariable "BIS_effects_gepv";
_this call BIS_Effects_startEvent;
};
BIS_Effects_startEvent = {
switch (_this select 0) do {
case "AirDestruction": {
[_this select 1] spawn BIS_Effects_AirDestruction;
};
case "AirDestructionStage2": {
[_this select 1, _this select 2, _this select 3] spawn BIS_Effects_AirDestructionStage2;
};
case "Burn": {
[_this select 1, _this select 2, _this select 3, false, true] spawn BIS_Effects_Burn;
};
};
};
"BIS_effects_gepv" addPublicVariableEventHandler {
(_this select 1) call BIS_Effects_startEvent;
};
if (isServer) then { if (isServer) then {
call compile preprocessFileLineNumbers "dynamic_vehicle.sqf"; //Compile vehicle configs call compile preprocessFileLineNumbers "dynamic_vehicle.sqf"; //Compile vehicle configs
@@ -109,3 +80,5 @@ if (!isDedicated) then {
#include "\z\addons\dayz_code\system\REsec.sqf" #include "\z\addons\dayz_code\system\REsec.sqf"
//Start Dynamic Weather //Start Dynamic Weather
execVM "\z\addons\dayz_code\external\DynamicWeatherEffects.sqf"; execVM "\z\addons\dayz_code\external\DynamicWeatherEffects.sqf";
#include "\z\addons\dayz_code\system\BIS_Effects\init.sqf"

View File

@@ -55,35 +55,6 @@ progressLoadingScreen 1.0;
"filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic"; "filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic";
/* BIS_Effects_* fixes from Dwarden */
BIS_Effects_EH_Killed = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\killed.sqf";
BIS_Effects_AirDestruction = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\AirDestruction.sqf";
BIS_Effects_AirDestructionStage2 = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\AirDestructionStage2.sqf";
BIS_Effects_globalEvent = {
BIS_effects_gepv = _this;
publicVariable "BIS_effects_gepv";
_this call BIS_Effects_startEvent;
};
BIS_Effects_startEvent = {
switch (_this select 0) do {
case "AirDestruction": {
[_this select 1] spawn BIS_Effects_AirDestruction;
};
case "AirDestructionStage2": {
[_this select 1, _this select 2, _this select 3] spawn BIS_Effects_AirDestructionStage2;
};
case "Burn": {
[_this select 1, _this select 2, _this select 3, false, true] spawn BIS_Effects_Burn;
};
};
};
"BIS_effects_gepv" addPublicVariableEventHandler {
(_this select 1) call BIS_Effects_startEvent;
};
if (isServer) then { if (isServer) then {
call compile preprocessFileLineNumbers "dynamic_vehicle.sqf"; //Compile vehicle configs call compile preprocessFileLineNumbers "dynamic_vehicle.sqf"; //Compile vehicle configs
@@ -109,3 +80,5 @@ if (!isDedicated) then {
#include "\z\addons\dayz_code\system\REsec.sqf" #include "\z\addons\dayz_code\system\REsec.sqf"
//Start Dynamic Weather //Start Dynamic Weather
execVM "\z\addons\dayz_code\external\DynamicWeatherEffects.sqf"; execVM "\z\addons\dayz_code\external\DynamicWeatherEffects.sqf";
#include "\z\addons\dayz_code\system\BIS_Effects\init.sqf"

View File

@@ -54,35 +54,6 @@ progressLoadingScreen 1.0;
"filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic"; "filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic";
/* BIS_Effects_* fixes from Dwarden */
BIS_Effects_EH_Killed = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\killed.sqf";
BIS_Effects_AirDestruction = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\AirDestruction.sqf";
BIS_Effects_AirDestructionStage2 = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\AirDestructionStage2.sqf";
BIS_Effects_globalEvent = {
BIS_effects_gepv = _this;
publicVariable "BIS_effects_gepv";
_this call BIS_Effects_startEvent;
};
BIS_Effects_startEvent = {
switch (_this select 0) do {
case "AirDestruction": {
[_this select 1] spawn BIS_Effects_AirDestruction;
};
case "AirDestructionStage2": {
[_this select 1, _this select 2, _this select 3] spawn BIS_Effects_AirDestructionStage2;
};
case "Burn": {
[_this select 1, _this select 2, _this select 3, false, true] spawn BIS_Effects_Burn;
};
};
};
"BIS_effects_gepv" addPublicVariableEventHandler {
(_this select 1) call BIS_Effects_startEvent;
};
if (isServer) then { if (isServer) then {
call compile preprocessFileLineNumbers "dynamic_vehicle.sqf"; //Compile vehicle configs call compile preprocessFileLineNumbers "dynamic_vehicle.sqf"; //Compile vehicle configs
@@ -108,3 +79,5 @@ if (!isDedicated) then {
#include "\z\addons\dayz_code\system\REsec.sqf" #include "\z\addons\dayz_code\system\REsec.sqf"
//Start Dynamic Weather //Start Dynamic Weather
execVM "\z\addons\dayz_code\external\DynamicWeatherEffects.sqf"; execVM "\z\addons\dayz_code\external\DynamicWeatherEffects.sqf";
#include "\z\addons\dayz_code\system\BIS_Effects\init.sqf"

View File

@@ -54,35 +54,6 @@ progressLoadingScreen 1.0;
"filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic"; "filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic";
/* BIS_Effects_* fixes from Dwarden */
BIS_Effects_EH_Killed = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\killed.sqf";
BIS_Effects_AirDestruction = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\AirDestruction.sqf";
BIS_Effects_AirDestructionStage2 = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\AirDestructionStage2.sqf";
BIS_Effects_globalEvent = {
BIS_effects_gepv = _this;
publicVariable "BIS_effects_gepv";
_this call BIS_Effects_startEvent;
};
BIS_Effects_startEvent = {
switch (_this select 0) do {
case "AirDestruction": {
[_this select 1] spawn BIS_Effects_AirDestruction;
};
case "AirDestructionStage2": {
[_this select 1, _this select 2, _this select 3] spawn BIS_Effects_AirDestructionStage2;
};
case "Burn": {
[_this select 1, _this select 2, _this select 3, false, true] spawn BIS_Effects_Burn;
};
};
};
"BIS_effects_gepv" addPublicVariableEventHandler {
(_this select 1) call BIS_Effects_startEvent;
};
if (isServer) then { if (isServer) then {
call compile preprocessFileLineNumbers "dynamic_vehicle.sqf"; //Compile vehicle configs call compile preprocessFileLineNumbers "dynamic_vehicle.sqf"; //Compile vehicle configs
@@ -108,3 +79,5 @@ if (!isDedicated) then {
#include "\z\addons\dayz_code\system\REsec.sqf" #include "\z\addons\dayz_code\system\REsec.sqf"
//Start Dynamic Weather //Start Dynamic Weather
execVM "\z\addons\dayz_code\external\DynamicWeatherEffects.sqf"; execVM "\z\addons\dayz_code\external\DynamicWeatherEffects.sqf";
#include "\z\addons\dayz_code\system\BIS_Effects\init.sqf"

View File

@@ -54,35 +54,6 @@ progressLoadingScreen 1.0;
"filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic"; "filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic";
/* BIS_Effects_* fixes from Dwarden */
BIS_Effects_EH_Killed = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\killed.sqf";
BIS_Effects_AirDestruction = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\AirDestruction.sqf";
BIS_Effects_AirDestructionStage2 = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\AirDestructionStage2.sqf";
BIS_Effects_globalEvent = {
BIS_effects_gepv = _this;
publicVariable "BIS_effects_gepv";
_this call BIS_Effects_startEvent;
};
BIS_Effects_startEvent = {
switch (_this select 0) do {
case "AirDestruction": {
[_this select 1] spawn BIS_Effects_AirDestruction;
};
case "AirDestructionStage2": {
[_this select 1, _this select 2, _this select 3] spawn BIS_Effects_AirDestructionStage2;
};
case "Burn": {
[_this select 1, _this select 2, _this select 3, false, true] spawn BIS_Effects_Burn;
};
};
};
"BIS_effects_gepv" addPublicVariableEventHandler {
(_this select 1) call BIS_Effects_startEvent;
};
if (isServer) then { if (isServer) then {
call compile preprocessFileLineNumbers "\z\addons\dayz_server\missions\DayZ_Epoch_11.Chernarus\dynamic_vehicle.sqf"; call compile preprocessFileLineNumbers "\z\addons\dayz_server\missions\DayZ_Epoch_11.Chernarus\dynamic_vehicle.sqf";
//Compile vehicle configs //Compile vehicle configs
@@ -109,3 +80,5 @@ if (!isDedicated) then {
#include "\z\addons\dayz_code\system\REsec.sqf" #include "\z\addons\dayz_code\system\REsec.sqf"
//Start Dynamic Weather //Start Dynamic Weather
execVM "\z\addons\dayz_code\external\DynamicWeatherEffects.sqf"; execVM "\z\addons\dayz_code\external\DynamicWeatherEffects.sqf";
#include "\z\addons\dayz_code\system\BIS_Effects\init.sqf"