Cycler: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Templated the disable shadows keyvalue.)
(concise)
 
(48 intermediate revisions by 20 users not shown)
Line 1: Line 1:
==Entity Description==
{{LanguageBar}}
An entity used to display a model for testing purposes. Shooting it with cycle through the model's animations.
{{TabsBar|main=gs|base=Cycler}}
{{This is a|model entity|name=cycler|game=Half-Life: Source|game1=Half-Life 2 series|game2=Portal series|game3=Counter-Strike series}}


==Keyvalues==
{{CD|CGenericCycler|file1=h_cycler.cpp}}
* {{kv targetname}}
It is used to display a model for testing purposes. Shooting it will cycle through the model's animations.
* {{kv parentname}}
* {{kv angles}}
* {{kv renderfields}}
* {{kv shadow}}
* '''model'''
: <studio>
* '''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.
* '''sequence'''
: <integer> Default animation sequence for the model to be playing after spawning.


==Flags==
{{Important|This is a debug entity. For mapping purposes use {{ent|prop_dynamic}} or {{ent|prop_dynamic_override}} instead.}}
* 1 : Not Solid
{{altnames|name1=model_studio}}


==Inputs==
== Keyvalues ==
* {{i targetname}}
{{KV Targetname}}
* {{i parentname}}
{{KV Model}}
*'''SetSequence <string>'''
:Sets the cycler's sequence.
*'''Alpha <integer>'''
:Sets the cycler's alpha value.


==Outputs==
== Flags ==
* {{o targetname}}
{{fl|1|Not Solid}}


[[Category:Entities]]
== Inputs ==
{{I|SetSequence|Sets the cycler's sequence.|param=string}}
 
== See also ==
* {{ent|cycler_actor}} - Special cycler entity for NPCs.

Latest revision as of 11:24, 19 May 2025

English (en)Hrvatski (hr)Русский (ru)中文 (zh)Translate (Translate)

cycler is a model entity available in Half-Life: Source Half-Life: Source, Half-Life 2 series Half-Life 2 series, Portal series Portal series, and Counter-Strike seriesCounter-Strike series Counter-Strike series.

C++ Class hierarchy
CGenericCycler
CCycler
CAI_BaseNPC
CBaseCombatCharacter
CBaseFlex
CBaseAnimatingOverlay
CBaseAnimating
CBaseEntity
C++ h_cycler.cpp

It is used to display a model for testing purposes. Shooting it will cycle through the model's animations.

Icon-Important.pngImportant:This is a debug entity. For mapping purposes use prop_dynamic or prop_dynamic_override instead.
AltNames.pngAltNames: This entity is also tied to model_studio.

Keyvalues

Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

World Model (model) <model path>[ Edit ]
In-game 3D representation of the entity to display. This is the path to a MDL relative to the game's root directory. (128 character limit)

Flags

Not Solid : [1]

Inputs

SetSequence <stringRedirectInput/string>
Sets the cycler's sequence.

See also