Mafia Scene - Mafia I & II Game Fan Site

Modders Corner => Mafia Editing => Mafia II mods => Topic started by: Director on June 02, 2012, 03:33:34 PM

Title: Manual change of weather at any time and anywhere
Post by: Director on June 02, 2012, 03:33:34 PM
Change your weather with only one lua button at any time and anywhere.




Total of 20 different weathers for winter.





You need download this file for the correct working:
[/size]




"freeride.sds" (http://narod.ru/disk/49773986001.ed51090b32648cb082585476ab8c55f7/Weather%20for%20FR%20from%20eXistenZ34.rar.html:2ig8nvpw)




Unpack and copy "freeride.sds" in to Mafia II/pc/sds/skies.


 


 




http://www.youtube.com/watch?v=2jDxS5lkCJw (http://www.youtube.com/watch?v=2jDxS5lkCJw)


 


 




<div class="ipsSpoiler_header">



ply=game.game:GetActivePlayer()




if i==nil then i=0 end i=i+1 if i==21+1 then i=1 end




DelayBuffer:Insert(function(l_1_0)if i==1 then game.gfx:SetWeatherTemplate("DT02part01Railwaystation")end end,{l_1_0},250,1,false)




DelayBuffer:Insert(function(l_1_0)if i==2 then game.gfx:SetWeatherTemplate("DT02part02JoesFlat")end end,{l_1_0},250,1,false)




DelayBuffer:Insert(function(l_1_0)if i=(//smile3.gif) then game.gfx:SetWeatherTemplate("DT02part03Charlie")end end,{l_1_0},250,1,false)




DelayBuffer:Insert(function(l_1_0)if i==4 then game.gfx:SetWeatherTemplate("DT02part04Giuseppe")end end,{l_1_0},250,1,false)




DelayBuffer:Insert(function(l_1_0)if i==5 then game.gfx:SetWeatherTemplate("DT02part05Derek")end end,{l_1_0},250,1,false)




DelayBuffer:Insert(function(l_1_0)if i==6 then game.gfx:SetWeatherTemplate("DT02NewStart1")end end,{l_1_0},250,1,false)




DelayBuffer:Insert(function(l_1_0)if i==7 then game.gfx:SetWeatherTemplate("DT02NewStart2")end end,{l_1_0},250,1,false)




DelayBuffer:Insert(function(l_1_0)if i==8 then game.gfx:SetWeatherTemplate("DT03part01JoesFlat")end end,{l_1_0},250,1,false)




DelayBuffer:Insert(function(l_1_0)if i==9 then game.gfx:SetWeatherTemplate("DT03part02FreddysBar")end end,{l_1_0},250,1,false)




DelayBuffer:Insert(function(l_1_0)if i==10 then game.gfx:SetWeatherTemplate("DT03part03MariaAgnelo")end end,{l_1_0},250,1,false)




DelayBuffer:Insert(function(l_1_0)if i==11 then game.gfx:SetWeatherTemplate("DT03part04PriceOffice")end end,{l_1_0},250,1,false)




DelayBuffer:Insert(function(l_1_0)if i==12 then game.gfx:SetWeatherTemplate("DT04part01JoesFlat")end end,{l_1_0},250,1,false)




DelayBuffer:Insert(function(l_1_0)if i==13 then game.gfx:SetWeatherTemplate("DT04part02")end end,{l_1_0},250,1,false)




DelayBuffer:Insert(function(l_1_0)if i==14 then game.gfx:SetWeatherTemplate("DT05Distillery_inside")end end,{l_1_0},250,1,false)




DelayBuffer:Insert(function(l_1_0)if i==15 then game.gfx:SetWeatherTemplate("DT05part01JoesFlat")end end,{l_1_0},250,1,false)




DelayBuffer:Insert(function(l_1_0)if i==16 then game.gfx:SetWeatherTemplate("DT05part02FreddysBar")end end,{l_1_0},250,1,false)




DelayBuffer:Insert(function(l_1_0)if i==17 then game.gfx:SetWeatherTemplate("DT05part03HarrysGunshop")end end,{l_1_0},250,1,false)




DelayBuffer:Insert(function(l_1_0)if i==18 then game.gfx:SetWeatherTemplate("DT05part04Distillery")end end,{l_1_0},250,1,false)




DelayBuffer:Insert(function(l_1_0)if i==19 then game.gfx:SetWeatherTemplate("DT05part05ElGreco")end end,{l_1_0},250,1,false)




DelayBuffer:Insert(function(l_1_0)if i==20 then game.gfx:SetWeatherTemplate("DT05part06Francesca")end end,{l_1_0},250,1,false)




</div>

 
Title: Manual change of weather at any time and anywhere
Post by: eXistenZ34 on June 02, 2012, 04:17:24 PM
Ok,


 




2 small precision:


 




1) function "ControlStyle.LOCKED" & "ControlStyle.FREE" is useless in this script.


 




2) if the person uses the original file "freeride.sds" in folder "skies" it will not work.




only using my file "freeride.sds" can have all these weather
Title: Manual change of weather at any time and anywhere
Post by: Director on June 02, 2012, 05:12:01 PM
Sure "ControlStyle.LOCKED" & "ControlStyle.FREE" exactly... thank you.   :s illy:


 


 




Yes i know that they need "freeride.sds" i just forgot to write it there.




Thank you and I'm going to fix it.   <img src="/wp-content/uploads/invision_emoticons/tongue.png" alt="(//tongue.gif)" data-emoticon="" srcset="/wp-content/uploads/invision_emoticons/tongue@2x.png 2x" width="20" height="20">
Title: Manual change of weather at any time and anywhere
Post by: eXistenZ34 on June 03, 2012, 07:03:44 PM
another thing:


 




ply=game.game:GetActivePlayer()  is useless in your script.


 




in my topic on animation it's useful because :




Example.







Quoteply
=game.game:GetActivePlayer()

DelayBuffer:Insert(function(l_1_0)CommandBuffer:Insert(l_6_0,{




function(l_1_0)return ply
:SetControlStyle(enums.ControlStyle.LOCKED)end,




function(l_2_0)return ply
:AnimPlay("sc_man_smoke_in", false)end,




function(l_3_0)return ply
:AnimPlay("sc_man_smoke_out", false)end,




function(l_4_0)return ply
:SetControlStyle(enums.ControlStyle.FREE)end})




end,{l_1_0},500,1,false)





This is the same thing







QuoteDelayBuffer:Insert(function(l_1_0)CommandBuffer:Insert(l_6_0,{

function(l_1_0)return game.game:GetActivePlayer():SetControlStyle(enums.ControlStyle.LOCKED)end,




function(l_2_0)return game.game:GetActivePlayer():AnimPlay("sc_man_smoke_in", false)end,




function(l_3_0)return game.game:GetActivePlayer():AnimPlay("sc_man_smoke_out", false)end,




function(l_4_0)return game.game:GetActivePlayer():SetControlStyle(enums.ControlStyle.FREE)end})




end,{l_1_0},500,1,false)


Title: Manual change of weather at any time and anywhere
Post by: jaca37 on October 12, 2013, 08:47:44 PM
Could somebody repost the file, or at least tell me what should I do with freeride.sds to get this effect? 


 


 




Thanks <img src="/wp-content/uploads/invision_emoticons/smile.png" alt="(//smile.gif)" data-emoticon="" srcset="/wp-content/uploads/invision_emoticons/smile@2x.png 2x" width="20" height="20">