DayZ 1.30
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ OnClientRespawnEvent()

void MissionBase::OnClientRespawnEvent ( PlayerIdentity identity,
PlayerBase player )
inlineprotected

См. определение в файле missionServer.c строка 611

612 {
613 if (player)
614 {
615 if (player.IsUnconscious() || player.IsRestrained())
616 {
617 PluginAdminLog adm = PluginAdminLog.Cast(GetPlugin(PluginAdminLog));
618 adm.PlayerKilledByRespawn(player);
619
620 // kill character
621 player.SetHealth("", "", 0.0);
622 }
623 }
624
625 #ifdef DIAG_DEVELOPER
626 if (FeatureTimeAccel.m_CurrentTimeAccel)
627 {
628 g_Game.RPCSingleParam(player, ERPCs.DIAG_TIMEACCEL_CLIENT_SYNC, FeatureTimeAccel.m_CurrentTimeAccel, true, identity);
629 }
630 #endif
631 }
DayZGame g_Game
Определения DayZGame.c:4074
ERPCs
Определения ERPCs.c:2
PluginBase GetPlugin(typename plugin_type)
Определения PluginManager.c:326

Перекрестные ссылки g_Game и GetPlugin().

Используется в OnEvent().