GaspArt Posted December 2, 2014 Report Share Posted December 2, 2014 Heyho, guys. Today is second day of winter and I thought, that will be cool make a random snow after restart and snowy weather. Before we ll intsall scripts, I want say thanks to: Halv - for WeedSpawn script andAnonymous - for Snowstorm http://www.youtube.com/watch?v=yvBQsg4LYUE So, installing: 1. Extract RAR archive and place it in mission folder. 2. Open init.sqf and make some edits: 2.1. Comment dynamic weather: //execVM "\z\addons\dayz_code\external\DynamicWeatherEffects.sqf"; 2.2.Between "if (!isDedicated) then {" and "};" paste path to snowflakes.sqf , like that: if (!isDedicated) then { execVM "YOURPATH\snowflakes.sqf"; }; 2.3. And after "};" paste path to snow.sqf . Finally must be like that: if (!isDedicated) then { execVM "YOURPATH\snowflakes.sqf"; }; [] execVM "YOURPATH\snow.sqf"; 3. Configure snow.sqf to set amount of snow objects on map and etc. Download: Link 4. For Infistar users: If u want to make markers in Admin tool for snow objects, take this codes: Action: adminadd = adminadd + [" Map Snow Markers",adminsnow,"1","0","0","0",[]]; Function: adminsnow = { if !(('ItemGPS' in items player) || ('ItemMap' in items player)) then { _config = ["ItemGPS"]; _isOK = [player,_config] call BIS_fnc_invAdd; }; adminsnows = { while {marksnow == 1} do { _objects = []; { _objects = _objects + (allMissionObjects _x); uiSleep 0.5; } forEach ["MAP_snow"]; for "_i" from 0 to (count _objects)-1 do { _selected = _objects select _i; deleteMarkerLocal ("adminsnows" + (str _i)); _vm = createMarkerLocal [("adminsnows" + (str _i)), getPos _selected]; _vm setMarkerTypeLocal "Destroy"; _vm setMarkerSizeLocal [0.8, 0.8]; _vm setMarkerTextLocal format[" %1", getText (configFile >> 'CfgVehicles' >> (typeOf _selected) >> 'displayName')]; _vm setMarkerColorLocal ("ColorRed"); }; uiSleep 20; }; for "_i" from 0 to 8888 do {deleteMarkerLocal ("adminsnows" + (str _i));}; }; if (isNil "marksnow") then {marksnow = 0;}; if (marksnow == 0) then { marksnow = 1; hint "2D Map Snow Markers Activated"; [] spawn adminsnows; _sl = format["%1 SnowMarker Activated",name player]; PVAH_WriteLogReq = [player,toArray _sl]; publicVariableServer 'PVAH_WriteLogReq'; } else { marksnow = 0; hint "2D Map Snow Markers Disabled"; for "_i" from 0 to 8888 do {deleteMarkerLocal ("adminsnows" + (str _i));}; _sl = format["%1 SnowMarker Disabled",name player]; PVAH_WriteLogReq = [player,toArray _sl]; publicVariableServer 'PVAH_WriteLogReq'; }; }; P.S. Somebody can say how to change native temperture? So players with script should use heatpacks and campfires for warm. Link to comment Share on other sites More sharing options...
fr1nk Posted December 2, 2014 Report Share Posted December 2, 2014 Various temperatures are adjusted in fn_temperatur.sqf edit: instructions on how to add snow to the list of weather factors found here (post #17) Link to comment Share on other sites More sharing options...
GaspArt Posted December 2, 2014 Author Report Share Posted December 2, 2014 Various temperatures are adjusted in fn_temperatur.sqf edit: instructions on how to add snow to the list of weather factors found here (post #17) Oh, thank you, Cobblepot :) Link to comment Share on other sites More sharing options...
MG-Maximus Posted December 3, 2014 Report Share Posted December 3, 2014 Awesome Gaspart! Lets all get into the Christmas spirit! Link to comment Share on other sites More sharing options...
GaspArt Posted December 3, 2014 Author Report Share Posted December 3, 2014 Awesome Gaspart! Lets all get into the Christmas spirit! Oh, thank u! Im glad that this script is usefull for u :) Link to comment Share on other sites More sharing options...
SolarGod Posted December 4, 2014 Report Share Posted December 4, 2014 Snow goes all the time without stopping. What am I doing wrong? Link to comment Share on other sites More sharing options...
GaspArt Posted December 4, 2014 Author Report Share Posted December 4, 2014 Snow goes all the time without stopping. What am I doing wrong? Nothing. Must be so. Later will fix. ;) Link to comment Share on other sites More sharing options...
SadBoy1981 Posted December 4, 2014 Report Share Posted December 4, 2014 When snowing in half second have rain and fog 100% also raining sound. And how to add only snow with clear sky? Link to comment Share on other sites More sharing options...
GaspArt Posted December 4, 2014 Author Report Share Posted December 4, 2014 When snowing in half second have rain and fog 100% also raining sound. And how to add only snow with clear sky? Куку епта) Change in snowflakes.sqf veriable: 0 setovercast 0.9; Link to comment Share on other sites More sharing options...
SadBoy1981 Posted December 4, 2014 Report Share Posted December 4, 2014 Куку епта) Change in snowflakes.sqf veriable: 0 setovercast 0.9; Нашел! Found it, yep! Link to comment Share on other sites More sharing options...
Uncle Bad Touch Posted December 5, 2014 Report Share Posted December 5, 2014 Is this global or player based since it might be a bit weird for one person to be in 80ft of snow while the other is sitting up on a hill thinking "the fuck is he doing?". Link to comment Share on other sites More sharing options...
warchild Posted December 5, 2014 Report Share Posted December 5, 2014 I fail to see why the weed farm is included (we use weed farms on our server)? Am I missing something...? Are you using it to spawn the snow? Thanks for the script, looking forward to implementing some christmas spirit on our server later in December. :-) Link to comment Share on other sites More sharing options...
GaspArt Posted December 5, 2014 Author Report Share Posted December 5, 2014 I fail to see why the weed farm is included (we use weed farms on our server)? Am I missing something...? Are you using it to spawn the snow? Thanks for the script, looking forward to implementing some christmas spirit on our server later in December. :-) I use just generator script. Only that. Later will try to make it in server.pbo side Link to comment Share on other sites More sharing options...
NetShark Posted December 11, 2014 Report Share Posted December 11, 2014 Great work !... it works fine... but I couldn't understand the temperature control. I mean, I modified the "fn_temperatur.sqf" at dayz_code.pbo but it doesn't seem to work. Does anyone could have temperature dropping along with the snowstorm? Link to comment Share on other sites More sharing options...
bFe Posted December 14, 2014 Report Share Posted December 14, 2014 People are losing a lot of FPS due to the snow(snow particles, not the stuff on the ground). I tried changing the density from 20k to 1k but that didn't do much. Any tips? Any way to integrate this into the DynamicWeatherSystem.sqf ? Link to comment Share on other sites More sharing options...
GaspArt Posted December 14, 2014 Author Report Share Posted December 14, 2014 People are losing a lot of FPS due to the snow(snow particles, not the stuff on the ground). I tried changing the density from 20k to 1k but that didn't do much. Any tips? Any way to integrate this into the DynamicWeatherSystem.sqf ? Yeah. I hope that admins willnt kill me for link on opendayz... http://opendayz.net/threads/tutorial-snow-added-to-dynamic-weather.15294/ bFe 1 Link to comment Share on other sites More sharing options...
bFe Posted December 14, 2014 Report Share Posted December 14, 2014 Thanks! Link to comment Share on other sites More sharing options...
GaspArt Posted December 14, 2014 Author Report Share Posted December 14, 2014 Thanks! no problems :) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now