mirror of
https://ceregatti.org/git/daniel/dayzdockerserver.git
synced 2025-05-06 14:21:18 +00:00
Add support for Winter Deer Isle.
This commit is contained in:
parent
287d60fe1d
commit
d9b5c8f293
4 changed files with 77 additions and 0 deletions
6
files/mods/1891132304/cfggameplay.json
Normal file
6
files/mods/1891132304/cfggameplay.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"WorldsData":{
|
||||
"environmentMinTemps": [-25.0, -20.0, -21.0, -14.0, -7.0, -4.0, -2.0, 2.0, -3.0, -7.0, -15.0, -20.0],
|
||||
"environmentMaxTemps": [-8.0, -8.0, -3.0, 0.0, 2.0, 5.0, 7.0, 11.0, 8.0, 5.0, 2.0, -3.0]
|
||||
}
|
||||
}
|
67
files/mods/1891132304/init.c
Normal file
67
files/mods/1891132304/init.c
Normal file
|
@ -0,0 +1,67 @@
|
|||
--- init.c 2023-11-11 00:41:20.472220009 +0000
|
||||
+++ init.c.new 2023-11-11 00:42:32.432098018 +0000
|
||||
@@ -1,47 +1,19 @@
|
||||
void main()
|
||||
{
|
||||
- //INIT WEATHER BEFORE ECONOMY INIT------------------------
|
||||
- //Weather weather = g_Game.GetWeather();
|
||||
- //weather.MissionWeather(false); // false = use weather controller from Weather.c
|
||||
- //weather.GetOvercast().Set( Math.RandomFloatInclusive(0.4, 0.6), 1, 0);
|
||||
- //weather.GetRain().Set( 0, 0, 1);
|
||||
- //weather.GetFog().Set( Math.RandomFloatInclusive(0.05, 0.1), 1, 0);
|
||||
-
|
||||
- //INIT ECONOMY--------------------------------------
|
||||
- Hive ce = CreateHive();
|
||||
- if ( ce )
|
||||
- ce.InitOffline();
|
||||
-
|
||||
- //DATE RESET AFTER ECONOMY INIT-------------------------
|
||||
+ CreateHive();
|
||||
+ GetHive().InitOffline();
|
||||
int year, month, day, hour, minute;
|
||||
- int reset_month = 9, reset_day = 20;
|
||||
-
|
||||
- GetGame().GetWorld().GetDate(year, month, day, hour, minute);
|
||||
+ GetGame().GetWorld().GetDate( year, month, day, hour, minute );
|
||||
|
||||
- if ((month == reset_month) && (day < reset_day))
|
||||
+ //Change here the dates for whatever months you desire
|
||||
+ if ( month < 12 )
|
||||
{
|
||||
- GetGame().GetWorld().SetDate(year, reset_month, reset_day, hour, minute);
|
||||
+ year = 2011;
|
||||
+ month = 12;
|
||||
+ day = 25;
|
||||
+ GetGame().GetWorld().SetDate( year, month, day, hour, minute );
|
||||
}
|
||||
- else
|
||||
- {
|
||||
- if ((month == reset_month + 1) && (day > reset_day))
|
||||
- {
|
||||
- GetGame().GetWorld().SetDate(year, reset_month, reset_day, hour, minute);
|
||||
- }
|
||||
- else
|
||||
- {
|
||||
- if ((month < reset_month) || (month > reset_month + 1))
|
||||
- {
|
||||
- GetGame().GetWorld().SetDate(year, reset_month, reset_day, hour, minute);
|
||||
- }
|
||||
- }
|
||||
- }
|
||||
-
|
||||
- //CEApi TestHive = GetCEApi();
|
||||
- //TestHive.ExportProxyProto();
|
||||
- //TestHive.ExportProxyData( "8096 0 8096", 16384 );
|
||||
- //TestHive.ExportClusterData() ;
|
||||
-}
|
||||
+}
|
||||
|
||||
class CustomMission: MissionServer
|
||||
{
|
||||
@@ -108,4 +80,4 @@
|
||||
Mission CreateCustomMission(string path)
|
||||
{
|
||||
return new CustomMission();
|
||||
-}
|
||||
\ No newline at end of file
|
||||
+}
|
3
files/mods/1891132304/xml.env
Normal file
3
files/mods/1891132304/xml.env
Normal file
|
@ -0,0 +1,3 @@
|
|||
INIT=local
|
||||
CFGGAMEPLAY=local
|
||||
CFGWEATHER=https://pastebin.com/raw/t2CUHdMn
|
1
files/mods/@WinterDeerIsle
Symbolic link
1
files/mods/@WinterDeerIsle
Symbolic link
|
@ -0,0 +1 @@
|
|||
1891132304
|
Loading…
Add table
Reference in a new issue