Player: Difference between revisions
Jump to navigation
Jump to search
Note:This entity is not listed in the FGD, and is not intended to be placed in a map with hammer.
Note:Key/values, inputs and outputs vary depending on engine version. (needs more research- this stuff is from ep2)
m (Robot: fixing template case.) |
No edit summary |
||
Line 5: | Line 5: | ||
== Entity Description == | == Entity Description == | ||
The player. This entity still exists even if the player is dead. | The player. This entity still exists even if the player is dead. A pointer to the player can be acquired bu using UTIL_GetLocalPlayer() | ||
== Keyvalues == | == Keyvalues == |
Revision as of 18:38, 28 January 2010


Entity Description
The player. This entity still exists even if the player is dead. A pointer to the player can be acquired bu using UTIL_GetLocalPlayer()
Keyvalues
- targetname <target_source>
- Defines the name that other entities refer to this entity by.
- friction
- health
- The player's health.
- max_health
- The value of "health" cannot exceed this.
- physdamagescale
Inputs
Parentname:
- SetParent <string >
- Move with this entity. See Entity Hierarchy (parenting).
- SetParentAttachment <string >
- Change this entity to attach to a specific attachment point on its parent. The entity will teleport so that the position of its root bone matches that of the attachment. Entities must be parented before being sent this input.
- SetParentAttachmentMaintainOffset <string >
- As above, but without teleporting. The entity retains its position relative to the attachment at the time of the input being received.
- ClearParent
- Removes this entity from the the movement hierarchy, leaving it free to move independently.
- RenderFields:
- Alpha <integer 0–255>
- Sets the entity's transparency to a number from 0 (invisible) to 255 (fully visible). Requires the entity to have its
rendermode
set to a number other than0
.
- Color <color255 >
- Sets an RGB color for the entity.
- IgnoreFallDamage
- IgnoreFallDamageWithoutReset
- OnSquadMemberKilled
- DisableFlashlight
- Disables the player's flashlight.
- EnableFlashlight
- Enables the player's flashlight.
- ForceDropPhysObjects
- SetHealth <integer>
- Sets the player's health. Values clamped between 0 and max_health.
- SetHUDVisibility
- SetFogController
- physdamagescale
- KilledNPC
- skin <integer>
- Sets the model's skin.
Outputs
- OnIgnite
- Fired when the entity is ignited.