Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

adding snow and spawn snow

Skilled Illusionist
Joined
Jun 19, 2014
Messages
315
Reaction score
71
creat a file in note pad and name it snow.sqf and add thes lines

_snowrun = true;
snow = nil;

while {_snowrun} do {
_snowchance = random 100;
if ((_snowchance > 75) && (!(rain > 0)) && overcast > 0.4) then {
if (isNil "snow") then {
snow = [] execvm "custom\spawn_snow.sqf";
sleep 300 + random 300;
};
} else {
if (!isNil "snow") then {
terminate snow;
snow = nil;
};
};
sleep 600 + random 600;
};











now creat another in notpad and name it spawn_snow.sqf and add thes line

//Modified by adam47, all credits go to original creator ad


//Snow script



_d = 15;
_h = 12;
_h1 = 8;
_h2 = 4;
_density = 20000;


while {true} do
{
0 setRain 0;
_a = 0;
while { _a < _density } do
{
0 setRain 0;
_pos = getPosATL (vehicle player);

_dpos = [((_pos select 0) + (_d - (random (2*_d))) + ((velocity vehicle player select 0)*1)),((_pos select 1) + (_d - (random (2*_d))) + ((velocity vehicle player select 0)*1)),((_pos select 2) + _h)];
drop ["\ca\data\cl_water", "", "Billboard", 1, 7, _dpos, [0,0,-1], 1, 0.0000001, 0.000, 0.7, [0.07], [[1,1,1,0], [1,1,1,1], [1,1,1,1], [1,1,1,1]], [0,0], 0.2, 1.2, "", "", ""]; _a = _a + 1;


_dpos = [((_pos select 0) + (_d - (random (2*_d))) + ((velocity vehicle player select 0)*1)),((_pos select 1) + (_d - (random (2*_d))) + ((velocity vehicle player select 0)*1)),((_pos select 2) + _h1)];
drop ["\ca\data\cl_water", "", "Billboard", 1, 7, _dpos, [0,0,-1], 1, 0.0000001, 0.000, 0.7, [0.07], [[1,1,1,0], [1,1,1,1], [1,1,1,1], [1,1,1,1]], [0,0], 0.2, 1.2, "", "", ""];


_dpos = [((_pos select 0) + (_d - (random (2*_d))) + ((velocity vehicle player select 0)*1)),((_pos select 1) + (_d - (random (2*_d))) + ((velocity vehicle player select 0)*1)),((_pos select 2) + _h2)];
drop ["\ca\data\cl_water", "", "Billboard", 1, 7, _dpos, [0,0,-1], 1, 0.0000001, 0.000, 0.7, [0.07], [[1,1,1,0], [1,1,1,1], [1,1,1,1], [1,1,1,1]], [0,0], 0.2, 1.2, "", "", ""];

};
sleep 0.1;
};
 
Newbie Spellweaver
Joined
Feb 19, 2015
Messages
18
Reaction score
0
How to call these two sqf files, use init.sqf ? like execVM and .... right?
 
Newbie Spellweaver
Joined
May 2, 2015
Messages
63
Reaction score
11
creat a file in note pad and name it snow.sqf and add thes lines

_snowrun = true;
snow = nil;

while {_snowrun} do {
_snowchance = random 100;
if ((_snowchance > 75) && (!(rain > 0)) && overcast > 0.4) then {
if (isNil "snow") then {
snow = [] execvm "custom\spawn_snow.sqf";
sleep 300 + random 300;
};
} else {
if (!isNil "snow") then {
terminate snow;
snow = nil;
};
};
sleep 600 + random 600;
};











now creat another in notpad and name it spawn_snow.sqf and add thes line

//Modified by adam47, all credits go to original creator ad


//Snow script



_d = 15;
_h = 12;
_h1 = 8;
_h2 = 4;
_density = 20000;


while {true} do
{
0 setRain 0;
_a = 0;
while { _a < _density } do
{
0 setRain 0;
_pos = getPosATL (vehicle player);

_dpos = [((_pos select 0) + (_d - (random (2*_d))) + ((velocity vehicle player select 0)*1)),((_pos select 1) + (_d - (random (2*_d))) + ((velocity vehicle player select 0)*1)),((_pos select 2) + _h)];
drop ["\ca\data\cl_water", "", "Billboard", 1, 7, _dpos, [0,0,-1], 1, 0.0000001, 0.000, 0.7, [0.07], [[1,1,1,0], [1,1,1,1], [1,1,1,1], [1,1,1,1]], [0,0], 0.2, 1.2, "", "", ""]; _a = _a + 1;


_dpos = [((_pos select 0) + (_d - (random (2*_d))) + ((velocity vehicle player select 0)*1)),((_pos select 1) + (_d - (random (2*_d))) + ((velocity vehicle player select 0)*1)),((_pos select 2) + _h1)];
drop ["\ca\data\cl_water", "", "Billboard", 1, 7, _dpos, [0,0,-1], 1, 0.0000001, 0.000, 0.7, [0.07], [[1,1,1,0], [1,1,1,1], [1,1,1,1], [1,1,1,1]], [0,0], 0.2, 1.2, "", "", ""];


_dpos = [((_pos select 0) + (_d - (random (2*_d))) + ((velocity vehicle player select 0)*1)),((_pos select 1) + (_d - (random (2*_d))) + ((velocity vehicle player select 0)*1)),((_pos select 2) + _h2)];
drop ["\ca\data\cl_water", "", "Billboard", 1, 7, _dpos, [0,0,-1], 1, 0.0000001, 0.000, 0.7, [0.07], [[1,1,1,0], [1,1,1,1], [1,1,1,1], [1,1,1,1]], [0,0], 0.2, 1.2, "", "", ""];

};
sleep 0.1;
};

it's SUMMER already , who the fu*k need snow now , it will be good in winter 2016
 
Newbie Spellweaver
Joined
Jun 29, 2014
Messages
14
Reaction score
1
Can someone post a picture of how it looks with snow?
 
Newbie Spellweaver
Joined
May 4, 2015
Messages
6
Reaction score
0
adm47 Hello I would like you to help me to be dayz standalone version 0.59 and client services, including network authentication system logger source anti-plug I can pay in certain RMB my poor English I am Chinese do hope you can help me
E-mail: 2930980@qq.com
 
Back
Top