item_airtank

An item_airtank is an oxygen tank that gives a player who touches it 12 more seconds of air under water.
Attributes
The entity also has these common keys:
- Position: Pitch Yaw Roll
- Appearance: all except Effects
targetnameGives the tank a name that other entities can use to find it. See Common keys.
targetNames the entities to trigger when a player takes air from it, and again when it is full again. See Common keys.
Shows brackets around the object for players near it. Within Hint Distance, the brackets are faint and in the HUD color. When the player is close enough to use the object and looks at it, the brackets take the color of the choice.
- None (empty) - No brackets
- button - Yellow, and orange while a master locks the object
- charger - Green, and red while the charger is empty
- eyescanner - Yellow
- pickup - Yellow
None (empty)objecthint_distanceSets how far from the player's eyes the faint brackets show, in units, up to 4096. The object must be in front of the player and in sight.
If you leave this key empty or set 0, the distance is 512 units.
colormapColors the parts of the model that a player model colors with the player's chosen top and bottom colors. A model without such parts doesn't change.The 81 choices
Notes
- After a player takes air, the tank gives none for 30 seconds, and then it is full again
- The tank has 20 health, and when it is destroyed, it explodes for 50 damage
See also
func_water- water that can rise and fall- item_airtank on TWHL - the Half-Life entity
Changes since 1.38
- You can use the new keys Object Hint Template and Hint Distance
