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

◆ OnClientRespawnEvent()

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

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

553 {
554 if (player)
555 {
556 if (player.IsUnconscious() || player.IsRestrained())
557 {
558 PluginAdminLog adm = PluginAdminLog.Cast(GetPlugin(PluginAdminLog));
559 adm.PlayerKilledByRespawn(player);
560
561 // kill character
562 player.SetHealth("", "", 0.0);
563 }
564 }
565
566 #ifdef DIAG_DEVELOPER
567 if (FeatureTimeAccel.m_CurrentTimeAccel)
568 {
569 GetGame().RPCSingleParam(player, ERPCs.DIAG_TIMEACCEL_CLIENT_SYNC, FeatureTimeAccel.m_CurrentTimeAccel, true, identity);
570 }
571 #endif
572 }
ERPCs
Определения ERPCs.c:2
PluginBase GetPlugin(typename plugin_type)
Определения PluginManager.c:316
proto native void RPCSingleParam(Object target, int rpc_type, Param param, bool guaranteed, PlayerIdentity recipient=null)
see CGame.RPC
proto native CGame GetGame()

Перекрестные ссылки GetGame(), GetPlugin() и CGame::RPCSingleParam().

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