Item suit

From Valve Developer Community
Revision as of 02:07, 8 February 2006 by Andreasen (talk | contribs) (Added flag description and provided instructions for a simple suit song.)
Jump to navigation Jump to search

Template:Wrongtitle

Entity Description

HEV Suit

This item gives the HEV suit to players.

This entity will collide with the floor if placed directly on it, so be sure to place it one or more units above the ground, or it will not be there in-game.

Suit Song

When 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 it's 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 the Play everywhere flag so that all its three flags are checked.
  • Click on the item_suit and create an Output called: "OnPlayerTouch SuitSong PlaySound"

Keyvalues

Flags

  • 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.)

Inputs

Outputs