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

Brings back old gun suicide_act behavior #2784

Merged
merged 6 commits into from
Apr 11, 2024
Merged

Conversation

thgvr
Copy link
Member

@thgvr thgvr commented Feb 29, 2024

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:

Brings back old suicide_act on handle_suicide proc of guns.
@github-actions github-actions bot added the Code change Watch something violently break. label Feb 29, 2024
@thgvr thgvr changed the title Edits gun.dm Brings back old gun suicide_act behavior Feb 29, 2024
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)
Copy link
Contributor

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

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already does

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where

Copy link
Member Author

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

Copy link
Contributor

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

Copy link
Member Author

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)
Copy link
Contributor

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

@thgvr thgvr marked this pull request as draft March 26, 2024 02:25
@Gorionus Gorionus mentioned this pull request Mar 27, 2024
@thgvr
Copy link
Member Author

thgvr commented Mar 30, 2024

Check should be a bit better now and cleaned up, as well as actually accounting for damage type

@thgvr thgvr marked this pull request as ready for review March 30, 2024 14:18
@thgvr thgvr added this pull request to the merge queue Apr 11, 2024
Merged via the queue into shiptest-ss13:master with commit e0385e2 Apr 11, 2024
14 checks passed
@thgvr thgvr deleted the brain-blast branch April 11, 2024 20:59
MysticalFaceLesS pushed a commit to CeladonSS13/Shiptest that referenced this pull request Apr 12, 2024
## 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. -->
MysticalFaceLesS pushed a commit to CeladonSS13/Shiptest that referenced this pull request Apr 15, 2024
## 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. -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code change Watch something violently break.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants