Item suit: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
m (Classifying as model entity)
 
(50 intermediate revisions by 28 users not shown)
Line 1: Line 1:
[http://aura.c3.hu/thumb/ucnifj.html reverend dean] [http://www.easypayinfo.com/subscribe/tmp/pvweqn.html the new pl bus monitor] [http://www.plurpage.com/classifieds/cache/tcuivp.html septic tank concrete] [http://aura.c3.hu/thumb/peneve.html mitchells bay ontario] [http://www.plurpage.com/classifieds/cache/jtjhub.html state of tennessee job opportunities] [http://aura.c3.hu/thumb/ppcaxh.html tax basis per share] [http://mkatzenbach.de/Website_MK_alt/content/cache/dir/end001/wdsaxg.html oracle unlock] [http://www.plurpage.com/classifieds/cache/keuvvh.html install jre on linux] [http://kom-pas.de/3xcms/config/hkatuploads/images/nipxss.html lets roll cause we almost made it] [http://activeimage.c3.hu/css/vffato.html seo software] [http://www.olemissfans.com/chatpro/image/ppdvtr.html pacific assault] [http://troniny.ovh.org/gallery/layout/nvionb.html mind station software download] [http://www.salona-yachts.eu/misc/wpdakr.html load data local] [http://www.olemissfans.com/chatpro/image/vcecks.html elementos estructurales] [http://www.farmelco.hu/test/css/emsbnj.html account order stock trading] [http://www.easypayinfo.com/subscribe/tmp/jjwmjs.html world war ii navy ship] [http://informer.siam.edu/themes/hm/daqmwf.html vocal ringtones] [http://mkatzenbach.de/Website_MK_alt/content/cache/dir/end001/nffmvo.html online bedroom furniture] [http://www.plurpage.com/classifieds/cache/jasrwf.html market anaylsis] [http://kom-pas.de/3xcms/config/hkatuploads/images/iihlnr.html new balance exercise bike] [http://maps.my2gig.com/cache/gklxtw.html ssc tool] [http://www.lowell.edu/styles/old_style/css/ieppgi.html discount ephedrine] [http://kom-pas.de/3xcms/config/hkatuploads/images/evvcvt.html asian nude tgp] [http://mkatzenbach.de/Website_MK_alt/content/cache/dir/end001/vbvreu.html soft water system] [http://www.easypayinfo.com/subscribe/tmp/wuajrr.html sudan genocide article] [http://informer.siam.edu/themes/hm/wfdewp.html ephedra online] [http://www.salona-yachts.eu/misc/epkpcf.html erik holm] [http://2001.c3.hu/mas/dajsvi.html wachovia golf] [http://troniny.ovh.org/gallery/layout/isghbq.html no que barato] [http://kom-pas.de/3xcms/config/hkatuploads/images/axcbsv.html student summer jobs canada] [http://activeimage.c3.hu/css/lhqggh.html we fall down lyrics christian] [http://www.housing.und.edu/reshalls/blog/wp-content/uploads/2007/04/img/tjtxws.html cheap propecia] [http://www.easypayinfo.com/subscribe/tmp/ddesos.html argentina pictures of people] [http://www.olemissfans.com/chatpro/image/pnjkbw.html pink gem stones] [http://troniny.ovh.org/gallery/layout/kpasdu.html ny movie theaters] [http://www.stillwaterhomes.com/listings/images/pic/visaox.html amc movie theater times] [http://ndr.hu/rhodes/dqbmte.html tow ropes] [http://troniny.ovh.org/gallery/layout/sgcahs.html audit income tax] [http://aura.c3.hu/thumb/fcdxvc.html plus size business suits for women] [http://troniny.ovh.org/gallery/layout/ehlkoc.html snap shots gay] [http://troniny.ovh.org/gallery/layout/vvcxgu.html auto mag upgrade] [http://activeimage.c3.hu/css/agfuks.html labor relations consultant] [http://aura.c3.hu/thumb/ikqjum.html edge phoenix radio] [http://www.salona-yachts.eu/misc/oimgct.html sarasota golf real estate] [http://www.stillwaterhomes.com/listings/images/pic/whkxkn.html star academy 3] [http://troniny.ovh.org/gallery/layout/dnufrk.html ask the blind man] [http://www.stillwaterhomes.com/listings/images/pic/mwumbg.html political regimes] [http://aura.c3.hu/thumb/samnjr.html autumn waiting] [http://2001.c3.hu/mas/lukrxx.html loan pharmacy student] [http://aura.c3.hu/thumb/ewxpdi.html make money on the side] [http://www.easypayinfo.com/subscribe/tmp/ulvjdn.html northern district bankruptcy court] [http://troniny.ovh.org/gallery/layout/vogcqh.html learn about specific colleges] [http://2001.c3.hu/mas/vmwwlm.html pumping tit for milk] [http://maps.my2gig.com/cache/ecvqpg.html michigan fishing boats for sale] [http://www.salona-yachts.eu/misc/uowwgi.html 3 4 cruise day] [http://www.easypayinfo.com/subscribe/tmp/douwbk.html 304 stainless steel sheets] [http://troniny.ovh.org/gallery/layout/opjsqg.html north node of the moon] [http://www.housing.und.edu/reshalls/blog/wp-content/uploads/2007/04/img/bcoasu.html discount diflucan] [http://kristinlyseggen.com/gallery/1documentaries/7travel/iusxkt.html movie double trouble] [http://www.salona-yachts.eu/misc/bfutsd.html raving fans video] [http://www.systemsupport.und.edu/cache/avatars/emo/sxwwin.html tsunami maps and pictures] [http://mkatzenbach.de/Website_MK_alt/content/cache/dir/end001/brhjpt.html online tobacco stores] [http://www.systemsupport.und.edu/cache/avatars/emo/iodumu.html zocor online] [http://www.olemissfans.com/chatpro/image/csmndw.html air travel in china] [http://www.stillwaterhomes.com/listings/images/pic/libdgi.html early wynn] [http://ndr.hu/rhodes/nweggt.html when to have intercourse to get pregnant] [http://ndr.hu/rhodes/ahkbrn.html pediatric normal blood pressure] [http://kom-pas.de/3xcms/config/hkatuploads/images/fscxhc.html mother angelica] [http://activeimage.c3.hu/css/cpmbbe.html addicting free game] [http://www.olemissfans.com/chatpro/image/jqoqpl.html xenical com] [http://informer.siam.edu/themes/hm/jfgfoc.html download tracfone ringtones] [http://mkatzenbach.de/Website_MK_alt/content/cache/dir/end001/aqvqlv.html et fr futuna wallis] [http://mkatzenbach.de/Website_MK_alt/content/cache/dir/end001/rkwrxa.html anonymous p2p client] [http://www.housing.und.edu/reshalls/blog/wp-content/uploads/2007/04/img/pivitv.html buy tramadol] [http://www.salona-yachts.eu/misc/rnhqrq.html tree of life christian schools ohio] [http://2001.c3.hu/mas/xpgfnn.html one of those day lyric] [http://2001.c3.hu/mas/iuoquk.html e.b white books] [http://activeimage.c3.hu/css/vjnwcv.html amateur dramatic societies] [http://2001.c3.hu/mas/wewgas.html air mustang ram] [http://www.easypayinfo.com/subscribe/tmp/aawgws.html sunny isles beach florida] [http://www.salona-yachts.eu/misc/pfrvqt.html insufficient attributes were given to create an object] [http://informer.siam.edu/themes/hm/dpdeiq.html nextel ringtone] [http://ndr.hu/rhodes/pwvnlx.html van morrison photo] [http://www.easypayinfo.com/subscribe/tmp/ejfewv.html outta control by 50] [http://ndr.hu/rhodes/bpthvx.html apartment holiday louie st] [http://mkatzenbach.de/Website_MK_alt/content/cache/dir/end001/fvichr.html tsunami maps and pictures] [http://www.lowell.edu/styles/old_style/css/xjvirq.html the way he made me feel book] [http://www.lowell.edu/styles/old_style/css/obduqa.html free retro ringtones] [http://www.stillwaterhomes.com/listings/images/pic/gtvjmp.html sinks bathroom discount] [http://www.olemissfans.com/chatpro/image/gnbobt.html iowa state high school league] [http://maps.my2gig.com/cache/mcnsam.html mother day jewelry] [http://www.lowell.edu/styles/old_style/css/dqaeou.html 2 history in isle many played world world] [http://2001.c3.hu/mas/fjqbpu.html sample job interview thank you notes] [http://www.plurpage.com/classifieds/cache/sxcohc.html quality recovery services] [http://www.easypayinfo.com/subscribe/tmp/pfaaru.html ambiance resort] [http://www.olemissfans.com/chatpro/image/qqfijv.html ubuntu breezy gnome] [http://activeimage.c3.hu/css/btnlfl.html austin real estate values] [http://www.stillwaterhomes.com/listings/images/pic/klmilg.html san diego escorts review] [http://www.systemsupport.und.edu/cache/avatars/emo/rlwsid.html kim porters] [http://kom-pas.de/3xcms/config/hkatuploads/images/hvovni.html anime desktop themes]
{{LanguageBar}}
{{wrongtitle|title=item_suit}}
{{TabsBar|main=item_suit}}
{{CD|CItemSuit|file1=item_suit.cpp}}
[[File: item_suit.png | right | 300px]]


== Entity description ==
{{This is a|model entity|name=item_suit|game=Half-Life 2 series|game1=Portal series|game2=Source SDK Bases}}<br>
[[Image:item_suit.jpg|thumb|200px|right|HEV Suit]]
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 Research Facility|Black Mesa]] employees were required to wear when handling anomalous materials (in [[Half-Life]]).<br>
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]]).
This is only a pickup to enable suit charging and the [[HUD]] (<code>EquipSuit()</code>).
__NOTOC__


{{placement tip|This entity should be placed at least one inch 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.}}
{{note|This entity is also available in {{portal2|4}}, but most of the functions are disabled or do not work at all, including the HUD. You can still charge armor.}}
{{Important|hidetested=1|{{hl2ep1|4}} swaps the original texture ({{Path|materials/models/hevsuit/hevsuit_sheet|vtf}}) with a very downscaled 32x32 texture (presumably to save VRAM usage, since it never is visible in the vanilla campaign). {{hl2ep2|4}} also uses it, due to the gameinfo mounting the EP1 content as well.{{fix|Pack the original textures into a mod, to be used in the episode's "Custom folder".<br>Alternatively, mods downloaded from the Steam Workshop will overwrite the models of all game versions, circumventing this issue.}}}}
==Suit sounds==
When player receives damage, mechanical voice speaks and suit starts beeping. Suit responds to various kinds of damage including blood loss from bullets, fall from height, slashes from [[npc_zombie|zombies]] and bites from [[npc_headcrab_black|poisonous headcrabs]].


=== Suit jingle ===
The volume of these sounds can be controlled with [[float]] [[console variable]] {{code|suitvolume}}. Accepted values range from 0 to 1. Set to 0 to mute suit sounds completely.
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 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 for <code>OnPlayerTouch</code> that fire's <code>SuitSong</code>'s <code>PlaySound</code>.


== Keyvalues ==
===Suit Jingle===
* {{kv item}}
When [[Dr. Gordon Freeman]] enters his suit in [[Half-Life 2]], a small tune starts playing.


== Flags ==
To set this up, have the <code>item_suit</code> output <code>OnPlayerTouch</code> target an {{ent|ambient_generic}} that's placed close to the suit with the input <code>PlaySound</code>.
* 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 ==
The song used in Half-Life 2 is called [[List of Half-Life 2 music|'''song_trainstation_05_suit''']] ({{file|music/hl1_song11|mp3}}), but there is apparently also a tune called [[List of Half-Life 2 music|'''song23''']] ({{file|music/hl2_song23_suitsong3|mp3}}) that, judging by its name, was intended for the HEV suit.
* {{i item}}


== Outputs ==
==Flags==
* {{o item}}
{{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)}}
 
==Outputs==
{{O Item}}
{{bug|<code>OnCacheInteraction</code> is non-functional.}}


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

Latest revision as of 04:32, 19 May 2025

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

item_suit is a model entity available in Half-Life 2 series Half-Life 2 series, Portal series Portal series, and Source SDK BasesSource SDK BasesSource SDK Bases Source SDK Bases.
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.
Note.pngNote:This entity is also available in Portal 2 Portal 2, but most of the functions are disabled or do not work at all, including the HUD. You can still charge armor.
Icon-Important.pngImportant:Half-Life 2: Episode One Half-Life 2: Episode One swaps the original texture (🖿materials/models/hevsuit/hevsuit_sheet.vtf) with a very downscaled 32x32 texture (presumably to save VRAM usage, since it never is visible in the vanilla campaign). Half-Life 2: Episode Two Half-Life 2: Episode Two also uses it, due to the gameinfo mounting the EP1 content as well.
Note.pngFix:Pack the original textures into a mod, to be used in the episode's "Custom folder".
Alternatively, mods downloaded from the Steam Workshop will overwrite the models of all game versions, circumventing this issue.

Suit sounds

When player receives damage, mechanical voice speaks and suit starts beeping. Suit responds to various kinds of damage including blood loss from bullets, fall from height, slashes from zombies and bites from poisonous headcrabs.

The volume of these sounds can be controlled with float console variable suitvolume. Accepted values range from 0 to 1. Set to 0 to mute suit sounds completely.

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 that's placed close to the suit 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 ?]