This article's documentation is for anything that uses the Source engine. Click here for more information.

Env splash: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
m (Updated old entity format to {{this is a}}. This action was perfomed by a bot.)
Line 1: Line 1:
{{lang|title=env_splash}}
<!-- When this page is updated to {{langsp}} or {{language subpage}} instead of {{lang}}, please move {{this is a}} to the base page, as it is automatically translated. -->{{lang}}[[File:Env splash.png|300px|thumb|right]]
[[File:Env splash.png|300px|thumb|right]]
{{this is a|e0|name=env_splash}} It creates a generic splash effect like the one seen when bullets fire into water, or when the player enters water.
{{entity|env_splash|type=e0}} It creates a generic splash effect like the one seen when bullets fire into water, or when the player enters water.


{{code class|CEnvSplash|effects.cpp}}
{{code class|CEnvSplash|effects.cpp}}

Revision as of 10:17, 4 January 2024

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

env_splash is an e0 available in all Source Source games. 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