Trigger gravity: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
 
 Warning:This entity only affects the player, despite the flags
Warning:This entity only affects the player, despite the flags
		
	
|  (-added class hierarchy, cleanup) | No edit summary | ||
| (6 intermediate revisions by 6 users not shown) | |||
| Line 1: | Line 1: | ||
| {{LanguageBar}} | |||
| {{TabsBar|main=gs|base=Trigger gravity}} | |||
| {{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. | ||
| {{warning|This entity only affects the player, despite the flags}} | {{warning|This entity only affects the player, despite the flags}} | ||
| == Keyvalues == | == Keyvalues == | ||
| {{KV Targetname}} | |||
| {{KV|Gravity (0-1)|intn=gravity|float|Gravity multiplier. 1 is normal gravity, 0 is none. Accepts negative values and decimals.}} | {{KV|Gravity (0-1)|intn=gravity|float|Gravity multiplier. 1 is normal gravity, 0 is none. Accepts negative values and decimals.}} | ||
| {{KV Trigger}} | {{KV Trigger}} | ||
| == Inputs == | == Inputs == | ||
| {{I EnableDisable}} | {{I EnableDisable}} | ||
| == See  | == See also == | ||
| * {{ent|env_gravity}} | |||
| * [[Gravity]] | * [[Gravity]] | ||
| {{sensor brush}} | {{sensor brush}} | ||
Latest revision as of 10:01, 9 September 2024

 
|  Class hierarchy | 
|---|
| CTriggerGravity | 
|  triggers.cpp | 
trigger_gravity  is a   brush entity  available in all  Source games. It scales the force of gravity of players touching its volume.
 Source games. It scales the force of gravity of players touching its volume.
 Warning:This entity only affects the player, despite the flags
Warning:This entity only affects the player, despite the flagsKeyvalues
- Name (targetname) <string>[ Edit ]
- 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 (0-1) (gravity) <float>
- Gravity multiplier. 1 is normal gravity, 0 is none. Accepts negative values and decimals.
| 
 
 | 
Inputs
EnableDisable:
- Enable / Disable
- Enable/disable this entity from performing its task. It might also disappear from view.
























