Env pinch: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{CDA|CEnv_Pinch|CBaseEntity|}}
[[File:envpinchfx.jpg|550px|right]]
[[File:envpinchfx.jpg|550px|right]]
{{this is a|point entity|name=env_pinch|game=Black Mesa}} This entity creates pinch with scaling effect, the pinch is sprite with refraction that uses {{code|effects/strider_pinch_dudv}} texture.
{{this is a|point entity|name=env_pinch|game=Black Mesa}} This entity creates pinch with scaling effect, the pinch is sprite with refraction that uses {{code|effects/strider_pinch_dudv}} texture.


 
{{bug|hidetested=1|The sprite disappear when player don't see [[origin]] of this entity.}}
Represented by class <code>CPropXenPushPad</code>.
{{important|You need to put material of the texture into {{code|custom}} folder (can be found in {{code|hl2_misc_dir.vpk}}), otherwise you will see the chessboard texture, also, the console will spam {{code|Material effects/strider_pinch_dudv has bad reference count 0 when being bound}} error message. Not in {{bms12|4}}.
{{bug|The sprite disappear when player don't see [[origin]] of this entity.}}
{{important|You need to put material of the texture into {{code|custom}} folder (can be found in {{code|hl2_misc_dir.vpk}}), otherwise you will see the chessboard texture, also, the console will spam {{code|Material effects/strider_pinch_dudv has bad reference count 0 when being bound}} error message. Not in {{bms12|4}} (the mod version).
{{expand|title=Example.|noborder=1|1=
{{expand|title=Example.|noborder=1|1=
<br>
<br>
Line 13: Line 12:
}}
}}
}}
}}
{{back |Black Mesa Level Creation}}


==Keyvalues==
==Keyvalues==
Line 19: Line 17:
{{KV|Start Size|intn=startsize|float|Start size.}}
{{KV|Start Size|intn=startsize|float|Start size.}}
{{KV|End Size|intn=endsize|float|End size.}}
{{KV|End Size|intn=endsize|float|End size.}}
{{KV BaseEntity|base=1}}


==Flags==
==Flags==
Line 25: Line 22:


==Inputs==
==Inputs==
{{IO|Start|param=void|Start the pinch effect.
{{I|Start|param=void|Start the pinch effect.
{{note|If fired after {{code|Stop}} input, this input will give restart effect.}}
{{note|If fired after {{code|Stop}} input, this input will give restart effect.}}
}}
}}
{{IO|Stop|param=void|Stop {{code|Life Time}} and make the pinch effect infinite.}}
{{I|Stop|param=void|Stop {{code|Life Time}} and make the pinch effect infinite.}}
{{IO|Finish|param=void|Finish the pinch effect and fire {{code|OnFinish}} output (also removes entity if the flag is checked).|nofgd=1}}
{{I|Finish|param=void|Finish the pinch effect and fire {{code|OnFinish}} output (also removes entity if the flag is checked).|nofgd=1}}
{{I BaseEntity|base=1}}


==Outputs==
==Outputs==
{{IO|OnFinish|Fires when pinch effect is finished.}}
{{O|OnFinish|Fires when pinch effect is finished.}}
{{O BaseEntity}}

Latest revision as of 00:13, 27 May 2025

C++ Class hierarchy
CEnv_Pinch
CBaseEntity
Envpinchfx.jpg

env_pinch is a point entity available in Black Mesa Black Mesa. This entity creates pinch with scaling effect, the pinch is sprite with refraction that uses effects/strider_pinch_dudv texture.

Icon-Bug.pngBug:The sprite disappear when player don't see origin of this entity.
Icon-Important.pngImportant:You need to put material of the texture into custom folder (can be found in hl2_misc_dir.vpk), otherwise you will see the chessboard texture, also, the console will spam Material effects/strider_pinch_dudv has bad reference count 0 when being bound error message. Not in Black Mesa (mod) Black Mesa (mod).
Example.

Keyvalues

Life Time (timer) <float>
Amount of time before Finish input after Start input.
Start Size (startsize) <float>
Start size.
End Size (endsize) <float>
End size.

Flags

Remove after pinch fx is finished : [65536]
If this flag is unchecked - this entity will not be removed after Finish input.

Inputs

Start <void>
Start the pinch effect.
Note.pngNote:If fired after Stop input, this input will give restart effect.
Stop <void>
Stop Life Time and make the pinch effect infinite.
Finish <void> !FGD
Finish the pinch effect and fire OnFinish output (also removes entity if the flag is checked).

Outputs

OnFinish
Fires when pinch effect is finished.