This article was converted from a previous version of TWHL and may need to be reviewed
- The formatting may be incorrect due to differences in the WikiCode processing engine, it needs to be revised and reformatted
- Some information may be out of date
- After the article is re-formatted and updated, remove this notice and the Review Required category.
- Some older articles are no longer useful, or they duplicate information from other pages. In this case, delete the page after merging any relevant information into other pages. Contact an admin to delete a page.
Brush EntityYou guessed it.... Water! A water texture (one prefixed with '!') will act as water, but binding it to an entity gives added advantages. By the way, this entity looks a lot like func_door, because it's designed to be able to move (flooding etc.)
Attributes
- Name (targetname) - Property used to identify entities.
- Render FX (renderfx) - Gives objects special render effects. Think of it as modifying whatever the Render Mode puts out. The options are as follows:
[list]
[li]0 = Normal
- 1 = Slow Pulse
- 2 = Fast Pulse
- 3 = Slow Wide Pulse
- 4 = Fast Wide Pulse
- 5 = Slow Fade Away
- 6 = Fast Fade Away
- 7 = Slow Become Solid
- 8 = Fast Become Solid
- 9 = Slow Strobe
- 10 = Fast Strobe
- 11 = Faster Strobe
- 12 = Slow Flicker
- 13 = Fast Flicker
- 14 = Constant Glow
- 15 = Distort
- 16 = Hologram (Distort and Fade)[/li]
[li]Render Mode (rendermode) - Controls the type of rendering that is used for an object. Options are:
- 0 = Normal
- 1 = Color
- 2 = Texture
- 3 = Glow
- 4 = Solid
- 5 = Additive[/li]
[li]Pitch Yaw Roll (angles) - Sets the pitch (up / down), yaw (left / right) and roll (bank) respectively. The compass in WorldCraft / Hammer corresponds to Yaw. The settings are not always (or not all) used.[/li]
[li]Master (master) - The name of a multisource (or game_team_master) entity. A master must usually be active in order for the entity to work. Thus they act almost like an on/off switch, in their simplest form, and like an AND gate in the case of the multisource.[/li]
[li]Move Sound (movesnd) - These apply either to door or elevator type entities. For doors, the options are as follows:
- 0 = No Sound
- 1 = Servo (Sliding)
- 2 = Pneumatic (Sliding)
- 3 = Pneumatic (Rolling)
- 4 = Vacuum
- 5 = Power Hydraulic
- 6 = Large Rollers
- 7 = Track Door
- 8 = Snappy Metal Door
And for elevators:
- 0 = No Sound
- 1 = big elev 1
- 2 = big elev 2
- 3 = tech elev 1
- 4 = tech elev 2
- 5 = tech elev 3
- 6 = freight elev 1
- 7 = freight elev 2
- 8 = heavy elev
- 9 = rack elev
- 10 = rail elev
- 11 = squeek elev
- 12 = odd elev 1
- 13 = odd elev 2[/li]
[li]Stop Sound (stopsnd) - This property is found in both door and elevator type entities. For doors, the options are:
- 0 = No Sound
- 1 = Clang with brake
- 2 = Clang reverb
- 3 = Ratchet Stop
- 4 = Chunk
- 5 = Light airbrake
- 6 = Metal Slide Stop
- 7 = Metal Lock Stop
- 8 = Snappy Metal Stop
And these are elevator options:
- 0 = no sound
- 1 = big elev stop 1
- 2 = big elev stop 2
- 3 = freight elev stop
- 4 = heavy elev stop
- 5 = rack stop
- 6 = rail stop
- 7 = squeek stop
- 8 = quick stop[/li]
[li]Target (target) - When an entity is activated, it triggers the entity with the name specified by Target.[/li]
[li]Locked Sound (locked_sound) - Sounds to play when the entity is 'locked'. Options are:
- 0 = None
- 2 = Access Denied
- 8 = Small zap
- 10 = Buzz
- 11 = Buzz Off
- 12 = Latch Locked[/li]
[li]Unlocked Sound (unlocked_sound) - Sound to play when entity is 'unlocked'. Options are:
- 0 = None
- 1 = Big zap & Warmup
- 3 = Access Granted
- 4 = Quick Combolock
- 5 = Power Deadbolt 1
- 6 = Power Deadbolt 2
- 7 = Plunger
- 8 = Small zap
- 9 = Keycard Sound
- 10 = Buzz
- 13 = Latch Unlocked
- 14 = Light Switch[/li]
[li]Locked Sentence (locked_sentence) - Sentence that is spoken when entity is 'locked'. Options are:
- 1 = Gen. Access Denied
- 2 = Security Lockout
- 3 = Blast Door
- 4 = Fire Door
- 5 = Chemical Door
- 6 = Radiation Door
- 7 = Gen. Containment
- 8 = Maintenance Door
- 9 = Broken Shut Door[/li]
[li]Unlocked Sentence (unlocked_sentence) - Sentence that is spoken when entity is 'unlocked'. Options are:
- 1 = Gen. Access Granted
- 2 = Security Disengaged
- 3 = Blast Door
- 4 = Fire Door
- 5 = Chemical Door
- 6 = Radiation Door
- 7 = General Containment
- 8 = Maintenance area[/li]
[li]FX Amount (renderamt)[/li]
[li]FX Color (rendercolor)[/li]
[li]Global Entity Name (globalname)[/li]
[li]Kill Target (killtarget)[/li]
[li]Speed (speed) - Speed at which the entity moves once triggered.[/li]
[li]Delay before close (wait) - If not toggleable then this is the amount of time before the water returns to its original position. (-1 makes it stay 'open')[/li]
[li]Lip (lip) - lip remaining after move, useful if you want the water to dissapear completely.[/li]
[li]Damage inflicted when blocked (dmg) - Not sure that this is valid.[/li]
[li]Message if triggered (message)[/li]
[li]Fire on Close (netname)[/li]
[li]Health (health) - Not sure if this is valid either.[/li]
[li]Minimum light level (_minlight)[/li]
[li]ZHLT Lightflags (zhlt_lightflags)[/li]
[li]Light Origin Target (light_origin)[/li]
[li]Contents (skin) - Values:
- -3 = water
- -4 = slime
- -5 = lava[/li]
[li]Wave Height (WaveHeight) - Overrides the height set in worldspawn.[/li]
[/list]
Flags
- Starts open (1) - If triggered, it will start in the open position
- Don't link (4)
- Passable (8)
- Toggle (32)
- Use only (256)
- Monsters Can't (512)
- Not in Deathmatch (2048)
Notes
- You can set the default wave height in the worldspawn properties (Map -> Map Properties).
- Some of the func_door-derived properties don't work with func_water.
- To get the water to look like it's flowing, use a water texture that starts with 'scroll'.
- Use a func_conveyor to create a current.
Water is always rendered no matter where you are. A cheaper alternative is to use NULL texture for the water brush, set wave height to 0, set its render mode to texture and fx amount to 0. This will prevent the water from rendering, but you'll still be able to swim in it.
Use a func_door on top of it, with NULL texture except on top where you put actual water texture. Set render mode to texture and fx amount to 100. Set the passable flag.
If you want to create rising water, set the same target name to both the water and the door and trigger them together. Don't forget to set delays to the same values.
If you have a large amount of water, scale your door water texture by two or three.
It's also possible with BSP binary hacking to rename a normal texture used on normal brushwork into water, bypassing the culling done by the compiler, so that any surface it's applied to – walls, ceilings, etc – has the wavy effect, but with waveheight of 0.