Generic Keyvalues, Inputs and Outputs/Keyvalues: Difference between revisions
Jump to navigation
Jump to search
(Added more keyvalues, and re-organized the list.) |
No edit summary |
||
Line 8: | Line 8: | ||
{{#if: {{{cswarning|}}} | {{warning|In {{game link|Counter-Strike: Source}}, [[Counter-Strike Source Entity Overview#Counter-Strike Round Restarts|parenting this entity to another can break the map]].}} }} }} | {{#if: {{{cswarning|}}} | {{warning|In {{game link|Counter-Strike: Source}}, [[Counter-Strike Source Entity Overview#Counter-Strike Round Restarts|parenting this entity to another can break the map]].}} }} }} | ||
{{KV|Origin {X Y Z} (origin)|origin|The position of this entity's center in the world. Rotating entities typically rotate around their origin.}} | {{KV|Origin {X Y Z} (origin)|origin|The position of this entity's center in the world. Rotating entities typically rotate around their origin.}} | ||
{{KV|Pitch Yaw Roll {Y Z | {{KV|Pitch Yaw Roll {X Y Z} (angles)|angle|This entity's orientation in the world. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, roll is the rotation around the X axis.}} | ||
:{{note|This works on brush entities, although Hammer doesn't show the new angles.}} | :{{note|This works on brush entities, although Hammer doesn't show the new angles.}} | ||
{{KV|Hammer ID (hammerid)|string|The entity's [[Hammer]] ID. Mainly used by plugins and debugging commands, such as [[ent_keyvalue]].}} {{Not in FGD}} | {{KV|Hammer ID (hammerid)|string|The entity's [[Hammer]] ID. Mainly used by plugins and debugging commands, such as [[ent_keyvalue]].}} {{Not in FGD}} |
Revision as of 16:45, 23 July 2018
- Classname (classname) ([todo internal name (i)]) <string>
- The classname defines the type of entity.
Note:Classnames can be changed using AddOutput, which will influence how the engine deals with the entity in certain circumstances.
- Name (targetname) ([todo internal name (i)]) <string>
- The targetname that other entities refer to this entity by.
- Global Entity Name (globalname) ([todo internal name (i)]) <string>
- Name by which this entity is linked to another entity in a different map. When the player transitions to a new map, entities in the new map with globalnames matching entities in the previous map will have the previous map's state copied over their state.
- Parent (parentname) ([todo internal name (i)]) <targetname>
- Specifies a movement parent. An entity will maintain its initial offset from its parent. An attachment point can be added to the end of the name, separated by a comma.
Note:Every entity can be parented, even point entities. Some entities which aren't intended to be parented may not function correctly. phys_constraint can be used as a workaround to parenting.
- Origin {X Y Z} (origin) ([todo internal name (i)]) <origin>
- The position of this entity's center in the world. Rotating entities typically rotate around their origin.
- Pitch Yaw Roll {X Y Z} (angles) ([todo internal name (i)]) <angle>
- This entity's orientation in the world. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, roll is the rotation around the X axis.
Note:This works on brush entities, although Hammer doesn't show the new angles.
- Hammer ID (hammerid) ([todo internal name (i)]) <string>
- The entity's Hammer ID. Mainly used by plugins and debugging commands, such as ent_keyvalue. !FGD
- Effects (effects) ([todo internal name (i)]) <string>
- Effect flags. !FGD
- Response Contexts (ResponseContext) ([todo internal name (i)]) <string>
- Pre-defined response system contexts for this entity. Format is
key:value,key:value,...
Note:Despite the description, this works for all entities, although it is missing from most entities in the FGD.
- Minimum CPU Level (mincpulevel) ([todo internal name (i)]) <integer> (in all games since
)
- Minimum CPU Level allowed for this entity. 0 means all levels allowed. !FGD
- Maximum CPU Level (maxcpulevel) ([todo internal name (i)]) <integer> (in all games since
)
- Maximum CPU Level allowed for this entity. 0 means all levels allowed. !FGD
- Minimum GPU Level (mingpulevel) ([todo internal name (i)]) <integer> (in all games since
)
- Minimum GPU Level allowed for this entity. 0 means all levels allowed. !FGD
- Maximum GPU Level (maxgpulevel) ([todo internal name (i)]) <integer> (in all games since
)
- Maximum GPU Level allowed for this entity. 0 means all levels allowed. !FGD
- Todo: Better description for all of these.
- Disable for Xbox 360 (disableX360) ([todo internal name (i)]) <boolean> (in all games since
)
- If Yes, disables this entity on the Xbox 360 version of Source. !FGD
Confirm:Playstation 3?
- Glow Backface Multiple (glowbackfacemult) ([todo internal name (i)]) <string> (in all games since
)
- Unknown.
only. !FGD
- Todo: Documentation.
- Entity Scripts (vscripts) ([todo internal name (i)]) <scriptlist> (in all games since
)
- Space delimited list of VScript files (without file extension) that are executed after all entities have spawned. The scripts are all executed in the same script scope, later ones overwriting any identical variables and functions.
- Script think function (thinkfunction) ([todo internal name (i)]) <string> (in all games since
)
- Name of a function in this entity's script which will be called automatically every 100 milliseconds (ten times a second) for the duration of the script. It can be used to create timers or to simulate autonomous behavior. The return value (if present) will set the time until the next call.
Note:Try to avoid expensive operations in this function, as it may cause performance problems.