DIFF

class DayZGameSource

DayZGame CGame

All members, including inherited

Constructors 2

Constants 7

const int MISSION_STATE_MAINMENU = 0
const int MISSION_STATE_FINNISH = 2
private const int STATS_COUNT = EConnectivityStatType.COUNT
private const int MIN_ARTY_SOUND_RANGE = 300

The distance under which sound is no longer heard

Referenced by OnRPC()
protected const int MAX_VISITED = 50
Referenced by AddVisitedServer()
const float ARROW_PIERCE_DEPTH = 0.05

Members 74

protected ref BillboardSetHandler m_BillboardSetHandler
Referenced by GetBillboardHandler(), and OnRPC()
bool m_AutotestEnabled
private EConnectivityStatLevel m_ConnectivityStatsStates[STATS_COUNT]
private int m_MissionState
protected DayZGameState m_GameState
Referenced by GetGameState(), and SetGameState()
protected DayZLoadState m_LoadState
protected ref NotificationUI m_Notifications
protected bool m_FirstConnect = true
Referenced by OnEvent()
private ref LoginQueueBase m_LoginQueue
private int m_LoginTime
private ref ConnectionLost m_connectionLost
private ref TimerQueue m_timerQueue[CALL_CATEGORY_COUNT]
Referenced by DayZGame(), and GetTimerQueue()
private ref ScriptCallQueue m_callQueue[CALL_CATEGORY_COUNT]
Referenced by DayZGame(), and GetCallQueue()
private ref ScriptInvoker m_updateQueue[CALL_CATEGORY_COUNT]
Referenced by DayZGame(), and GetUpdateQueue()
private ref ScriptInvoker m_postUpdateQueue[CALL_CATEGORY_COUNT]
Referenced by DayZGame(), and GetPostUpdateQueue()
private ref DragQueue m_dragQueue
Referenced by DayZGame(), and GetDragQueue()
private ref ScriptInvoker m_YieldDataInitInvoker
private bool m_early_access_dialog_accepted
Referenced by DayZGame(), and EarlyAccessDialog()
private UIScriptedMenu m_keyboard_handler
Referenced by DayZGame(), OnKeyPress(), OnKeyRelease()
Show 1 more, SetKeyboardHandle()
private ScriptModule m_mission_module
private string m_MissionPath
private string m_MissionFolderPath
private bool m_IsCtrlHolding
Referenced by IsLeftCtrlDown(), OnDeviceReset(), OnKeyPress()
Show 1 more, OnKeyRelease()
private bool m_IsWinHolding
Referenced by OnDeviceReset(), and OnKeyRelease()
private bool m_IsLeftAltHolding
private bool m_IsRightAltHolding
private bool m_IsWorldWetTempUpdateEnabled = true
private bool m_IsFoodDecayEnabled = true
private float m_FoodDecayModifier
static bool m_ReportModded
Referenced by DayZGame(), and ReportModded()
private bool m_IsStressTest
Referenced by DayZGame(), and IsStressTest()
private bool m_AimLoggingEnabled
Referenced by DayZGame(), and IsAimLogEnabled()
int m_OriginalCharactersCount
private string m_PlayerName
private bool m_IsNewCharacter
private bool m_IsConnecting
Referenced by DayZGame(), IsConnecting(), OnUpdate()
Show 1 more, SetConnecting()
private bool m_ConnectFromJoin
private bool m_ShouldShowControllerDisconnect
private bool m_CursorDesiredVisibilityScript = true
private int m_PreviousGamepad
private float m_UserFOV
private float m_DeltaTime
Referenced by GetDeltaT(), and OnUpdate()
float m_volume_speechEX
float m_volume_music
float m_volume_VOIP
float m_volume_radio
float m_PreviousEVValue
float m_EVValue = 0
private static ref ServerFpsStatsUpdatedEventParams m_ServerFpsStatsParamsDIAG_DEVELOPER
static ref AmmoCamParams m_AmmoShakeParams = new AmmoCamParams()

TODO: make static, reuse

Referenced by ExplosionEffects()
static ref ScriptInvoker Event_OnRPC = new ScriptInvoker()
private ref Backlit m_Backlit
Referenced by DayZGame(), and GetBacklit()
private ref array<string> m_CharClassNames = new array<string>()
private ref array<int> m_ConnectedInputDeviceList

has to be owned here, 'Input' is a native class

private ref EffectSound m_CrashSound
Referenced by OnRPC()
private ref EffectSound m_ArtySound
Referenced by OnRPC()
static ref NoiseParams m_NoiseParams = new NoiseParams()
static ref TemperatureAccessManager m_TAManager = new TemperatureAccessManager()
static bool m_IsPreviewSpawnDEVELOPER

we set this to 'true' when spawning item through Script Console only for item preview purposes

ref CameraToolsMenuServer m_CameraToolsMenuServerDIAG_DEVELOPER
Referenced by OnRPC()
ref GeyserDebugData m_GeyserDiagData = new GeyserDebugData()DIAG_DEVELOPER
Referenced by OnRPC(), and GeyserArea.TickState()
protected ref Widget m_IntroMenu
protected ref Widget m_GamepadDisconnectMenu

DEPRECATED

protected int m_PrevBlur
protected string m_DatabaseID
Referenced by GetDatabaseID(), and SetDatabaseID()
protected string m_ConnectAddress
protected int m_ConnectPort
protected int m_ConnectSteamQueryPort
protected string m_ConnectPassword
protected ref TStringArray m_Visited

Methods 150

void SetMissionPath(string path)

Called from C++

string GetMissionPath()
References m_MissionPath
override TimerQueue GetTimerQueue(int call_category)
References m_timerQueue
Referenced by OnUpdate(), and TimerBase.OnInit()
void OnGameplayDataHandlerLoad()
bool GetProfileOptionDefaultBool(EDayZProfilesOptions option)
void SetProfileOptionBool(EDayZProfilesOptions option, bool value)
void SetProfileOptionInt(EDayZProfilesOptions option, int value)
void SetProfileOptionFloat(EDayZProfilesOptions option, float value)
bool IsStressTest()
References m_IsStressTest
static bool ReportModded()
References m_ReportModded
override UIScriptedMenu CreateScriptedMenu(int id)

create custom main menu part (submenu)

void ReloadMission()
void CancelLoginQueue()
Referenced by OnEvent(), and OnLoginTimeEvent()
private void ClearConnectivityStates()
Referenced by OnEvent()
override void OnEvent(EventType eventTypeId, Param params)
References CGame.AbortMission(), AddVisitedServer(), ScriptCallQueue.Call()
Show 80 more, ScriptCallQueue.CallLater(), CancelLoginQueue(), CancelLoginTimeCountdown(), Class.CastTo(), ClearConnectivityStates(), OnlineServices.ClearCurrentServerInfo(), NotificationUI.ClearVoiceNotifications(), ProgressAsync.DestroyAllPendingProgresses(), OnlineServices.EnterGameplaySession(), GetCallQueue(), GetCallQueue(), GetDatabaseID(), GetGameState(), CGame.GetHostAddress(), ErrorModuleHandler.GetInstance(), ParticleManager.GetInstance(), VONManager.GetInstance(), CGame.GetMission(), CGame.GetMission(), Mission.GetOnInputDeviceDisconnected(), PlayerIdentityBase.GetPingAvg(), World.GetPingCriticalThreshold(), World.GetPingWarningThreshold(), CGame.GetPlayer(), Object.GetPosition(), BiosUserManager.GetSelectedUser(), World.GetServerFpsCriticalThreshold(), World.GetServerFpsWarningThreshold(), CGame.GetUserManager(), CGame.GetWorld(), OnlineServices.Init(), OnlineServices.LeaveGameplaySession(), string.Length(), LoadingHide(), LoadingShow(), LoadProgressUpdate(), OnlineServices.LoadVoicePrivilege(), ErrorModuleHandler.OnEvent(), Mission.OnEvent(), VONManagerBase.OnEvent(), OnLoginTimeEvent(), OnMPConnectionLostEvent(), OnPreloadEvent(), OnRespawnEvent(), Analytics.PlayerDisconnected(), Analytics.PlayerSpawned(), Print(), ClientData.ResetClientData(), SetConnecting(), SetConnectivityStatState(), SetGameState(), SetGameState(), SetLoadState(), OnlineServices.SetMultiplayState(), LoadingScreen.SetStatus(), LoginTimeBase.SetStatus(), new StatsEventDisconnectedData(), new StatsEventSpawnedData(), UpdateInputDeviceDisconnectWarning(), StatsEventDisconnectedData.m_CharacterId, StatsEventSpawnedData.m_CharacterId, m_ConnectFromJoin, StatsEventSpawnedData.m_DaytimeHour, m_FirstConnect, StatsEventSpawnedData.m_Lifetime, m_loading, m_LoginTimeScreen, m_Notifications, StatsEventSpawnedData.m_Population, StatsEventSpawnedData.m_Position, StatsEventDisconnectedData.m_Reason, m_ServerFpsStatsParams, Param1.param1, Param2.param1, Param3.param1, Param4.param1, Param2.param2, Param3.param2, Param3.param3, and vector.Zero
void AddVoiceNotification(VONStopSpeakingEventParams vonStartParams)
void LoginTimeCountdown()
void OnPreloadEvent(vector pos)
Referenced by OnEvent()
void EnterLoginQueue(UIMenuPanel parent)
Referenced by UpdateLoginQueue()
void EnterLoginTime(UIMenuPanel parent)
void OnMPConnectionLostEvent(int duration)
Referenced by OnEvent()
override void OnAfterCreate()
References Math.Randomize()
override void OnActivateMessage()
override void OnDeactivateMessage()
void InitNotifications()
Referenced by OnInitialize()
void SetDatabaseID(string id)
bool ShouldShowControllerDisconnect()
void JoinLaunch()
Referenced by OnInitialize()
void SetPreviousGamepad(int gamepad)
int GetPreviousGamepad()
bool GetLastVisitedServer(out string ip, out int port)
References array.Count(), array.Get(), string.Split()
Show 2 more, string.ToInt(), and m_Visited
void AddVisitedServer(string ip, int port)
Referenced by OnEvent()
bool IsVisited(string ip, int port)
References array.Find(), and m_Visited
void RefreshCurrentServerInfo()
void DisconnectSessionScript(bool displayJoinError = false)
void ConnectFromServerBrowser(string ip, int port, string password = "")
void ConnectFromServerBrowserEx(string ip, int port, int steamQueryPort, string password = "")
void ConnectFromJoin(string ip, int port)
References Connect(), m_ConnectAddress, m_ConnectFromJoin
Show 1 more, m_ConnectPort
void ConnectFromCLI()
Referenced by ConnectLaunch(), and TryConnect()
override void OnMouseButtonPress(int button)
override void OnMouseButtonRelease(int button)
override void OnDeviceReset()
float GetDeltaT()
References m_DeltaTime
override void OnRPC(PlayerIdentity sender, Object target, int rpc_type, ParamsReadContext ctx)
References NotificationSystem.AddNotification(), NotificationSystem.AddNotificationExtended(), new BillboardSetHandler()
Show 83 more, ScriptCallQueue.CallLater(), Count(), vector.DistanceSq(), ErrorEx(), GetCallQueue(), DayZPlayer.GetCurrentCamera(), GetElement(), Weather.GetFog(), ParticleManager.GetInstance(), map.GetKey(), Weather.GetOvercast(), PlayerIdentityBase.GetPlainId(), CGame.GetPlayer(), Object.GetPosition(), Weather.GetRain(), Weather.GetSnowfall(), CrashSoundSets.GetSoundSetByHash(), CGame.GetWeather(), Weather.GetWindDirection(), Weather.GetWindMagnitude(), new GeyserDebugData(), Math.InverseLerp(), ScriptInvoker.Invoke(), CGame.MutePlayer(), CfgGameplayHandler.OnRPC(), CfgPlayerRestrictedAreaHandler.OnRPC(), CameraToolsMenuServer.OnRPC(), CGame.OnRPC(), Object.OnRPC(), UndergroundAreaLoader.OnRPC(), BillboardSetHandler.OnRPCIndex(), ParticleManager.PlayInWorld(), SEffectManager.PlaySound(), Serializer.Read(), WeatherPhenomenon.Set(), WeatherPhenomenon.Set(), WeatherPhenomenon.Set(), WeatherPhenomenon.Set(), WeatherPhenomenon.Set(), WeatherPhenomenon.Set(), EffectSound.SetAutodestroy(), EffectSound.SetAutodestroy(), EffectSound.SetAutodestroy(), GeyserDebugData.SetData(), Weather.SetDynVolFogDistanceDensity(), Weather.SetDynVolFogHeightBias(), Weather.SetDynVolFogHeightDensity(), DayZPlayerCamera.SpawnCameraShake(), Math.Sqrt(), GameConstants.CAMERA_SHAKE_ARTILLERY_DISTANCE, GameConstants.CAMERA_SHAKE_ARTILLERY_DISTANCE2, ParticleList.CONTAMINATED_AREA_GAS_SHELL, Event_OnRPC, m_ArtySound, m_BillboardSetHandler, m_CameraToolsMenuServer, m_CrashSound, DebugWeatherRPCData.m_FogDuration, DebugWeatherRPCData.m_FogInterpolation, DebugWeatherRPCData.m_FogValue, m_GeyserDiagData, DebugWeatherRPCData.m_OvercastDuration, DebugWeatherRPCData.m_OvercastInterpolation, DebugWeatherRPCData.m_OvercastValue, DebugWeatherRPCData.m_RainDuration, DebugWeatherRPCData.m_RainInterpolation, DebugWeatherRPCData.m_RainValue, DebugWeatherRPCData.m_SnowfallDuration, DebugWeatherRPCData.m_SnowfallInterpolation, DebugWeatherRPCData.m_SnowfallValue, DebugWeatherRPCData.m_VolFogDistanceDensity, DebugWeatherRPCData.m_VolFogDistanceDensityTime, DebugWeatherRPCData.m_VolFogHeightBias, DebugWeatherRPCData.m_VolFogHeightBiasTime, DebugWeatherRPCData.m_VolFogHeightDensity, DebugWeatherRPCData.m_VolFogHeightDensityTime, DebugWeatherRPCData.m_WindDDuration, DebugWeatherRPCData.m_WindDInterpolation, DebugWeatherRPCData.m_WindDirectionValue, DebugWeatherRPCData.m_WindMagnitudeValue, MIN_ARTY_SOUND_RANGE, Param1.param1, and vector.Zero
void DelayedMidAirDetonation(float x, float y, float z)
void SetConnecting(bool value)

Returns true when connecting to server

References m_IsConnecting
bool IsConnecting()
References m_IsConnecting
void LoadingShow()
Referenced by OnEvent()
override string CreateDefaultPlayer()
override string CreateRandomPlayer()
override TStringArray ListAvailableCharacters()
References m_CharClassNames
void UpdateVoiceLevel(int level)
void InitCharacterMenuDataInfo(int menudata_count)
void SetNewCharacter(bool state)
References m_IsNewCharacter
bool IsNewCharacter()
References m_IsNewCharacter
Referenced by MainMenu.Play()
float GetUserFOV()
References m_UserFOV
static bool CheckAmmoCompability(EntityAI weaponInHand, EntityAI ammo)
float GetCurrentEVValue()
References m_EVValue
float GetPreviousEVValue()
bool IsWorldWetTempUpdateEnabled()
bool IsFoodDecayEnabled()
array<int> GetConnectedInputDeviceList()
void SetMouseCursorDesiredVisibility(bool visible)
bool GetMouseCursorDesiredVisibility()
bool CanDisplayMouseCursor()

extend as needed, only game focus and M&K setting (consoles only!) are checked natively

BillboardSetHandler GetBillboardHandler()

Fallback, just in-case

void CreateGamepadDisconnectMenu()
void DeleteGamepadDisconnectMenu()