Skip to content

Commit f414156

Browse files
authored
Merge pull request #119 from Arkensor/development
2 parents d34ef95 + be66415 commit f414156

File tree

8 files changed

+22
-164
lines changed

8 files changed

+22
-164
lines changed

JM/CF/Scripts/3_Game/CommunityFramework/Utils/CF_Date.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,18 @@ class CF_Date : Managed
393393
return "undefined";
394394
}
395395

396+
//! @note 0 = sunday
397+
int GetDayOfWeek()
398+
{
399+
int y = m_Year;
400+
int d = m_Day;
401+
if (m_Month < 3)
402+
d += y--;
403+
else
404+
d += y - 2;
405+
return (23 * m_Month / 9 + d + 4 + y / 4 - y / 100 + y / 400) % 7;
406+
}
407+
396408
int GetDay()
397409
{
398410
return m_Day;

JM/CF/Scripts/5_Mission/CommunityFramework/GUI/InventoryNew/Inherited/AttachmentCategoriesContainer.c

Lines changed: 0 additions & 35 deletions
This file was deleted.

JM/CF/Scripts/5_Mission/CommunityFramework/GUI/InventoryNew/Inherited/AttachmentCategoriesRow.c

Lines changed: 0 additions & 25 deletions
This file was deleted.

JM/CF/Scripts/5_Mission/CommunityFramework/GUI/InventoryNew/Inherited/Attachments.c

Lines changed: 0 additions & 38 deletions
This file was deleted.

JM/CF/Scripts/5_Mission/CommunityFramework/GUI/InventoryNew/Inherited/PlayerContainer.c

Lines changed: 0 additions & 28 deletions
This file was deleted.

JM/CF/Scripts/5_Mission/CommunityFramework/GUI/InventoryNew/Inherited/ZombieContainer.c

Lines changed: 0 additions & 30 deletions
This file was deleted.

JM/CF/Scripts/5_Mission/CommunityFramework/Mission/MissionServer.c

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,9 @@ modded class MissionServer
121121

122122
auto args = new CF_EventNewPlayerArgs(player, identity, pos, ctx);
123123
CF_ModuleWorldManager.OnClientNew(this, args);
124-
player = args.Player;
124+
125+
//TODO: allow the args to override these 'out' variables again, 'CF_ModuleWorldManager.OnClientNew' deletes 'args' before this can be used
126+
//player = args.Player;
125127

126128
return player;
127129
}
@@ -137,13 +139,13 @@ modded class MissionServer
137139

138140
CF_ModuleWorldManager.OnClientPrepare(this, args);
139141

140-
//identity = args.Identity;
141-
useDB = args.UseDatabase;
142-
pos = args.Position;
143-
yaw = args.Yaw;
144-
preloadTimeout = args.PreloadTimeout;
142+
//TODO: allow the args to override these 'out' variables again, 'CF_ModuleWorldManager.OnClientPrepare' deletes 'args' before this can be used
143+
//useDB = args.UseDatabase;
144+
//pos = args.Position;
145+
//yaw = args.Yaw;
146+
//preloadTimeout = args.PreloadTimeout;
145147

146-
// must call before vanilla
148+
// must call module code before vanilla
147149
super.OnClientPrepareEvent(identity, useDB, pos, yaw, preloadTimeout);
148150
}
149151
};

JM/CF/mod.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ overview = "This is a Community Framework for DayZ SA. One notable feature is it
88
action = "https://github.com/Jacob-Mango/DayZ-Community-Framework";
99
author = "CF Mod Team";
1010
authorID = "76561198103677868";
11-
version = "0.8.100368";
11+
version = "1.4.2";

0 commit comments

Comments
 (0)