Env splash: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Added correct template for requesting screenshot.)
(updates)
Line 1: Line 1:
{{Screenshot}}
{{lang|Env splash}}
{{base point|env_splash}}  
[[File:Env splash.png|300px|thumb|right]]
{{base point|env_splash}} It creates a generic splash effect like the one seen when bullets fire into water, or when the player enters water.


==Entity description==
{{code class|CEnvSplash|effects.cpp}}
It creates splash effects when triggered, normally at its origin.


== Keyvalues ==
==Flags==
{{KV|Scale of the splash|float|Scale of the splash.}}
*1: Automatically find water surface (place entity above water) - Make sure <code>%compilewater</code> is set!
{{KV Targetname}}
*2: Diminish with depth (diminished completely in 10 feet of water)
{{KV Angles}}


== Flags ==
==Keyvalues==
* 1 : Automatically find water surface (place entity above water) ***May not work properly with custom water textures***
{{KV|Scale of the splash (scale)|float|Scale of the splash.}}
* 2 : Diminish with depth (diminished completely in 10 feet of water)
{{KV BaseEntity}}


== Inputs ==
==Inputs==
{{IO|Splash|Create a splash effect.}}
{{IO|Splash|Create a splash effect.}}
{{I Targetname}}
{{I BaseEntity}}


== Outputs ==
==Outputs==
{{O Targetname}}
{{O BaseEntity|l4d=1}}

Revision as of 10:31, 2 October 2018

English (en)Translate (Translate)
Env splash.png

Template:Base point It creates a generic splash effect like the one seen when bullets fire into water, or when the player enters water.

C++ In code, it is represented by theCEnvSplashclass, defined in theeffects.cppfile.

Flags

  • 1: Automatically find water surface (place entity above water) - Make sure %compilewater is set!
  • 2: Diminish with depth (diminished completely in 10 feet of water)

Keyvalues

Scale of the splash (scale) ([todo internal name (i)]) <float>
Scale of the splash.


Inputs

Splash
Create a splash effect.


Outputs