Ignore player damage if friendly fire game option off
Add check for friendly fire game state in OnPlayerDamage
Can you elaborate a bit on the overarching issue this resolves? Was friendly fire just bugged?
You could only turn off yourself attacking players, not being attacked by players.
I need to revert that last commit - the logic makes sense for the attacker in missiles.cpp, but I don't think it makes sense here, as that would allow someone to turn off receiving damage in a friendly fire game.
Can you elaborate a bit on the overarching issue this resolves? Was friendly fire just bugged?
The settings menu friendly fire only effected missiles. You could hypothetically still attack someone with melee if you wanted to. By placing the check here, the settings menu setting also mitigates the possibility of someone using a modified game client to send bogus damage packets to players.