39class TerrainCollisionInfo: CollisionInfoBase
69 override void Update(
float timeslice)
81 if (
GetUApi().GetInputByID(UAUIBack).LocalPress())
89 g_Game.SetGameState(DayZGameState.MAIN_MENU);
90 g_Game.SetLoadState(DayZLoadState.MAIN_MENU_START);
119 g_Game.SetKeyboardHandle(
this);
124 g_Game.SetKeyboardHandle(NULL);
129 layoutRoot =
g_Game.GetWorkspace().CreateWidgets(
"gui/layouts/dialog_queue_position.layout");
130 m_HintPanel =
new UiHintPanelLoading(layoutRoot.FindAnyWidget(
"hint_frame0"));
133 m_btnLeave = ButtonWidget.Cast(layoutRoot.FindAnyWidget(
"btnLeave"));
135 layoutRoot.FindAnyWidget(
"notification_root").Show(
false);
137 #ifdef PLATFORM_CONSOLE
138 bool showToolbar = !
g_Game.GetInput().IsEnabledMouseAndKeyboardEvenOnServer() ||
g_Game.GetInput().GetCurrentInputDevice() ==
EInputDeviceType.CONTROLLER;
139 layoutRoot.FindAnyWidget(
"toolbar_bg").Show(showToolbar);
142 Widget expNotification = layoutRoot.FindAnyWidget(
"notification_root");
143 bool isXBoxExperimental =
false;
145 #ifdef BUILD_EXPERIMENTAL
146 isXBoxExperimental =
true;
149 #ifdef PLATFORM_MSSTORE
150 #ifdef BUILD_EXPERIMENTAL
151 isXBoxExperimental =
true;
154 expNotification.Show(isXBoxExperimental);
162 super.OnClick(w,
x,
y, button);
175 layoutRoot.Show(
true);
182 layoutRoot.Show(
false);
225 g_Game.SetKeyboardHandle(
this);
234 g_Game.SetKeyboardHandle(null);
240 layoutRoot =
g_Game.GetWorkspace().CreateWidgets(
"gui/layouts/dialog_login_time.layout");
244 m_btnLeave = ButtonWidget.Cast(layoutRoot.FindAnyWidget(
"btnLeave"));
246 layoutRoot.FindAnyWidget(
"notification_root").Show(
false);
248 #ifdef PLATFORM_CONSOLE
249 bool showToolbar = !
g_Game.GetInput().IsEnabledMouseAndKeyboardEvenOnServer() ||
g_Game.GetInput().GetCurrentInputDevice() ==
EInputDeviceType.CONTROLLER;
250 layoutRoot.FindAnyWidget(
"toolbar_bg").Show(showToolbar);
253 Widget expNotification = layoutRoot.FindAnyWidget(
"notification_root");
254 bool isXBoxExperimental =
false;
256 #ifdef BUILD_EXPERIMENTAL
257 isXBoxExperimental =
true;
260 #ifdef PLATFORM_MSSTORE
261 #ifdef BUILD_EXPERIMENTAL
262 isXBoxExperimental =
true;
265 expNotification.Show(isXBoxExperimental);
273 super.OnClick(w,
x,
y, button);
286 layoutRoot.Show(
true);
287 m_HintPanel =
new UiHintPanelLoading(layoutRoot.FindAnyWidget(
"hint_frame0"));
294 layoutRoot.Show(
false);
301 TimeConversions.ConvertSecondsToFullTime(time,
m_FullTime);
303 text =
"#menu_loading_in_";
305 text =
"#dayz_game_spawning_in_";
316 text =
Widget.TranslateString(text);
321 g_Game.SetLoginTimerFinished();
370 m_WidgetRoot = game.GetWorkspace().CreateWidgets(
"gui/layouts/day_z_connection_lost.layout");
381 if (
g_Game.GetUIManager().IsDialogVisible())
383 g_Game.GetUIManager().HideDialog();
460 g_Game.GetProfileString(profileOptionName, outValue);
461 int value = outValue.
ToInt();
474 g_Game.GetProfileString(profileOptionName, outValue);
475 float value = outValue.
ToFloat();
511 g_Game.GetProfileString(r_opt.param1, outValue);
512 int value = outValue.
ToInt();
527 g_Game.GetProfileString(r_opt.param1, outValue);
528 float value = outValue.
ToFloat();
559 g_Game.SetProfileString(po.param1, value.ToString());
701 MISSION_CONTROLLER_SELECT
729 m_WidgetRoot = game.GetLoadingWorkspace().CreateWidgets(
"gui/layouts/loading.layout");
750 bool isXBoxExperimental =
false;
752 #ifdef BUILD_EXPERIMENTAL
753 isXBoxExperimental =
true;
756 #ifdef PLATFORM_MSSTORE
757 #ifdef BUILD_EXPERIMENTAL
758 isXBoxExperimental =
true;
761 expNotification.Show(isXBoxExperimental);
771 game.GetBacklit().LoadingAnim();
858 if (
m_DayZGame.GetUIManager().IsDialogVisible())
863 if (
m_DayZGame.GetMissionState() == DayZGame.MISSION_STATE_MAINMENU)
883 ProgressAsync.SetProgressData(pText);
884 ProgressAsync.SetUserData(lIcon);
973 bool m_IsRoboclient =
false;
985 #ifdef DIAG_DEVELOPER
1008 static bool m_IsPreviewSpawn;
1010 #ifdef DIAG_DEVELOPER
1011 ref CameraToolsMenuServer m_CameraToolsMenuServer;
1012 ref GeyserDebugData m_GeyserDiagData =
new GeyserDebugData();
1020#ifdef PLATFORM_CONSOLE
1085 string roboclientValue;
1088 m_IsRoboclient =
true;
1098 string path =
"cfgVehicles";
1099 string child_name =
"";
1102 for (
int p = 0; p < count; ++p)
1109 if (!
IsKindOf(child_name,
"SurvivorBase"))
1113 if (child_name ==
"SurvivorF_Keiko")
1132 Print(
"~DayZGame()");
1214 while (pos_cur != -1)
1217 pos_cur =
path.IndexOfFrom(pos_cur + 1 ,
"\\");
1421 return mission.CreateScriptedMenu(
id);
1430 #ifdef ENABLE_LOGGING
1431 Print(
"Reloading mission module!");
1485 switch (eventTypeId)
1513 #ifdef PLATFORM_CONSOLE
1568 #ifdef PLATFORM_CONSOLE
1580 #ifdef PLATFORM_CONSOLE
1581 #ifndef PLATFORM_WINDOWS
1600 int duration = conLost_params.param1;
1677 string msg1 = loginStatusParams.param1;
1678 string msg2 = loginStatusParams.param2;
1687 finalMsg +=
"\n" + msg2;
1694 finalMsg = msg1 +
" " + msg2;
1701 g_Game.SetGameState(DayZGameState.CONNECTING);
1707 g_Game.SetGameState(DayZGameState.MAIN_MENU);
1721 Print(
"### DLC Ownership failed !!! Map: " + dlcParams.param1);
1728 if (
Class.
CastTo(connectivityStatsParams, params))
1733 if (pingAvg <
GetWorld().GetPingWarningThreshold())
1737 else if (pingAvg <
GetWorld().GetPingCriticalThreshold())
1753 #ifdef DIAG_DEVELOPER
1754 m_ServerFpsStatsParams = serverFpsStatsParams;
1756 float fps = serverFpsStatsParams.param1;
1757 if (fps >
GetWorld().GetServerFpsWarningThreshold())
1761 else if (fps >
GetWorld().GetServerFpsCriticalThreshold())
1779 mission.OnEvent(eventTypeId, params);
1784 emh.
OnEvent(eventTypeId, params);
1810 #ifdef DIAG_DEVELOPER
1811 private void DrawPerformanceStats(
float pingAct,
float pingAvg,
float throttleInput,
float throttleOutput)
1816 if ( pingAvg >=
GetWorld().GetPingCriticalThreshold())
1818 else if ( pingAvg >=
GetWorld().GetPingWarningThreshold())
1824 DbgUI.
PlotLive(
"pingAvg history:", 300, 125, pingAvg, 100, 100 );
1825 DbgUI.
Text(
"Server Fps Warning Threshold:" +
GetWorld().GetServerFpsWarningThreshold());
1826 DbgUI.
Text(
"Server Fps Critical Threshold:" +
GetWorld().GetServerFpsCriticalThreshold());
1827 if (m_ServerFpsStatsParams)
1830 if ( m_ServerFpsStatsParams.param1 <= GetWorld().GetServerFpsCriticalThreshold())
1832 else if ( m_ServerFpsStatsParams.param1 <= GetWorld().GetServerFpsWarningThreshold())
1835 DbgUI.
ColoredText(color,
"serverFPS:" + m_ServerFpsStatsParams.param1.ToString() );
1836 DbgUI.
PlotLive(
"serverFPS history:", 300, 125, m_ServerFpsStatsParams.param1, 100, 100 );
1840 DbgUI.
PlotLive(
"serverFrameTime history:", 300, 75, m_ServerFpsStatsParams.param2, 100, 100 );
1843 if (m_ServerFpsStatsParams.param3 > 0)
1846 DbgUI.
ColoredText(color,
"physStepsSkippedServer:" + m_ServerFpsStatsParams.param3.ToString() );
1847 DbgUI.
PlotLive(
"physStepsSkippedServer history:", 300, 75, m_ServerFpsStatsParams.param3, 100, 100 );
1850 if (m_ServerFpsStatsParams.param4 > 0)
1852 DbgUI.
ColoredText(color,
"physStepsSkippedClient:" + m_ServerFpsStatsParams.param4.ToString() );
1853 DbgUI.
PlotLive(
"physStepsSkippedClient history:", 300, 75, m_ServerFpsStatsParams.param4, 100, 100 );
1856 DbgUI.Text(
"throttleInput:" + throttleInput);
1857 DbgUI.PlotLive(
"throttleInput history:", 300, 75, throttleInput, 100, 50 );
1858 DbgUI.Text(
"throttleOutput:" + throttleOutput);
1859 DbgUI.PlotLive(
"throttleOutput history:", 300, 75, throttleOutput, 100, 50 );
1866 m_Notifications.AddVoiceNotification(vonStartParams.param2, vonStartParams.param1);
1900 LoginQueueStatic loginQueue;
1903 loginQueue.Update(timeslice);
1990 PPERequesterBank.GetRequester(PPERequester_DeathDarkening).Start(
new Param1<float>(1.0));
2037 if (duration < 0 &&
GetGameState() == DayZGameState.IN_GAME)
2052 switch (progressState)
2127 #ifndef PLATFORM_PS4
2202 m_IntroMenu.FindAnyWidget(
"notification_root").Show(
false);
2205 string text =
Widget.TranslateString(
"#console_start_game");
2206 #ifdef PLATFORM_XBOX
2209 text_widget.SetText(
string.Format(text,
"<image set=\"xbox_buttons\" name=\"A\" />"));
2211 text_widget.SetText(
string.Format(text,
"<image set=\"xbox_buttons\" name=\"A\" />"));
2215 string confirm =
"cross";
2224 text_widget.SetText(
string.Format(text,
"<image set=\"playstation_buttons\" name=\"" + confirm +
"\" />"));
2228 #ifdef PLATFORM_CONSOLE
2229 #ifdef PLATFORM_XBOX
2230 #ifdef BUILD_EXPERIMENTAL
2231 m_IntroMenu.FindAnyWidget(
"notification_root").Show(
true);
2252 #ifdef PLATFORM_CONSOLE
2271 #ifdef PLATFORM_CONSOLE
2292 #ifndef PLATFORM_WINDOWS
2293 #ifdef PLATFORM_CONSOLE
2318#ifdef PLATFORM_WINDOWS
2349 #ifndef PLATFORM_WINDOWS
2350 #ifdef PLATFORM_CONSOLE
2435 case DayZLoadState.JOIN_START:
2440 case DayZLoadState.PARTY_START:
2445 case DayZLoadState.MAIN_MENU_START:
2450 case DayZLoadState.CONNECT_START:
2455 case DayZLoadState.MISSION_START:
2465 g_Game.SetHudBrightness(
g_Game.GetHUDBrightnessSetting());
2481#ifdef PLATFORM_MSSTORE
2490 if (
GetInput().IsActiveGamepadSelected())
2499 #ifdef PLATFORM_CONSOLE
2500 #ifndef PLATFORM_WINDOWS
2513 g_Game.GetInput().IdentifyGamepad(
g_Game.GetInput().GetEnterButton());
2542 #ifdef PLATFORM_CONSOLE
2556 case DayZLoadState.JOIN_USER_SELECT:
2562 case DayZLoadState.PARTY_USER_SELECT:
2569 case DayZLoadState.CONNECT_USER_SELECT:
2575 case DayZLoadState.MAIN_MENU_USER_SELECT:
2577 SetLoadState(DayZLoadState.MAIN_MENU_CONTROLLER_SELECT);
2582 case DayZLoadState.MISSION_USER_SELECT:
2596 if (
GetLoadState() == DayZLoadState.JOIN_CONTROLLER_SELECT)
2607 case DayZLoadState.CONNECT_CONTROLLER_SELECT:
2613 case DayZLoadState.PARTY_CONTROLLER_SELECT:
2619 case DayZLoadState.MAIN_MENU_CONTROLLER_SELECT:
2656 uid.
Split(
":", output);
2658 port = output[1].ToInt();
2667 string uid = ip +
":" + port;
2694 string uid = ip +
":" + port;
2696 return (index >= 0);
2736 if (displayJoinError)
2767 g_Game.GetUIManager().CloseAllSubmenus();
2769 if (
g_Game.GetUIManager().IsDialogVisible() )
2771 g_Game.GetUIManager().CloseDialog();
2782 if (
g_Game.GetGameState() != DayZGameState.MAIN_MENU)
2789 g_Game.GetMission().AbortMission();
2792 SetLoadState(DayZLoadState.MAIN_MENU_CONTROLLER_SELECT);
2850#ifdef DIAG_DEVELOPER
2894 if (key ==
KeyCode.KC_LCONTROL)
2932 if (key ==
KeyCode.KC_LCONTROL)
2970 mission.OnMouseButtonPress(button);
2980 mission.OnMouseButtonRelease(button);
3005 bool gameIsRunning =
false;
3010 gameIsRunning =
true;
3057 #ifdef DIAG_DEVELOPER
3070 DrawPerformanceStats(pingAct, pingAvg, throttleInput, throttleOutput);
3090 bool gameIsRunning =
false;
3094 gameIsRunning =
true;
3143 super.OnRPC(sender, target, rpc_type, ctx);
3144 Event_OnRPC.Invoke(sender, target, rpc_type, ctx);
3151 target.OnRPC(sender, rpc_type, ctx);
3159 case ERPCs.RPC_CFG_GAMEPLAY_SYNC:
3164 case ERPCs.RPC_BUNKERBROADCAST_CONFIG_SYNC:
3169 case ERPCs.RPC_UNDERGROUND_SYNC:
3174 case ERPCs.RPC_PLAYERRESTRICTEDAREAS_SYNC:
3179 case ERPCs.RPC_SEND_NOTIFICATION:
3186 ctx.
Read(show_time);
3187 ctx.
Read(detail_text);
3192 case ERPCs.RPC_SEND_NOTIFICATION_EXTENDED:
3194 float show_time_ext;
3195 string title_text_ext;
3196 string detail_text_ext;
3199 ctx.
Read(show_time_ext);
3200 ctx.
Read(title_text_ext);
3201 ctx.
Read(detail_text_ext);
3209 case ERPCs.RPC_SOUND_HELICRASH:
3216 Param3<bool, vector, int> playCrashSound =
new Param3<bool, vector, int>(
false,
"0 0 0",0);
3217 if (ctx.
Read(playCrashSound))
3219 playSound = playCrashSound.param1;
3220 pos = playCrashSound.param2;
3233 case ERPCs.RPC_SOUND_ARTILLERY:
3236 Param1<vector> playArtySound =
new Param1<vector>(
vector.
Zero);
3237 if (ctx.
Read(playArtySound))
3257 case ERPCs.RPC_SOUND_CONTAMINATION:
3261 Param1<vector> playContaminatedSound =
new Param1<vector>(
vector.
Zero);
3262 if (ctx.
Read(playContaminatedSound))
3264 soundPos = playContaminatedSound.param1;
3284 camera.SpawnCameraShake(strength_factor * 4);
3291 case ERPCs.RPC_SOUND_ARTILLERY_SINGLE:
3297 Param3<vector, vector, float> playArtyShotSound =
new Param3<vector, vector, float>(
vector.
Zero,
vector.
Zero, 0);
3298 if (ctx.
Read(playArtyShotSound))
3300 soundPosition = playArtyShotSound.param1;
3301 delayedSoundPos = playArtyShotSound.param2;
3302 soundDelay = playArtyShotSound.param3;
3322 case ERPCs.RPC_SET_BILLBOARDS:
3327 Param1<int> indexP =
new Param1<int>(-1);
3328 if (ctx.
Read(indexP))
3330 int index = indexP.param1;
3338 case ERPCs.RPC_USER_SYNC_PERMISSIONS:
3341 if (ctx.
Read(mute_list))
3343 for (
int i = 0; i < mute_list.Count(); i++)
3345 string uid = mute_list.GetKey(i);
3346 bool mute = mute_list.GetElement(i);
3366 case ERPCs.DEV_SET_WEATHER:
3368 Param1<DebugWeatherRPCData> p1data =
new Param1<DebugWeatherRPCData>(null);
3370 if ( ctx.
Read(p1data) )
3373 weather =
g_Game.GetWeather();
3404 ErrorEx(
"Failed to read weather debug data");
3408 case ERPCs.DEV_SET_SANDSTORM:
3410 Param1<DebugSandstormRPCData> p1SandstormData =
new Param1<DebugSandstormRPCData>(null);
3412 if (ctx.
Read(p1SandstormData))
3414 DebugSandstormRPCData sandstormData = p1SandstormData.param1;
3415 weather =
g_Game.GetWeather();
3422 weather.
GetWindDirection().
Set(stormAngle, sandstormData.m_FadeInTime, sandstormData.m_Duration);
3424 if (sandstormData.m_OvercastValue < 0.8)
3425 sandstormData.m_OvercastValue = 0.8;
3427 weather.
GetOvercast().
Set(sandstormData.m_OvercastValue, sandstormData.m_FadeInTime, sandstormData.m_Duration);
3429 if (sandstormData.m_WindMagnitudeValue < 18.0)
3430 sandstormData.m_WindMagnitudeValue = 18.0;
3432 weather.
GetWindMagnitude().
Set(sandstormData.m_WindMagnitudeValue, sandstormData.m_FadeInTime, sandstormData.m_Duration);
3433 weather.
GetRain().
Set(0, sandstormData.m_FadeInTime, sandstormData.m_Duration);
3435 if (sandstormData.m_StartStorm)
3439 case ERPCs.DEV_STOP_SANDSTORM:
3441 weather =
g_Game.GetWeather();
3447 case ERPCs.DEV_SET_SANDSTORM_WEATHER:
3449 weather =
g_Game.GetWeather();
3456 case ERPCs.DEV_STOP_SANDSTORM_WEATHER:
3458 weather =
g_Game.GetWeather();
3468 #ifdef DIAG_DEVELOPER
3470 case ERPCs.DIAG_CAMERATOOLS_CAM_DATA:
3472 if (!m_CameraToolsMenuServer)
3474 m_CameraToolsMenuServer =
new CameraToolsMenuServer;
3476 m_CameraToolsMenuServer.OnRPC(rpc_type, ctx);
3480 case ERPCs.DIAG_CAMERATOOLS_CAM_SUBSCRIBE:
3482 if (!m_CameraToolsMenuServer)
3484 m_CameraToolsMenuServer =
new CameraToolsMenuServer;
3486 m_CameraToolsMenuServer.OnRPC(rpc_type, ctx);
3489 case ERPCs.DIAG_GEYSER_VALUES:
3491 auto geyserParams =
new Param3<bool, float, float>(
false, 0, 0);
3492 if (ctx.
Read(geyserParams))
3494 if (!m_GeyserDiagData)
3495 m_GeyserDiagData =
new GeyserDebugData();
3497 m_GeyserDiagData.SetData(geyserParams.param1, geyserParams.param2, geyserParams.param3);
3566 #ifdef PLATFORM_CONSOLE
3615 if (multiplier == 0)
3624 float energyFactor,
float explosionFactor,
bool isWater,
string ammoType)
3630 if (
g_Game.GetPlayer() == null)
3632 source.OnExplosionEffects(source, directHit, componentIndex, surface, pos, surfNormal, energyFactor, explosionFactor, isWater,
ammoType);
3638 particleSource.SetStartSoundParams(explosiveEffectData.
m_SoundSetName, pos);
3661 g_Game.ConfigGetText(
"cfgAmmo " + info.
GetAmmoType() +
" simulation", simulation);
3663 if (simulation ==
"shotArrow")
3670 arrow.PlaceOnSurface();
3671 arrow.SetFromProjectile(info);
3682 if (info.GetIsWater())
3685 g_Game.ConfigGetText(
"cfgAmmo " + info.GetAmmoType() +
" simulation", simulation);
3686 if (simulation ==
"shotArrow")
3689 g_Game.ConfigGetText(
"cfgAmmo " + info.GetAmmoType() +
" spawnPileType", pile);
3690 vector pos = info.GetPos();
3691 vector dir = -info.GetInVelocity();
3697 arrow.SetDirection(dir);
3698 arrow.SetFromProjectile(info);
3707 g_Game.ConfigGetText(
"cfgAmmo " + info.GetAmmoType() +
" simulation", simulation);
3708 if (simulation ==
"shotArrow")
3711 g_Game.ConfigGetText(
"cfgAmmo " + info.GetAmmoType() +
" spawnPileType", pile);
3717 EntityAI parent = ent.GetHierarchyParent();
3718 if (parent && parent.IsPlayer())
3721 arrow.PlaceOnSurface();
3722 arrow.SetFromProjectile(info);
3728 vector pos = info.GetPos();
3729 vector dir = -info.GetInVelocity();
3735 arrow.SetDirection(dir);
3736 arrow.SetFromProjectile(info);
3747 ImpactEffectsData impactEffectsData =
new ImpactEffectsData();
3748 impactEffectsData.m_DirectHit = directHit;
3749 impactEffectsData.m_ComponentIndex = componentIndex;
3750 impactEffectsData.m_Surface = surface;
3751 impactEffectsData.m_Position = pos;
3752 impactEffectsData.m_ImpactType =
ImpactTypes.UNKNOWN;
3753 impactEffectsData.m_SurfaceNormal = surfNormal;
3754 impactEffectsData.m_ExitPosition = exitPos;
3755 impactEffectsData.m_InSpeed = inSpeed;
3756 impactEffectsData.m_OutSpeed = outSpeed;
3757 impactEffectsData.m_IsDeflected = deflected;
3758 impactEffectsData.m_AmmoType =
ammoType;
3759 impactEffectsData.m_IsWater = isWater;
3763 directHit.OnReceivedHit(impactEffectsData);
3773 if (source && source.ShootsExplosiveAmmo() && !deflected && outSpeed ==
vector.
Zero)
3775 if (
ammoType ==
"Bullet_40mm_ChemGas")
3777 g_Game.CreateObject(
"ContaminatedArea_Local", pos);
3779 else if (
ammoType ==
"Bullet_40mm_Explosive")
3781 DamageSystem.ExplosionDamage(
EntityAI.Cast(source), null,
"Explosion_40mm_Ammo", pos,
DamageType.EXPLOSION);
3790 if (coefAdjusted == 0)
3802 ImpactEffectsData impactEffectsData =
new ImpactEffectsData();
3803 impactEffectsData.m_DirectHit = directHit;
3804 impactEffectsData.m_ComponentIndex = componentIndex;
3805 impactEffectsData.m_Surface = surface;
3806 impactEffectsData.m_Position = pos;
3807 impactEffectsData.m_ImpactType =
ImpactTypes.MELEE;
3809 impactEffectsData.m_ExitPosition =
"0 0 0";
3810 impactEffectsData.m_InSpeed =
"0 0 0";
3811 impactEffectsData.m_OutSpeed =
"0 0 0";
3812 impactEffectsData.m_IsDeflected =
false;
3813 impactEffectsData.m_AmmoType =
ammoType;
3814 impactEffectsData.m_IsWater = isWater;
3817 directHit.OnReceivedHit(impactEffectsData);
3830 if (surfaceCoef == 0)
3869 if (pFov < OPTIONS_FIELD_OF_VIEW_MIN)
3870 pFov = OPTIONS_FIELD_OF_VIEW_MIN;
3872 if (pFov > OPTIONS_FIELD_OF_VIEW_MAX)
3873 pFov = OPTIONS_FIELD_OF_VIEW_MAX;
3886 NumericOptionsAccess noa;
3889 return noa.ReadValue();
3926 string cfg_path =
"CfgWeapons " + weaponInHand.GetType() +
" chamberableFrom";
3927 g_Game.ConfigGetTextArray(cfg_path, ammo_names);
3929 foreach (
string ammo_name : ammo_names)
3931 if (ammo.GetType() == ammo_name)
3960 ListOptionsAccess language_option;
3964 if (language_option)
3966 idx = language_option.GetIndex();
3984 #ifdef DIAG_DEVELOPER
3986 if (FeatureTimeAccel.GetFeatureTimeAccelEnabled(ETimeAccelCategories.FOOD_DECAY))
4019#ifdef PLATFORM_CONSOLE
4027#ifdef PLATFORM_CONSOLE
4037#ifdef FEATURE_CURSOR
proto native CEApi GetCEApi()
Get the CE API.
const int ECE_DYNAMIC_PERSISTENCY
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
DamageType
exposed from C++ (do not change)
class DayZProfilesOptions PARTY_CONTROLLER_SELECT
class DayZProfilesOptions MISSION_USER_SELECT
ImageWidget m_ImageLogoCorner
ImageWidget m_ImageLoadingIcon
ImageWidget m_ImageWidgetBackground
enum DisconnectSessionFlags DISCONNECT_SESSION_FLAGS_FORCE
class DayZProfilesOptions PARTY_USER_SELECT
class DayZProfilesOptions JOIN_START
class DayZProfilesOptions MAIN_MENU_USER_SELECT
Param3< string, int, int > DayZProfilesOptionInt
class DayZProfilesOptions CONNECT_START
void SetProgress(float val)
TextWidget m_TextWidgetTitle
float m_LastProgressUpdate
class DayZProfilesOptions MISSION_START
const int DISCONNECT_SESSION_FLAGS_ALL
class DayZProfilesOptions PARTY
class DayZProfilesOptions MAIN_MENU_CONTROLLER_SELECT
ref UiHintPanelLoading m_HintPanel
@ DISCONNECT_ERROR_ENABLED
class DayZProfilesOptions UNDEFINED
TextWidget m_ModdedWarning
void ShowEx(DayZGame game)
Param3< string, float, float > DayZProfilesOptionFloat
ProgressBarWidget m_ProgressLoading
class DayZProfilesOptions JOIN_USER_SELECT
const int DISCONNECT_SESSION_FLAGS_JOIN
ImageWidget m_ImageLogoMid
DayZProfilesOption DayZProfilesOptionBool
class DayZProfilesOptions JOIN_CONTROLLER_SELECT
void SetTitle(string title)
class DayZProfilesOptions CONNECTING
class DayZProfilesOptions CONNECT_USER_SELECT
class DayZProfilesOptions MAIN_MENU_START
void LoadingScreen(DayZGame game)
TextWidget m_TextWidgetStatus
void SetStatus(string status)
class DayZProfilesOptions PARTY_START
float m_ImageLoadingIconRotation
ImageWidget m_ImageBackground
bool CanChangeHintPage(float timeAccu)
class LoginScreenBase extends UIScriptedMenu m_txtPosition
class DayZProfilesOptions m_WidgetRoot
class DayZProfilesOptions CONNECT
TextWidget m_ProgressText
class DayZProfilesOptions JOIN
class CrashSoundSets GetIsWater
Param3< string, bool, bool > DayZProfilesOption
void SetPosition(int position)
override bool OnClick(Widget w, int x, int y, int button)
buttons clicks
ProjectileStoppedInfo Managed GetSurfNormal()
class DayZProfilesOptions MAIN_MENU
class DayZProfilesOptions CONNECT_CONTROLLER_SELECT
void SetDispatcher(Dispatcher dispatcher)
int GetID()
Get the ID registered in SEffectManager.
ErrorCategory
ErrorCategory - To decide what ErrorHandlerModule needs to be called and easily identify where it cam...
proto GizmoApi GetGizmoApi()
class NoiseSystem NoiseParams()
NotificationType
DEPRECATED (moved into NotificationSystem)
void ParticleManager(ParticleManagerSettings settings)
Constructor (ctor)
static void PlayerDisconnected(StatsEventDisconnectedData data)
static void PlayerSpawned(StatsEventSpawnedData data)
static void LogRPT(string message)
static bool LoadData(string path)
proto native owned string GetName()
proto native bool IsOnline()
proto native EBiosError GetUserDatabaseIdAsync()
Call async function to get database ID.
proto native BiosUser GetSelectedUser()
Returns the currently selected user.
proto native EBiosError ParseJoinAsync(string join_data)
Parse the join data from from command line parameters.
proto native EBiosError PickUserAsync()
Display a system dependant account picket.
proto native EBiosError ParsePartyAsync(string party_data)
Parse the party data from from command line parameters.
proto native BiosUser GetTitleInitiator()
Gets the initiatior of the title.
proto native EBiosError LogOnUserAsync(BiosUser user)
Display a system dependant ui for log-on.
bool SelectUserEx(BiosUser user)
static void InitBleedChanceData()
Static data of bleeding chance probabilities; currently used for melee only.
ref LoginQueueBase m_LoginQueue
proto native UIManager GetUIManager()
void SetConnecting(bool value)
Returns true when connecting to server.
void SetProfileOptionInt(EDayZProfilesOptions option, int value)
proto bool ConfigGetChildName(string path, int index, out string name)
Get name of subclass in config class on path.
void SetConnectivityStatState(EConnectivityStatType type, EConnectivityStatLevel level)
void DisconnectSessionScript(bool displayJoinError=false)
override TStringArray ListAvailableCharacters()
ref array< int > m_ConnectedInputDeviceList
EConnectivityStatLevel m_ConnectivityStatsStates[STATS_COUNT]
override void OnUpdate(bool doSim, float timeslice)
bool m_ShouldShowControllerDisconnect
ref TimerQueue m_timerQueue[CALL_CATEGORY_COUNT]
proto native NoiseSystem GetNoiseSystem()
ref array< string > m_CharClassNames
ref EffectSound m_ArtySound
void UpdateVoiceLevel(int level)
override void OnActivateMessage()
void SetProfileOption(EDayZProfilesOptions option, bool value)
void AddVisitedServer(string ip, int port)
override void OnDeactivateMessage()
void UpdateLoginQueue(float timeslice)
override string CreateRandomPlayer()
void OnProjectileStoppedInTerrain(TerrainCollisionInfo info)
DayZGameState m_GameState
void SetPreviousGamepad(int gamepad)
proto native float ConfigGetFloat(string path)
Get float value from config on path.
float GetFoodDecayModifier()
ref DayZProfilesOptions m_DayZProfileOptions
override UIScriptedMenu CreateScriptedMenu(int id)
create custom main menu part (submenu)
void ResetProfileOptions()
float GetProfileOptionDefaultFloat(EDayZProfilesOptions option)
void ConnectFromServerBrowserEx(string ip, int port, int steamQueryPort, string password="")
proto native void PlayMission(string path)
Starts mission (equivalent for SQF playMission). You MUST use double slash \.
void StoreLoginDataPrepare()
DayZGameState GetGameState()
override bool IsInventoryOpen()
void DelayedMidAirDetonation(float x, float y, float z)
override void OnPostUpdate(bool doSim, float timeslice)
int GetCurrentDisplayLanguageIdx()
proto native void SetPlayerName(string name)
Sets current player name.
float GetProfileOptionFloat(EDayZProfilesOptions option)
array< int > GetConnectedInputDeviceList()
proto native World GetWorld()
override ScriptCallQueue GetCallQueue(int call_category)
override void OnDeviceReset()
int GetProfileOptionDefaultInt(EDayZProfilesOptions option)
override void OnAfterCreate()
proto native bool IsMultiplayer()
void SetPlayerGameName(string name)
proto native void MutePlayer(string muteUID, string playerUID, bool mute)
Mutes voice of source player to target player.
void OnGameplayDataHandlerLoad()
string GetPlayerGameName()
bool GetProfileOptionDefaultBool(EDayZProfilesOptions option)
bool IsKindOf(string cfg_class_name, string cfg_parent_name)
Returns is class name inherited from parent class name.
void OnProjectileStopped(ProjectileStoppedInfo info)
proto bool GetHostAddress(out string address, out int port)
Gets the server address. (from client)
override DragQueue GetDragQueue()
void ExplosionEffectsEx(Object source, Object directHit, int componentIndex, float energyFactor, float explosionFactor, HitInfo hitInfo)
bool GetProfileOptionDefault(EDayZProfilesOptions option)
bool OnConnectivityStatChange(EConnectivityStatType type, EConnectivityStatLevel newLevel, EConnectivityStatLevel oldLevel)
void SetMouseCursorDesiredVisibility(bool visible)
static bool ReportModded()
void LoadingHide(bool force=false)
bool GetMouseCursorDesiredVisibility()
static ref ScriptInvoker Event_OnRPC
proto native void GetProfileStringList(string name, out TStringArray values)
Gets array of strings from profile variable.
proto native BiosUserManager GetUserManager()
void ForceOvercastReset()
void OnLoginTimeEvent(int loginTime)
ref ScriptInvoker m_postUpdateQueue[CALL_CATEGORY_COUNT]
override void OnEvent(EventType eventTypeId, Param params)
override void OnKeyPress(int key)
override ScriptInvoker GetUpdateQueue(int call_category)
bool m_early_access_dialog_accepted
void OnMPConnectionLostEvent(int duration)
ref EffectSound m_CrashSound
void RegisterProfilesOptions()
void CreateGamepadDisconnectMenu()
bool CanDisplayMouseCursor()
extend as needed, only game focus and M&K setting (consoles only!) are checked natively
void SetKeyboardHandle(UIScriptedMenu handler)
void OnRespawnEvent(int time)
float GetPreviousEVValue()
void LoginTimeCountdown()
proto native bool GetModToBeReported()
proto native void SetMainMenuWorld(string world)
proto native void RequestExit(int code)
Sets exit code and quits in the right moment.
void AutoTestLaunch(string param)
float m_FoodDecayModifier
static bool m_ReportModded
map< EDayZProfilesOptions, ref DayZProfilesOption > GetProfileOptionMap()
ref BillboardSetHandler m_BillboardSetHandler
static ref NoiseParams m_NoiseParams
ref ScriptCallQueue m_callQueue[CALL_CATEGORY_COUNT]
proto native AbstractSoundScene GetSoundScene()
ref ScriptInvoker m_YieldDataInitInvoker
void EarlyAccessDialog(UIScriptedMenu parent)
void OnPreloadEvent(vector pos)
bool m_IsWorldWetTempUpdateEnabled
proto native int ConfigGetInt(string path)
Get int value from config on path.
proto native bool IsServer()
int m_OriginalCharactersCount
void SetLoadState(DayZLoadState state)
string GetMissionFolderPath()
void EnterLoginTime(UIMenuPanel parent)
void RemoveVoiceNotification(VONStopSpeakingEventParams vonStopParams)
const int MISSION_STATE_GAME
ref TStringArray m_Visited
ref ScriptInvoker m_updateQueue[CALL_CATEGORY_COUNT]
float GetCurrentEVValue()
static float GetUserFOVFromConfig()
override string CreateDefaultPlayer()
void EnterLoginQueue(UIMenuPanel parent)
void SetNewCharacter(bool state)
void RefreshCurrentServerInfo()
override void OnKeyRelease(int key)
void ClearConnectivityStates()
static bool CheckAmmoCompability(EntityAI weaponInHand, EntityAI ammo)
ScriptInvoker GetYieldDataInitInvoker()
bool ShouldShowControllerDisconnect()
bool GetProfileOptionBool(EDayZProfilesOptions option)
void FirearmEffects(Object source, Object directHit, int componentIndex, string surface, vector pos, vector surfNormal, vector exitPos, vector inSpeed, vector outSpeed, bool isWater, bool deflected, string ammoType)
float GetFOVByZoomType(ECameraZoomType type)
void OnProjectileStoppedInObject(ObjectCollisionInfo info)
proto native owned string GetMainMenuWorld()
void ConnectFromServerBrowser(string ip, int port, string password="")
override void OnMouseButtonRelease(int button)
DayZLoadState GetLoadState()
proto native DayZPlayer GetPlayer()
void SetMissionPath(string path)
Called from C++.
bool GetLastVisitedServer(out string ip, out int port)
proto native WorkspaceWidget GetWorkspace()
ref ConnectionLost m_connectionLost
override void OnMouseButtonPress(int button)
proto native void SaveProfile()
Saves profile on disk.
void SetDatabaseID(string id)
void InitCharacterMenuDataInfo(int menudata_count)
bool IsVisited(string ip, int port)
proto native Weather GetWeather()
Returns weather controller object.
void SelectUser(int gamepad=-1)
void CancelLoginTimeCountdown()
UIScriptedMenu m_keyboard_handler
ref NotificationUI m_Notifications
proto native bool IsAppActive()
Returns if the application is focused on PC, returns true always on console.
ScriptModule m_mission_module
void RefreshMouseCursorVisibility()
bool GetProfileOption(EDayZProfilesOptions option)
DayZLoadState m_LoadState
string m_MissionFolderPath
proto native bool IsClient()
bool m_IsFoodDecayEnabled
int m_ConnectSteamQueryPort
bool IsFoodDecayEnabled()
float GetHUDBrightnessSetting()
ref LoginTimeBase m_LoginTimeScreen
const int MISSION_STATE_MAINMENU
proto native void SetProfileStringList(string name, TStringArray values)
Sets array of strings to profile variable.
native void CreateMission(string path)
Create only enforce script mission, used for mission script reloading.
proto native void DisconnectSessionForce()
Forces disconnect from current multiplayer session even if not yet in the game.
static ref TemperatureAccessManager m_TAManager
override bool OnInitialize()
proto native float SurfaceGetNoiseMultiplier(Object directHit, vector pos, int componentIndex)
proto native int ConfigGetChildrenCount(string path)
Get count of subclasses in config class on path.
void SetUserFOV(float pFov)
ref DragQueue m_dragQueue
const int MIN_ARTY_SOUND_RANGE
int GetProfileOptionInt(EDayZProfilesOptions option)
void SetEVValue(float value)
const float ARROW_PIERCE_DEPTH
void SetProfileOptionBool(EDayZProfilesOptions option, bool value)
static ref AmmoCamParams m_AmmoShakeParams
override ScriptInvoker GetPostUpdateQueue(int call_category)
void SetProfileOptionFloat(EDayZProfilesOptions option, float value)
override TimerQueue GetTimerQueue(int call_category)
override void OnRPC(PlayerIdentity sender, Object target, int rpc_type, ParamsReadContext ctx)
proto bool CommandlineGetParam(string name, out string value)
Get command line parameter value.
void CloseCombatEffects(Object source, Object directHit, int componentIndex, string surface, vector pos, vector surfNormal, bool isWater, string ammoType)
proto native void SetEVUser(float value)
Sets custom camera camera EV. range: -50.0..50.0? //TODO.
void SetHudBrightness(float value)
bool m_CursorDesiredVisibilityScript
void DeleteGamepadDisconnectMenu()
proto native void AbortMission()
Returns to main menu, leave world empty for using last mission world.
const int MISSION_STATE_FINNISH
proto native Input GetInput()
proto native void StartRandomCutscene(string world)
Starts intro.
BillboardSetHandler GetBillboardHandler()
proto native Mission GetMission()
MenuDefaultCharacterData GetMenuDefaultCharacterData(bool fill_data=true)
void ExplosionEffects(Object source, Object directHit, int componentIndex, string surface, vector pos, vector surfNormal, float energyFactor, float explosionFactor, bool isWater, string ammoType)
void UpdateInputDeviceDisconnectWarning()
void ConnectFromJoin(string ip, int port)
void SetGameState(DayZGameState state)
ref Widget m_GamepadDisconnectMenu
void DisconnectSessionEx(DisconnectSessionFlags flags)
void AddVoiceNotification(VONStopSpeakingEventParams vonStartParams)
void LoadProgressUpdate(int progressState, float progress, string title)
void SetMissionState(int state)
ref LoadingScreen m_loading
proto native void StoreLoginData(ParamsWriteContext ctx)
Stores login userdata as parameters which are sent to server.
bool IsWorldWetTempUpdateEnabled()
static void OnRPC(ParamsReadContext ctx)
static void OnRPC(Man player, ParamsReadContext ctx)
static void OnRPC(ParamsReadContext ctx)
Super root of all classes in Enforce script.
static void ResetClientData()
TextWidget m_TextWidgetTitle
void SetDuration(float duration)
void ConnectionLost(DayZGame game)
void SetText(string text)
static void RegisterSoundSet(string sound_set)
static ref map< int, string > m_Mappings
static string GetSoundSetByHash(int hash)
override void StopDeathDarkeningEffect()
bool GetProfileOptionBool(EDayZProfilesOptions option)
ref map< EDayZProfilesOptions, ref DayZProfilesOptionBool > m_DayZProfilesOptionsBool
void RegisterProfileOptionFloat(EDayZProfilesOptions option, string profileOptionName, float defaultValue=0.0)
ref map< EDayZProfilesOptions, ref DayZProfilesOption > m_DayZProfilesOptions
void DayZProfilesOptions()
static ref ScriptInvoker m_OnBoolOptionChanged
bool GetProfileOptionDefaultBool(EDayZProfilesOptions option)
float GetProfileOptionFloat(EDayZProfilesOptions option)
void SetProfileOption(EDayZProfilesOptions option, bool value)
void SetProfileOptionBool(EDayZProfilesOptions option, bool value)
static ref ScriptInvoker m_OnIntOptionChanged
map< EDayZProfilesOptions, ref DayZProfilesOptionBool > GetProfileOptionMap()
void SetProfileOptionFloat(EDayZProfilesOptions option, float value)
void RegisterProfileOptionBool(EDayZProfilesOptions option, string profileOptionName, bool defaultValue=true)
int GetProfileOptionInt(EDayZProfilesOptions option)
int GetProfileOptionDefaultInt(EDayZProfilesOptions option)
bool GetProfileOption(EDayZProfilesOptions option)
float GetProfileOptionDefaultFloat(EDayZProfilesOptions option)
void RegisterProfileOptionInt(EDayZProfilesOptions option, string profileOptionName, int defaultValue=0)
ref map< EDayZProfilesOptions, ref DayZProfilesOptionInt > m_DayZProfilesOptionsInt
bool GetProfileOptionDefault(EDayZProfilesOptions option)
void SetProfileOptionInt(EDayZProfilesOptions option, int value)
void RegisterProfileOption(EDayZProfilesOptions option, string profileOptionName, bool def=true)
static ref ScriptInvoker m_OnFloatOptionChanged
ref map< EDayZProfilesOptions, ref DayZProfilesOptionFloat > m_DayZProfilesOptionsFloat
float m_OvercastInterpolation
float m_SnowfallInterpolation
float m_WindDirectionValue
float m_VolFogDistanceDensity
float m_VolFogHeightBiasTime
float m_VolFogDistanceDensityTime
float m_VolFogHeightDensityTime
float m_WindDInterpolation
float m_VolFogHeightDensity
float m_RainInterpolation
float m_WindMagnitudeValue
override void SetAutodestroy(bool auto_destroy)
Sets whether Effect automatically cleans up when it stops.
Wrapper class for managing sound through SEffectManager.
static proto native ErrorModuleHandler GetInstance()
Gets the EMH Instance.
void OnEvent(EventType eventTypeId, Param params)
is called by DayZGame to pass Events.
static proto int ThrowError(ErrorCategory category, int code, string additionalInfo="")
Creates and throws the error code, sending it to the handler of the category.
The error handler itself, for managing and distributing errors to modules Manages the ErrorHandlerMod...
struct that keeps Time relevant information for future formatting
proto native void Initialize()
Initializes option values with the current users settings.
proto native OptionsAccess GetOptionByType(int accessType)
Get option by AccessType.
proto GizmoSpaceMode GetSpaceMode()
proto GizmoTransformMode GetTransformMode()
proto void SetTransformMode(GizmoTransformMode mode)
proto void SetSpaceMode(GizmoSpaceMode mode)
proto native vector GetPosition()
proto native string GetAmmoType()
proto native bool IsWater()
proto native string GetSurface()
proto native vector GetSurfaceNormal()
proto native float GetSurfaceNoiseMultiplier()
void Update(float timeslice)
void SetConnectivityStatIcon(EConnectivityStatType type, EConnectivityStatLevel level)
static void EvaluateImpactEffectEx(ImpactEffectsData pData)
LoginQueue position when using -connect since mission is not created yet.
void SetStatus(string status)
override bool OnClick(Widget w, int x, int y, int button)
TextWidget m_txtDescription
bool CanChangeHintPage(float timeAccu)
ref FullTimeData m_FullTime
void SetRespawn(bool value)
LoginTime when using -connect since mission is not created yet.
void UpdateVoiceLevelWidgets(int level)
proto void AddNoiseTarget(vector pos, float lifetime, NoiseParams noise_params, float external_strength_multiplier=1.0)
Will make a noise at that position which the AI will "see" for the duration of 'lifetime'.
proto void AddNoisePos(EntityAI source_entity, vector pos, NoiseParams noise_params, float external_strenght_multiplier=1.0)
static void AddNotificationExtended(float show_time, string title_text, string detail_text="", string icon="")
Send custom notification from to local player.
static void InitInstance()
static void CleanupInstance()
const int DEFAULT_TIME_DISPLAYED
static void AddNotification(NotificationType type, float show_time, string detail_text="")
Send notification from default types to local player.
static void Update(float timeslice)
proto native vector GetHitObjRot()
proto native Object GetHitObj()
proto native vector GetHitObjPos()
proto native int GetComponentIndex()
static void OnGameplayDataHandlerLoad()
static void LoadVoicePrivilege()
static void LeaveGameplaySession()
static BiosUser GetBiosUser()
static void GetCurrentServerInfo(string ip, int port)
static void SetBiosUser(BiosUser user)
static void EnterGameplaySession()
static void SetMultiplayState(bool state)
static void LoadMPPrivilege()
static void ClearCurrentServerInfo()
static void CreateManagerStatic()
static PPEManager GetPPEManager()
Returns the manager instance singleton.
static void DestroyManagerStatic()
Static component of PPE manager, used to hold the instance.
Base Param Class with no parameters. Used as general purpose parameter overloaded with Param1 to Para...
static const int CONTAMINATED_AREA_GAS_SHELL
static void PreloadParticles()
Preloads all particles.
Entity which has the particle instance as an ObjectComponent.
proto string GetPlainId()
plaintext unique id of player (cannot be used in database or logs)
proto float GetOutputThrottle()
Throttling performed on output bandwidth since last update (percentage [0,1])
proto int GetPingAvg()
ping range estimation
proto float GetInputThrottle()
Throttling performed on input bandwidth since last update(percentage [0,1]) (unknown value on Server)
proto int GetPingAct()
ping range estimation
The class that will be instanced (moddable)
static proto native void SetUserData(Widget inst)
static proto native void DestroyAllPendingProgresses()
static proto native void SetProgressData(Widget inst)
proto native vector GetPos()
proto native string GetAmmoType()
proto native float GetProjectileDamage()
proto native Object GetSource()
proto native vector GetInVelocity()
static void OnUpdate(float timeslice)
static EffectSound PlaySound(string sound_set, vector position, float play_fade_in=0, float stop_fade_out=0, bool loop=false)
Create and play an EffectSound.
Manager class for managing Effect (EffectParticle, EffectSound)
proto native void Stop(float duration, bool calledByWeather)
Stops the sandstorm, leaving it to fade out over duration seconds. The sandstorm must be active prior...
proto native bool Start(float duration, bool calledByWeather)
proto native vector GetDirection()
Returns the direction from the start position to the end position of the sandstorm.
proto native bool IsActive()
Returns whether sandstorm is currently active.
proto void Remove(func fn)
remove specific call from queue
proto void Call(func fn, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
adds call into the queue with given parameters and arguments (arguments are held in memory until the ...
proto void CallLater(func fn, int delay=0, bool repeat=false, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
adds call into the queue with given parameters and arguments (arguments are held in memory until the ...
proto native void Tick(float timeslice)
executes calls on queue if their time is already elapsed, if 'repeat = false' call is removed from qu...
ScriptCallQueue Class provide "lazy" calls - when we don't want to execute function immediately but l...
proto void Invoke(void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
invoke call on all inserted methods with given arguments
ScriptInvoker Class provide list of callbacks usage:
Module containing compiled scripts.
proto native ParamsWriteContext GetWriteContext()
proto bool Read(void value_in)
string m_CharacterId
character ID
string m_Reason
reason of disconnect (quit, kick, ban, sign-out...)
int m_Lifetime
lifetime of character in seconds
int m_DaytimeHour
current time in hour (hour in 24h)
int m_Population
population of current gameplay (server)
vector m_Position
position of spawn
string m_CharacterId
character ID
proto native UIScriptedMenu GetMenu()
Returns most-top open menu.
proto native void ScreenFadeOut(float duration)
proto native bool ShowCursor(bool visible)
natively checks game focus on cursor hiding
proto native int GetLoginQueuePosition()
proto native UIScriptedMenu EnterScriptedMenu(int id, UIMenuPanel parent)
Create & open menu with specific id (see MenuID) and set its parent.
proto native bool ShowQueuedDialog()
bool CloseAll()
Close all opened menus.
proto native UIScriptedMenu ShowScriptedMenu(UIScriptedMenu menu, UIMenuPanel parent)
static void OnRPC(ParamsReadContext ctx)
static VONManagerBase GetInstance()
Main way to access VONManager functionality from script.
void OnEvent(EventType eventTypeId, Param params)
Manager class which handles Voice-over-network functionality while player is connected to a server.
proto native Fog GetFog()
Returns a fog phenomenon object.
proto native void SetDynVolFogHeightBias(float value, float time=0)
Sets the 'dynamic' volumetric height bias. Takes effect only if enabled via world config.
proto native WindMagnitude GetWindMagnitude()
Returns a wind magnitude phenomenon object.
proto native void SetDynVolFogDistanceDensity(float value, float time=0)
Sets the dynamic volumetric fog distance density. Only takes effect if dynamic volumetric fog is enab...
proto native Sandstorm GetSandstorm()
Returns the sandstorm phenomenon weather controller.
proto native Snowfall GetSnowfall()
Returns a snowfall phenomenon object.
static proto float WindDirectionToAngle(vector dir)
Returns the xz angle of the provided wind vector.
proto native WindDirection GetWindDirection()
Returns a wind direction phenomenon object.
proto native void SetDynVolFogHeightDensity(float value, float time=0)
Sets the dynamic volumetric fog height density. Only takes effect if dynamic volumetric fog is enable...
proto native Rain GetRain()
Returns a rain phenomenon object.
proto native Overcast GetOvercast()
Returns an overcast phenomenon object.
proto native void Set(float forecast, float time=0, float minDuration=0)
Sets the forecast.
proto native void SetNextChange(float time)
Sets the time in seconds when the next forecast will be computed.
void UpdateWeatherEffects(Weather weather, float timeslice)
Updates local weather effects.
Keeps information about currently loaded world, like temperature.
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
proto string ToString(bool simple=true)
static proto native float DistanceSq(vector v1, vector v2)
Returns the square distance between tips of two 3D vectors.
proto native float Length()
Returns length of vector (magnitude)
proto float Normalize()
Normalizes vector. Returns length.
static proto native float Distance(vector v1, vector v2)
Returns the distance between tips of two 3D vectors.
class DayZPlayerCameraResult DayZPlayerCamera(DayZPlayer pPlayer, HumanInputController pInput)
const int PROGRESS_UPDATE
Param1< int > RespawnEventParams
RespawnTime.
Param1< int > MPConnectionLostEventParams
Duration.
Param1< int > LoginTimeEventParams
LoginTime.
const EventType MPSessionEndEventTypeID
no params
const EventType ConnectingStartEventTypeID
no params
PlayerIdentity PROGRESS_START
const EventType LoginStatusEventTypeID
params: LoginStatusEventParams
Param1< vector > PreloadEventParams
Position.
Serializer ParamsReadContext
Param4< float, float, int, int > ServerFpsStatsUpdatedEventParams
average server fps, highest frame time, skipped physics simulation steps server/client
const EventType WorldCleaupEventTypeID
no params
Param1< string > DLCOwnerShipFailedParams
world name
Param1< int > LogoutEventParams
logoutTime
Param2< string, string > VONStopSpeakingEventParams
player name, player id
const EventType SelectedUserChangedEventTypeID
no params
const EventType RespawnEventTypeID
params: RespawnEventParams
const EventType MPSessionFailEventTypeID
no params
const int PROGRESS_PROGRESS
const EventType StartupEventTypeID
no params
const EventType DialogQueuedEventTypeID
no params
Param4< int, string, string, string > ChatMessageEventParams
channel, from, text, color config class
Param2< string, string > LoginStatusEventParams
text message for line 1, text message for line 2
const EventType MPSessionStartEventTypeID
no params
const EventType PreloadEventTypeID
params: PreloadEventParams
const EventType LoginTimeEventTypeID
params: LoginTimeEventParams
Param1< PlayerIdentity > ConnectivityStatsUpdatedEventParams
PlayerIdentity.
const EventType ServerFpsStatsUpdatedEventTypeID
params: ServerFpsStatsUpdatedEventParams
const EventType ConnectivityStatsUpdatedEventTypeID
params: ConnectivityStatsUpdatedEventParams
const EventType MPConnectionLostEventTypeID
params: MPConnectionLostEventParams
const EventType LogoutEventTypeID
params: LogoutEventParams
const EventType MPSessionPlayerReadyEventTypeID
no params
const EventType DLCOwnerShipFailedEventTypeID
params: DLCOwnerShipFailedParams
Param3< int, float, string > ProgressEventParams
state, progress, title
const int PROGRESS_FINISH
const EventType ProgressEventTypeID
params: ProgressEventParams
OptionAccessType
C++ OptionAccessType.
const EventType ChatMessageEventTypeID
params: ChatMessageEventParams
const EventType ConnectingAbortEventTypeID
no params
const string GAME_CHAT_MSG
const string SYSTEM_CHAT_MSG
const string RADIO_CHAT_MSG
const string PLAYER_CHAT_MSG
const string DIRECT_CHAT_MSG
const string ADMIN_CHAT_MSG
proto void Print(void var)
Prints content of variable to console/log.
static proto native void Begin(string windowTitle, float x=0, float y=0)
static proto native void PlotLive(string label, int sizeX, int sizeY, float val, int timeStep=100, int historySize=30, int color=0xFFFFFFFF)
static proto native void Text(string label)
static proto native void ColoredText(int color, string label)
const int CAMERA_SHAKE_ARTILLERY_DISTANCE
const string OPTIONS_SOUND_AMBIENT_SOUND_MODE
const float DZPLAYER_CAMERA_FOV_EYEZOOM
FOV (vertical angle/2) in radians. Take care to modify also in "basicDefines.hpp".
const float DZPLAYER_CAMERA_FOV_EYEZOOM_SHALLOW
const float LOADING_SCREEN_HINT_INTERVAL
const int CAMERA_SHAKE_ARTILLERY_DISTANCE2
const float LOADING_SCREEN_HINT_INTERVAL_MIN
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.
class array< Class T > TStringArray
const string SHOW_QUICKBAR
const string SHOW_SERVERINFO
const string SHOW_HUD_VEHICLE
const string SHOW_CONNECTIVITYINFO
const string HUD_BRIGHTNESS
const string ENABLE_BLEEDINGINDICATION
const string SHOW_CROSSHAIR
proto native vector Vector(float x, float y, float z)
Vector constructor from components.
static proto int Randomize(int seed)
Sets the seed for the random number generator.
static proto float Lerp(float a, float b, float time)
Linearly interpolates between 'a' and 'b' given 'time'.
static proto float Sqrt(float val)
Returns square root.
static proto float Min(float x, float y)
Returns smaller of two given values.
static proto float RandomFloat(float min, float max)
Returns a random float number between and min[inclusive] and max[exclusive].
static proto float InverseLerp(float a, float b, float value)
Calculates the linear value that produces the interpolant value within the range [a,...
@ NONE
body is not in simulation, nor in collision world
proto native float GetVOIPVolume()
proto native float GetMusicVolume()
proto native float GetSoundVolume()
proto native float GetRadioVolume()
proto native float GetSpeechExVolume()
proto native int Length()
Returns length of string.
proto native int ToInt()
Converts string to integer.
proto native float ToFloat()
Converts string to float.
proto native int Hash()
Returns hash of string.
void Split(string sample, out array< string > output)
Splits string into array of strings separated by 'sample'.
static proto string Format(string fmt, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
Gets n-th character from string.
proto bool GetCLIParam(string param, out string val)
Returns command line argument.