0
Director

Manual change of weather at any time and anywhere

Recommended Posts

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.

 

 

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

 

 

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

 

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Sure "ControlStyle.LOCKED" & "ControlStyle.FREE" exactly... thank you. :silly:

 

 

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

Thank you and I'm going to fix it. :P

Share this post


Link to post
Share on other sites

another thing:

 

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

 

in my topic on animation it's useful because :

Example.

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

DelayBuffer: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)

Share this post


Link to post
Share on other sites

Could somebody repost the file, or at least tell me what should I do with freeride.sds to get this effect? 

 

 

Thanks :)

 

 

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
0