Home / Forums / Modders Corner / Mafia Editing / Mafia II mods / Manual change of weather at any time and anywhere

Manual change of weather at any time and anywhere

Home / Forums / Modders Corner / Mafia Editing / Mafia II mods / Manual change of weather at any time and anywhere

4 replies
13 years, 8 months ago
#6897

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:

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

 

13 years, 8 months ago
#12520

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

13 years, 8 months ago
#12523

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 decoding=” data-emoticon=”” srcset=”/wp-content/uploads/invision_emoticons/tongue@2x.png 2x” width=”20″ height=”20″>

13 years, 8 months ago
#12540

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)

12 years, 4 months ago
#17209

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

 

 

Thanks <img decoding=” data-emoticon=”” srcset=”/wp-content/uploads/invision_emoticons/smile@2x.png 2x” width=”20″ height=”20″>

 

 

  • You must be logged in to reply to this topic.