Dreams involving intimacy with friends, especially when they involve unexpected dynamics, can often symbolize deeper feelings or conflicts. In your dream, the presence of your gay best friend and his flirtatious behavior might reflect your subconscious exploration of friendship boundaries, attraction, or even unacknowledged feelings.
The intimate actions and the request for humiliating things could suggest a struggle with vulnerability and trust. It might signify a fear of losing control in a relationship or feeling pressured to conform to someone else's desires, even if they conflict with your own values or comfort levels.
The aspect of wanting to hurt you afterward could represent internal conflict or anxiety about the relationship. It may also indicate a fear of the potential consequences of crossing boundaries in friendships.
Consider reflecting on your waking life feelings toward this friend and the nature of your relationship. Are there unresolved issues or feelings that need addressing? This dream could be prompting you to think about your boundaries and how they align with your values in friendships.