Stationeers

Stationeers

Not enough ratings
Wind Vs Gravity
   
Award
Favorite
Favorited
Unfavorite
Mod
File Size
Posted
Updated
1.809 MB
20 Feb, 2023 @ 6:11pm
14 Jul, 2024 @ 11:09am
3 Change Notes ( view )

Subscribe to download
Wind Vs Gravity

Description
Description:

On Vanilla, the wind forces that happen when there's a subtle pressure difference don't take into account the planet's gravity. The distance you or your stuff get pulled and tossed around is the same, no matter how strong or weak gravity is.
This makes mining a nightmare on Venus or custom planets with extreme pressure atmospheres like GJ 229 Ac.

This mod changes the forces created by pressure differences to also take into account the local gravity. On mars, with its weak 3.8m/s gravity, the effect will be almost the same as Vanilla, but at bodies with stronger gravity, you or your things will be heavier and the wind will have less of an effect on it.

But beware, if you're flying on jetpack, the wind will still have a strong pull on you.
---

Installation:

Step 1 - Subscribe to this mod here in the workshop;
Step 2 - This mod uses scripts and it will only work if you use a modloader. Currently it support StationeersLaunchPad and Pure BepInEx modloaders. Choose JUST ONE to install and follow the procedures:
---

The math behind the curtains:
On Vanilla there's a AtmosphereDampeningScale parameter for character or item that effectively reduces the atmospheric effect, but they're a fixed value (0.5 for Characters and 1 for most Things) on every World.
This mod basically changes it to be calculated by the following formula when the item or character is loaded in the world:
For Characters: 0.5f + (WorldGravity / 100)
For things: AtmosphereDampeningScale + (WorldGravity / 60)
With the resulting value being clamped between 0.2 and 0.5 for characters and 0.3 and 1 for things

So on Venus, for example, which has a gravity of -8.87/s, instead of the default 0.5 vanilla value you'll have 0.5+(-0.0887) which gives you 0.4113 for characters
For things you'll have 1+(-0.1478) = 0.8522

On GJ 227, which has a gravity of -36m/s, you'll have:
For character: 0.5+(-0.36) = 0.14
For things: 1+(-0.6) = 0.4
14 Comments
lorexcold 16 Nov, 2024 @ 8:03am 
THANK YOU.
Thunder  [author] 14 Jul, 2024 @ 11:11am 
@StevenZ
Just updated the mod, should be error free now
Thunder  [author] 13 Jul, 2024 @ 3:10pm 
Yeah last update broke it. I'll take a look.
StevenZ 13 Jul, 2024 @ 12:28pm 
It seems to give error in console
Thunder  [author] 22 Jan, 2024 @ 11:15am 
Just pushed a update, this new version should be working fine with the rocket update
I've also added support to use StationeersMods
Thunder  [author] 30 Apr, 2023 @ 7:46am 
Thanks, i'll take a look at this
G0mp3r 30 Apr, 2023 @ 5:56am 
I got this when activating jetpack:

MissingFieldException: Field not found: Assets.Scripts.Objects.Entities.Human Assets.Scripts.Objects.Items.Backpack.ParentHuman Due to: Could not find field in class
at (wrapper dynamic-method) Assets.Scripts.Objects.Items.Jetpack.DMD<Assets.Scripts.Objects.Items.Jetpack::set_JetPackActivate>(Assets.Scripts.Objects.Items.Jetpack,bool)
at Assets.Scripts.MovementController.MovementHandler () [0x00712] in <d71e4a486bcf4a3d8809000d2712431d>:0
at Assets.Scripts.MovementController.PhysicsUpdate () [0x00096] in <d71e4a486bcf4a3d8809000d2712431d>:0
at Assets.Scripts.GameManager.FixedUpdate () [0x0004c] in <d71e4a486bcf4a3d8809000d2712431d>:0
G0mp3r 29 Apr, 2023 @ 3:09am 
Venus
Thunder  [author] 28 Apr, 2023 @ 6:27pm 
What planet are you playing with?
G0mp3r 25 Apr, 2023 @ 8:37am 
With the BepInEx mod, I'am unable to use the jetpack