-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Fix impossibility of crit with powerless firearms #53287
Conversation
Looking at git blame, there was similar PR: #46455 which was reverted by this commit: John-Candlebury@c23adf7 Seems like this is intentional behavior. |
Perhaps the author believes that mosquito bites should not be critically hit, which is is understandable. |
I checked the PR and the subsequent revert, the purpose of revert seems to be to prevent world_modifier from being calculated twice. |
#39203 seems to be relevant. |
Hitting the head or not is a cosmetic issue, the goal here is that you need sufficient damage/penetration to reach vitals with a strike or projectile, this behavior is fully intentional. |
Well, that seems to be good too. |
If it's not doing extra damage it doesn't matter where it hits, again, it's cosmetic. |
In some cases, it is more than just cosmetic. For example, feral human will never hit the head of a player with a fragile skull. A non-critical hit-to-the-head can be displayed as a normal good hit, so that it won’t confuse the player |
It IS displayed as a good hit. |
Summary
None
Purpose of change
When I was testing my PR, I found that I couldn't hit the hulk on the head with a 7.62 caliber gun. I tried to check the relevant code and found that if the damage of a single shot does not exceed the max hp of the target's head, then this shot will not hit the head. I don't know if the author of this code has a special intention, but I think this is very unreasonable. So I decide to modify it.
Describe the solution
Remove the restriction that it is possible to hit the head and crit only when the damage is high enough.
Describe alternatives you've considered
Testing
Shoot a hulk with a 7.62 caliber gun, and it can get 'headshot' and crit.
Additional context