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

◆ OnRPC()

override void Entity::OnRPC ( PlayerIdentity sender,
int rpc_type,
ParamsReadContext ctx )
inlineprotected

См. определение в файле 3_Game/DayZ/Entities/EntityAI.c строка 3465

3466 {
3467 super.OnRPC(sender, rpc_type, ctx);
3468
3469 if ( g_Game.IsClient() )
3470 {
3471 switch (rpc_type)
3472 {
3473 // BODY STAGING - server => client synchronization of skinned state.
3474 case ERPCs.RPC_BS_SKINNED_STATE:
3475 {
3476 Param1<bool> p_skinned_state= new Param1<bool>(false);
3477 if (ctx.Read(p_skinned_state))
3478 {
3479 float state = p_skinned_state.param1;
3480 if (state && GetCompBS())
3482 }
3483 break;
3484 }
3485
3486 case ERPCs.RPC_EXPLODE_EVENT:
3487 {
3488 OnExplodeClient();
3489 break;
3490 }
3491 }
3492 }
3493 }
DayZGame g_Game
Определения DayZGame.c:3942
ERPCs
Определения ERPCs.c:2
void SetAsSkinnedClient()
Определения BodyStaging.c:49
ComponentBodyStaging GetCompBS()
Use this to access Body Staging component on dead character. Returns NULL if the given object lacks s...
proto bool Read(void value_in)

Перекрестные ссылки g_Game, GetCompBS() и Serializer::Read().