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

◆ OnRPC()

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

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

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

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