Cycler: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
(-cleanup) |
||
Line 1: | Line 1: | ||
{{langsp}} | {{langsp}} | ||
{{CD2|CGenericCycler|file1=h_cycler.cpp | {{CD2|CGenericCycler|file1=h_cycler.cpp}} | ||
It is used to display a model for testing purposes. Shooting it will cycle through the model's animations. | It is used to display a model for testing purposes. Shooting it will cycle through the model's animations. | ||
== Keyvalues == | == Keyvalues == | ||
{{KV Targetname}} | {{KV Targetname}} | ||
{{KV Angles}} | {{KV Angles}} | ||
{{KV RenderFxChoices}} | {{KV RenderFxChoices}} | ||
{{KV RenderFields}} | {{KV RenderFields}} | ||
{{KV|Model|studio|Model file.}} | {{KV|Model|studio|Model file.}} | ||
{{KV|Sequence|integer|Default animation sequence for the model to be playing after spawning.}} | {{KV|Sequence|integer|Default animation sequence for the model to be playing after spawning.}} | ||
{{KV|Skin|integer|Some models have multiple versions of their textures, called skins. Set this to a number other than 0 to use that skin instead of the default.}} | {{KV|Skin|integer|Some models have multiple versions of their textures, called skins. Set this to a number other than 0 to use that skin instead of the default.}} | ||
== Flags == | == Flags == | ||
{{fl|1|Not Solid}} | |||
== Inputs == | == Inputs == | ||
{{IO|SetSequence|Sets the cycler's sequence.|param=string}} | {{IO|SetSequence|Sets the cycler's sequence.|param=string}} | ||
{{I RenderFields}} | {{I RenderFields}} | ||
==See also== | ==See also== | ||
* [[cycler_actor]] - Special cycler entity for NPC`s. | * [[cycler_actor]] - Special cycler entity for NPC`s. |
Revision as of 03:18, 7 March 2024
![]() |
---|
CGenericCycler defined in ![]() h_cycler.cpp
|
It is used to display a model for testing purposes. Shooting it will cycle through the model's animations.
Keyvalues
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
- Pitch Yaw Roll (Y Z X) (angles) <QAngle>
- 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.
- Render FX (renderfx) <byte choices>
- Various somewhat legacy alpha effects. See render effects.
RenderFields:
- Render Mode (rendermode) <byte choices>
- Set a non-standard rendering mode on this entity.
Render Modes
- Render FX (renderfx) <byte choices>
- Various somewhat legacy alpha effects. See render effects.
- Render Amount / Transparency (renderamt) <byte>
- Transparency amount, requires a Render Mode other than Normal. 0 is invisible, 255 is fully visible.
- Render Color (R G B) (rendercolor) <color255>
- Color tint.
- Model ([todo internal name (i)]) <model path>
- Model file.
- Sequence ([todo internal name (i)]) <integer>
- Default animation sequence for the model to be playing after spawning.
- Skin ([todo internal name (i)]) <integer>
- Some models have multiple versions of their textures, called skins. Set this to a number other than 0 to use that skin instead of the default.
Flags
- Not Solid : [1]
Inputs
- SetSequence <string >
- Sets the cycler's sequence.
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.
See also
- cycler_actor - Special cycler entity for NPC`s.