This article's documentation is for anything that uses the Source engine. Click here for more information.

Func fish pool: 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, cleanup, confusion, see also)
Line 1: Line 1:
[[File:fish_pool.jpg|thumb|right|300px|Fish swimming inside water, thanks to a func_fish_pool entity.]]
[[File:fish_pool.jpg|thumb|right|300px|Fish swimming inside water, thanks to a func_fish_pool entity.]]
{{this is a|point entity|name=func_fish_pool|engine=Source}}
{{CD|CFishPool|file1=fish.cpp}}
 
{{this is a|point entity|name=func_fish_pool}}
==Entity description==
It creates a school of interactive {{ent|fish}} that swim near this entity.
It creates a school of interactive [[fish]] that swim near this entity.
{{bug|Killing the func_fish_pool does not delete the fish, the fish entity can be killed as a workaround.}}
{{bug|Killing the func_fish_pool does not delete the fish, the fish entity can be killed as a workaround.}}
{{Warning|Killing the fish entity before killing the func_fish_pool entity crashes the game, the func_fish_pool entity must be killed first.}}
{{Warning|Killing the fish entity before killing the func_fish_pool entity crashes the game, the func_fish_pool entity must be killed first.}}
{{ModernConfusion|This is a point entity despite the name starting with func_ which is usually a brush entity}}


== Keyvalues ==
== Keyvalues ==
{{KV Targetname}}
{{KV Targetname}}
{{KV Parentname}}
{{KV|World model|intn=model|studio|Model spawned fishes use.}}
{{KV|Fish Count|intn=fish_count|integer|Number of fish in this pool.}}
{{KV|Max Range|intn=max_range|float|How far away a fish can wander, in units. Maximum is 255 units.}}


{{KV|World model (model)|studio|The fish model.}}
== See Also ==
{{KV|Fish Count (fish_count)|integer|Number of fish in this pool.}}
* {{ent|fish}}
{{KV|Max Range (max_range)|float|How far away a fish can wander, in units. Maximum is 255 units.}}
{{KV Origin}}

Revision as of 08:19, 28 June 2024

Fish swimming inside water, thanks to a func_fish_pool entity.
C++ Class hierarchy
CFishPool
CBaseEntity
C++ fish.cpp

func_fish_pool is a point entity available in all Source Source games. It creates a school of interactive fish that swim near this entity.

Icon-Bug.pngBug:Killing the func_fish_pool does not delete the fish, the fish entity can be killed as a workaround.  [todo tested in ?]
Warning.pngWarning:Killing the fish entity before killing the func_fish_pool entity crashes the game, the func_fish_pool entity must be killed first.
Warning.pngRisk of Confusion:This is a point entity despite the name starting with func_ which is usually a brush entity

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>
Model spawned fishes use.
Fish Count (fish_count) <integer>
Number of fish in this pool.
Max Range (max_range) <float>
How far away a fish can wander, in units. Maximum is 255 units.

See Also