Func fish pool: Difference between revisions
Jump to navigation
Jump to search
Bug:Killing the func_fish_pool does not delete the fish, the fish entity can be killed as a workaround. [todo tested in ?]
Warning:Killing the fish entity before killing the func_fish_pool entity crashes the game, the func_fish_pool entity must be killed first.
Risk of Confusion:This is a point entity despite the name starting with func_ which is usually a brush entity
(-added class hierarchy, cleanup, confusion, see also) |
(fish) |
||
Line 1: | Line 1: | ||
{{CD|CFishPool|file1=fish.cpp}} | |||
[[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}} | {{this is a|point entity|name=func_fish_pool}} | ||
It creates a school of interactive {{ent|fish}} that swim near this entity. | It creates a school of interactive {{ent|fish}} that swim near this entity. | ||
Line 9: | Line 9: | ||
== Keyvalues == | == Keyvalues == | ||
{{KV Targetname}} | {{KV Targetname}} | ||
{{KV|World model|intn=model|studio|Model spawned | {{KV|World model|intn=model|studio|Model spawned fish use.}} | ||
{{KV|Fish Count|intn=fish_count|integer|Number of fish in this pool.}} | {{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|Max Range|intn=max_range|float|How far away a fish can wander, in units. Maximum is 255 units.}} |
Revision as of 08:21, 28 June 2024
![]() |
---|
CFishPool |
![]() |
func_fish_pool
is a point entity available in all Source games.
It creates a school of interactive fish that swim near this 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
ortarget
).
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 fish 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.