1480 {
1481 string address;
1482 int port;
1483 int high, low;
1484
1485 switch (eventTypeId)
1486 {
1488 {
1489 #ifndef SERVER
1490 #ifndef NO_GUI
1491
1493 #endif
1494 #endif
1495 break;
1496 }
1498 {
1499 #ifndef SERVER
1501 #endif
1503 ClientData.ResetClientData();
1504 break;
1505 }
1507 {
1513 #ifdef PLATFORM_CONSOLE
1515 {
1516 OnlineServices.LeaveGameplaySession();
1517 OnlineServices.ClearCurrentServerInfo();
1519 {
1521 }
1522 }
1524 #endif
1525
1526
1527 StatsEventDisconnectedData discData = new StatsEventDisconnectedData();
1530 Analytics.PlayerDisconnected(discData);
1531 break;
1532 }
1534 {
1538 ProgressAsync.DestroyAllPendingProgresses();
1539
1541 {
1543 }
1544
1545 break;
1546 }
1548 {
1550 ProgressAsync.DestroyAllPendingProgresses();
1551
1554
1555
1556 StatsEventSpawnedData spawnData = new StatsEventSpawnedData();
1561 {
1563 }
1566 Analytics.PlayerSpawned(spawnData);
1567
1568 #ifdef PLATFORM_CONSOLE
1570 OnlineServices.SetMultiplayState(true);
1571 #endif
1573 {
1576 {
1578 }
1579
1580 #ifdef PLATFORM_CONSOLE
1581 #ifndef PLATFORM_WINDOWS
1583 {
1584 OnlineServices.EnterGameplaySession();
1585 OnlineServices.LoadVoicePrivilege();
1586 }
1587 #endif
1588 #endif
1589 }
1590
1592
1593 break;
1594 }
1596 {
1598 if (Class.CastTo(conLost_params, params))
1599 {
1600 int duration = conLost_params.param1;
1602 }
1603 break;
1604 }
1606 {
1608 break;
1609 }
1611 {
1613 break;
1614 }
1616 {
1618 if (Class.CastTo(chat_params, params))
1619 {
1620
1621 }
1622 break;
1623 }
1625 {
1627 if (Class.CastTo(prog_params, params))
1629 break;
1630 }
1632 {
1634 if (Class.CastTo(loginTimeParams, params))
1635 {
1637 }
1638 break;
1639 }
1641 {
1643 if (Class.CastTo(respawnParams, params))
1644 {
1646 }
1647 break;
1648 }
1650 {
1652 if (Class.CastTo(preloadParams, params))
1653 {
1655 }
1656 break;
1657 }
1659 {
1661 if (Class.CastTo(logoutParams, params))
1662 {
1664 }
1665 break;
1666 }
1668 {
1669 OnlineServices.Init();
1670 break;
1671 }
1673 {
1675 Class.CastTo(loginStatusParams, params);
1676
1677 string msg1 = loginStatusParams.param1;
1678 string msg2 = loginStatusParams.param2;
1679 string finalMsg;
1680
1681
1683 {
1684 finalMsg = msg1;
1685
1687 finalMsg += "\n" + msg2;
1688
1690 }
1692 {
1693
1694 finalMsg = msg1 + " " + msg2;
1696 }
1697 break;
1698 }
1700 {
1701 g_Game.SetGameState(DayZGameState.CONNECTING);
1703 break;
1704 }
1706 {
1707 g_Game.SetGameState(DayZGameState.MAIN_MENU);
1710 {
1713 }
1714 break;
1715 }
1717 {
1719 if (Class.CastTo(dlcParams, params))
1720 {
1721 Print(
"### DLC Ownership failed !!! Map: " + dlcParams.param1);
1722 }
1723 break;
1724 }
1726 {
1728 if (Class.CastTo(connectivityStatsParams, params))
1729 {
1730 PlayerIdentity playerIdentity = connectivityStatsParams.param1;
1731
1733 if (pingAvg <
GetWorld().GetPingWarningThreshold())
1734 {
1736 }
1737 else if (pingAvg <
GetWorld().GetPingCriticalThreshold())
1738 {
1740 }
1741 else
1742 {
1744 }
1745 }
1746 break;
1747 }
1749 {
1751 if (Class.CastTo(serverFpsStatsParams, params))
1752 {
1753 #ifdef DIAG_DEVELOPER
1754 m_ServerFpsStatsParams = serverFpsStatsParams;
1755 #endif
1756 float fps = serverFpsStatsParams.param1;
1757 if (fps >
GetWorld().GetServerFpsWarningThreshold())
1758 {
1760 }
1761 else if (fps >
GetWorld().GetServerFpsCriticalThreshold())
1762 {
1764 }
1765 else
1766 {
1768 }
1769 }
1770 break;
1771 }
1772 }
1773
1774 VONManager.GetInstance().OnEvent(eventTypeId, params);
1775
1778 {
1780 }
1781
1782 ErrorModuleHandler emh = ErrorModuleHandler.GetInstance();
1783 if (emh)
1784 emh.
OnEvent(eventTypeId, params);
1785 }
void ParticleManager(ParticleManagerSettings settings)
Constructor (ctor)
void SetConnecting(bool value)
Returns true when connecting to server.
void SetConnectivityStatState(EConnectivityStatType type, EConnectivityStatLevel level)
void AddVisitedServer(string ip, int port)
DayZGameState GetGameState()
proto native World GetWorld()
override ScriptCallQueue GetCallQueue(int call_category)
proto bool GetHostAddress(out string address, out int port)
Gets the server address. (from client)
void LoadingHide(bool force=false)
proto native BiosUserManager GetUserManager()
void OnLoginTimeEvent(int loginTime)
void OnMPConnectionLostEvent(int duration)
void OnRespawnEvent(int time)
void OnPreloadEvent(vector pos)
void SetLoadState(DayZLoadState state)
void ClearConnectivityStates()
proto native DayZPlayer GetPlayer()
void CancelLoginTimeCountdown()
ref NotificationUI m_Notifications
ref LoginTimeBase m_LoginTimeScreen
proto native void AbortMission()
Returns to main menu, leave world empty for using last mission world.
proto native Mission GetMission()
void UpdateInputDeviceDisconnectWarning()
void SetGameState(DayZGameState state)
void LoadProgressUpdate(int progressState, float progress, string title)
ref LoadingScreen m_loading
void OnEvent(EventType eventTypeId, Param params)
is called by DayZGame to pass Events.
void OnEvent(EventType eventTypeId, Param params)
proto int GetPingAvg()
ping range estimation
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 ...
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
Param1< int > RespawnEventParams
RespawnTime.
Param1< int > MPConnectionLostEventParams
Duration.
Param1< int > LoginTimeEventParams
LoginTime.
const EventType MPSessionEndEventTypeID
no params
const EventType ConnectingStartEventTypeID
no params
const EventType LoginStatusEventTypeID
params: LoginStatusEventParams
Param1< vector > PreloadEventParams
Position.
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
const EventType SelectedUserChangedEventTypeID
no params
const EventType RespawnEventTypeID
params: RespawnEventParams
const EventType MPSessionFailEventTypeID
no params
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 EventType ProgressEventTypeID
params: ProgressEventParams
const EventType ChatMessageEventTypeID
params: ChatMessageEventParams
const EventType ConnectingAbortEventTypeID
no params
proto void Print(void var)
Prints content of variable to console/log.
proto native int Length()
Returns length of string.