Announcement

If you are having trouble logging in, please reset your password.
If you are not getting an activation email, please check your spam or
use the "Contact Us" to contact an admin.
June 02, 2012, 03:33:34 PM Last Edit: January 01, 1970, 12:00:00 AM by Guest
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"




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


 


 







 


 




<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= 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>

 

#1 June 02, 2012, 04:17:24 PM Last Edit: January 01, 1970, 12:00:00 AM by Guest
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

#2 June 02, 2012, 05:12:01 PM Last Edit: January 01, 1970, 12:00:00 AM by Guest
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="" data-emoticon="" srcset="/wp-content/uploads/invision_emoticons/tongue@2x.png 2x" width="20" height="20">

#3 June 03, 2012, 07:03:44 PM Last Edit: January 01, 1970, 12:00:00 AM by Guest
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)



#4 October 12, 2013, 08:47:44 PM Last Edit: January 01, 1970, 12:00:00 AM by Guest
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="" data-emoticon="" srcset="/wp-content/uploads/invision_emoticons/smile@2x.png 2x" width="20" height="20">