Changing gravity

KaydemonLP

L5: Dapper Member
Nov 17, 2015
204
63
I want to change the gravity of the map, but without doing it manualy. I tried making a point_servercommand and executing the command on the map start but nothing changes.
Is there any way to do it?
 

killohurtz

Distinction in Applied Carving
aa
Feb 22, 2014
1,016
1,277
I don't know what you mean by "without doing it manually," but trigger_gravity is the way to go. A point_servercommand won't work unless you or the server operator running your map enables the entity first using sv_allow_point_servercommand.
 

EmNudge

L4: Comfortable Member
Sep 23, 2015
184
60
Another route to enable low-gravity with a trigger, is by changing the player's gravity through an AddOutput.
You can use a trigger in your map that you already have such as a trigger_multiple, trigger_push, trigger_teleport, etc or even a button and put an output on it to give them gravity. The output would look something like this:
Output|Target|Input|Parameter
OnSomething|!activator|AddOutput|gravity [? - ?]
for a button it'd be OnPressed or OnDamaged and for a trigger it'd be OnStartTouch. the value of gravity is a percentage of the base value so .5 is half the gravity and 2 is double it.
 

AndreyRog

L1: Registered
Jun 8, 2020
3
0
I know this way to change gravity:
2 brushes with a trigger texture are made. Then everyone turns into trigger_gravity one brush entity is placed on another. do not change the properties of the upper brush and change the item at the bottom gravity scale (range from 0 to 1, where 1 is normal gravity).
I set 0.02. In general, you need to experiment here.
 

Da Spud Lord

Occasionally I make maps
aa
Mar 23, 2017
1,339
994
upload_2020-6-17_14-36-16.png