open.mp icon indicating copy to clipboard operation
open.mp copied to clipboard

SetSpawnInfo and SetPlayerTeam no player damage allowed

Open NegativeIQ opened this issue 8 months ago • 0 comments

Describe the bug If SetSpawnInfo is used with team 0 (i assume other ids work as long as they are the same), and then SetPlayerTeam is used to set to NO_TEAM in order for damage to work, server still consider players in same team and does not apply damage. Also GetPlayerTeam returns NO_TEAM as it should.

To Reproduce Steps to reproduce the behavior:

  1. SetSpawnInfo for 2 players, make sure team is same.
  2. SetPlayerTeam to NO_TEAM for both players
  3. GetPlayerTeam to make sure its still NO_TEAM (should be).
  4. Punch/shoot each other, damage is not applied (It should be since both polayers are NO_TEAM)

Expected behavior Team argument from SetSpawnInfo should be influenced/modified by Get/SetPlayerTeam and be one and the same. Players in same teams can not damage each other, except for for players that have NO_TEAM, they can damage each other and other teams.

Screenshots and/or logs If applicable, add screenshots and/or log output to help explain your problem.

Release version RC2

NegativeIQ avatar Oct 29 '23 07:10 NegativeIQ