Login

russian armor

How-to: Blizzard in Custom maps

22 Feb 2017, 11:10 AM
#21
avatar of Huldufolk

Posts: 3

Hey man!
I just copied and past your coding changing the atmosphere with the one I want Moscow outskirt.
It gives me fatal error.
My only difference is on the path since my atmosphere is not inside DLC folder but on the upper one.
Do you have any idea why?
Thanks mate

Huldu

jump backJump back to quoted post8 Mar 2016, 10:08 AMMocco
Ok, I got the Blizzard to work as well. So here is what I did.

I opened the rostov scarfile and compared it to jannes code. The only difference was that there are some more settings in there that specified the blizzard. Starting time, duration finishing time and so on. So it dawned to me that the blizzard wont come if it doesn't know when and for how long. So I just coppied the settings and played a little around with them. This is my scarcode of my <yourmapname.scar>.

-------------------------------------------------------------------------
-------------------------------------------------------------------------

import("ScarUtil.scar")
import("Systems/BlizzardMulitplayer.scar")

-------------------------------------------------------------------------
-- [[ ONINIT ]]
-------------------------------------------------------------------------

function OnInit()

local blizzarddata =
{
blizzard_interval_first = 900,
blizzard_interval_min = 900,
blizzard_interval_max = 1000,
blizzard_exit_min = 120,
blizzard_exit_max = 200,
}

MP_BlizzardInit("data:art/scenarios/presets/atmosphere/DLC/mp_rostov_blizzard.aps" ,"data:art/scenarios/presets/atmosphere/DLC/mp_rostov.aps", nil, blizzarddata, true)

end


Scar_AddInit(OnInit)
3 Mar 2017, 11:33 AM
#22
avatar of apofisz22

Posts: 35

How to do ?
blizzard

open MapName_ID.scar ?
or
to do a special scar
blizzardmultiplayer.scar

my MapName.ID.scar
https://hastebin.com/varateniqe.sql



Which one should you write?
-- [[ Markers ]]

-- [[ Squad Groups ]]

-- [[ Entity Groups ]]
24 Jun 2017, 05:28 AM
#23
avatar of Mocco

Posts: 18

Hi Huldufolk,

I hope this is still of use to you. I changed my settings on a blizzard map to fit your describtion. This is it and it works perfectly.

-------------------------------------------------------------------------
-------------------------------------------------------------------------

import("ScarUtil.scar")
import("Systems/BlizzardMulitplayer.scar")

-------------------------------------------------------------------------
-- [[ ONINIT ]]
-------------------------------------------------------------------------

function OnInit()

local blizzarddata =
{
blizzard_interval_first = 900,
blizzard_interval_min = 900,
blizzard_interval_max = 1000,
blizzard_exit_min = 120,
blizzard_exit_max = 200,
}
MP_BlizzardInit("data:art/scenarios/presets/atmosphere/1941_moscow_blizzard.aps" ,"data:art/scenarios/presets/atmosphere/moscow_outskirts.aps", nil, blizzarddata, true)

end
Scar_AddInit(OnInit)
30 May 2018, 09:43 AM
#24
avatar of Bummbl3bee

Posts: 1


Hello,
I have a problem with creating a blizzard. I took over the script from Mocco, but it does not work for me. Since I also have no idea about scripts, I would be happy if someone could help me to solve the problem.
Thanks in advance.
0 user is browsing this thread:

Ladders Top 10

  • #
    Steam Alias
    W
    L
    %
    Streak
Data provided by Relic Relic Entertainment

Replay highlight

VS
  • U.S. Forces flag cblanco ★
  • The British Forces flag 보드카 중대
  • Oberkommando West flag VonManteuffel
  • Ostheer flag Heartless Jäger
uploaded by XXxxHeartlessxxXX

Board Info

631 users are online: 631 guests
0 post in the last 24h
5 posts in the last week
20 posts in the last month
Registered members: 49667
Welcome our newest member, Chmura
Most online: 2043 users on 29 Oct 2023, 01:04 AM