forked from Exiled-Official/EXILED
-
Notifications
You must be signed in to change notification settings - Fork 111
Friendly fire update #33
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
Merged
Merged
Changes from 3 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
ccca973
Untested
Undid-Iridium a25be5b
Testing alternative.
Undid-Iridium d742766
Update EXILED/Exiled.Events/Patches/Generic/IndividualFriendlyFire.cs
louis1706 b28c627
Option 1.
Undid-Iridium 6d14558
Option 2
Undid-Iridium 45de252
Option 2 updated.
Undid-Iridium d2ae020
Merge branch 'dev' into FriendlyFireFix
Misaka-ZeroTwo 5e8ca7e
Var removal.
Undid-Iridium 076819c
Merge remote-tracking branch 'origin/FriendlyFireFix' into FriendlyFi…
Undid-Iridium 20078c7
Merge remote-tracking branch 'refs/remotes/exiledremote/dev' into Fri…
Undid-Iridium 056566e
Merge branch 'dev' into FriendlyFireFix
louis1706 8ff0c91
Merge branch 'dev' into FriendlyFireFix
Undid-Iridium 205877a
Merge branch 'dev' into FriendlyFireFix
louis1706 3c325d6
Merge branch 'dev' into FriendlyFireFix
IRacle1 ac89301
Merge branch 'dev' into FriendlyFireFix
louis1706 94eebc0
Merge branch 'dev' into FriendlyFireFix
louis1706 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am confused, if FriendlyFire has been set to true, why return false?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Goes to NW logic
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This code's behavior is, if true, we are doing custom FF logic, do not use NW logic. If false, we're not using custom ff logic, or we got to the end and we didn't find any rules we could follow, for safety, return false and use NW logic.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well iirc when FriendlyFire is false, the client doesn't even send the damage message to the server when both players are in the same team. So it wouldn't really work?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
legacy code moment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Option 2 it is?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you put option 2 don't use Footprint:Hub but Footprint:Role that very important for things like grenade when you get your rôle changed (i don't really get the difference between all the option but that very important to not use ReferenceHub here)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks and even if you choose an other option still does this change :3 because it's needed