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

◆ OnRPC()

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

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

3508 {
3509 super.OnRPC(sender, rpc_type, ctx);
3510
3511 if ( g_Game.IsClient() )
3512 {
3513 switch (rpc_type)
3514 {
3515 // BODY STAGING - server => client synchronization of skinned state.
3516 case ERPCs.RPC_BS_SKINNED_STATE:
3517 {
3518 Param1<bool> p_skinned_state= new Param1<bool>(false);
3519 if (ctx.Read(p_skinned_state))
3520 {
3521 float state = p_skinned_state.param1;
3522 if (state && GetCompBS())
3524 }
3525 break;
3526 }
3527
3528 case ERPCs.RPC_EXPLODE_EVENT:
3529 {
3530 OnExplodeClient();
3531 break;
3532 }
3533 }
3534 }
3535 }
DayZGame g_Game
Определения DayZGame.c:4074
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().