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

Grid physics 2: gun pushback #32415

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

slarticodefast
Copy link
Member

@slarticodefast slarticodefast commented Sep 23, 2024

About the PR

Pushes back grids when you fire a gun while standing on it. I'm working on thrown items next.

Continuation of #31754
Needs that PR merged first for the cvar
Might also have to wait for Smugleafs gun prediction changes.

Why / Balance

better physics
allows you to move small grid fragments out of the way
mini shittles for salvage

Technical details

When the user is not weightless (either through mag boots or gravity) apply the impulse to the grid the user is standing on instead of them.
Turns the hardcoded impulse strength from a constant in the gun system into a DataField in GunComponent, so it can be modified for each weapon. Currently it is 25kg*m/s for each gun. These values might need some adjustment (why do lasers have a pushback?)

Media

gun.pushback.mp4

Requirements

Breaking changes

Changelog

🆑

  • add: Shooting guns now pushes the grid you are standing on if you have gravity or magboots.

@Kadeo64
Copy link
Contributor

Kadeo64 commented Sep 23, 2024

how many spessmen does it take to move a station out of a meteor field

@tutoumi
Copy link

tutoumi commented Sep 24, 2024

new shittle recipee : 2 tiles in space, a laser gun and a recharger

@baddiePRO
Copy link

new shittle recipee : 2 tiles in space, a laser gun and a recharger

2 tiles and a pka :godo:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants