Chicken: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Added instruction on placing the FGD Code.)
m (Classifying as model entity)
 
(22 intermediate revisions by 10 users not shown)
Line 1: Line 1:
[[Image:Chicken.png|thumb|right|200px|Chicken]]
{{Preserved entity|all}}
{{stub}}
{{CD|CChicken|base=CDynamicProp|file1=chicken.cpp}}
{{ent not in fgd}}
[[File:csgo_chicken.png|thumb|right|200px|Chicken since 2021-05-03.]]
{{csgo point|chicken}}
[[File:Chicken.png|thumb|right|200px|Chicken before 2021-05-03.]]


==Entity Description==
{{this is a|model entity|game=Counter-Strike: Global Offensive|name=chicken}}
A chicken. ''{{todo|Add extra description to this entity.}}''
This is an animated chicken. It moves around and plays some sounds by itself.
* A [[player]] can {{ent|+use}} it to make it follow them. When a new round starts, the chicken is preserved and spawns near its "owner". When it dies, the "owner" is notified in the chat.
* It is normally spawned with {{ent|pet_entity}}, but directly placing this entity will ''not'' require a [[Navigation Meshes|Navigation Mesh]].
* It is one of the [[preserved entities]], so if this entity is map placed and killed, it will ''not'' respawn, even between rounds. Use [[pet_entity]] to get around this.
* Chickens spawn independently around the map in the {{csgo mode|Dm}} [[CS:GO Game Modes|game mode]].
The chicken model has multiple color variants that can be set with this entity's <code>skin</code> KeyValue and/or Input with a value within 0-4.


==FGD Code==
== Keyvalues ==
<pre>
{{KV Targetname}}
@PointClass base(prop_dynamic,EnableDisable) sphere(fademindist) sphere(fademaxdist) studio("models/chicken/chicken.mdl") = chicken :
{{KV|Chicken Model|intn=SetBodyGroup|choices|Holiday submodels of chicken.}}
"Chicken!"
:* 0 : Default
[
:* 1 : Party Hat
]
:* 2 : Ghost
</pre>
:* 3 : Sweater
Instruction on placing the FGD Code:
:* 4 : Bunny ears
:* 5 : Pumpkin head


Paste the FGD code in the last line of the [[Base.fgd/Source 2013 (Counter Strike: Global Offensive)|base.fgd.]] The base.fgd can be found in CS:GO's bin folder.
== See Also ==
* {{ent|pet_entity}}
* {{ent|info_map_parameters/Counter-Strike series|alt=info_map_parameters}}

Latest revision as of 04:30, 19 May 2025

Recycle-warning.png
This is a preserved entity.
If the game has round restart mechanics this entity may not behave as expected.
C++ Class hierarchy
CChicken
CDynamicProp
CBreakableProp
CBaseProp
CBaseAnimating
CBaseEntity
C++ chicken.cpp
Chicken since 2021-05-03.
Chicken before 2021-05-03.

chicken is a model entity available in Counter-Strike: Global Offensive Counter-Strike: Global Offensive. This is an animated chicken. It moves around and plays some sounds by itself.

  • A player can +use it to make it follow them. When a new round starts, the chicken is preserved and spawns near its "owner". When it dies, the "owner" is notified in the chat.
  • It is normally spawned with pet_entity, but directly placing this entity will not require a Navigation Mesh.
  • It is one of the preserved entities, so if this entity is map placed and killed, it will not respawn, even between rounds. Use pet_entity to get around this.
  • Chickens spawn independently around the map in the CS:GO/CS2 Deathmatch Deathmatch game mode.

The chicken model has multiple color variants that can be set with this entity's skin KeyValue and/or Input with a value within 0-4.

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

Chicken Model (SetBodyGroup) <choices>
Holiday submodels of chicken.
  • 0 : Default
  • 1 : Party Hat
  • 2 : Ghost
  • 3 : Sweater
  • 4 : Bunny ears
  • 5 : Pumpkin head

See Also