Shared HostingFirst month freeShared web hosting from $2.99/mo — $0 today, and the price you sign up at is the price you renew at.See hosting plans →

NxLabs / Insurgency: Sandstorm

Gravity

By TayLord

Adjusts gravity for player and enables ADS/shoot while jumping

Description

Want to be able to make some of those jumps between rooftops or through windows that you couldn't make before or a give yourself a bit of a moon walking vibe? Here you go!

Enables the ability to adjust players relative gravity level in-game. This will not be compatible with other mutators that override the player class attribute modifiers like speed. This only adjusts the players gravity and NOT the world's. To adjust the worlds see the note at the bottom. This works well with Laser point shooting as you can then aid down sights mid-jump.

MUTATOR=GRAVITY

Define the following in your game.ini:

[/Gravity/Mutators/Gravity.Gravity_C] Gravity=6

Gravity can be ANY INTEGER from 1-20, where 1 corresponds to a gravity of 0.1 (flying), 10 is 1.0 (vanilla), and 20 corresponds to 2.0 (you aint winning any vaulting contests anytime soon). Default is 6, which is 0.6 gravity and will enable some rooftop jumps and window dives that were not possible before.

DESCRIPTION GRAVITY CONFIG INTEGER RELATIVE GRAVITY IN-GAME

Walking on the moon 1 0.1

Can jump between rooftops 5 0.5

Vanilla 10 1.0

Wow I'm not as young as I used to be. 15 1.5

Did I even leave the ground? 20 2.0

Alternatively, if you want to PERMANENTLY set the gravity to something different, then you can adjust DefaultGravityZ in the Engine.ini. This is by default set to -980. Unfortunately, you can not enable/disable this setting. It will always be applied for the server unless you manually change it and restart the server or game. Use the following setting in the Engine.ini file. You may need to create this file.

Servers: ...\sandstorm_server\Insurgency\Saved\Config\WindowsServer\ENGINE.INI Local: ...\AppData\Local\Insurgency\Saved\Config\WindowsClient\ENGINE.INI

The following would half the world gravity:

[/Script/Engine.PhysicsSettings] DefaultGravityZ=-490.0

With this set you can use the Gravity mutator with gravity set to 20 for 2x gravity for player, which would then feel like vanilla, since the world gravity has already been decreased in the Engine.ini. This will make grenades go flying on being thrown and particles go flying, but player remain in 1g. You could also increase the gravity for the player along with the DefaultGravityZ to cause player dynamics to feel similar to vanilla, but have the environment be in lower G.

Servers: ...\sandstorm_server\Insurgency\Saved\Config\WindowsServer\GAME.INI Local: ...\AppData\Local\Insurgency\Saved\Config\WindowsClient\GAME.INI

[/Gravity/Mutators/Gravity.Gravity_C] Gravity=10



For fun I opened up the following settings to be configurable to allow playing around with the number of jumps and allow double jumps and such. I've not used this much at all and don't know how the settings interact. Using laser point shooting makes mid-jump ADS kills possible.

Mutator=Gravity2x

[/Gravity/Mutators/Gravity2x.Gravity2x_C] //Gravity control for player. Same as above. 1.0 corresponds to default gravity in game. Gravity=3 //Controls the number of jumps that can be stacked JumpCount=3 //The Max Hold Time the Jump key can be held.  JumpHoldTime=0.0 //Set debug=True to enable the chat commands below debug=False

To play around with the settings in-game you can use the following chat commands to live adjust them:

Chat Command Description

!g+ Increase gravity

!g- Decrease gravity

!h+  Increment JumpHoldTime by 0.5

!h- Decrement JumpHoldTime by 0.5

!j+ Increase jump count by 1

!j- Decrease jump count by 1

Appreciate my work and want to donate or have a mod made? See my profile for link. If leaving a comment regarding bugs or feedback go ahead and tag me so I get a notification.

Ratings & reviews

No ratings yet

Sign in to leave a rating or comment.