Trigger gravity: Difference between revisions
Jump to navigation
Jump to search

Warning:This entity only affects the player's gravity. The flags only affect the generic trigger outputs.
Note:Other
SirYodaJedi (talk | contribs) |
SirYodaJedi (talk | contribs) m (→Keyvalues) |
||
| (9 intermediate revisions by 2 users not shown) | |||
| Line 3: | Line 3: | ||
{{CD|CTriggerGravity|file1=triggers.cpp}} | {{CD|CTriggerGravity|file1=triggers.cpp}} | ||
{{this is a|brush entity|name=trigger_gravity}} It scales the force of [[gravity]] of players touching its volume. | {{this is a|brush entity|name=trigger_gravity}} It scales the force of [[gravity]] of players touching its volume. | ||
{{warning|This entity only affects the player | |||
The change in gravity applies until the player touches another {{code|trigger_gravity}} (even if the player respawns in a multiplayer setting). | |||
{{warning|This entity only affects the player's gravity. The flags only affect the generic trigger outputs.}} | |||
== Keyvalues == | == Keyvalues == | ||
{{otherKIO|trigger}} | |||
{{KV Targetname}} | {{KV Targetname}} | ||
{{KV|Gravity | {{KV|Gravity|intn=gravity|float|Gravity multiplier. 1 is normal gravity, 0 is none. Accepts negative values and decimals. Very high values (such as 100) will result in players not being able to jump more than a [[unit]].}} | ||
:{{note|Also affects what height players can fall before receiving fall damage.}} | |||
{{KV Trigger}} | {{KV Trigger}} | ||
Latest revision as of 10:36, 24 November 2025
| CTriggerGravity |
trigger_gravity is a brush entity available in all
Source games. It scales the force of gravity of players touching its volume.
The change in gravity applies until the player touches another trigger_gravity (even if the player respawns in a multiplayer setting).
Keyvalues
Keyvalues / Inputs / Outputs are same as trigger.- Name (targetname) <string>
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentnameortarget).
Also displayed in Hammer's 2D views and Entity Report. - See also: Generic Keyvalues, Inputs and Outputs available to all entities
- Gravity (gravity) <float>
- Gravity multiplier. 1 is normal gravity, 0 is none. Accepts negative values and decimals. Very high values (such as 100) will result in players not being able to jump more than a unit.
Note:Also affects what height players can fall before receiving fall damage.
|
Inputs
EnableDisable:
- Enable / Disable
- Enable/disable this entity from performing its task. It might also disappear from view.