447 {
448
449 if ( player )
450 {
451 array<ref Param> rpc_params = new array<ref Param>;
452
453
454 for (
int i = 0; i < player.m_PlayerStats.GetPCO().
Get().
Count(); i++ )
455 {
456 string label = player.m_PlayerStats.GetPCO().Get().Get( i ).GetLabel();
457 float value = (float) player.m_PlayerStats.GetPCO().Get().Get( i ).Get();
458 float value_norm = (float) player.m_PlayerStats.GetPCO().Get().Get( i ).GetNormalized();
459 rpc_params.Insert( new Param3<string, float, float>( label, value, value_norm ) );
460 }
461 rpc_params.Insert(new Param3<string, float, float>( "(NaS)Immunity", player.GetImmunity(),0 ));
462 rpc_params.Insert(new Param3<string, float, float>( "(NaS)BrokenLegs", player.m_BrokenLegState,0 ));
463
464 rpc_params.InsertAt( new Param1<int>(rpc_params.Count() ), 0);
465
466 GetDayZGame().RPC( player,
ERPCs.DEV_RPC_STATS_DATA, rpc_params,
true, player.GetIdentity() );
467 }
468 }