-
-
Notifications
You must be signed in to change notification settings - Fork 543
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
Brings back old gun suicide_act behavior #2784
Conversation
Brings back old suicide_act on handle_suicide proc of guns.
code/modules/projectiles/gun.dm
Outdated
var/turf/splat_target = get_ranged_target_turf(target, REVERSE_DIR(target.dir), BRAINS_BLOWN_THROW_RANGE) | ||
chambered.BB.damage *= 4 | ||
process_fire(target, user, TRUE, params, BODY_ZONE_HEAD) | ||
if(shotbrain && chambered.BB.damage > 0) |
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.
Damage requirement/type check should exist or some really funny cases could emerge
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.
Already does
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.
where
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.
chambered.BB.damage > 0
BB in this case is the current chambered round in the firearm
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.
And in the case the gun has a primary damage type of stamina and/or extremely low damage? Concern is stuff like disablers and loaded foam darts counting for brain removal
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.
Old suicide code worked using the same check, I tried with basic foam but i'll work on it more and test more scenarios.
//Sort of reimplements old suicide behavior just for guns. | ||
if(chambered?.BB) | ||
chambered.BB.damage *= 4 | ||
process_fire(target, user, TRUE, params, BODY_ZONE_HEAD) |
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.
process_fire should be done after saving/using any important bullet info otherwise it'll take information from the next bullet in the gun, which could be nothing
Check should be a bit better now and cleaned up, as well as actually accounting for damage type |
## About The Pull Request Brings back old suicide_act on handle_suicide proc of guns. <!-- Write **BELOW** The Headers and **ABOVE** The comments else it may not be viewable. --> <!-- You can view Contributing.MD for a detailed description of the pull request process. --> https://github.com/shiptest-ss13/Shiptest/assets/81882910/a5363807-0b49-46fc-aae6-cc1253cc1dbf ## Changelog :cl: add: Suicide & Execution with a damaging firearm is now more deadly and gruesome. /:cl: <!-- Both :cl:'s are required for the changelog to work! You can put your name to the right of the first :cl: if you want to overwrite your GitHub username as author ingame. --> <!-- You can use multiple of the same prefix (they're only used for the icon ingame) and delete the unneeded ones. Despite some of the tags, changelogs should generally represent how a player might be affected by the changes rather than a summary of the PR's contents. -->
## About The Pull Request Brings back old suicide_act on handle_suicide proc of guns. <!-- Write **BELOW** The Headers and **ABOVE** The comments else it may not be viewable. --> <!-- You can view Contributing.MD for a detailed description of the pull request process. --> https://github.com/shiptest-ss13/Shiptest/assets/81882910/a5363807-0b49-46fc-aae6-cc1253cc1dbf ## Changelog :cl: add: Suicide & Execution with a damaging firearm is now more deadly and gruesome. /:cl: <!-- Both :cl:'s are required for the changelog to work! You can put your name to the right of the first :cl: if you want to overwrite your GitHub username as author ingame. --> <!-- You can use multiple of the same prefix (they're only used for the icon ingame) and delete the unneeded ones. Despite some of the tags, changelogs should generally represent how a player might be affected by the changes rather than a summary of the PR's contents. -->
About The Pull Request
Brings back old suicide_act on handle_suicide proc of guns.
2024-02-29_02-15-07.mp4
Changelog
🆑
add: Suicide & Execution with a damaging firearm is now more deadly and gruesome.
/:cl: