KitsuneLab-Development / K4-System

K4-Systems is a plugin that enhances the server with features such as a playtime tracker, statistical records, and player ranks. Additionally, it includes VIP functions and admin commands for added functionality.
GNU General Public License v3.0
104 stars 35 forks source link

fix suicide detection #214

Closed NotJustin closed 3 weeks ago

NotJustin commented 3 weeks ago

suicide occurs when attacker == victim.

without this change, an actual player suicide results in them losing points as if they died to an attacker, rather than to suicide.

Noticed this problem when using CCSPlayerController.ChangeTeam, which forces player suicide if they are alive. I had config set to lose 0 points for suicide, but player lost points. After this change, they do not lose points. https://github.com/KitsuneLab-Development/K4-System/issues/208