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

◆ OnRPC()

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

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

3419 {
3420 super.OnRPC(sender, rpc_type, ctx);
3421
3422 if ( GetGame().IsClient() )
3423 {
3424 switch (rpc_type)
3425 {
3426 // BODY STAGING - server => client synchronization of skinned state.
3427 case ERPCs.RPC_BS_SKINNED_STATE:
3428 {
3429 Param1<bool> p_skinned_state= new Param1<bool>(false);
3430 if (ctx.Read(p_skinned_state))
3431 {
3432 float state = p_skinned_state.param1;
3433 if (state && GetCompBS())
3435 }
3436 break;
3437 }
3438
3439 case ERPCs.RPC_EXPLODE_EVENT:
3440 {
3441 OnExplodeClient();
3442 break;
3443 }
3444 }
3445 }
3446 }
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...
Определения 3_Game/Entities/EntityAI.c:3353
proto bool Read(void value_in)
proto native CGame GetGame()

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