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);
143 #ifdef BUILD_EXPERIMENTAL
144 layoutRoot.FindAnyWidget(
"notification_root").Show(
true);
154 super.OnClick(w,
x,
y, button);
167 layoutRoot.Show(
true);
174 layoutRoot.Show(
false);
217 g_Game.SetKeyboardHandle(
this);
226 g_Game.SetKeyboardHandle(null);
232 layoutRoot =
g_Game.GetWorkspace().CreateWidgets(
"gui/layouts/dialog_login_time.layout");
236 m_btnLeave = ButtonWidget.Cast(layoutRoot.FindAnyWidget(
"btnLeave"));
238 layoutRoot.FindAnyWidget(
"notification_root").Show(
false);
240 #ifdef PLATFORM_CONSOLE
241 bool showToolbar = !
g_Game.GetInput().IsEnabledMouseAndKeyboardEvenOnServer() ||
g_Game.GetInput().GetCurrentInputDevice() ==
EInputDeviceType.CONTROLLER;
242 layoutRoot.FindAnyWidget(
"toolbar_bg").Show(showToolbar);
246 #ifdef BUILD_EXPERIMENTAL
247 layoutRoot.FindAnyWidget(
"notification_root").Show(
true);
257 super.OnClick(w,
x,
y, button);
270 layoutRoot.Show(
true);
271 m_HintPanel =
new UiHintPanelLoading(layoutRoot.FindAnyWidget(
"hint_frame0"));
278 layoutRoot.Show(
false);
285 TimeConversions.ConvertSecondsToFullTime(time,
m_FullTime);
287 text =
"#menu_loading_in_";
289 text =
"#dayz_game_spawning_in_";
300 text =
Widget.TranslateString(text);
305 g_Game.SetLoginTimerFinished();
354 m_WidgetRoot = game.GetWorkspace().CreateWidgets(
"gui/layouts/day_z_connection_lost.layout");
365 if (
g_Game.GetUIManager().IsDialogVisible())
367 g_Game.GetUIManager().HideDialog();
444 g_Game.GetProfileString(profileOptionName, outValue);
445 int value = outValue.
ToInt();
458 g_Game.GetProfileString(profileOptionName, outValue);
459 float value = outValue.
ToFloat();
495 g_Game.GetProfileString(r_opt.param1, outValue);
496 int value = outValue.
ToInt();
511 g_Game.GetProfileString(r_opt.param1, outValue);
512 float value = outValue.
ToFloat();
543 g_Game.SetProfileString(po.param1, value.ToString());
685 MISSION_CONTROLLER_SELECT
713 m_WidgetRoot = game.GetLoadingWorkspace().CreateWidgets(
"gui/layouts/loading.layout");
732 m_WidgetRoot.FindAnyWidget(
"notification_root").Show(
false);
734 #ifdef PLATFORM_CONSOLE
736 #ifdef BUILD_EXPERIMENTAL
740 expNotification.Show(
true);
754 game.GetBacklit().LoadingAnim();
841 if (
m_DayZGame.GetUIManager().IsDialogVisible())
846 if (
m_DayZGame.GetMissionState() == DayZGame.MISSION_STATE_MAINMENU)
866 ProgressAsync.SetProgressData(pText);
867 ProgressAsync.SetUserData(lIcon);
964 #ifdef DIAG_DEVELOPER
987 static bool m_IsPreviewSpawn;
989 #ifdef DIAG_DEVELOPER
990 ref CameraToolsMenuServer m_CameraToolsMenuServer;
998#ifdef PLATFORM_CONSOLE
1065 string path =
"cfgVehicles";
1066 string child_name =
"";
1069 for (
int p = 0; p < count; ++p)
1076 if (!
IsKindOf(child_name,
"SurvivorBase"))
1080 if (child_name ==
"SurvivorF_Keiko")
1099 Print(
"~DayZGame()");
1179 while (pos_cur != -1)
1182 pos_cur =
path.IndexOfFrom(pos_cur + 1 ,
"\\");
1386 return mission.CreateScriptedMenu(
id);
1395 #ifdef ENABLE_LOGGING
1396 Print(
"Reloading mission module!");
1450 switch (eventTypeId)
1476 #ifdef PLATFORM_CONSOLE
1531 #ifdef PLATFORM_CONSOLE
1543 #ifdef PLATFORM_CONSOLE
1544 #ifndef PLATFORM_WINDOWS
1563 int duration = conLost_params.param1;
1640 string msg1 = loginStatusParams.param1;
1641 string msg2 = loginStatusParams.param2;
1650 finalMsg +=
"\n" + msg2;
1657 finalMsg = msg1 +
" " + msg2;
1664 g_Game.SetGameState(DayZGameState.CONNECTING);
1670 g_Game.SetGameState(DayZGameState.MAIN_MENU);
1684 Print(
"### DLC Ownership failed !!! Map: " + dlcParams.param1);
1691 if (
Class.
CastTo(connectivityStatsParams, params))
1696 if (pingAvg <
GetWorld().GetPingWarningThreshold())
1700 else if (pingAvg <
GetWorld().GetPingCriticalThreshold())
1716 #ifdef DIAG_DEVELOPER
1717 m_ServerFpsStatsParams = serverFpsStatsParams;
1719 float fps = serverFpsStatsParams.param1;
1720 if (fps >
GetWorld().GetServerFpsWarningThreshold())
1724 else if (fps >
GetWorld().GetServerFpsCriticalThreshold())
1742 mission.OnEvent(eventTypeId, params);
1747 emh.
OnEvent(eventTypeId, params);
1773 #ifdef DIAG_DEVELOPER
1774 private void DrawPerformanceStats(
float pingAct,
float pingAvg,
float throttleInput,
float throttleOutput)
1779 if ( pingAvg >=
GetWorld().GetPingCriticalThreshold())
1781 else if ( pingAvg >=
GetWorld().GetPingWarningThreshold())
1787 DbgUI.
PlotLive(
"pingAvg history:", 300, 125, pingAvg, 100, 100 );
1788 DbgUI.
Text(
"Server Fps Warning Threshold:" +
GetWorld().GetServerFpsWarningThreshold());
1789 DbgUI.
Text(
"Server Fps Critical Threshold:" +
GetWorld().GetServerFpsCriticalThreshold());
1790 if (m_ServerFpsStatsParams)
1793 if ( m_ServerFpsStatsParams.param1 <= GetWorld().GetServerFpsCriticalThreshold())
1795 else if ( m_ServerFpsStatsParams.param1 <= GetWorld().GetServerFpsWarningThreshold())
1798 DbgUI.
ColoredText(color,
"serverFPS:" + m_ServerFpsStatsParams.param1.ToString() );
1799 DbgUI.
PlotLive(
"serverFPS history:", 300, 125, m_ServerFpsStatsParams.param1, 100, 100 );
1803 DbgUI.
PlotLive(
"serverFrameTime history:", 300, 75, m_ServerFpsStatsParams.param2, 100, 100 );
1806 if (m_ServerFpsStatsParams.param3 > 0)
1809 DbgUI.
ColoredText(color,
"physStepsSkippedServer:" + m_ServerFpsStatsParams.param3.ToString() );
1810 DbgUI.
PlotLive(
"physStepsSkippedServer history:", 300, 75, m_ServerFpsStatsParams.param3, 100, 100 );
1813 if (m_ServerFpsStatsParams.param4 > 0)
1815 DbgUI.
ColoredText(color,
"physStepsSkippedClient:" + m_ServerFpsStatsParams.param4.ToString() );
1816 DbgUI.
PlotLive(
"physStepsSkippedClient history:", 300, 75, m_ServerFpsStatsParams.param4, 100, 100 );
1819 DbgUI.Text(
"throttleInput:" + throttleInput);
1820 DbgUI.PlotLive(
"throttleInput history:", 300, 75, throttleInput, 100, 50 );
1821 DbgUI.Text(
"throttleOutput:" + throttleOutput);
1822 DbgUI.PlotLive(
"throttleOutput history:", 300, 75, throttleOutput, 100, 50 );
1829 m_Notifications.AddVoiceNotification(vonStartParams.param2, vonStartParams.param1);
1863 LoginQueueStatic loginQueue;
1866 loginQueue.Update(timeslice);
1951 PPERequesterBank.GetRequester(PPERequester_DeathDarkening).Start(
new Param1<float>(1.0));
1998 if (duration < 0 &&
GetGameState() == DayZGameState.IN_GAME)
2013 switch (progressState)
2088 #ifndef PLATFORM_PS4
2158 m_IntroMenu.FindAnyWidget(
"notification_root").Show(
false);
2161 string text =
Widget.TranslateString(
"#console_start_game");
2162 #ifdef PLATFORM_XBOX
2165 text_widget.SetText(
string.Format(text,
"<image set=\"xbox_buttons\" name=\"A\" />"));
2167 text_widget.SetText(
string.Format(text,
"<image set=\"xbox_buttons\" name=\"A\" />"));
2171 string confirm =
"cross";
2180 text_widget.SetText(
string.Format(text,
"<image set=\"playstation_buttons\" name=\"" + confirm +
"\" />"));
2184 #ifdef PLATFORM_CONSOLE
2185 #ifdef PLATFORM_XBOX
2186 #ifdef BUILD_EXPERIMENTAL
2187 m_IntroMenu.FindAnyWidget(
"notification_root").Show(
true);
2208 #ifdef PLATFORM_CONSOLE
2227 #ifdef PLATFORM_CONSOLE
2248 #ifndef PLATFORM_WINDOWS
2249 #ifdef PLATFORM_CONSOLE
2274#ifdef PLATFORM_WINDOWS
2305 #ifndef PLATFORM_WINDOWS
2306 #ifdef PLATFORM_CONSOLE
2391 case DayZLoadState.JOIN_START:
2396 case DayZLoadState.PARTY_START:
2401 case DayZLoadState.MAIN_MENU_START:
2406 case DayZLoadState.CONNECT_START:
2411 case DayZLoadState.MISSION_START:
2421 g_Game.SetHudBrightness(
g_Game.GetHUDBrightnessSetting());
2437#ifdef PLATFORM_MSSTORE
2446 if (
GetInput().IsActiveGamepadSelected())
2455 #ifdef PLATFORM_CONSOLE
2456 #ifndef PLATFORM_WINDOWS
2469 g_Game.GetInput().IdentifyGamepad(
g_Game.GetInput().GetEnterButton());
2498 #ifdef PLATFORM_CONSOLE
2512 case DayZLoadState.JOIN_USER_SELECT:
2518 case DayZLoadState.PARTY_USER_SELECT:
2525 case DayZLoadState.CONNECT_USER_SELECT:
2531 case DayZLoadState.MAIN_MENU_USER_SELECT:
2533 SetLoadState(DayZLoadState.MAIN_MENU_CONTROLLER_SELECT);
2538 case DayZLoadState.MISSION_USER_SELECT:
2552 if (
GetLoadState() == DayZLoadState.JOIN_CONTROLLER_SELECT)
2563 case DayZLoadState.CONNECT_CONTROLLER_SELECT:
2569 case DayZLoadState.PARTY_CONTROLLER_SELECT:
2575 case DayZLoadState.MAIN_MENU_CONTROLLER_SELECT:
2612 uid.
Split(
":", output);
2614 port = output[1].ToInt();
2623 string uid = ip +
":" + port;
2650 string uid = ip +
":" + port;
2652 return (index >= 0);
2692 if (displayJoinError)
2723 g_Game.GetUIManager().CloseAllSubmenus();
2725 if (
g_Game.GetUIManager().IsDialogVisible() )
2727 g_Game.GetUIManager().CloseDialog();
2738 if (
g_Game.GetGameState() != DayZGameState.MAIN_MENU)
2745 g_Game.GetMission().AbortMission();
2748 SetLoadState(DayZLoadState.MAIN_MENU_CONTROLLER_SELECT);
2806#ifdef DIAG_DEVELOPER
2850 if (key ==
KeyCode.KC_LCONTROL)
2888 if (key ==
KeyCode.KC_LCONTROL)
2926 mission.OnMouseButtonPress(button);
2936 mission.OnMouseButtonRelease(button);
2961 bool gameIsRunning =
false;
2966 gameIsRunning =
true;
3013 #ifdef DIAG_DEVELOPER
3026 DrawPerformanceStats(pingAct, pingAvg, throttleInput, throttleOutput);
3046 bool gameIsRunning =
false;
3050 gameIsRunning =
true;
3088 super.OnRPC(sender, target, rpc_type, ctx);
3089 Event_OnRPC.Invoke(sender, target, rpc_type, ctx);
3096 target.OnRPC(sender, rpc_type, ctx);
3104 case ERPCs.RPC_CFG_GAMEPLAY_SYNC:
3109 case ERPCs.RPC_UNDERGROUND_SYNC:
3114 case ERPCs.RPC_PLAYERRESTRICTEDAREAS_SYNC:
3119 case ERPCs.RPC_SEND_NOTIFICATION:
3126 ctx.
Read(show_time);
3127 ctx.
Read(detail_text);
3132 case ERPCs.RPC_SEND_NOTIFICATION_EXTENDED:
3134 float show_time_ext;
3135 string title_text_ext;
3136 string detail_text_ext;
3139 ctx.
Read(show_time_ext);
3140 ctx.
Read(title_text_ext);
3141 ctx.
Read(detail_text_ext);
3149 case ERPCs.RPC_SOUND_HELICRASH:
3157 if (ctx.
Read(playCrashSound))
3159 playSound = playCrashSound.param1;
3160 pos = playCrashSound.param2;
3173 case ERPCs.RPC_SOUND_ARTILLERY:
3176 Param1<vector> playArtySound =
new Param1<vector>(
vector.
Zero);
3177 if (ctx.
Read(playArtySound))
3179 position = playArtySound.param1;
3197 case ERPCs.RPC_SOUND_CONTAMINATION:
3201 Param1<vector> playContaminatedSound =
new Param1<vector>(
vector.
Zero);
3202 if (ctx.
Read(playContaminatedSound))
3204 soundPos = playContaminatedSound.param1;
3224 camera.SpawnCameraShake(strength_factor * 4);
3231 case ERPCs.RPC_SOUND_ARTILLERY_SINGLE:
3238 if (ctx.
Read(playArtyShotSound))
3240 soundPosition = playArtyShotSound.param1;
3241 delayedSoundPos = playArtyShotSound.param2;
3242 soundDelay = playArtyShotSound.param3;
3262 case ERPCs.RPC_SET_BILLBOARDS:
3267 Param1<int> indexP =
new Param1<int>(-1);
3268 if (ctx.
Read(indexP))
3270 int index = indexP.param1;
3278 case ERPCs.RPC_USER_SYNC_PERMISSIONS:
3281 if (ctx.
Read(mute_list))
3283 for (
int i = 0; i < mute_list.Count(); i++)
3285 string uid = mute_list.GetKey(i);
3286 bool mute = mute_list.GetElement(i);
3305 case ERPCs.DEV_SET_WEATHER:
3307 Param1<DebugWeatherRPCData> p1data =
new Param1<DebugWeatherRPCData>(null);
3309 if ( ctx.
Read(p1data) )
3342 ErrorEx(
"Failed to read weather debug data");
3349 #ifdef DIAG_DEVELOPER
3351 case ERPCs.DIAG_CAMERATOOLS_CAM_DATA:
3353 if (!m_CameraToolsMenuServer)
3355 m_CameraToolsMenuServer =
new CameraToolsMenuServer;
3357 m_CameraToolsMenuServer.OnRPC(rpc_type, ctx);
3361 case ERPCs.DIAG_CAMERATOOLS_CAM_SUBSCRIBE:
3363 if (!m_CameraToolsMenuServer)
3365 m_CameraToolsMenuServer =
new CameraToolsMenuServer;
3367 m_CameraToolsMenuServer.OnRPC(rpc_type, ctx);
3436 #ifdef PLATFORM_CONSOLE
3482 m_NoiseParams.LoadFromPath(
string.Format(
"cfgAmmo %1 NoiseExplosion", ammoType));
3485 if (multiplier == 0)
3494 float energyFactor,
float explosionFactor,
bool isWater,
string ammoType)
3499 if (
g_Game.GetPlayer() == null)
3501 source.OnExplosionEffects(source, directHit, componentIndex, surface, pos, surfNormal, energyFactor, explosionFactor, isWater, ammoType);
3503 if (source.ShootsExplosiveAmmo() )
3506 if (particleID > -1)
3532 g_Game.ConfigGetText(
"cfgAmmo " + info.
GetAmmoType() +
" simulation", simulation);
3534 if (simulation ==
"shotArrow")
3541 arrow.PlaceOnSurface();
3542 arrow.SetFromProjectile(info);
3553 if (info.GetIsWater())
3556 g_Game.ConfigGetText(
"cfgAmmo " + info.GetAmmoType() +
" simulation", simulation);
3557 if (simulation ==
"shotArrow")
3560 g_Game.ConfigGetText(
"cfgAmmo " + info.GetAmmoType() +
" spawnPileType", pile);
3561 vector pos = info.GetPos();
3562 vector dir = -info.GetInVelocity();
3568 arrow.SetDirection(dir);
3569 arrow.SetFromProjectile(info);
3578 g_Game.ConfigGetText(
"cfgAmmo " + info.GetAmmoType() +
" simulation", simulation);
3579 if (simulation ==
"shotArrow")
3582 g_Game.ConfigGetText(
"cfgAmmo " + info.GetAmmoType() +
" spawnPileType", pile);
3588 EntityAI parent = ent.GetHierarchyParent();
3589 if (parent && parent.IsPlayer())
3592 arrow.PlaceOnSurface();
3593 arrow.SetFromProjectile(info);
3599 vector pos = info.GetPos();
3600 vector dir = -info.GetInVelocity();
3606 arrow.SetDirection(dir);
3607 arrow.SetFromProjectile(info);
3615 vector exitPos,
vector inSpeed,
vector outSpeed,
bool isWater,
bool deflected,
string ammoType)
3618 ImpactEffectsData impactEffectsData =
new ImpactEffectsData();
3619 impactEffectsData.m_DirectHit = directHit;
3620 impactEffectsData.m_ComponentIndex = componentIndex;
3621 impactEffectsData.m_Surface = surface;
3622 impactEffectsData.m_Position = pos;
3623 impactEffectsData.m_ImpactType =
ImpactTypes.UNKNOWN;
3624 impactEffectsData.m_SurfaceNormal = surfNormal;
3625 impactEffectsData.m_ExitPosition = exitPos;
3626 impactEffectsData.m_InSpeed = inSpeed;
3627 impactEffectsData.m_OutSpeed = outSpeed;
3628 impactEffectsData.m_IsDeflected = deflected;
3629 impactEffectsData.m_AmmoType = ammoType;
3630 impactEffectsData.m_IsWater = isWater;
3634 directHit.OnReceivedHit(impactEffectsData);
3643 if (source && source.ShootsExplosiveAmmo() && !deflected && outSpeed ==
vector.
Zero)
3645 if (ammoType ==
"Bullet_40mm_ChemGas")
3647 g_Game.CreateObject(
"ContaminatedArea_Local", pos);
3649 else if (ammoType ==
"Bullet_40mm_Explosive")
3651 DamageSystem.ExplosionDamage(
EntityAI.Cast(source), null,
"Explosion_40mm_Ammo", pos,
DamageType.EXPLOSION);
3656 m_NoiseParams.LoadFromPath(
"cfgAmmo " + ammoType +
" NoiseHit");
3659 float coefAdjusted = surfaceCoef * inSpeed.
Length() /
ConfigGetFloat(
"cfgAmmo " + ammoType +
" initSpeed");
3660 if (coefAdjusted == 0)
3669 bool isWater,
string ammoType)
3672 ImpactEffectsData impactEffectsData =
new ImpactEffectsData();
3673 impactEffectsData.m_DirectHit = directHit;
3674 impactEffectsData.m_ComponentIndex = componentIndex;
3675 impactEffectsData.m_Surface = surface;
3676 impactEffectsData.m_Position = pos;
3677 impactEffectsData.m_ImpactType =
ImpactTypes.MELEE;
3679 impactEffectsData.m_ExitPosition =
"0 0 0";
3680 impactEffectsData.m_InSpeed =
"0 0 0";
3681 impactEffectsData.m_OutSpeed =
"0 0 0";
3682 impactEffectsData.m_IsDeflected =
false;
3683 impactEffectsData.m_AmmoType = ammoType;
3684 impactEffectsData.m_IsWater = isWater;
3687 directHit.OnReceivedHit(impactEffectsData);
3695 m_NoiseParams.LoadFromPath(
"cfgAmmo " + ammoType +
" NoiseHit");
3698 if (surfaceCoef == 0)
3737 if (pFov < OPTIONS_FIELD_OF_VIEW_MIN)
3738 pFov = OPTIONS_FIELD_OF_VIEW_MIN;
3740 if (pFov > OPTIONS_FIELD_OF_VIEW_MAX)
3741 pFov = OPTIONS_FIELD_OF_VIEW_MAX;
3754 NumericOptionsAccess noa;
3757 return noa.ReadValue();
3794 string cfg_path =
"CfgWeapons " + weaponInHand.GetType() +
" chamberableFrom";
3795 g_Game.ConfigGetTextArray(cfg_path, ammo_names);
3797 foreach (
string ammo_name : ammo_names)
3799 if (ammo.GetType() == ammo_name)
3828 ListOptionsAccess language_option;
3832 if (language_option)
3834 idx = language_option.GetIndex();
3852 #ifdef DIAG_DEVELOPER
3854 if (FeatureTimeAccel.GetFeatureTimeAccelEnabled(ETimeAccelCategories.FOOD_DECAY))
3887#ifdef PLATFORM_CONSOLE
3895#ifdef PLATFORM_CONSOLE
3905#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 int GetExplosionParticleID(string ammoName, string surfaceName)
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 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(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.
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 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.
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.
array< string > 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.