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);
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 layoutRoot.FindAnyWidget(
"toolbar_bg").Show(
true);
142 #ifdef BUILD_EXPERIMENTAL
143 layoutRoot.FindAnyWidget(
"notification_root").Show(
true);
153 super.OnClick(w,
x,
y, button);
166 layoutRoot.Show(
true);
173 layoutRoot.Show(
false);
216 g_Game.SetKeyboardHandle(
this);
225 g_Game.SetKeyboardHandle(null);
235 m_btnLeave = ButtonWidget.Cast(layoutRoot.FindAnyWidget(
"btnLeave"));
237 layoutRoot.FindAnyWidget(
"notification_root").Show(
false);
239 #ifdef PLATFORM_CONSOLE
240 layoutRoot.FindAnyWidget(
"toolbar_bg").Show(
true);
244 #ifdef BUILD_EXPERIMENTAL
245 layoutRoot.FindAnyWidget(
"notification_root").Show(
true);
255 super.OnClick(w,
x,
y, button);
268 layoutRoot.Show(
true);
269 m_HintPanel =
new UiHintPanelLoading(layoutRoot.FindAnyWidget(
"hint_frame0"));
276 layoutRoot.Show(
false);
283 TimeConversions.ConvertSecondsToFullTime(time,
m_FullTime);
285 text =
"#menu_loading_in_";
287 text =
"#dayz_game_spawning_in_";
298 text =
Widget.TranslateString(text);
352 m_WidgetRoot = game.GetWorkspace().CreateWidgets(
"gui/layouts/day_z_connection_lost.layout");
363 if (
g_Game.GetUIManager().IsDialogVisible())
365 g_Game.GetUIManager().HideDialog();
443 int value = outValue.
ToInt();
457 float value = outValue.
ToFloat();
494 int value = outValue.
ToInt();
510 float value = outValue.
ToFloat();
683 MISSION_CONTROLLER_SELECT
711 m_WidgetRoot = game.GetLoadingWorkspace().CreateWidgets(
"gui/layouts/loading.layout");
730 m_WidgetRoot.FindAnyWidget(
"notification_root").Show(
false);
732 #ifdef PLATFORM_CONSOLE
734 #ifdef BUILD_EXPERIMENTAL
738 expNotification.Show(
true);
752 game.GetBacklit().LoadingAnim();
839 if (
m_DayZGame.GetUIManager().IsDialogVisible())
844 if (
m_DayZGame.GetMissionState() == DayZGame.MISSION_STATE_MAINMENU)
864 ProgressAsync.SetProgressData(pText);
865 ProgressAsync.SetUserData(lIcon);
962 #ifdef DIAG_DEVELOPER
985 static bool m_IsPreviewSpawn;
987 #ifdef DIAG_DEVELOPER
988 ref CameraToolsMenuServer m_CameraToolsMenuServer;
996#ifdef PLATFORM_CONSOLE
1063 string path =
"cfgVehicles";
1064 string child_name =
"";
1067 for (
int p = 0; p < count; ++p)
1088 Print(
"~DayZGame()");
1168 while (pos_cur != -1)
1171 pos_cur =
path.IndexOfFrom(pos_cur + 1 ,
"\\");
1375 return mission.CreateScriptedMenu(
id);
1384 #ifdef ENABLE_LOGGING
1385 Print(
"Reloading mission module!");
1439 switch (eventTypeId)
1465 #ifdef PLATFORM_CONSOLE
1519 #ifdef PLATFORM_CONSOLE
1531 #ifdef PLATFORM_CONSOLE
1532 #ifndef PLATFORM_WINDOWS
1551 int duration = conLost_params.param1;
1628 string msg1 = loginStatusParams.param1;
1629 string msg2 = loginStatusParams.param2;
1638 finalMsg +=
"\n" + msg2;
1645 finalMsg = msg1 +
" " + msg2;
1652 g_Game.SetGameState(DayZGameState.CONNECTING);
1658 g_Game.SetGameState(DayZGameState.MAIN_MENU);
1672 Print(
"### DLC Ownership failed !!! Map: " + dlcParams.param1);
1679 if (
Class.
CastTo(connectivityStatsParams, params))
1684 if (pingAvg <
GetWorld().GetPingWarningThreshold())
1688 else if (pingAvg <
GetWorld().GetPingCriticalThreshold())
1704 #ifdef DIAG_DEVELOPER
1705 m_ServerFpsStatsParams = serverFpsStatsParams;
1707 float fps = serverFpsStatsParams.param1;
1708 if (fps >
GetWorld().GetServerFpsWarningThreshold())
1712 else if (fps >
GetWorld().GetServerFpsCriticalThreshold())
1730 mission.OnEvent(eventTypeId, params);
1735 emh.
OnEvent(eventTypeId, params);
1761 #ifdef DIAG_DEVELOPER
1762 private void DrawPerformanceStats(
float pingAct,
float pingAvg,
float throttleInput,
float throttleOutput)
1767 if ( pingAvg >=
GetWorld().GetPingCriticalThreshold())
1769 else if ( pingAvg >=
GetWorld().GetPingWarningThreshold())
1775 DbgUI.
PlotLive(
"pingAvg history:", 300, 125, pingAvg, 100, 100 );
1776 DbgUI.
Text(
"Server Fps Warning Threshold:" +
GetWorld().GetServerFpsWarningThreshold());
1777 DbgUI.
Text(
"Server Fps Critical Threshold:" +
GetWorld().GetServerFpsCriticalThreshold());
1778 if (m_ServerFpsStatsParams)
1781 if ( m_ServerFpsStatsParams.param1 <= GetWorld().GetServerFpsCriticalThreshold())
1783 else if ( m_ServerFpsStatsParams.param1 <= GetWorld().GetServerFpsWarningThreshold())
1786 DbgUI.
ColoredText(color,
"serverFPS:" + m_ServerFpsStatsParams.param1.ToString() );
1787 DbgUI.
PlotLive(
"serverFPS history:", 300, 125, m_ServerFpsStatsParams.param1, 100, 100 );
1791 DbgUI.
PlotLive(
"serverFrameTime history:", 300, 75, m_ServerFpsStatsParams.param2, 100, 100 );
1794 if (m_ServerFpsStatsParams.param3 > 0)
1797 DbgUI.
ColoredText(color,
"physStepsSkippedServer:" + m_ServerFpsStatsParams.param3.ToString() );
1798 DbgUI.
PlotLive(
"physStepsSkippedServer history:", 300, 75, m_ServerFpsStatsParams.param3, 100, 100 );
1801 if (m_ServerFpsStatsParams.param4 > 0)
1803 DbgUI.
ColoredText(color,
"physStepsSkippedClient:" + m_ServerFpsStatsParams.param4.ToString() );
1804 DbgUI.
PlotLive(
"physStepsSkippedClient history:", 300, 75, m_ServerFpsStatsParams.param4, 100, 100 );
1807 DbgUI.Text(
"throttleInput:" + throttleInput);
1808 DbgUI.PlotLive(
"throttleInput history:", 300, 75, throttleInput, 100, 50 );
1809 DbgUI.Text(
"throttleOutput:" + throttleOutput);
1810 DbgUI.PlotLive(
"throttleOutput history:", 300, 75, throttleOutput, 100, 50 );
1817 m_Notifications.AddVoiceNotification(vonStartParams.param2, vonStartParams.param1);
1851 LoginQueueStatic loginQueue;
1854 loginQueue.Update(timeslice);
1939 PPERequesterBank.GetRequester(PPERequester_DeathDarkening).Start(
new Param1<float>(1.0));
1986 if (duration < 0 &&
GetGameState() == DayZGameState.IN_GAME)
2001 switch (progressState)
2076 #ifndef PLATFORM_PS4
2146 m_IntroMenu.FindAnyWidget(
"notification_root").Show(
false);
2149 string text =
Widget.TranslateString(
"#console_start_game");
2150 #ifdef PLATFORM_XBOX
2153 text_widget.SetText(
string.Format(text,
"<image set=\"xbox_buttons\" name=\"A\" />"));
2155 text_widget.SetText(
string.Format(text,
"<image set=\"xbox_buttons\" name=\"A\" />"));
2159 string confirm =
"cross";
2168 text_widget.SetText(
string.Format(text,
"<image set=\"playstation_buttons\" name=\"" + confirm +
"\" />"));
2172 #ifdef PLATFORM_CONSOLE
2173 #ifdef PLATFORM_XBOX
2174 #ifdef BUILD_EXPERIMENTAL
2175 m_IntroMenu.FindAnyWidget(
"notification_root").Show(
true);
2196 #ifdef PLATFORM_CONSOLE
2213 #ifdef PLATFORM_CONSOLE
2234 #ifndef PLATFORM_WINDOWS
2235 #ifdef PLATFORM_CONSOLE
2260#ifdef PLATFORM_WINDOWS
2291 #ifndef PLATFORM_WINDOWS
2292 #ifdef PLATFORM_CONSOLE
2377 case DayZLoadState.JOIN_START:
2382 case DayZLoadState.PARTY_START:
2387 case DayZLoadState.MAIN_MENU_START:
2392 case DayZLoadState.CONNECT_START:
2397 case DayZLoadState.MISSION_START:
2407 g_Game.SetHudBrightness(
g_Game.GetHUDBrightnessSetting());
2424 if (
GetInput().IsActiveGamepadSelected())
2433 #ifdef PLATFORM_CONSOLE
2434 #ifndef PLATFORM_WINDOWS
2476 #ifdef PLATFORM_CONSOLE
2490 case DayZLoadState.JOIN_USER_SELECT:
2496 case DayZLoadState.PARTY_USER_SELECT:
2503 case DayZLoadState.CONNECT_USER_SELECT:
2509 case DayZLoadState.MAIN_MENU_USER_SELECT:
2511 SetLoadState(DayZLoadState.MAIN_MENU_CONTROLLER_SELECT);
2516 case DayZLoadState.MISSION_USER_SELECT:
2530 if (
GetLoadState() == DayZLoadState.JOIN_CONTROLLER_SELECT)
2541 case DayZLoadState.CONNECT_CONTROLLER_SELECT:
2547 case DayZLoadState.PARTY_CONTROLLER_SELECT:
2553 case DayZLoadState.MAIN_MENU_CONTROLLER_SELECT:
2590 uid.
Split(
":", output);
2592 port = output[1].ToInt();
2601 string uid = ip +
":" + port;
2628 string uid = ip +
":" + port;
2630 return (index >= 0);
2670 if (displayJoinError)
2716 if (
g_Game.GetGameState() != DayZGameState.MAIN_MENU)
2726 SetLoadState(DayZLoadState.MAIN_MENU_CONTROLLER_SELECT);
2785 if (key ==
KeyCode.KC_LCONTROL)
2823 if (key ==
KeyCode.KC_LCONTROL)
2861 mission.OnMouseButtonPress(button);
2871 mission.OnMouseButtonRelease(button);
2896 bool gameIsRunning =
false;
2900 gameIsRunning =
true;
2950 #ifdef DIAG_DEVELOPER
2963 DrawPerformanceStats(pingAct, pingAvg, throttleInput, throttleOutput);
2983 bool gameIsRunning =
false;
2987 gameIsRunning =
true;
3014 super.OnRPC(sender, target, rpc_type, ctx);
3015 Event_OnRPC.Invoke(sender, target, rpc_type, ctx);
3022 target.OnRPC(sender, rpc_type, ctx);
3030 case ERPCs.RPC_CFG_GAMEPLAY_SYNC:
3035 case ERPCs.RPC_UNDERGROUND_SYNC:
3040 case ERPCs.RPC_PLAYERRESTRICTEDAREAS_SYNC:
3045 case ERPCs.RPC_SEND_NOTIFICATION:
3052 ctx.
Read(show_time);
3053 ctx.
Read(detail_text);
3058 case ERPCs.RPC_SEND_NOTIFICATION_EXTENDED:
3060 float show_time_ext;
3061 string title_text_ext;
3062 string detail_text_ext;
3065 ctx.
Read(show_time_ext);
3066 ctx.
Read(title_text_ext);
3067 ctx.
Read(detail_text_ext);
3075 case ERPCs.RPC_SOUND_HELICRASH:
3083 if (ctx.
Read(playCrashSound))
3085 playSound = playCrashSound.param1;
3086 pos = playCrashSound.param2;
3099 case ERPCs.RPC_SOUND_ARTILLERY:
3102 Param1<vector> playArtySound =
new Param1<vector>(
vector.
Zero);
3103 if (ctx.
Read(playArtySound))
3105 position = playArtySound.param1;
3123 case ERPCs.RPC_SOUND_CONTAMINATION:
3127 Param1<vector> playContaminatedSound =
new Param1<vector>(
vector.
Zero);
3128 if (ctx.
Read(playContaminatedSound))
3130 soundPos = playContaminatedSound.param1;
3150 camera.SpawnCameraShake(strength_factor * 4);
3157 case ERPCs.RPC_SOUND_ARTILLERY_SINGLE:
3164 if (ctx.
Read(playArtyShotSound))
3166 soundPosition = playArtyShotSound.param1;
3167 delayedSoundPos = playArtyShotSound.param2;
3168 soundDelay = playArtyShotSound.param3;
3188 case ERPCs.RPC_SET_BILLBOARDS:
3193 Param1<int> indexP =
new Param1<int>(-1);
3194 if (ctx.
Read(indexP))
3196 int index = indexP.param1;
3204 case ERPCs.RPC_USER_SYNC_PERMISSIONS:
3207 if (ctx.
Read(mute_list))
3209 for (
int i = 0; i < mute_list.Count(); i++)
3211 string uid = mute_list.GetKey(i);
3212 bool mute = mute_list.GetElement(i);
3231 case ERPCs.DEV_SET_WEATHER:
3233 Param1<DebugWeatherRPCData> p1data =
new Param1<DebugWeatherRPCData>(null);
3235 if ( ctx.
Read(p1data) )
3268 ErrorEx(
"Failed to read weather debug data");
3275 #ifdef DIAG_DEVELOPER
3277 case ERPCs.DIAG_CAMERATOOLS_CAM_DATA:
3279 if (!m_CameraToolsMenuServer)
3281 m_CameraToolsMenuServer =
new CameraToolsMenuServer;
3283 m_CameraToolsMenuServer.OnRPC(rpc_type, ctx);
3287 case ERPCs.DIAG_CAMERATOOLS_CAM_SUBSCRIBE:
3289 if (!m_CameraToolsMenuServer)
3291 m_CameraToolsMenuServer =
new CameraToolsMenuServer;
3293 m_CameraToolsMenuServer.OnRPC(rpc_type, ctx);
3362 #ifdef PLATFORM_CONSOLE
3408 m_NoiseParams.LoadFromPath(
string.Format(
"cfgAmmo %1 NoiseExplosion", ammoType));
3411 if (multiplier == 0)
3420 float energyFactor,
float explosionFactor,
bool isWater,
string ammoType)
3427 source.OnExplosionEffects(source, directHit, componentIndex, surface, pos, surfNormal, energyFactor, explosionFactor, isWater, ammoType);
3429 if (source.ShootsExplosiveAmmo() )
3432 if (particleID > -1)
3460 if (simulation ==
"shotArrow")
3467 arrow.PlaceOnSurface();
3468 arrow.SetFromProjectile(info);
3479 if (info.GetIsWater())
3483 if (simulation ==
"shotArrow")
3487 vector pos = info.GetPos();
3488 vector dir = -info.GetInVelocity();
3494 arrow.SetDirection(dir);
3495 arrow.SetFromProjectile(info);
3505 if (simulation ==
"shotArrow")
3514 EntityAI parent = ent.GetHierarchyParent();
3515 if (parent && parent.IsPlayer())
3518 arrow.PlaceOnSurface();
3519 arrow.SetFromProjectile(info);
3525 vector pos = info.GetPos();
3526 vector dir = -info.GetInVelocity();
3532 arrow.SetDirection(dir);
3533 arrow.SetFromProjectile(info);
3541 vector exitPos,
vector inSpeed,
vector outSpeed,
bool isWater,
bool deflected,
string ammoType)
3544 ImpactEffectsData impactEffectsData =
new ImpactEffectsData();
3545 impactEffectsData.m_DirectHit = directHit;
3546 impactEffectsData.m_ComponentIndex = componentIndex;
3547 impactEffectsData.m_Surface = surface;
3548 impactEffectsData.m_Position = pos;
3549 impactEffectsData.m_ImpactType =
ImpactTypes.UNKNOWN;
3550 impactEffectsData.m_SurfaceNormal = surfNormal;
3551 impactEffectsData.m_ExitPosition = exitPos;
3552 impactEffectsData.m_InSpeed = inSpeed;
3553 impactEffectsData.m_OutSpeed = outSpeed;
3554 impactEffectsData.m_IsDeflected = deflected;
3555 impactEffectsData.m_AmmoType = ammoType;
3556 impactEffectsData.m_IsWater = isWater;
3560 directHit.OnReceivedHit(impactEffectsData);
3569 if (source && source.ShootsExplosiveAmmo() && !deflected && outSpeed ==
vector.
Zero)
3571 if (ammoType ==
"Bullet_40mm_ChemGas")
3575 else if (ammoType ==
"Bullet_40mm_Explosive")
3577 DamageSystem.ExplosionDamage(
EntityAI.Cast(source), null,
"Explosion_40mm_Ammo", pos,
DamageType.EXPLOSION);
3582 m_NoiseParams.LoadFromPath(
"cfgAmmo " + ammoType +
" NoiseHit");
3585 float coefAdjusted = surfaceCoef * inSpeed.
Length() /
ConfigGetFloat(
"cfgAmmo " + ammoType +
" initSpeed");
3586 if (coefAdjusted == 0)
3595 bool isWater,
string ammoType)
3598 ImpactEffectsData impactEffectsData =
new ImpactEffectsData();
3599 impactEffectsData.m_DirectHit = directHit;
3600 impactEffectsData.m_ComponentIndex = componentIndex;
3601 impactEffectsData.m_Surface = surface;
3602 impactEffectsData.m_Position = pos;
3603 impactEffectsData.m_ImpactType =
ImpactTypes.MELEE;
3605 impactEffectsData.m_ExitPosition =
"0 0 0";
3606 impactEffectsData.m_InSpeed =
"0 0 0";
3607 impactEffectsData.m_OutSpeed =
"0 0 0";
3608 impactEffectsData.m_IsDeflected =
false;
3609 impactEffectsData.m_AmmoType = ammoType;
3610 impactEffectsData.m_IsWater = isWater;
3613 directHit.OnReceivedHit(impactEffectsData);
3621 m_NoiseParams.LoadFromPath(
"cfgAmmo " + ammoType +
" NoiseHit");
3624 if (surfaceCoef == 0)
3663 if (pFov < OPTIONS_FIELD_OF_VIEW_MIN)
3664 pFov = OPTIONS_FIELD_OF_VIEW_MIN;
3666 if (pFov > OPTIONS_FIELD_OF_VIEW_MAX)
3667 pFov = OPTIONS_FIELD_OF_VIEW_MAX;
3680 NumericOptionsAccess noa;
3683 return noa.ReadValue();
3720 string cfg_path =
"CfgWeapons " + weaponInHand.GetType() +
" chamberableFrom";
3723 foreach (
string ammo_name : ammo_names)
3725 if (ammo.GetType() == ammo_name)
3754 ListOptionsAccess language_option;
3758 if (language_option)
3760 idx = language_option.GetIndex();
3778 #ifdef DIAG_DEVELOPER
3780 if (FeatureTimeAccel.GetFeatureTimeAccelEnabled(ETimeAccelCategories.FOOD_DECAY))
3813#ifdef PLATFORM_CONSOLE
3821#ifdef PLATFORM_CONSOLE
3831#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...
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)
proto native void SetProfileString(string name, string value)
Sets string to profile variable.
array< int > GetConnectedInputDeviceList()
proto native World GetWorld()
override ScriptCallQueue GetCallQueue(int call_category)
override void OnDeviceReset()
proto native Object CreateObject(string type, vector pos, bool create_local=false, bool init_ai=false, bool create_physics=true)
Creates object of certain type.
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)
proto native void ConfigGetTextArray(string path, out TStringArray values)
Get array of strings from config on path.
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)
proto bool ConfigGetText(string path, out string value)
Get string value from config on path.
void RefreshCurrentServerInfo()
override void OnKeyRelease(int key)
proto bool GetProfileString(string name, out string value)
Gets string from profile variable.
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 Object CreateObjectEx(string type, vector pos, int iFlags, int iRotation=RF_DEFAULT)
Creates object of certain type.
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 SetLoginTimerFinished()
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 native vector GetPosition()
proto native string GetAmmoType()
proto native bool IsWater()
proto native string GetSurface()
proto native vector GetSurfaceNormal()
proto native float GetSurfaceNoiseMultiplier()
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
bool CloseAllSubmenus()
Close all opened menus except first menu.
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 void CloseDialog()
proto native UIScriptedMenu ShowScriptedMenu(UIScriptedMenu menu, UIMenuPanel parent)
static void OnRPC(ParamsReadContext ctx)
static VONManagerBase GetInstance()
Main way to access VONManager functionality from script.
void OnEvent(EventType eventTypeId, Param params)
Manager class which handles Voice-over-network functionality while player is connected to a server.
proto native Fog GetFog()
Returns a fog phenomenon object.
proto native void SetDynVolFogHeightBias(float value, float time=0)
Sets the 'dynamic' volumetric height bias. Takes effect only if enabled via world config.
proto native WindMagnitude GetWindMagnitude()
Returns a wind magnitude phenomenon object.
proto native void SetDynVolFogDistanceDensity(float value, float time=0)
Sets the dynamic volumetric fog distance density. Only takes effect if dynamic volumetric fog is enab...
proto native Snowfall GetSnowfall()
Returns a snowfall phenomenon object.
proto native WindDirection GetWindDirection()
Returns a wind direction phenomenon object.
proto native void SetDynVolFogHeightDensity(float value, float time=0)
Sets the dynamic volumetric fog height density. Only takes effect if dynamic volumetric fog is enable...
proto native Rain GetRain()
Returns a rain phenomenon object.
proto native Overcast GetOvercast()
Returns an overcast phenomenon object.
proto native void Set(float forecast, float time=0, float minDuration=0)
Sets the forecast.
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
proto native CGame GetGame()
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,...
proto native float GetVOIPVolume()
proto native float GetMusicVolume()
proto native float GetSoundVolume()
class JsonUndergroundAreaTriggerData GetPosition
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.