private void doCollisionCheck(SpaceMarine Player) { if (m_boundingSphere.Intersects(Player.Sphere)) { if (Player != m_user) { Vector2 vel = Player.Velocity; CalculationFunctions.cResponse(m_pos, Player.Position, ref m_velocity, ref vel, m_mass, Player.Mass); Player.Velocity = vel; Player.Health -= m_Damage; Player.DamageTicker = 15; m_state = EntityState.Dead; if ((Player.Health <= 0) && Player.State != ActorState.Dying) { if (m_currMatch != MatchType.DM) { if (Player.Team != m_user.Team) { ((SpaceMarine)m_user).Score++; } else { ((SpaceMarine)m_user).Score--; } } else { ((SpaceMarine)m_user).Score++; } Player.Killer = (string)((SpaceMarine)m_user).PlayerName; } } } }