Chicken: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.)
(-added class hierarchy, concise, see also)
Line 1: Line 1:
{{CD|CChicken|base=CDynamicProp|file1=chicken.cpp}}
[[File:csgo_chicken.png|thumb|right|200px|Chicken since 2021-05-03.]]
[[File:csgo_chicken.png|thumb|right|200px|Chicken since 2021-05-03.]]
[[File:Chicken.png|thumb|right|200px|Chicken before 2021-05-03.]]
[[File:Chicken.png|thumb|right|200px|Chicken before 2021-05-03.]]
{{this is a|point entity|game=Counter-Strike: Global Offensive|name=chicken}}
{{this is a|point entity|game=Counter-Strike: Global Offensive|name=chicken}}
{{preservedEnt|chicken}}
{{preservedEnt|chicken}}
{{code class|CChicken|chicken.cpp}}


==Entity Description==
==Entity Description==
This is an animated chicken. It moves around and plays some sounds by itself.
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.
* 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 [[pet_entity]], but directly placing this entity will ''not'' require a [[Navigation Meshes|Navigation Mesh]].
* 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.
* 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]].
* Chickens spawn independently around the map in the {{csgo mode|Dm}} [[CS:GO Game Modes|game mode]].
Line 14: Line 14:


== Keyvalues==
== Keyvalues==
{{ScrollBox|
{{KV BaseEntity|noscroll=1}}
{{KV BaseAnimating|noscroll=1}}
{{KV DynamicProp|l4d2=1}}
{{KV BreakableProp}}
}}
{{KV|Damage Filter Name|intn=damagefilter|targetname|When this entity receives damage, it will [[filter]] by this entity.}}
{{KV|Disable X360|choices|}}
:* 0 : No
:* 1 : Yes
{{minititle|Chicken Models and Skins}}
{{KV|Chicken Model|intn=SetBodyGroup|choices|Holiday submodels of chicken.}}
{{KV|Chicken Model|intn=SetBodyGroup|choices|Holiday submodels of chicken.}}
:* 0 : Default
:* 0 : Default
Line 34: Line 22:
:* 5 : Pumpkin head
:* 5 : Pumpkin head


== Inputs ==
== See Also ==
{{ScrollBox|
* {{ent|pet_entity}}
{{I BaseEntity|noscroll=1}}
* {{ent|info_map_parameters/Counter-Strike series|alt=info_map_parameters}}
{{I BaseAnimating|noscroll=1}}
{{I DynamicProp}}
{{I BreakableProp}}
}}
 
== Outputs ==
{{O DynamicProp}}
{{O BreakableProp}}
{{O BaseAnimating|noscroll=1}}
{{O BaseEntity|noscroll=1}}

Revision as of 11:59, 30 June 2024

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 point entity available in Counter-Strike: Global Offensive Counter-Strike: Global Offensive.

Icon-Important.pngImportant:This is a preserved entity in Counter-Strike: Global Offensive.
If the game has round restart mechanics this entity may not behave as expected:
More info
  • On a new round entities with this classname will intentionally not reset. You can use logic_auto to emulate resetting it.
  • Killing it removes it forever, as it is not respawned on a new round.
  • It cannot be spawned with a point_template.
  • Parenting this with non-preserved entities may have undesirable effects.

Entity Description

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

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