From 3899e9e4e5e816a1f4749d5ec9974e923d3d6b3a Mon Sep 17 00:00:00 2001 From: SumrakDZN Date: Sat, 27 Feb 2021 23:07:47 +0100 Subject: [PATCH] Event manager config update --- Mission Files/hardcore.namalsk/init.c | 18 +++++++++--------- Mission Files/regular.namalsk/init.c | 18 +++++++++--------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/Mission Files/hardcore.namalsk/init.c b/Mission Files/hardcore.namalsk/init.c index e545ba3..5d4fb65 100644 --- a/Mission Files/hardcore.namalsk/init.c +++ b/Mission Files/hardcore.namalsk/init.c @@ -59,15 +59,15 @@ class CustomMission: MissionServer // comment this whole block if NOT using Namalsk Survival if ( m_EventManagerServer ) { - // enable/disable event system, min time between events, max time between events - m_EventManagerServer.OnInitServer( true, 600, 800 ); - // Register possible events along with their probability (0..1) - // any custom events MUST inherit from EventBase, otherwise they will fail to load! - m_EventManagerServer.RegisterEvent( Aurora, 1.0 ); - m_EventManagerServer.RegisterEvent( Blizzard, 0.5 ); - m_EventManagerServer.RegisterEvent( ExtremeCold, 0.4 ); - m_EventManagerServer.RegisterEvent( Snowfall, 0.5 ); - m_EventManagerServer.RegisterEvent( EVRStorm, 0.25 ); + // enable/disable event system, min time between events, max time between events, max number of events at the same time + m_EventManagerServer.OnInitServer( true, 550, 3500, 2 ); + // registering events and their probability + m_EventManagerServer.RegisterEvent( Aurora, 1.0 ); + m_EventManagerServer.RegisterEvent( Blizzard, 0.5 ); + m_EventManagerServer.RegisterEvent( ExtremeCold, 0.4 ); + m_EventManagerServer.RegisterEvent( Snowfall, 0.5 ); + m_EventManagerServer.RegisterEvent( EVRStorm, 0.25 ); + m_EventManagerServer.RegisterEvent( HeavyFog, 0.3 ); } } diff --git a/Mission Files/regular.namalsk/init.c b/Mission Files/regular.namalsk/init.c index 459cf20..32b1b2b 100644 --- a/Mission Files/regular.namalsk/init.c +++ b/Mission Files/regular.namalsk/init.c @@ -59,15 +59,15 @@ class CustomMission: MissionServer // comment this whole block if NOT using Namalsk Survival if ( m_EventManagerServer ) { - // enable/disable event system, min time between events, max time between events - m_EventManagerServer.OnInitServer( true, 600, 800 ); - // Register possible events along with their probability (0..1) - // any custom events MUST inherit from EventBase, otherwise they will fail to load! - m_EventManagerServer.RegisterEvent( Aurora, 1.0 ); - m_EventManagerServer.RegisterEvent( Blizzard, 0.5 ); - m_EventManagerServer.RegisterEvent( ExtremeCold, 0.4 ); - m_EventManagerServer.RegisterEvent( Snowfall, 0.5 ); - m_EventManagerServer.RegisterEvent( EVRStorm, 0.25 ); + // enable/disable event system, min time between events, max time between events, max number of events at the same time + m_EventManagerServer.OnInitServer( true, 550, 3500, 2 ); + // registering events and their probability + m_EventManagerServer.RegisterEvent( Aurora, 1.0 ); + m_EventManagerServer.RegisterEvent( Blizzard, 0.5 ); + m_EventManagerServer.RegisterEvent( ExtremeCold, 0.4 ); + m_EventManagerServer.RegisterEvent( Snowfall, 0.5 ); + m_EventManagerServer.RegisterEvent( EVRStorm, 0.25 ); + m_EventManagerServer.RegisterEvent( HeavyFog, 0.3 ); } }