Cycler: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Cleaned up, but has to be verified: I might have made errors, this one was long to do.)
(concise)
 
(49 intermediate revisions by 21 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}}
It is used to display a model for testing purposes. Shooting it will cycle through the model's animations.


* {{kv targetname}}
{{Important|This is a debug entity. For mapping purposes use {{ent|prop_dynamic}} or {{ent|prop_dynamic_override}} instead.}}
{{altnames|name1=model_studio}}


* {{kv parentname}}
== Keyvalues ==
{{KV Targetname}}
{{KV Model}}


* {{kv angles}}
== Flags ==
{{fl|1|Not Solid}}


* {{kv renderfields}}
== Inputs ==
{{I|SetSequence|Sets the cycler's sequence.|param=string}}


* '''disableshadows'''
== See also ==
: {{boolean}}
* {{ent|cycler_actor}} - Special cycler entity for NPCs.
 
* '''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==
 
* 1 : Not Solid
 
==Inputs==
 
* {{i targetname}}
 
* {{i parentname}}
 
*'''SetSequence <string>'''
:Sets the cycler's sequence.
*'''Alpha <integer>'''
:Sets the cycler's alpha value.
 
==Outputs==
 
* {{o targetname}}
 
[[Category:Entities]]

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