Item suit: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(changed a lot that i'm too lazy to list here)
Line 1: Line 1:
{{DISPLAYTITLE:item_suit}}
{{DISPLAYTITLE:item_suit}}
[[Image:item_suit.jpg|thumb|200px|right|HEV Suit]]
[[Image:item_suit.jpg|thumb|200px|right|HEV Suit]]
{{hl2 point|item_suit}}
{{hl2 point|item_suit}} This represents the Mark V '''H'''azardous '''E'''n'''v'''ironment 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 only a pickup to enable suit charging and the [[HUD]] (<code>EquipSuit()</code>).
{{Placement Tip|This entity should be placed at least one inch 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.


== Entity description ==
To set this up, have the <code>item_suit</code> output <code>OnPlayerTouch</code> target an <code>[[ambient_generic]]</code> with the input <code>PlaySound</code>.
The HEV suit (The Mark V '''H'''azardous '''E'''n'''v'''ironment Suit). An upgraded version of the Mark IV suit that [[Black Mesa]] employees were required to wear when handling anomalous materials (in [[Half-Life]]).
{{Placement Tip|This entity should be placed at least one inch above the ground, or it will not be visible in-game.}}


== Suit jingle ==
The song used in Half-Life 2 is called '''song_trainstation_05_suit''' (or <code>music/hl1_song11.mp3</code>), but there is apparently also a tune called '''song23''' (or <code>music/hl2_song23_suitsong3.mp3</code>) that, judging by its name, was intended for the HEV suit.
When [[Dr. Gordon Freeman]] enters his suit in [[Half-Life 2]] a small tune starts playing. Here is how to set this up:
* If you haven't already, create the item_suit entity.
* Create an [[ambient_generic]] preferably somewhere near the suit.
* Open its properties and name the entity. (This example will name it "SuitSong".)
* Select a song for its ''Sound Name'' property. 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 looks like it was intended for the HEV suit.
* Check that all three flags in the ''SuitSong'' entity are checked.
* Click on the item_suit and create an output for <code>OnPlayerTouch</code> that fire's <code>SuitSong</code>'s <code>PlaySound</code>.


== Keyvalues ==
==Keyvalues==
* {{KV Item}}
{{KV Item}}


== Flags ==
==Flags==
* 1 : Short Logon
* 1 : Short Logon
:When checked, doesn't play the logon (''hl1/fvox/bell.wav'') sample. In [[Half-Life]] this flag was used to cut the HEV suits long logon speech, but Dr. Kleiner apparently replaced it with a simple bell sound while upgrading it.
: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 Dr. Kleiner apparently replaced it with a simple bell sound while upgrading it.
 
== Inputs ==
* {{I Item}}


== Outputs ==
==Inputs==
* {{O Item}}
{{I Item}}


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


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

Revision as of 15:27, 14 June 2018

HEV Suit

Template:Hl2 point This represents the Mark V Hazardous Environment 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 only a pickup to enable suit charging and the HUD (EquipSuit()).

PlacementTip.gifPlacement Tip:This entity should be placed at least one inch 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 (or music/hl1_song11.mp3), but there is apparently also a tune called song23 (or music/hl2_song23_suitsong3.mp3) that, judging by its name, was intended for the HEV suit.

Keyvalues

Item:

Flags

  • 1 : Short Logon
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 Dr. Kleiner apparently replaced it with a simple bell sound while upgrading it.

Inputs

Item:

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.

{{bug|OnCacheInteraction is non-functional.