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

Prevent entities who do not have hands from setting off bombs. #529

Closed

Conversation

nok-ko
Copy link
Contributor

@nok-ko nok-ko commented Dec 8, 2023

About the PR

Prevents entities without hands from changing a bomb’s timer or detonating a bomb. This is my first PR to this repository, please let me know about anything I can improve.

Why / Balance

Applies to proper Syndicate Bombs, and practice bombs, which were previously operable to all sorts of miscreants (e.g. mice) — that was bad. Entities without hands could also change the timers on sticks of C4 and the Spider Clan Charges, but not detonate them.

Technical details

Adds an extra check to the OnGetAltVerbs event handlers in DefusableSystem and TriggerSystem.

Media

  • I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase

Bomb verbs are present when playing as a character with hands:
image

Absent when playing as one without:
image

Breaking changes

Changelog

🆑

  • fix: Entities without hands (like mice and mothroaches) are now forbidden from operating Syndicate Bombs, C4, and other timed explosives.

@nok-ko nok-ko requested a review from DebugOk as a code owner December 8, 2023 07:02
@github-actions github-actions bot added S: Needs Review Changes: C# Changes any cs files labels Dec 8, 2023
@deltanedas
Copy link
Member

why not upstream this

@ps3moira
Copy link
Contributor

ps3moira commented Dec 8, 2023

Should upstream this but I will make mouse ops the exception. I like to imagine they're like the guinea pigs from G-Force but evil.

@DebugOk
Copy link
Contributor

DebugOk commented Dec 8, 2023

This should be upstreamed

@DebugOk DebugOk closed this Dec 8, 2023
@deltanedas
Copy link
Member

i imagine you could have mouse op have a hands component with no actual hands, so it can change timers and stuff

@nok-ko
Copy link
Contributor Author

nok-ko commented Dec 8, 2023

Whoops, you’re all very right. Will upstream. Now has an upstream PR: space-wizards/space-station-14#22250.

LaryNevesPR pushed a commit to LaryNevesPR/Estacao-Andromeda that referenced this pull request Jan 3, 2025
<!--
This is a semi-strict format, you can add/remove sections as needed but
the order/format should be kept the same
Remove these comments before submitting
-->

# Description

<!--
Explain this PR in as much detail as applicable

Some example prompts to consider:
How might this affect the game? The codebase?
What might be some alternatives to this?
How/Who does this benefit/hurt [the game/codebase]?
-->
Fixes DeltaV-Station#529 
A crash course that I need to check when a component is networked. Now
actually replicates pocket vision to the client.

# Changelog

:cl:
- fix: Fixed thieving trait not granting pocket vision
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changes: C# Changes any cs files S: Needs Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants