Item suitcharger: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
m (Classifying as model entity)
 
(69 intermediate revisions by 24 users not shown)
Line 1: Line 1:
[http://phpkerala.com/old_forum/img/avatars/pics/news-857-20080615.html salt lake tribune movie guide] [http://xcuze.com/srtry/wp-content/uploads/2007/zelolo.html saint teresa of lisieux] [http://gfxedit.com/deep/wp-content/uploads/2007/news-724.html prescript assist] [http://faeriedrink.com/gallery/albums/userpics/10001/page1950.html denmark clogs] [http://jokesaside.com/wp-content/uploads/2008/04/comment-1198.html hookah] [http://noturaveragegirl.com/wp-content/uploads/2007/10/news1007.html linking park] [http://noturaveragegirl.com/wp-content/uploads/2007/10/news583.html sex changes] [http://gurubashid.com/order/img/Thumbs/new12.htm rotten cheese ween] [http://dperdana.com/dperdana/wpThumbnails/pics/news-153.html powermax] [http://otomatisrobotforex.com/order/img/pics/resource-186.html new york architecture building] [http://www.tidlo.lt/bb/var/include/news-1289.html aqua teen hunger force music] [http://knowlewesthealthpark.co.uk/wp-content/uploads/2007/01/page2.html 16 bit ms dos subsystem error quick fix 1.0] [http://gfxedit.com/deep/wp-content/uploads/2007/index.html http] [http://dperdana.com/dperdana/wpThumbnails/pics/news-1228.html remote desktop spy crack] [http://bereancall.org/yabbfiles/Buttons/en/new1248.htm nicotine drug test] [http://horseshoeontario.com/board/images/avatars/pic/article-590.htm electric six music videos] [http://mezain.com/wp-content/uploads/2008/02/index.htm link] [http://rahsiaperniagaanpos.com/mlmresponder/attach/files/text368.htm sysstem] [http://horseshoeontario.com/board/images/avatars/pic/article-1546.htm professional videographer forum] [http://vaslat.com/uni/content/82/news1158.html man on fire storyline] [http://itauro.com/wp-content/backup-d9363/dump/index.htm domain] [http://spirosart.gr/forums/Packages/install/1888.htm midi movie files] [http://woolie.co.uk/wp-content/uploads/2008/02/article-1194.htm 2pac lyrics] [http://woolie.co.uk/wp-content/uploads/2008/02/article-1030.htm msi k8n neo2 platinum skt 939] [http://knowlewesthealthpark.co.uk/wp-content/uploads/2007/01/page300.html kinoma producer serial number] [http://evin.az/images/page_upload/pics/topic1353.htm jesse powell you video] [http://dperdana.com/dperdana/wpThumbnails/pics/news-1780.html 33] [http://gurubashid.com/order/img/Thumbs/sitemap.htm page] [http://noturaveragegirl.com/wp-content/uploads/2007/10/news1043.html myth soma] [http://setbersalin.com/vsa/modfiles/pics/1202.htm mature lesbian seduces young girl] [http://fzlatino.org/Foro/Themes/theme2/index.html homepage] [http://noturaveragegirl.com/wp-content/uploads/2007/10/news993.html microsoft sql server license cost] [http://gurubashid.com/order/img/Thumbs/new274.htm mao misaki movies] [http://faeriedrink.com/gallery/albums/userpics/10001/page2886.html exercise videos karen voight] [http://jokesaside.com/wp-content/uploads/2008/04/comment-971.html air canada cargo tracking] [http://suportevirtual.com.br/publicidade/var/scripts/news987.html sf harvest festival] [http://johnbaem.com/wp-content/uploads/2005/page-689.html keynote pager] [http://agpenterprise.com/images/pixel/topic-1825.htm azureas bit torrent] [http://cantorinewyork.com/membersFiles/sound/topic-1072.html us drug law] [http://setbersalin.com/vsa/modfiles/pics/458.htm movie one flew over the cookoos nest] [http://faeriedrink.com/gallery/albums/userpics/10001/page897.html angelina jolie naked and nude] [http://phpkerala.com/old_forum/img/avatars/pics/news-822-20080615.html activation adobe code cs2] [http://persism.com/emil/pa/log/cache/news1582.html evil mp4 penguin video] [http://all-ny.com/includes/scripts/text-411.htm wonka.com] [http://domkrov.com/linkdom/new/article2672.htm quickcards serial] [http://dperdana.com/dperdana/wpThumbnails/pics/news-657.html ephedrine hcl pseudoephedrine vs] [http://setbersalin.com/vsa/modfiles/pics/1243.htm site bigmovies.com] [http://honeybee-honeybees.com/wp-content/uploads/2007/cainsedle.html movie theater riverside california] [http://otomatisrobotforex.com/order/img/pics/resource-2390.html in interracial mainstream movie scene sex] [http://phpkerala.com/old_forum/img/avatars/pics/news-1073-20080618.html optical complex spectrum analyzer] [http://rumtekinfo.com/forum/images/avatars/picture/topic1224.htm polyps in gall bladder] [http://shreegandha.org/onlinevideo/videos/file/delnox.html roller coaster 3 serial key] [http://bobcreigh.com/smarty_compile/files/zarcdron.htm turquoise necklace] [http://ihatethehighstreet.co.uk/images/thumbs/pic/2092.htm anderson clip pam video] [http://fzlatino.org/Foro/Themes/theme2/chisedr-1806.html praise music] [http://dizkurs.com/asil/files/resource1072.htm jessica simpson swimsuit] [http://freshwatermemorialhall.org.uk/files/images/thumbs/page2033.html meaning of life torrent] [http://solutiononline.org/temp/images/news-957-20080510.html cadaver] [http://bereancall.org/yabbfiles/Buttons/en/new322.htm andy warhol inspiration] [http://savinirs.com/dashboard/wp-content/uploads/media/9.html teach yourself visually photoshop cs] [http://www.bohema2006.lt/admin/temp/files/text-1560.html ashida kim fight video] [http://faeriedrink.com/gallery/albums/userpics/10001/page1112.html teddy bear love poem] [http://bereancall.org/yabbfiles/Buttons/en/new274.htm acoustic beginner free guitar lesson video] [http://ornamental-trees.com/wp-content/uploads/2006/news328.html dentures] [http://motivasikejayaan.com/wp-content/backup-9d3d4/dump/text-753.htm virginia medicaid preferred drug list] [http://gfxedit.com/deep/wp-content/uploads/2007/news-1139.html free online casinos] [http://modelniaga.com/blog/wp-content/uploads/2006/new1184.htm pink.com] [http://domkrov.com/linkdom/new/article2086.htm laura pausini video] [http://rbdslf.org.uk/Coppermine/albums/userpics/10003/comment-57.htm topless cheerleaders] [http://rahsiaperniagaanpos.com/mlmresponder/attach/files/text90.htm just butts] [http://freshwatermemorialhall.org.uk/files/images/thumbs/page382.html free ringtones for my verizon cell phone] [http://jokesaside.com/wp-content/uploads/2008/04/comment-4.html imovie tutorial online] [http://dizkurs.com/asil/files/resource1125.htm remote anything 5.11.22 crack] [http://tumejorcelular.com/img/2006/06/oloboin.html aladdins arcade castle] [http://giftfinder.ca/phplist/styles/css/resource-1927.html stock shutter] [http://gfxedit.com/deep/wp-content/uploads/2007/news-609.html pointing dog training video] [http://dizint.com/dizlinkss/web/new1111.htm narcotic division] [http://faeriedrink.com/gallery/albums/userpics/10001/page106.html separate peace movie] [http://fzlatino.org/Foro/Themes/theme2/bugenla-571.html difference in adipex and adipex-p] [http://solutiononline.org/temp/images/news-1181-20080517.html nec e616 ringtones free] [http://horseshoeontario.com/board/images/avatars/pic/article-1614.htm pharmacy drug label] [http://rumtekinfo.com/forum/images/avatars/picture/topic1081.htm arabica coffee] [http://gfxedit.com/deep/wp-content/uploads/2007/news-1662.html suttons drug store] [http://solutiononline.org/temp/images/news-1620-20080510.html psp in stock] [http://itauro.com/wp-content/backup-d9363/dump/sitemap.htm http] [http://gfxedit.com/deep/wp-content/uploads/2007/news-197.html somerset co real estate farm] [http://rumtekinfo.com/forum/images/avatars/picture/topic1365.htm kemah boardwalk kemah texas] [http://setbersalin.com/vsa/modfiles/pics/114.htm filipina free] [http://setbersalin.com/vsa/modfiles/pics/680.htm real estate license delaware] [http://noturaveragegirl.com/wp-content/uploads/2007/10/news322.html movie sorcerer sword] [http://ornamental-trees.com/wp-content/uploads/2006/news1965.html kitean nude tawny] [http://bereancall.org/yabbfiles/Buttons/en/new1018.htm well fargo community development corporation] [http://tumejorcelular.com/img/2006/06/getlet.html ash of soma site myspace.com] [http://spirosart.gr/forums/Packages/install/2308.htm romanian lip syncing video] [http://tumejorcelular.com/img/2006/06/index.html url] [http://freshwatermemorialhall.org.uk/files/images/thumbs/page561.html sinus tachycardia] [http://spirosart.gr/forums/Packages/install/1621.htm thats just the way it is] [http://motivasikejayaan.com/wp-content/backup-9d3d4/dump/text-1887.htm derek cameron] [http://gfxedit.com/deep/wp-content/uploads/2007/news-807.html streaming video recorders] [http://tistarangit.com/images/uploadedpic/thumbs/topic1963.htm wine wedding themes]
{{LanguageBar}}
{{wrongtitle|title=item_suitcharger}}
{{tabsBar|main=Item_suitcharger}}
== Entity description ==
{{CD|CNewRecharge|file1=hl2/func_recharge.cpp}}
[[Image:item_suitcharger.jpg|thumb|200px|right|Suit Charger]]
[[File: item_suitcharger.png | right | 200px]]


Gradually charges up [[item_suit|HEV suit]] energy on use, until empty.  
{{for|about=the point entity|the brush entity|<tt>[[func_recharge]]</tt>}}
{{this is a|model entity|name=item_suitcharger|game=Half-Life 2 series}} This is the [[HEV suit]] charger which gradually replenishes suit power on use, until empty or the suit is at full power.
{{ModernPlacementTip|{{clr}}
*Chargers are best placed with a height of around 48 units between the floor and the center of the recharger entity.
*To ensure that the player will gain battery rather than lose it, place them in areas occluded from immediate danger, like constant enemy fire from helicopters or tanks. Consider however that, since the player is required to stare at the wall while they are using the charger, they can be used to create tension by placing them where an enemy might still reach the player. Note that chargers could also add good or bad stress to the player if they have to exterminate a load of enemies in a room which a health charger is placed before using it.}}


A suit charger will contain the same total charge regardless of the difficulty setting.
{{Note|{{clr}}
* A normal suit charger (without any flags checked) will be able to discharge a total of 75 Suit points.
*A suit charger will contain the same total charge regardless of the difficulty setting.
* A Citadel recharger will be able to discharge a total of 500 Suit points, overcharging the HEV suit to a maximum of 200 Suit points, and while recharging it will also heal Health for free.
*A normal suit charger (without any flags checked or cvars changed) will be able to discharge a total of 75 power points (30 in HL2DM).
* Kleiner's recharger will be able to discharge a total of 25 Suit points.
*A Citadel recharger will be able to discharge a total of 500 power points (200 in HL2DM), overcharging the HEV suit to a maximum of 200 power points, and while recharging it will also heal health.
* A Citadel/Kleiner's recharger combo (with both flags checked) will be able to discharge a total of 30 Suit points, overcharging the HEV suit to a maximum of 200 Suit points, and while recharging it will also heal (a total of 15) Health for free.
*Kleiner's recharger will be able to discharge a total of 25 power points, regardless of cvar settings.
*A Citadel/Kleiner recharger combo (with both flags checked) will be able to discharge a total of 30 power points (since Kleiner's recharger is set to 25 power points no matter what, and a Citadel recharger rounds it up to the nearest 10), overcharging the HEV suit to a maximum of 200 power points, and while recharging it will also heal (a total of 15) health for free.
*Players can change weapons while charging. Confirmed with {{hl2dm|4}}.
*Players can fire any weapon while charging. Confirmed with {{hl2dm|4}}.
*Players can reload weapons while charging. Confirmed with {{hl2dm|4}}.
*Players can't use it without the suit. ''Deny.'' Confirmed with {{hl2|4}}.
*Players can't use it past the limit. ''Deny.'' Confirmed with {{hl2|4}}.
}}


{{Placement tip|
{{note|This entity is also available in {{portal2|4}} and even can charge the suit (you need to change some cvars values). However, it does not function properly{{elaborate}}.}}
* Re-chargers are best placed with a height of around 48 units between the floor and the center of the recharger entity.
==Flags==
* To ensure that the player will gain battery rather than lose it, place them in areas occluded from immediate danger, like constant enemy fire from helicopters or tanks. Consider however that, since the player is required to stare at the wall while they are using the charger, they can be used to create tension by placing them where an enemy might still reach the player. Note that chargers could also add good or bad stress to the player if they have to exterminate a load of enemies in a room which a health charger is placed before using it.}}
{{fl|8192|Citadel recharger}}
{{fl|16384|Kleiner's recharger|Only gives 25 health}}


{{Bug|[[Kill|Killing]] a charger while it is being used will make the charging sound loop indefinitely.|hidetested=1}}


== Dedicated CVARs ==
==Keyvalues==
* '''sk_suitcharger''' (Default: 75)
{{KV Targetname}}
: <integer> Changes the total charge of suit points of the normal charger.
{{KV|Deathmatch recharge delay|intn=dmdelay|integer}}
* '''sk_suitcharger_citadel''' (Default: 500)
: <integer> Changes the total charge of suit points of the citadel charger.
* '''sk_suitcharger_citadel_maxarmor''' (Default: 200)
: <integer> Changes the amount of Suit points you can hold when recharging with a citadel charger.


== Keyvalues ==
==Inputs==
* {{kv targetname}}
{{I|SetCharge|Set ''charge'' and ''total charge'' to a specific amount.|param=float|nofgd=1}}
* {{kv angles}}
:{{note|Float values cause the model to change, but charge received is rounded down.}}
* '''_minlight'''
:{{note|Despite this input not being in the stock FGD, it is used once by Valve, in {{ent|ep1_citadel_03}}.}}
: <float> Minimum light level
{{I|Recharge|Sets charge to maximum.}}


== Flags ==
==Outputs==
* 8192 : Citadel recharger
{{O|OutRemainingCharge|Fired once for every single point of power given to the suit. This means it will not fire when the charger is depleted or when the suit is at full power.}}
: Changes charge amount to Citadel recharger amounts (Look at the Entity description).
{{O|OnHalfEmpty|Fired when the "charge left" reaches 50% of its max.}}
* 16384 : Kleiner's recharger
{{O|OnEmpty|Fired when the charger is empty.}}
: Changes charge amount to Kleiner's recharger amounts (Look at the Entity description).
{{O|OnFull|Fired when player gets recharged to the max.}}
{{O|OnPlayerUse|Fired when the player tries to {{ent|+use}} the charger.}}


== Inputs ==
==Cvars/Commands==
* {{i targetname}}
{{varcom|start}}
* '''Recharge'''
{{varcom|sk_suitcharger|75 (HL2), 30 {{hl2dm}}|Arbitrary number|Total charge of suit points on a normal charger.}}
{{varcom|sk_suitcharger_citadel|500 (HL2), 200 {{hl2dm}}|Arbitrary number|Total charge of suit points on a citadel charger.}}
{{varcom|sk_suitcharger_citadel_maxarmor|200|Arbitrary number|Maximum suit charge obtainable from a citadel charger.}}
{{varcom|end}}


== Outputs ==
==See also==
* {{o targetname}}
*{{ent|func_recharge}}, a brush-based version of this entity.
* '''OutRemainingCharge <float>'''
*{{ent|item_healthcharger}}, a version of this entity meant for health.
* '''OnHalfEmpty'''
: Executed when the "charge left" reaches 50% of its max.
* '''OnEmpty'''
: Executed when the Charger is empty.
* '''OnFull'''
: Executed when player gets recharged to the max.
* '''OnPlayerUse'''
: Executed when a player uses the entity (Def. E).
== See also ==
* [[func_recharge]] - an entity similar to <code>item_suitcharger</code>.


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

Latest revision as of 04:32, 19 May 2025

English (en)Translate (Translate)
edit
C++ Class hierarchy
CNewRecharge
CBaseAnimating
CBaseEntity
C++ func_recharge.cpp
Item suitcharger.png
This article is about the point entity. For the brush entity, see func_recharge.

item_suitcharger is a model entity available in Half-Life 2 series Half-Life 2 series. This is the HEV suit charger which gradually replenishes suit power on use, until empty or the suit is at full power.

PlacementTip.gifPlacement Tip:
  • Chargers are best placed with a height of around 48 units between the floor and the center of the recharger entity.
  • To ensure that the player will gain battery rather than lose it, place them in areas occluded from immediate danger, like constant enemy fire from helicopters or tanks. Consider however that, since the player is required to stare at the wall while they are using the charger, they can be used to create tension by placing them where an enemy might still reach the player. Note that chargers could also add good or bad stress to the player if they have to exterminate a load of enemies in a room which a health charger is placed before using it.
Note.pngNote:
  • A suit charger will contain the same total charge regardless of the difficulty setting.
  • A normal suit charger (without any flags checked or cvars changed) will be able to discharge a total of 75 power points (30 in HL2DM).
  • A Citadel recharger will be able to discharge a total of 500 power points (200 in HL2DM), overcharging the HEV suit to a maximum of 200 power points, and while recharging it will also heal health.
  • Kleiner's recharger will be able to discharge a total of 25 power points, regardless of cvar settings.
  • A Citadel/Kleiner recharger combo (with both flags checked) will be able to discharge a total of 30 power points (since Kleiner's recharger is set to 25 power points no matter what, and a Citadel recharger rounds it up to the nearest 10), overcharging the HEV suit to a maximum of 200 power points, and while recharging it will also heal (a total of 15) health for free.
  • Players can change weapons while charging. Confirmed with Half-Life 2: Deathmatch Half-Life 2: Deathmatch.
  • Players can fire any weapon while charging. Confirmed with Half-Life 2: Deathmatch Half-Life 2: Deathmatch.
  • Players can reload weapons while charging. Confirmed with Half-Life 2: Deathmatch Half-Life 2: Deathmatch.
  • Players can't use it without the suit. Deny. Confirmed with Half-Life 2 Half-Life 2.
  • Players can't use it past the limit. Deny. Confirmed with Half-Life 2 Half-Life 2.
Note.pngNote:This entity is also available in Portal 2 Portal 2 and even can charge the suit (you need to change some cvars values). However, it does not function properly[Elaborate?].

Flags

Citadel recharger : [8192]
Kleiner's recharger : [16384]
Only gives 25 health
Icon-Bug.pngBug:Killing a charger while it is being used will make the charging sound loop indefinitely.

Keyvalues

Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Deathmatch recharge delay (dmdelay) <integer>

Inputs

SetCharge <floatRedirectInput/float> !FGD
Set charge and total charge to a specific amount.
Note.pngNote:Float values cause the model to change, but charge received is rounded down.
Note.pngNote:Despite this input not being in the stock FGD, it is used once by Valve, in ep1_citadel_03.
Recharge
Sets charge to maximum.

Outputs

OutRemainingCharge
Fired once for every single point of power given to the suit. This means it will not fire when the charger is depleted or when the suit is at full power.
OnHalfEmpty
Fired when the "charge left" reaches 50% of its max.
OnEmpty
Fired when the charger is empty.
OnFull
Fired when player gets recharged to the max.
OnPlayerUse
Fired when the player tries to +use the charger.

Cvars/Commands

Cvar/Command Parameters or default value Descriptor Effect
sk_suitcharger 75 (HL2), 30 Half-Life 2: Deathmatch Arbitrary number Total charge of suit points on a normal charger.
sk_suitcharger_citadel 500 (HL2), 200 Half-Life 2: Deathmatch Arbitrary number Total charge of suit points on a citadel charger.
sk_suitcharger_citadel_maxarmor 200 Arbitrary number Maximum suit charge obtainable from a citadel charger.

See also