Func croc: Difference between revisions
Jump to navigation
Jump to search
SirYodaJedi (talk | contribs) (Valve gets really lazy with classname prefixes) |
No edit summary |
||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
{{LanguageBar}} | {{Tf2 topicon}}{{LanguageBar}} | ||
{{CD|CFuncCroc|base=CBaseTrigger|file1= | {{CD|CFuncCroc|base=CBaseTrigger|file1=func_croc.cpp}} | ||
[[File:Yetipark_2.jpg|thumb|cp_mercenarypark's crocodiles]] | [[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}} | ||
| Line 8: | Line 8: | ||
== Keyvalues == | == Keyvalues == | ||
{{KV Targetname}} | {{KV Targetname}} | ||
{{KV|Model|intn=croc_model|string|The model to be used for | {{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|Filter Name|intn=filtername|filterclass|Optional filter to use to see if activator triggers me}} | ||
{{KV TFTeam}} | {{KV TFTeam}} | ||
Latest revision as of 11:15, 7 October 2025
| CFuncCroc |
func_croc is a brush entity available in
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>
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentnameortarget).
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:
- Start Disabled (StartDisabled) <boolean>
- Stay dormant until activated (with the
Enableinput).
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.