Moderator elections are being held. See Valve Developer Community:Moderator elections for more details.
Users who would like to run for moderator must be autoconfirmed and have at least 100 edits. Users can check their own edit count at Special:Preferences.
Users who would like to run for moderator must be autoconfirmed and have at least 100 edits. Users can check their own edit count at Special:Preferences.
target_changegravity
![]() |
---|
CTargetChangeGravity defined in ![]() controlentities.cpp
|
target_changegravity
is a point entity available in all Source games.
It changes the gravity multiplier value to the player who activates this entity. It doesn't work with NPC's, physics props and other objects.
Keyvalues
Targetname:
- Name
(targetname)
<string> - The targetname that other entities refer to this entity by.
- gravity
(gravity)
<integer> - Gravity multiplier that player (who activated it) will have when
ChangeGrav
input fire. Value for this property must be an integer, for example: 1, 2, -1, -2, etc. 0 – gravity will be standard, i.e. equals 1.
Inputs
ChangeGrav
<void>- Apply gravity multiplier value to player.
ResetGrav
<void>- Return default gravity value to player.