Env wind: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Format please)
 
(cleaned up)
Line 1: Line 1:
env_wind
{{wrongtitle|title=env_wind}}


==Entity Description==
An entity to control wind in the map. Partially functional.
An entity to control wind in the map. Partially functional.


KEYS
==Availability==
{{in game|point}} {{game-base}}
{{in code|class=C_EnvWind|file=c_effects.cpp}}


Name targetname <target_source> The name that other entities refer to this entity by.
==Keyvalues==
*{{kv targetname}}
*{{kv angles}}
*'''gustsound'''
:<sound> Sound to be played to simulate the gusting wind.
*'''minwind'''
:<integer> Minimum speed of the wind while idling.
*'''maxwind'''
:<integer> Maximum speed of the wind while idling.
*'''mingust'''
:<integer> Minimum speed of wind gusts.
*'''maxgust'''
:<integer> Maximum speed of wind gusts.
*'''mingustdelay'''
:<integer> Minimum time delay between random gusts.
*'''maxgustdelay'''
:<integer> Maximum time delay between random gusts.
*'''gustdirchange'''
:<integer> Maximum amount that the wind's direction changes due to a gust, in degrees.


Pitch Yaw Roll (Y Z X) angles <angle> This entity's orientation in the world. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, roll is the rotation around the X axis.
==Inputs==
*{{i targetname}}


Gust Sound Filename gustsound <sound> Sound to be played to simulate the gusting wind.
==Outputs==
*{{o targetname}}


Min normal speed minwind <integer> Minimum speed of the wind while idling.
[[Category:Entities]]
 
Max normal speed maxwind <integer> Maximum speed of the wind while idling.
 
Min gust speed mingust <integer> Minimum speed of wind gusts.
 
Max gust speed maxgust <integer> Maximum speed of wind gusts.
 
Min gust delay mingustdelay <integer> Minimum time delay between random gusts.
 
Max gust delay maxgustdelay <integer> Maximum time delay between random gusts.
 
Max gust dir change (degrees) gustdirchange <integer> Maximum amount that the wind's direction changes due to a gust.
 
 
INPUTS
 
Kill Removes this entity from the world.
 
KillHierarchy Removes this entity and all its children from the world.
 
AddOutput <string> Adds an entity I/O connection to this entity. Format: <output name> <targetname>:<inputname>:<parameter>:<delay>:<max times to fire (-1 == infinite)>. Very dangerous, use with care.
 
FireUser1 Causes this entity's OnUser1 output to be fired.
 
FireUser2 Causes this entity's OnUser2 output to be fired.
 
FireUser3 Causes this entity's OnUser3 output to be fired.
 
FireUser4 Causes this entity's OnUser4 output to be fired.
 
 
OUTPUTS
 
OnUser1 Fired in response to FireUser1 input.
 
OnUser2 Fired in response to FireUser2 input.
 
OnUser3 Fired in response to FireUser3 input.
 
OnUser4 Fired in response to FireUser4 input.

Revision as of 12:54, 7 October 2005

Template:Wrongtitle

Entity Description

An entity to control wind in the map. Partially functional.

Availability

Template:In game Template:Game-base Template:In code

Keyvalues

<sound> Sound to be played to simulate the gusting wind.
  • minwind
<integer> Minimum speed of the wind while idling.
  • maxwind
<integer> Maximum speed of the wind while idling.
  • mingust
<integer> Minimum speed of wind gusts.
  • maxgust
<integer> Maximum speed of wind gusts.
  • mingustdelay
<integer> Minimum time delay between random gusts.
  • maxgustdelay
<integer> Maximum time delay between random gusts.
  • gustdirchange
<integer> Maximum amount that the wind's direction changes due to a gust, in degrees.

Inputs

Outputs