Ejemplo n.º 1
0
 private void CausedDamage(float a_dmg)
 {
     if (null != m_server && m_data.passengerIds[0] != -1)
     {
         ServerPlayer playerByOnlineid = m_server.GetPlayerByOnlineid(m_data.passengerIds[0]);
         if (playerByOnlineid != null)
         {
             playerByOnlineid.ChangeKarmaBy(Mathf.Clamp(a_dmg, 0f, 100f) * -0.5f);
         }
     }
 }