This article's documentation is for the "GoldSrc" engine. Click here for more information.

func_water

From Valve Developer Community
Revision as of 12:16, 19 March 2025 by SirYodaJedi (talk | contribs)
Jump to navigation Jump to search
English (en)Translate (Translate)
edit
C++ Class hierarchy
CBaseDoor
CBaseToggle
CBaseAnimating
CBaseDelay
CBaseEntity
C++ doors.cpp

func_water is a brush entity available in all GoldSrc GoldSrc games. A water texture (one prefixed with '!') will act as water (with additional prefixes for other liquid types), but binding it to an entity gives added advantages.

Cpp.pngCode:Both func_water and func_door are linked to CBaseDoor C++ class, and can be used interchangeably, setting skin to the appropriate contents. The only difference is when this entity collides with another entity with the same targetname: if the other entity is a "func_door" or "func_door_rotating", then this entity will stop when it hits the other entity.
Note.pngNote:All Keyvalues and Spawnflags are the same as func_door.