554 {
555
556 if ( player )
557 {
558 array<ref Param> rpc_params = new array<ref Param>;
559
562 target = player;
563 else
564 {
566 target =
EntityAI.Cast(itemDiagPlugin.GetWatchedItem(player));
567 }
568
569 if (target)
570 {
572
576 }
577
578 bool targetChanged = false;
580 {
581 targetChanged = true;
583 }
584
585 rpc_params.InsertAt( new Param2<int, bool>(rpc_params.Count(), targetChanged), 0);
586
587 GetDayZGame().RPC( player,
ERPCs.DEV_RPC_HEALTH_DATA, rpc_params,
true, player.GetIdentity() );
588 }
589 }
map< string, ref array< string > > DamageZoneMap
void PluginItemDiagnostic()
PluginBase GetPlugin(typename plugin_type)
void SetupZoneValues(inout array< ref Param > rpc_params, DamageZoneMap dmgZones, EntityAI target, string healthType, int typeID)
ref map< PlayerBase, bool > m_HealthObserverMode
ref map< PlayerBase, EntityAI > m_HealthObserverEntity