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

◆ OnClientRespawnEvent()

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

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

599 {
600 if (player)
601 {
602 if (player.IsUnconscious() || player.IsRestrained())
603 {
604 PluginAdminLog adm = PluginAdminLog.Cast(GetPlugin(PluginAdminLog));
605 adm.PlayerKilledByRespawn(player);
606
607 // kill character
608 player.SetHealth("", "", 0.0);
609 }
610 }
611
612 #ifdef DIAG_DEVELOPER
613 if (FeatureTimeAccel.m_CurrentTimeAccel)
614 {
615 g_Game.RPCSingleParam(player, ERPCs.DIAG_TIMEACCEL_CLIENT_SYNC, FeatureTimeAccel.m_CurrentTimeAccel, true, identity);
616 }
617 #endif
618 }
DayZGame g_Game
Определения DayZGame.c:3942
ERPCs
Определения ERPCs.c:2
PluginBase GetPlugin(typename plugin_type)
Определения PluginManager.c:325

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

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