Item suit: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.)
(-added class hierarchy, cleanup)
Line 1: Line 1:
<!-- When this page is updated to {{langsp}} or {{langsp}} instead of {{lang}}, please move {{this is a}} to the base page, as it is automatically translated. -->{{lang|Item_suit}}{{tabs|item_suit|goldsrc=1|source=1|main=source}}
<!-- When this page is updated to {{langsp}} or {{langsp}} instead of {{lang}}, please move {{this is a}} to the base page, as it is automatically translated. -->{{lang|Item_suit}}{{tabs|item_suit|goldsrc=1|source=1|main=source}}
{{CD|CItemSuit|file1=item_suit.cpp}}
[[File: item_suit.png | right | 300px]]
[[File: item_suit.png | right | 300px]]


Line 8: Line 9:
{{ModernPlacementTip|This entity should be placed at least one unit above the ground, or it will not be visible in-game.}}
{{ModernPlacementTip|This entity should be placed at least one unit above the ground, or it will not be visible in-game.}}


{{code class|CItemSuit|item_suit.cpp}}
__NOTOC__
__TOC__
{{clr}}
 
==Suit Jingle==
==Suit Jingle==
When [[Dr. Gordon Freeman]] enters his suit in [[Half-Life 2]], a small tune starts playing.
When [[Dr. Gordon Freeman]] enters his suit in [[Half-Life 2]], a small tune starts playing.
Line 20: Line 18:


==Flags==
==Flags==
*1: Short Logon (Deprecated)
{{fl|1|Short Logon (Deprecated)|
:When checked, doesn't play the logon (<code>hl1/fvox/bell.wav</code>) sound. In Half-Life, this flag was used to cut the HEV suit's long logon speech, but was cut from Half-Life 2 along with many HEV voicelines. (Dr. Kleiner replaced the feature with a short bell)
When checked, doesn't play the logon (<code>hl1/fvox/bell.wav</code>) sound. In Half-Life, this flag was used to cut the HEV suit's long logon speech, but was cut from Half-Life 2 along with many HEV voicelines. (Dr. Kleiner replaced the feature with a short bell)}}
 
==Keyvalues==
{{KV Item}}
{{KV BaseAnimating|base=1}}
{{KV BaseEntity|base=1}}
 
==Inputs==
{{I Item}}
{{I BaseAnimating}}
{{I BaseEntity|base=1|prel4d=1}}


==Outputs==
==Outputs==
{{O Item}}
{{O Item}}
{{bug|<code>OnCacheInteraction</code> is non-functional.}}
{{bug|<code>OnCacheInteraction</code> is non-functional.}}
{{O BaseAnimating}}
{{O BaseEntity}}


[[Category:Items]]
[[Category:Items]]

Revision as of 06:21, 1 July 2024

English (en)Translate (Translate)
C++ Class hierarchy
CItemSuit
CItem
CBaseAnimating
CBaseEntity
C++ item_suit.cpp
Item suit.png

item_suit is a point entity available in Half-Life 2 Half-Life 2, Half-Life 2: Episode One Half-Life 2: Episode One, Half-Life 2: Episode Two Half-Life 2: Episode Two, and Half-Life 2: Deathmatch Half-Life 2: Deathmatch.
This represents the Mark V Hazardous Environment Suit, Aka HEV-Suit, when not being worn by the player. It is an upgraded version of the Mark IV suit that Black Mesa employees were required to wear when handling anomalous materials (in Half-Life).
This is only a pickup to enable suit charging and the HUD (EquipSuit()).

PlacementTip.gifPlacement Tip:This entity should be placed at least one unit above the ground, or it will not be visible in-game.


Suit Jingle

When Dr. Gordon Freeman enters his suit in Half-Life 2, a small tune starts playing.

To set this up, have the item_suit output OnPlayerTouch target an ambient_generic with the input PlaySound.

The song used in Half-Life 2 is called song_trainstation_05_suit (music/hl1_song11.mp3), but there is apparently also a tune called song23 (music/hl2_song23_suitsong3.mp3) that, judging by its name, was intended for the HEV suit.

Flags

Short Logon (Deprecated) : [1]

When checked, doesn't play the logon (hl1/fvox/bell.wav) sound. In Half-Life, this flag was used to cut the HEV suit's long logon speech, but was cut from Half-Life 2 along with many HEV voicelines. (Dr. Kleiner replaced the feature with a short bell)

Outputs

Item:

OnPlayerTouch
Fires when the player touches this item. !activator is the player.
OnCacheInteraction
This output fires when the player proves they have "found" this item.
Fires on:
  • Player Touch (whether or not player actually acquires the item).
  • Picked up by +use.
  • Picked up by gravity gun.
  • Punted by gravity gun.
Icon-Bug.pngBug:OnCacheInteraction is non-functional.  [todo tested in ?]