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

Allow Crawling Entities To Go Under Tables #939

Merged
merged 6 commits into from
Sep 20, 2024

Conversation

gluesniffler
Copy link
Contributor

@gluesniffler gluesniffler commented Sep 20, 2024

Description

Adds a CVAR that when enabled, allows entities to crawl under tables/flaps by lowering their DrawDepth, which in turn protects them from being targeted for projectiles while crawling.

Additionally tables and plastic flaps were given collision properties along with reduced damage thresholds, so guns can target & destroy them easily if your mouse is on top of them.

Also fixes a funny exploit with Flight / FlightComponent


Media

2024-09-20.03-26-27.mp4


Changelog

🆑

  • add: Adds an optional server variable which allows entities to crawl under tables.
  • tweak: Tables and plastic flaps are less resistant to damage, and can now be targeted by guns by aiming on top of them.

@github-actions github-actions bot added Changes: C# Changes any cs files Changes: YML Changes any yml files labels Sep 20, 2024
@Evgencheg
Copy link
Contributor

cool! 😎

Copy link
Member

@VMSolidus VMSolidus left a comment

Choose a reason for hiding this comment

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

We can add the bullet click interactions to far more objects as we go!

Content.Client/Standing/LayingDownSystem.cs Outdated Show resolved Hide resolved
Content.Client/Standing/LayingDownSystem.cs Outdated Show resolved Hide resolved
@github-actions github-actions bot added the Changes: Localization Changes any ftl files label Sep 20, 2024
gluesniffler and others added 2 commits September 20, 2024 11:42
Co-authored-by: VMSolidus <[email protected]>
Signed-off-by: gluesniffler <[email protected]>
Co-authored-by: VMSolidus <[email protected]>
Signed-off-by: gluesniffler <[email protected]>
@FoxxoTrystan FoxxoTrystan requested review from a team, FoxxoTrystan, DEATHB4DEFEAT, Peptide90, Pspritechologist and OldDanceJacket and removed request for a team September 20, 2024 19:32
@github-actions github-actions bot added the Status: Needs Review Someone please review this label Sep 20, 2024
@FoxxoTrystan FoxxoTrystan added Size: 4-Small For small issues/PRs Priority: 3-Medium Needs to be resolved at some point and removed Status: Needs Review Someone please review this labels Sep 20, 2024
if (!component.OriginalDrawDepth.HasValue)
component.OriginalDrawDepth = sprite.DrawDepth;

sprite.DrawDepth = (int) DrawDepth.SmallMobs;
Copy link
Member

Choose a reason for hiding this comment

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

Unable to make a proper test but, make sure that we cannot crawl under tables...
Wait no this change sprite, not fixtures.

Carry on!

@VMSolidus VMSolidus merged commit b01ae70 into Simple-Station:master Sep 20, 2024
17 checks passed
SimpleStation14 added a commit that referenced this pull request Sep 20, 2024
VMSolidus added a commit that referenced this pull request Sep 21, 2024
# Description

This PR is a follow up to
#939
By increasing the number of items that are struck by bullets, or can be
targeted by bullets. To add to the "Cinematic" experience of a gunfight,
Bottles, Cups, and Plates of all kinds are automatically struck by
bullets when fired over, and *probably* destroyed given that they only
have 5 hit points. This also serves to aid in limiting the amount of
things that can be hidden underneath when crawling under a table, since
the station's bar counter will likely explode into a ton of glass and
spilled booze when a gunfight gets near it.

I also added Chairs to the "RequireProjectileTarget" feature, so that if
you click on a chair, you'll shoot the chair and (probably) destroy it.

# Changelog

:cl:
- add: Bottles, Drink Glasses, Plates, and all liquid containers are now
struck by bullets(and most likely destroyed in the process). We hope
that this will offer both a small tactical advantage/disadvantage, as
well as contribute to making gunfights around the bar more "Cinematic".
- add: Chairs are now hit by projectiles if a shooter clicks on them, in
addition to Tables.
rbertoche pushed a commit to rbertoche/space-station-14 that referenced this pull request Sep 23, 2024
# Description

This PR is a follow up to
Simple-Station/Einstein-Engines#939
By increasing the number of items that are struck by bullets, or can be
targeted by bullets. To add to the "Cinematic" experience of a gunfight,
Bottles, Cups, and Plates of all kinds are automatically struck by
bullets when fired over, and *probably* destroyed given that they only
have 5 hit points. This also serves to aid in limiting the amount of
things that can be hidden underneath when crawling under a table, since
the station's bar counter will likely explode into a ton of glass and
spilled booze when a gunfight gets near it.

I also added Chairs to the "RequireProjectileTarget" feature, so that if
you click on a chair, you'll shoot the chair and (probably) destroy it.

# Changelog

:cl:
- add: Bottles, Drink Glasses, Plates, and all liquid containers are now
struck by bullets(and most likely destroyed in the process). We hope
that this will offer both a small tactical advantage/disadvantage, as
well as contribute to making gunfights around the bar more "Cinematic".
- add: Chairs are now hit by projectiles if a shooter clicks on them, in
addition to Tables.
VMSolidus pushed a commit that referenced this pull request Oct 13, 2024
# Description
This reverts most code changes done by
#939 and
re-implements them in a better way:
- Players can now toggle under-furniture crawling with a keybind
(shift-R by default)
- Crawling that way is 50% slower for obvious balancing reasons
- The respective cvar for it is now true by default and prevents players
from beginning the "crawl under furniture" thing

Also cleaned up a few methods I was seriously pissed off by. There is
still a lot to clean up and fix, but I will leave it for a dedicated PR
in the future.

# Why (balancing)
Let me lie on the bed instead of under it!!!!!!!

<details><summary><h1>Media</h1></summary>
<p>


https://github.com/user-attachments/assets/5f04c82a-b88b-4005-8052-a1a6f011bcc9

</p>
</details>

# Changelog
:cl:
- add: You can now toggle crawling under furniture! The default keybind
is Shift-R, you can change it in settings.
Remuchi pushed a commit to WWhiteDreamProject/wwdpublic that referenced this pull request Oct 19, 2024
# Description

This PR is a follow up to
Simple-Station/Einstein-Engines#939
By increasing the number of items that are struck by bullets, or can be
targeted by bullets. To add to the "Cinematic" experience of a gunfight,
Bottles, Cups, and Plates of all kinds are automatically struck by
bullets when fired over, and *probably* destroyed given that they only
have 5 hit points. This also serves to aid in limiting the amount of
things that can be hidden underneath when crawling under a table, since
the station's bar counter will likely explode into a ton of glass and
spilled booze when a gunfight gets near it.

I also added Chairs to the "RequireProjectileTarget" feature, so that if
you click on a chair, you'll shoot the chair and (probably) destroy it.

# Changelog

:cl:
- add: Bottles, Drink Glasses, Plates, and all liquid containers are now
struck by bullets(and most likely destroyed in the process). We hope
that this will offer both a small tactical advantage/disadvantage, as
well as contribute to making gunfights around the bar more "Cinematic".
- add: Chairs are now hit by projectiles if a shooter clicks on them, in
addition to Tables.
Remuchi pushed a commit to WWhiteDreamProject/wwdpublic that referenced this pull request Oct 19, 2024
# Description
This reverts most code changes done by
Simple-Station/Einstein-Engines#939 and
re-implements them in a better way:
- Players can now toggle under-furniture crawling with a keybind
(shift-R by default)
- Crawling that way is 50% slower for obvious balancing reasons
- The respective cvar for it is now true by default and prevents players
from beginning the "crawl under furniture" thing

Also cleaned up a few methods I was seriously pissed off by. There is
still a lot to clean up and fix, but I will leave it for a dedicated PR
in the future.

# Why (balancing)
Let me lie on the bed instead of under it!!!!!!!

<details><summary><h1>Media</h1></summary>
<p>


https://github.com/user-attachments/assets/5f04c82a-b88b-4005-8052-a1a6f011bcc9

</p>
</details>

# Changelog
:cl:
- add: You can now toggle crawling under furniture! The default keybind
is Shift-R, you can change it in settings.
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 Changes: Localization Changes any ftl files Changes: YML Changes any yml files Priority: 3-Medium Needs to be resolved at some point Size: 4-Small For small issues/PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants