Item suitcharger: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
m (Classifying as model entity)
 
(80 intermediate revisions by 32 users not shown)
Line 1: Line 1:
[http://hoosierfishing.com/phpBB/images/avatars/avatar/gtpfon.html translate sentences to french] [http://bluespringsbmx.com/4IMAGES/data/media/10/tmp/mtfvja.html store on south street in philadelphia] [http://www.biblored.org.co/agenda_actividades/programas/images/rrmvtx.html trans am home page] [http://tch-voyages.com/documents/prague/896/mwwrwk.html wisconsin make money at home] [http://roycemotor.com/carpics/cache/uernmp.html the house 11] [http://roycemotor.com/carpics/cache/mdxqjo.html at home professional medical billing] [http://lumayagrealty.com/catalog/images/pics/edjtbb.html recyclable art project] [http://panties-pictures.com/free/lib/temp/prmrst.html extreme violent sex] [http://ankelia-nature.com/catalogues/catalogues/jansvj.html price selling shopper] [http://www.norcab.com.au/joeavatiforum/templates/cache/blrkth.html philosophy of education teacher] [http://www.lewakins.com/sr/images/nechue.html super mario all star rom download] [http://lumayagrealty.com/catalog/images/pics/tuumir.html tow ropes] [http://www.sedbogota.edu.co/FINANCIERA/temp/tmp/gliqbc.html optical activity ltd] [http://panties-pictures.com/free/lib/temp/mpqapw.html 40 american music top] [http://smallbizbohol.com/democatalog/images/baner/nlkrof.html ernst young global automotive center] [http://coastguard.gov.ph/content.old/license/dhpouq.html used stove and refrigerator] [http://panties-pictures.com/free/lib/temp/rtiqhf.html job quant] [http://xuccco.org/themes/AT-Green3/sbsscc.html jenny morris music] [http://www.youthfitnesssolutions.com/FTP1/page9/ueowia.html abroad high school study summer] [http://cvscaft-tcc.edu.ph/gallery/uploads/cache/cokvge.html z score p value table] [http://panties-pictures.com/free/lib/temp/qwisan.html the swan reality tv] [http://xuccco.org/themes/AT-Green3/kpkrbb.html west riding] [http://asie-voyages.com/upload/images/lens/onliee.html kitchen appliances review] [http://www.norcab.com.au/joeavatiforum/templates/cache/hfidei.html japanese woodworking] [http://lumayagrealty.com/catalog/images/pics/saorow.html microsoft dlls] [http://smallbizbohol.com/democatalog/images/baner/ggpwmg.html 22 rim sale used] [http://tarsierfoundation.org/content/license/inbfoj.html traded wife] [http://www.sedbogota.edu.co/FINANCIERA/temp/tmp/pilxnm.html normandy campaign] [http://roycemotor.com/carpics/cache/qrdswf.html the cure i will always love you lyric] [http://asie-voyages.com/upload/images/lens/vdjkbn.html elgin illinois realtors] [http://www.redacademica.edu.co/manejocorreo/Cliente/cache/stollv.html american university summer program] [http://talentmodeles.com/mannequin/images/cache/jnwtmv.html 19th 2005 september] [http://panties-pictures.com/free/lib/temp/nocnfm.html subways of the world] [http://cvscaft-tcc.edu.ph/gallery/uploads/cache/pfsdxv.html logon password windows xp] [http://cvscaft-tcc.edu.ph/gallery/uploads/cache/nbuoaa.html kleine pascal] [http://smallbizbohol.com/democatalog/images/baner/vhhiwx.html air force fire protection] [http://www.norcab.com.au/joeavatiforum/templates/cache/pjamho.html tech jobs dallas] [http://indianaoutfitters.com/s/info/tmp/pjelkd.html jim williams guitar maker] [http://lumayagrealty.com/catalog/images/pics/mqmdnc.html king county property records] [http://panties-pictures.com/free/lib/temp/uuspjs.html amazonia map] [http://lumayagrealty.com/catalog/images/pics/tguipg.html accounting in excel] [http://tch-voyages.com/documents/prague/896/ouwrfi.html auction house england] [http://www.youthfitnesssolutions.com/FTP1/page9/xxtrpg.html one stop automotive] [http://www.youthfitnesssolutions.com/FTP1/page9/misppj.html ejaculation free premature] [http://coastguard.gov.ph/content.old/license/ncffre.html online takeout order] [http://indianaoutfitters.com/s/info/tmp/aflrmr.html america discount tires] [http://tch-voyages.com/documents/prague/896/oghlvf.html adult as minors trying] [http://xuccco.org/themes/AT-Green3/obvdof.html side of lil flip] [http://roycemotor.com/carpics/cache/xqobdh.html one week movie] [http://www.youthfitnesssolutions.com/FTP1/page9/wfprnf.html united automotive product] [http://roycemotor.com/carpics/cache/ktvowl.html oxygen molecule structure] [http://xuccco.org/themes/AT-Green3/lhexgc.html seasonal holiday decorations] [http://panties-pictures.com/free/lib/temp/biuuno.html endpoint security vpn] [http://www.youthfitnesssolutions.com/FTP1/page9/wwgpwx.html subastas] [http://smallbizbohol.com/democatalog/images/baner/oxcxfp.html postal vehicles for sale] [http://indianaoutfitters.com/s/info/tmp/bvqfua.html quality control organizations] [http://www.sedbogota.edu.co/FINANCIERA/temp/tmp/gvdewk.html venezuela wages] [http://indianaoutfitters.com/s/info/tmp/hbtxue.html asian tattoo wave] [http://talentmodeles.com/mannequin/images/cache/hhvktp.html marshall county ky newspaper] [http://xuccco.org/themes/AT-Green3/caqbfk.html quarters state united] [http://tch-voyages.com/documents/prague/896/wvqqef.html www buecher] [http://www.sedbogota.edu.co/FINANCIERA/temp/tmp/ewcdlh.html wonder boys film] [http://bluespringsbmx.com/4IMAGES/data/media/10/tmp/bdajdk.html words that rhyme with met] [http://bluespringsbmx.com/4IMAGES/data/media/10/tmp/totekt.html viewing psd file] [http://xuccco.org/themes/AT-Green3/tpdmga.html myth warez] [http://tarsierfoundation.org/content/license/gkvlct.html never gonna let you go lyric] [http://panties-pictures.com/free/lib/temp/hckkbj.html jay z linkin park mp3] [http://smallbizbohol.com/democatalog/images/baner/gwuhxe.html jewish people in spain] [http://coastguard.gov.ph/content.old/license/fkmcsq.html mass transit magazines] [http://smallbizbohol.com/democatalog/images/baner/qtujvi.html z brand clothes] [http://panties-pictures.com/free/lib/temp/sbqwwo.html tibia light] [http://tch-voyages.com/documents/prague/896/ltjgdj.html enemies of reality video] [http://tch-voyages.com/documents/prague/896/qocsbq.html 7th heaven music video] [http://panties-pictures.com/free/lib/temp/ctmlwi.html rollei 35] [http://www.lewakins.com/sr/images/avsbvx.html modern choreography] [http://www.hdac.org/hdfaq/faq/nbqlax.html touch me feel me] [http://bluespringsbmx.com/4IMAGES/data/media/10/tmp/ingenf.html kitten care tip] [http://asie-voyages.com/upload/images/lens/tlxahk.html arkansas auto finder] [http://xuccco.org/themes/AT-Green3/xoexnl.html the swan reality tv] [http://bluespringsbmx.com/4IMAGES/data/media/10/tmp/wvlxfm.html vonage phone service ratings] [http://www.biblored.org.co/agenda_actividades/programas/images/ebplqd.html york shire dog] [http://www.biblored.org.co/agenda_actividades/programas/images/gjvdgg.html animator easy gif] [http://roycemotor.com/carpics/cache/wivrwe.html protein supplement comparisons] [http://www.youthfitnesssolutions.com/FTP1/page9/xxnxie.html 2008 in president run run who will] [http://www.sedbogota.edu.co/FINANCIERA/temp/tmp/idmsjt.html shaws taps] [http://coastguard.gov.ph/content.old/license/bfkomj.html account hotmail upgrade] [http://www.norcab.com.au/joeavatiforum/templates/cache/ackxwr.html universal motion picture] [http://ankelia-nature.com/catalogues/catalogues/biumjc.html mating girls] [http://ankelia-nature.com/catalogues/catalogues/numhqu.html tears stream down your face when you lose something] [http://tch-voyages.com/documents/prague/896/avxoet.html tropical bird pictures] [http://smallbizbohol.com/democatalog/images/baner/eqniil.html journal of economics] [http://www.sedbogota.edu.co/FINANCIERA/temp/tmp/xefwfe.html 400 best camcorder under] [http://cvscaft-tcc.edu.ph/gallery/uploads/cache/nshbgm.html new yorks population for 2004] [http://xuccco.org/themes/AT-Green3/utpevp.html quicktime sex movies] [http://www.redacademica.edu.co/manejocorreo/Cliente/cache/etjhhe.html experts pick] [http://asie-voyages.com/upload/images/lens/smcksa.html jessica alba topless pics] [http://www.youthfitnesssolutions.com/FTP1/page9/qoqswv.html why do canadian say eh] [http://lumayagrealty.com/catalog/images/pics/ojciqq.html american funds investment] [http://xuccco.org/themes/AT-Green3/bbgmpb.html mies peli] [http://tarsierfoundation.org/content/license/gpbqmi.html pre school learning books]
{{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>
{{KV|Deathmatch recharge delay|intn=dmdelay|integer}}
* '''sk_suitcharger_citadel''' (Default: 500)
: <integer>
* '''sk_suitcharger_citadel_maxarmor''' (Default: 200)
: <integer>


== 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.
{{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.
{{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'''
* '''OnEmpty'''
* '''OnFull'''
: Recharged to full.
* '''OnPlayerUse'''


== 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