Func croc: 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.)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<!-- When this page is updated to {{langsp}} or {{langsp}} instead of {{lang}}, please move {{this is a}} to the base page, as it is automatically translated. -->{{lang}}[[File:Yetipark_2.jpg|thumb|cp_mercenarypark's crocodiles]]
{{LanguageBar}}
 
{{CD|CFuncCroc|base=CBaseTrigger|file1=1}}
[[File:Yetipark_2.jpg|thumb|cp_mercenarypark's crocodiles]]
{{this is a|brush entity|name=func_croc|game=Team Fortress 2}}
{{this is a|brush entity|name=func_croc|game=Team Fortress 2}}


==Entity Description==
This entity is a variant of {{ent|trigger_hurt}} that has crocodiles. When a player is killed by the brush, a [[entity_croc|crocodile]] will be shown surfacing to bite them.
This entity is a variant of {{ent|trigger_hurt}} that has crocodiles. When a player is killed by the brush, a crocodile will be shown surfacing to bite them.


==Keyvalues==
== Keyvalues ==  
{{KV Targetname}}
{{KV|Model|intn=croc_model|string|The model to be used for the spawned {{ent|entity_croc}}. Default <code>models/props_island/crocodile/crocodile.mdl</code>}}
{{KV|Filter Name|intn=filtername|filterclass|Optional filter to use to see if activator triggers me}}
{{KV TFTeam}}
{{KV TFTeam}}
{{KV BaseAnimating|base=1}}
{{KV EnableDisable}}
{{KV Trigger}}


==Inputs==
== Inputs ==
{{I BaseAnimating}}
{{I EnableDisable}}
{{I Trigger|base=1}}


==Outputs==
==Outputs==
{{IO|OnEat|Fired when the entity consumes a player.}}
{{O|OnEat|Fired when the entity consumes a player.}}
{{IO|OnEatRed|Fired when the entity consumes a player on the RED team.}}
{{O|OnEatRed|Fired when the entity consumes a player on the RED team.}}
{{IO|OnEatBlue|Fired when the entity consumes a player on the BLU team.}}
{{O|OnEatBlue|Fired when the entity consumes a player on the BLU team.}}
{{O BaseAnimating}}
{{O Trigger|base=1}}

Latest revision as of 13:39, 21 April 2025

English (en)Español (es)Translate (Translate)
C++ Class hierarchy
CFuncCroc
CBaseTrigger
CBaseToggle
CBaseEntity
C++ func_croc.cpp
cp_mercenarypark's crocodiles

func_croc is a brush entity available in Team Fortress 2 Team Fortress 2.

This entity is a variant of trigger_hurt that has crocodiles. When a player is killed by the brush, a crocodile will be shown surfacing to bite them.

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

Model (croc_model) <string>
The model to be used for the spawned entity_croc. Default models/props_island/crocodile/crocodile.mdl
Filter Name (filtername) <filter>
Optional filter to use to see if activator triggers me
TeamNum:
Initial Team (TeamNum) <choices>
Which Team the entity belongs / is assigned to on spawn
  • 0: None
  • 1: Spectator/Halloween Souls Team Fortress 2
  • 2: RED Team Fortress 2
  • 3: BLU/Robots Team Fortress 2
  • 5: Halloween Bosses (only in Team Fortress 2) !FGD


Start Disabled (StartDisabled) <boolean>
Stay dormant until activated (with theEnableinput).

Inputs

EnableDisable:

Enable / Disable
Enable/disable this entity from performing its task. It might also disappear from view.

Outputs

OnEat
Fired when the entity consumes a player.
OnEatRed
Fired when the entity consumes a player on the RED team.
OnEatBlue
Fired when the entity consumes a player on the BLU team.