Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore player damage if friendly fire game option off #7127

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

DakkJaniels
Copy link
Contributor

Add check for friendly fire game state in OnPlayerDamage

@julealgon
Copy link
Contributor

Can you elaborate a bit on the overarching issue this resolves? Was friendly fire just bugged?

@Trihedraf
Copy link
Collaborator

You could only turn off yourself attacking players, not being attacked by players.

@DakkJaniels
Copy link
Contributor Author

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.

@DakkJaniels
Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants