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

A comprehensive refactor / cleanup of bullet_hit and on_hit to cut out a single bad species / mob proc #167

Merged
merged 1 commit into from
Oct 20, 2023

Conversation

Steals-The-PRs
Copy link
Collaborator

Mirrored on Skyrat: Skyrat-SS13/Skyrat-tg#24430
Original PR: tgstation/tgstation#79024

About The Pull Request

  • Refactored bullet_act. Adds should_call_parent and refactors associated children to support that.
    • Fixes silicons sparking off when hit by disabler fire.
    • Desnowflakes firing range target integrity and cleans up its bullet-hole code a bit.
    • Cleans up changeling tentacle code a fair bit and fixes it not taking off throw mode if you fail to catch something.
    • The Sleeping Carp deflection is now signalized
    • Nightmare projectile dodging is now signalized and sourced from the Nightmare's brain rather than species
    • Refactored how cardboard cutouts get knocked over to be less snowflaked / use integrity
  • Also adds projectile on_hit should_call_parent and cleans up a bit of that, particularly their arguments.
    • On hit arguments were passed wrong this entire time, it's a good thing nothing relied on that.

Why It's Good For The Game

This is cringe.

https://github.com/tgstation/tgstation/blob/1863eb2cd82e7cee4fdfff37b42d3fd0c7edd797/code/modules/mob/living/carbon/human/_species.dm#L1430-L1442

Bullets should overall act more consistent across mob types and objects.

Changelog

🆑 Melbert
fix: Silicons don't spark when shot by disablers
fix: Changelings who fail to catch something with a tencacle will have throw mode disabled automatically
fix: Fixes occasions where you can reflect with Sleeping Carp when you shouldn't be able to
fix: Fixes some projectiles causing like 20x less eye blur than they should be
refactor: Refactored bullet-mob interactions
refactor: Nightmare "shadow dodge" projectile ability is now sourced from their brain
/:cl:

…it` to cut out a single bad species / mob proc [MDB IGNORE] (#24430)

* A comprehensive refactor / cleanup of `bullet_hit` and `on_hit` to cut out a single bad species / mob proc (#79024)

## About The Pull Request

- Refactored `bullet_act`. Adds `should_call_parent` and refactors
associated children to support that.
   - Fixes silicons sparking off when hit by disabler fire.
- Desnowflakes firing range target integrity and cleans up its
bullet-hole code a bit.
- Cleans up changeling tentacle code a fair bit and fixes it not taking
off throw mode if you fail to catch something.
   - The Sleeping Carp deflection is now signalized
- Nightmare projectile dodging is now signalized and sourced from the
Nightmare's brain rather than species
- Refactored how cardboard cutouts get knocked over to be less
snowflaked / use integrity
- Also adds projectile `on_hit` `should_call_parent` and cleans up a bit
of that, particularly their arguments.
- On hit arguments were passed wrong this entire time, it's a good thing
nothing relied on that.

## Why It's Good For The Game

This is cringe.

https://github.com/tgstation/tgstation/blob/1863eb2cd82e7cee4fdfff37b42d3fd0c7edd797/code/modules/mob/living/carbon/human/_species.dm#L1430-L1442

Bullets should overall act more consistent across mob types and objects.

## Changelog

:cl: Melbert
fix: Silicons don't spark when shot by disablers
fix: Changelings who fail to catch something with a tencacle will have
throw mode disabled automatically
fix: Fixes occasions where you can reflect with Sleeping Carp when you
shouldn't be able to
fix: Fixes some projectiles causing like 20x less eye blur than they
should be
refactor: Refactored bullet-mob interactions
refactor: Nightmare "shadow dodge" projectile ability is now sourced
from their brain
/:cl:

* A comprehensive refactor / cleanup of `bullet_hit` and `on_hit` to cut out a single bad species / mob proc

* Modular changes

---------

Co-authored-by: MrMelbert <[email protected]>
Co-authored-by: Giz <[email protected]>
@AnywayFarus AnywayFarus merged commit 35f6e85 into master Oct 20, 2023
23 checks passed
@AnywayFarus AnywayFarus deleted the upstream-mirror-24430 branch October 20, 2023 10:29
AnywayFarus added a commit that referenced this pull request Oct 20, 2023
Iajret pushed a commit that referenced this pull request Jan 3, 2024
Fix broken CI's

Co-authored-by: Jordan Dominion <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants