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
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 bool IsOnline()
proto native owned string GetName()
proto native EBiosError ParsePartyAsync(string party_data)
Parse the party data from from command line parameters.
proto native EBiosError LogOnUserAsync(BiosUser user)
Display a system dependant ui for log-on.
proto native EBiosError ParseJoinAsync(string join_data)
Parse the join data from from command line parameters.
proto native BiosUser GetTitleInitiator()
Gets the initiatior of the title.
proto native BiosUser GetSelectedUser()
Returns the currently selected user.
bool SelectUserEx(BiosUser user)
proto native EBiosError PickUserAsync()
Display a system dependant account picket.
proto native EBiosError GetUserDatabaseIdAsync()
Call async function to get database ID.
Static data of bleeding chance probabilities; currently used for melee only.
static void InitBleedChanceData()
ref LoginQueueBase m_LoginQueue
proto native bool IsAppActive()
Returns if the application is focused on PC, returns true always on console.
void LoadingHide(bool force=false)
bool m_IsWorldWetTempUpdateEnabled
void LoadProgressUpdate(int progressState, float progress, string title)
ref ScriptInvoker m_YieldDataInitInvoker
void ExplosionEffects(Object source, Object directHit, int componentIndex, string surface, vector pos, vector surfNormal, float energyFactor, float explosionFactor, bool isWater, string ammoType)
void RemoveVoiceNotification(VONStopSpeakingEventParams vonStopParams)
int GetCurrentDisplayLanguageIdx()
ref LoadingScreen m_loading
static ref TemperatureAccessManager m_TAManager
bool OnConnectivityStatChange(EConnectivityStatType type, EConnectivityStatLevel newLevel, EConnectivityStatLevel oldLevel)
proto native void SetEVUser(float value)
Sets custom camera camera EV. range: -50.0..50.0? //TODO.
void UpdateInputDeviceDisconnectWarning()
bool GetProfileOption(EDayZProfilesOptions option)
bool GetMouseCursorDesiredVisibility()
override DragQueue GetDragQueue()
ref ScriptInvoker m_updateQueue[CALL_CATEGORY_COUNT]
void AutoTestLaunch(string param)
static bool ReportModded()
void DelayedMidAirDetonation(float x, float y, float z)
bool m_early_access_dialog_accepted
void SetConnectivityStatState(EConnectivityStatType type, EConnectivityStatLevel level)
const int MISSION_STATE_MAINMENU
static bool CheckAmmoCompability(EntityAI weaponInHand, EntityAI ammo)
void SetNewCharacter(bool state)
DayZGameState m_GameState
override void OnActivateMessage()
ScriptInvoker GetYieldDataInitInvoker()
void OnProjectileStoppedInTerrain(TerrainCollisionInfo info)
proto native Mission GetMission()
ref Widget m_GamepadDisconnectMenu
string GetPlayerGameName()
proto native int ConfigGetChildrenCount(string path)
Get count of subclasses in config class on path.
override void OnKeyRelease(int key)
void OnGameplayDataHandlerLoad()
void SetUserFOV(float pFov)
void CreateGamepadDisconnectMenu()
void SetPlayerGameName(string name)
float m_FoodDecayModifier
bool GetProfileOptionBool(EDayZProfilesOptions option)
proto native bool GetModToBeReported()
void OnRespawnEvent(int time)
override void OnKeyPress(int key)
proto bool GetHostAddress(out string address, out int port)
Gets the server address.
proto native void StartRandomCutscene(string world)
Starts intro.
MenuDefaultCharacterData GetMenuDefaultCharacterData(bool fill_data=true)
proto native void DisconnectSessionForce()
Forces disconnect from current multiplayer session even if not yet in the game.
proto native float ConfigGetFloat(string path)
Get float value from config on path.
void ConnectFromServerBrowser(string ip, int port, string password="")
void AddVisitedServer(string ip, int port)
ref ScriptCallQueue m_callQueue[CALL_CATEGORY_COUNT]
override string CreateRandomPlayer()
void ResetProfileOptions()
void DeleteGamepadDisconnectMenu()
void SetProfileOptionFloat(EDayZProfilesOptions option, float value)
proto native Input GetInput()
proto native void SetPlayerName(string name)
Sets current player name.
float GetFoodDecayModifier()
float GetProfileOptionDefaultFloat(EDayZProfilesOptions option)
BillboardSetHandler GetBillboardHandler()
bool GetProfileOptionDefault(EDayZProfilesOptions option)
ref TimerQueue m_timerQueue[CALL_CATEGORY_COUNT]
void ClearConnectivityStates()
override bool OnInitialize()
void RefreshCurrentServerInfo()
proto native AbstractSoundScene GetSoundScene()
override TimerQueue GetTimerQueue(int call_category)
float GetPreviousEVValue()
void AddVoiceNotification(VONStopSpeakingEventParams vonStartParams)
void SetMouseCursorDesiredVisibility(bool visible)
static bool m_ReportModded
proto native DayZPlayer GetPlayer()
proto native void GetProfileStringList(string name, out TStringArray values)
Gets array of strings from profile variable.
bool CanDisplayMouseCursor()
extend as needed, only game focus and M&K setting (consoles only!) are checked natively
void SetLoadState(DayZLoadState state)
override void OnPostUpdate(bool doSim, float timeslice)
ref DragQueue m_dragQueue
int GetProfileOptionDefaultInt(EDayZProfilesOptions option)
DayZGameState GetGameState()
void LoginTimeCountdown()
bool IsWorldWetTempUpdateEnabled()
int m_OriginalCharactersCount
proto native void RequestExit(int code)
Sets exit code and quits in the right moment.
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)
EConnectivityStatLevel m_ConnectivityStatsStates[STATS_COUNT]
void SetMissionPath(string path)
Called from C++.
ref BillboardSetHandler m_BillboardSetHandler
float GetProfileOptionFloat(EDayZProfilesOptions option)
void StoreLoginDataPrepare()
override ScriptCallQueue GetCallQueue(int call_category)
bool GetProfileOptionDefaultBool(EDayZProfilesOptions option)
void OnPreloadEvent(vector pos)
override bool IsInventoryOpen()
void SetKeyboardHandle(UIScriptedMenu handler)
bool m_IsFoodDecayEnabled
proto native void MutePlayer(string muteUID, string playerUID, bool mute)
Mutes voice of source player to target player.
const int MISSION_STATE_GAME
void RefreshMouseCursorVisibility()
static ref NoiseParams m_NoiseParams
static ref ScriptInvoker Event_OnRPC
proto native int ConfigGetInt(string path)
Get int value from config on path.
override void OnEvent(EventType eventTypeId, Param params)
void OnProjectileStoppedInObject(ObjectCollisionInfo info)
const int MIN_ARTY_SOUND_RANGE
override void OnMouseButtonRelease(int button)
void DisconnectSessionScript(bool displayJoinError=false)
const float ARROW_PIERCE_DEPTH
ScriptModule m_mission_module
float GetCurrentEVValue()
proto native float SurfaceGetNoiseMultiplier(Object directHit, vector pos, int componentIndex)
DayZLoadState GetLoadState()
map< EDayZProfilesOptions, ref DayZProfilesOption > GetProfileOptionMap()
override void OnMouseButtonPress(int button)
proto native World GetWorld()
bool IsFoodDecayEnabled()
void EarlyAccessDialog(UIScriptedMenu parent)
void SetEVValue(float value)
ref array< string > m_CharClassNames
array< int > GetConnectedInputDeviceList()
ref ScriptInvoker m_postUpdateQueue[CALL_CATEGORY_COUNT]
void SetProfileOptionBool(EDayZProfilesOptions option, bool value)
void SetProfileOptionInt(EDayZProfilesOptions option, int value)
ref TStringArray m_Visited
bool m_CursorDesiredVisibilityScript
proto native bool IsClient()
proto native bool IsServer()
string m_MissionFolderPath
bool IsVisited(string ip, int port)
bool GetLastVisitedServer(out string ip, out int port)
override void OnAfterCreate()
override ScriptInvoker GetUpdateQueue(int call_category)
bool IsKindOf(string cfg_class_name, string cfg_parent_name)
Returns is class name inherited from parent class name.
int GetProfileOptionInt(EDayZProfilesOptions option)
override void OnDeviceReset()
ref EffectSound m_ArtySound
override void OnRPC(PlayerIdentity sender, Object target, int rpc_type, ParamsReadContext ctx)
ref DayZProfilesOptions m_DayZProfileOptions
void EnterLoginTime(UIMenuPanel parent)
void CloseCombatEffects(Object source, Object directHit, int componentIndex, string surface, vector pos, vector surfNormal, bool isWater, string ammoType)
void SetPreviousGamepad(int gamepad)
void CancelLoginTimeCountdown()
void OnMPConnectionLostEvent(int duration)
ref ConnectionLost m_connectionLost
proto bool ConfigGetChildName(string path, int index, out string name)
Get name of subclass in config class on path.
UIScriptedMenu m_keyboard_handler
const int MISSION_STATE_FINNISH
float GetHUDBrightnessSetting()
proto bool CommandlineGetParam(string name, out string value)
Get command line parameter value.
void ExplosionEffectsEx(Object source, Object directHit, int componentIndex, float energyFactor, float explosionFactor, HitInfo hitInfo)
int m_ConnectSteamQueryPort
native void CreateMission(string path)
Create only enforce script mission, used for mission script reloading.
void UpdateLoginQueue(float timeslice)
proto native bool IsMultiplayer()
proto native BiosUserManager GetUserManager()
ref EffectSound m_CrashSound
proto native owned string GetMainMenuWorld()
override void OnDeactivateMessage()
proto native UIManager GetUIManager()
static ref AmmoCamParams m_AmmoShakeParams
ref NotificationUI m_Notifications
proto native Weather GetWeather()
Returns weather controller object.
string GetMissionFolderPath()
void SelectUser(int gamepad=-1)
void OnProjectileStopped(ProjectileStoppedInfo info)
void SetHudBrightness(float value)
void OnLoginTimeEvent(int loginTime)
void EnterLoginQueue(UIMenuPanel parent)
static float GetUserFOVFromConfig()
void SetGameState(DayZGameState state)
override string CreateDefaultPlayer()
override UIScriptedMenu CreateScriptedMenu(int id)
create custom main menu part (submenu)
proto native WorkspaceWidget GetWorkspace()
proto native void SaveProfile()
Saves profile on disk.
void SetMissionState(int state)
void SetConnecting(bool value)
Returns true when connecting to server.
proto native NoiseSystem GetNoiseSystem()
override TStringArray ListAvailableCharacters()
proto native void SetProfileStringList(string name, TStringArray values)
Sets array of strings to profile variable.
void RegisterProfilesOptions()
override void OnUpdate(bool doSim, float timeslice)
void ConnectFromJoin(string ip, int port)
float GetFOVByZoomType(ECameraZoomType type)
proto native void AbortMission()
Returns to main menu, leave world empty for using last mission world.
void SetDatabaseID(string id)
proto native void StoreLoginData(ParamsWriteContext ctx)
Stores login userdata as parameters which are sent to server.
ref array< int > m_ConnectedInputDeviceList
void UpdateVoiceLevel(int level)
void InitCharacterMenuDataInfo(int menudata_count)
override ScriptInvoker GetPostUpdateQueue(int call_category)
proto native void PlayMission(string path)
Starts mission (equivalent for SQF playMission). You MUST use double slash \.
DayZLoadState m_LoadState
ref LoginTimeBase m_LoginTimeScreen
proto native void SetMainMenuWorld(string world)
bool m_ShouldShowControllerDisconnect
void ConnectFromServerBrowserEx(string ip, int port, int steamQueryPort, string password="")
void DisconnectSessionEx(DisconnectSessionFlags flags)
bool ShouldShowControllerDisconnect()
void SetProfileOption(EDayZProfilesOptions option, bool value)
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 SetText(string text)
void ConnectionLost(DayZGame game)
void SetDuration(float duration)
static void RegisterSoundSet(string sound_set)
static string GetSoundSetByHash(int hash)
static ref map< int, string > m_Mappings
override void StopDeathDarkeningEffect()
static ref ScriptInvoker m_OnFloatOptionChanged
bool GetProfileOption(EDayZProfilesOptions option)
ref map< EDayZProfilesOptions, ref DayZProfilesOptionFloat > m_DayZProfilesOptionsFloat
bool GetProfileOptionBool(EDayZProfilesOptions option)
ref map< EDayZProfilesOptions, ref DayZProfilesOption > m_DayZProfilesOptions
DEPRECATED.
void SetProfileOptionFloat(EDayZProfilesOptions option, float value)
ref map< EDayZProfilesOptions, ref DayZProfilesOptionBool > m_DayZProfilesOptionsBool
float GetProfileOptionDefaultFloat(EDayZProfilesOptions option)
bool GetProfileOptionDefault(EDayZProfilesOptions option)
int GetProfileOptionDefaultInt(EDayZProfilesOptions option)
static ref ScriptInvoker m_OnIntOptionChanged
float GetProfileOptionFloat(EDayZProfilesOptions option)
ref map< EDayZProfilesOptions, ref DayZProfilesOptionInt > m_DayZProfilesOptionsInt
bool GetProfileOptionDefaultBool(EDayZProfilesOptions option)
void SetProfileOptionBool(EDayZProfilesOptions option, bool value)
void SetProfileOptionInt(EDayZProfilesOptions option, int value)
void RegisterProfileOptionFloat(EDayZProfilesOptions option, string profileOptionName, float defaultValue=0.0)
int GetProfileOptionInt(EDayZProfilesOptions option)
static ref ScriptInvoker m_OnBoolOptionChanged
void RegisterProfileOption(EDayZProfilesOptions option, string profileOptionName, bool def=true)
void DayZProfilesOptions()
void RegisterProfileOptionBool(EDayZProfilesOptions option, string profileOptionName, bool defaultValue=true)
map< EDayZProfilesOptions, ref DayZProfilesOptionBool > GetProfileOptionMap()
void RegisterProfileOptionInt(EDayZProfilesOptions option, string profileOptionName, int defaultValue=0)
void SetProfileOption(EDayZProfilesOptions option, bool value)
float m_SnowfallInterpolation
float m_VolFogHeightDensity
float m_VolFogDistanceDensityTime
float m_WindMagnitudeValue
float m_WindDirectionValue
float m_VolFogDistanceDensity
float m_VolFogHeightDensityTime
float m_WindDInterpolation
float m_OvercastInterpolation
float m_VolFogHeightBiasTime
float m_RainInterpolation
Wrapper class for managing sound through SEffectManager.
override void SetAutodestroy(bool auto_destroy)
Sets whether Effect automatically cleans up when it stops.
The error handler itself, for managing and distributing errors to modules Manages the ErrorHandlerMod...
static proto int ThrowError(ErrorCategory category, int code, string additionalInfo="")
Creates and throws the error code, sending it to the handler of the category.
static proto native ErrorModuleHandler GetInstance()
Gets the EMH Instance.
void OnEvent(EventType eventTypeId, Param params)
is called by DayZGame to pass Events.
struct that keeps Time relevant information for future formatting
proto native OptionsAccess GetOptionByType(int accessType)
Get option by AccessType.
proto native void Initialize()
Initializes option values with the current users settings.
proto GizmoSpaceMode GetSpaceMode()
Get current space mode for all gizmos.
proto void SetSpaceMode(GizmoSpaceMode mode)
Set current space mode for all gizmos.
proto GizmoTransformMode GetTransformMode()
Get current transform mode for all gizmos.
proto void SetTransformMode(GizmoTransformMode mode)
Set current transform mode for all gizmos.
proto native bool IsWater()
proto native string GetSurface()
proto native vector GetPosition()
proto native vector GetSurfaceNormal()
proto native float GetSurfaceNoiseMultiplier()
proto native string GetAmmoType()
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.
ref FullTimeData m_FullTime
TextWidget m_txtDescription
void SetRespawn(bool value)
void SetStatus(string status)
bool CanChangeHintPage(float timeAccu)
override bool OnClick(Widget w, int x, int y, int button)
LoginTime when using -connect since mission is not created yet.
void UpdateVoiceLevelWidgets(int level)
proto void AddNoisePos(EntityAI source_entity, vector pos, NoiseParams noise_params, float external_strenght_multiplier=1.0)
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'.
static void InitInstance()
static void CleanupInstance()
static void Update(float timeslice)
static void AddNotificationExtended(float show_time, string title_text, string detail_text="", string icon="")
Send custom notification from to local player.
const int DEFAULT_TIME_DISPLAYED
static void AddNotification(NotificationType type, float show_time, string detail_text="")
Send notification from default types to local player.
proto native vector GetHitObjPos()
proto native Object GetHitObj()
proto native int GetComponentIndex()
proto native vector GetHitObjRot()
static void OnGameplayDataHandlerLoad()
static BiosUser GetBiosUser()
static void SetMultiplayState(bool state)
static void LeaveGameplaySession()
static void LoadVoicePrivilege()
static void EnterGameplaySession()
static void GetCurrentServerInfo(string ip, int port)
static void LoadMPPrivilege()
static void SetBiosUser(BiosUser user)
static void ClearCurrentServerInfo()
Static component of PPE manager, used to hold the instance.
static PPEManager GetPPEManager()
Returns the manager instance singleton.
static void CreateManagerStatic()
static void DestroyManagerStatic()
Base Param Class with no parameters.
static const int CONTAMINATED_AREA_GAS_SHELL
static void PreloadParticles()
Preloads all particles.
proto int GetPingAvg()
ping range estimation
proto float GetOutputThrottle()
Throttling performed on output bandwidth since last update (percentage [0,1]).
proto string GetPlainId()
plaintext unique id of player (cannot be used in database or logs)
proto int GetPingAct()
ping range estimation
proto float GetInputThrottle()
Throttling performed on input bandwidth since last update(percentage [0,1]) (unknown value on Server)...
The class that will be instanced (moddable).
static proto native void DestroyAllPendingProgresses()
static proto native void SetUserData(Widget inst)
static proto native void SetProgressData(Widget inst)
proto native float GetProjectileDamage()
proto native vector GetPos()
proto native vector GetInVelocity()
proto native string GetAmmoType()
proto native Object GetSource()
Manager class for managing Effect (EffectParticle, EffectSound).
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.
ScriptCallQueue Class provide "lazy" calls - when we don't want to execute function immediately but l...
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 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 native void Tick(float timeslice)
executes calls on queue if their time is already elapsed, if 'repeat = false' call is removed from qu...
proto void Remove(func fn)
remove specific call from queue
ScriptInvoker Class provide list of callbacks usage:
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
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_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
int m_Lifetime
lifetime of character in seconds
proto native bool ShowQueuedDialog()
proto native int GetLoginQueuePosition()
proto native bool ShowCursor(bool visible)
natively checks game focus on cursor hiding
proto native UIScriptedMenu GetMenu()
Returns most-top open menu.
proto native UIScriptedMenu EnterScriptedMenu(int id, UIMenuPanel parent)
Create & open menu with specific id (see MenuID) and set its parent.
bool CloseAll()
Close all opened menus.
proto native UIScriptedMenu ShowScriptedMenu(UIScriptedMenu menu, UIMenuPanel parent)
proto native void ScreenFadeOut(float duration)
static void OnRPC(ParamsReadContext ctx)
void OnEvent(EventType eventTypeId, Param params)
Manager class which handles Voice-over-network functionality while player is connected to a server.
static VONManagerBase GetInstance()
Main way to access VONManager functionality from script.
Keeps information about currently loaded world, like temperature.
void UpdateWeatherEffects(Weather weather, float timeslice)
Updates local weather effects.
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
proto string ToString(bool simple=true)
static proto native float Distance(vector v1, vector v2)
Returns the distance between tips of two 3D vectors.
proto float Normalize()
Normalizes vector.
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).
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
class DayZPlayerCameraResult DayZPlayerCamera(DayZPlayer pPlayer, HumanInputController pInput)
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...
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
proto GizmoApi GetGizmoApi()
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 Text(string label)
static proto native void ColoredText(int color, string label)
static proto native void PlotLive(string label, int sizeX, int sizeY, float val, int timeStep=100, int historySize=30, int color=0xFFFFFFFF)
const string OPTIONS_SOUND_AMBIENT_SOUND_MODE
const float DZPLAYER_CAMERA_FOV_EYEZOOM_SHALLOW
const float DZPLAYER_CAMERA_FOV_EYEZOOM
FOV (vertical angle/2) in radians. Take care to modify also in "basicDefines.hpp".
const float LOADING_SCREEN_HINT_INTERVAL
const int CAMERA_SHAKE_ARTILLERY_DISTANCE2
const int CAMERA_SHAKE_ARTILLERY_DISTANCE
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 InverseLerp(float a, float b, float value)
Calculates the linear value that produces the interpolant value within the range [a,...
static proto float RandomFloat(float min, float max)
Returns a random float number between and min[inclusive] and max[exclusive].
static proto float Min(float x, float y)
Returns smaller of two given values.
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.
@ NONE
body is not in simulation, nor in collision world
proto native float GetSpeechExVolume()
proto native float GetMusicVolume()
proto native float GetSoundVolume()
proto native float GetVOIPVolume()
proto native float GetRadioVolume()
void Split(string sample, out array< string > output)
Splits string into array of strings separated by 'sample'.
proto native int ToInt()
Converts string to integer.
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 native float ToFloat()
Converts string to float.
proto native int Hash()
Returns hash of string.
proto native int Length()
Returns length of string.
proto bool GetCLIParam(string param, out string val)
Returns command line argument.
class NoiseSystem NoiseParams()
NotificationType
DEPRECATED (moved into NotificationSystem).
void ParticleManager(ParticleManagerSettings settings)
Constructor (ctor).