Item suitcharger: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
m (Classifying as model entity)
 
(84 intermediate revisions by 33 users not shown)
Line 1: Line 1:
[http://www.easypayinfo.com/subscribe/tmp/dewgwt.html association author representatives] [http://2001.c3.hu/mas/jffora.html jumbo records] [http://ndr.hu/rhodes/gmatkw.html writ of execution ca] [http://www.olemissfans.com/chatpro/image/oxqwbc.html ireland motorcycle tour] [http://ndr.hu/rhodes/rnvbbe.html les droits des animaux] [http://www.plurpage.com/classifieds/cache/baxhgj.html erotica letter mature woman] [http://www.olemissfans.com/chatpro/image/nfswev.html ebay user info] [http://www.salona-yachts.eu/misc/oiucgx.html e win] [http://www.plurpage.com/classifieds/cache/feshgs.html systematic financial management] [http://troniny.ovh.org/gallery/layout/uatavr.html rectangle glass table tops] [http://ndr.hu/rhodes/racqbh.html art clip wings] [http://www.olemissfans.com/chatpro/image/kpexvw.html joint field office] [http://www.olemissfans.com/chatpro/image/tbpusx.html life result win] [http://aura.c3.hu/thumb/klxxtt.html engine maryland performance] [http://www.plurpage.com/classifieds/cache/iqiqld.html smile games.] [http://informer.siam.edu/themes/hm/troeun.html sagem ringtone] [http://mkatzenbach.de/Website_MK_alt/content/cache/dir/end001/epumwr.html 50 cent best picture] [http://activeimage.c3.hu/css/flqbqk.html angeles los satellite system] [http://www.farmelco.hu/test/css/alwtas.html puppy stuffed animal] [http://2001.c3.hu/mas/vhbkmt.html match play scoring in golf] [http://mkatzenbach.de/Website_MK_alt/content/cache/dir/end001/wwlscr.html lyrics planet rock] [http://www.systemsupport.und.edu/cache/avatars/emo/ibfxrv.html army combat readiness] [http://troniny.ovh.org/gallery/layout/xijcod.html six pack summer lyrics] [http://www.salona-yachts.eu/misc/lqcmge.html small oil leak] [http://informer.siam.edu/themes/hm/uujacd.html free mono ringtones] [http://aura.c3.hu/thumb/wbvxgh.html japanese girl blow job] [http://informer.siam.edu/themes/hm/spihgj.html ambien online] [http://maps.my2gig.com/cache/mrotdu.html martial arts directory california] [http://www.olemissfans.com/chatpro/image/brlpar.html nj property sale township washington] [http://troniny.ovh.org/gallery/layout/twttib.html argentina beautiful woman] [http://kristinlyseggen.com/gallery/1documentaries/7travel/aajkjl.html landscape palm picture tree] [http://2001.c3.hu/mas/onroek.html kids tennis racquets] [http://www.easypayinfo.com/subscribe/tmp/goaxhw.html upcoming concert tour] [http://activeimage.c3.hu/css/vodtco.html map of evanston il] [http://www.salona-yachts.eu/misc/fdxmjl.html madison county mississippi library] [http://www.stillwaterhomes.com/listings/images/pic/jersoh.html quick and easy soups] [http://www.housing.und.edu/reshalls/blog/wp-content/uploads/2007/04/img/mscalf.html cheap nexium] [http://mkatzenbach.de/Website_MK_alt/content/cache/dir/end001/xujakb.html applying law school] [http://www.salona-yachts.eu/misc/lclvqf.html soldier boys book notes] [http://www.housing.und.edu/reshalls/blog/wp-content/uploads/2007/04/img/cfhimr.html download verizon wireless ringtones] [http://kom-pas.de/3xcms/config/hkatuploads/images/garpwj.html restaurant critic] [http://www.stillwaterhomes.com/listings/images/pic/vcwgpf.html madeline french] [http://activeimage.c3.hu/css/asbjhd.html motorola v220 camera drivers] [http://www.salona-yachts.eu/misc/rjfdjj.html accommodation golf ireland] [http://www.easypayinfo.com/subscribe/tmp/wtubuu.html lung cancer pathophysiology] [http://www.lowell.edu/styles/old_style/css/sertei.html nude katie holmes] [http://www.stillwaterhomes.com/listings/images/pic/uovcoo.html ethical aspects of information technology] [http://activeimage.c3.hu/css/geppin.html ru 21 uk] [http://mkatzenbach.de/Website_MK_alt/content/cache/dir/end001/kbfxcv.html injury in hockey] [http://kristinlyseggen.com/gallery/1documentaries/7travel/mkifue.html old house] [http://www.salona-yachts.eu/misc/keljrk.html insane games. com] [http://www.plurpage.com/classifieds/cache/avswwt.html elevated creatine level] [http://mkatzenbach.de/Website_MK_alt/content/cache/dir/end001/osvjqw.html social network maps] [http://aura.c3.hu/thumb/uqclui.html philadelphia sailing show] [http://www.olemissfans.com/chatpro/image/cpomsk.html widescreen tv dvd vcr] [http://kom-pas.de/3xcms/config/hkatuploads/images/jpqgjj.html newspaper of 1863] [http://maps.my2gig.com/cache/jholvl.html photographs] [http://2001.c3.hu/mas/vhgjwk.html island league tennis] [http://www.easypayinfo.com/subscribe/tmp/qijnfw.html jennifer burton pics] [http://activeimage.c3.hu/css/omwsif.html journal of heat transfer] [http://www.plurpage.com/classifieds/cache/qavmqx.html microsoft office clips on line] [http://www.easypayinfo.com/subscribe/tmp/twdrsb.html new york city media contacts] [http://mkatzenbach.de/Website_MK_alt/content/cache/dir/end001/bqbbsn.html algorithm explain] [http://troniny.ovh.org/gallery/layout/qaoijw.html live spanish version] [http://activeimage.c3.hu/css/whbxeo.html incapacity benefit medicals] [http://www.stillwaterhomes.com/listings/images/pic/ekiimf.html alternative newspaper las vegas] [http://maps.my2gig.com/cache/nppdmu.html search havana] [http://www.systemsupport.und.edu/cache/avatars/emo/vjrdlx.html 5 hour driving course long island] [http://kom-pas.de/3xcms/config/hkatuploads/images/moijhe.html 100 album magazine q top] [http://kom-pas.de/3xcms/config/hkatuploads/images/bieacw.html oasis live in] [http://www.lowell.edu/styles/old_style/css/xqefax.html tv ringtones] [http://aura.c3.hu/thumb/qkebfr.html pga golf resort] [http://www.plurpage.com/classifieds/cache/alrmst.html i make music] [http://mkatzenbach.de/Website_MK_alt/content/cache/dir/end001/khscgd.html model train shows ontario] [http://www.housing.und.edu/reshalls/blog/wp-content/uploads/2007/04/img/kgghsl.html free verizon ringtones] [http://activeimage.c3.hu/css/emmnhi.html snap socket] [http://www.easypayinfo.com/subscribe/tmp/bvnpkc.html okc news channel 4] [http://www.easypayinfo.com/subscribe/tmp/xaeqgl.html i want to look at some bathroom interior designs] [http://informer.siam.edu/themes/hm/spknbk.html ambien online] [http://www.stillwaterhomes.com/listings/images/pic/dmgokh.html today in the word moody] [http://informer.siam.edu/themes/hm/usxjww.html cheap ultracet] [http://kom-pas.de/3xcms/config/hkatuploads/images/rswiqx.html pennsylvania tool ohio lancaster] [http://www.plurpage.com/classifieds/cache/ndiwoi.html postal vehicles for sale] [http://www.lowell.edu/styles/old_style/css/rlwacg.html cheap ringtone] [http://www.lowell.edu/styles/old_style/css/hgotke.html aaa bond corporate interest rate] [http://mkatzenbach.de/Website_MK_alt/content/cache/dir/end001/qxnvqf.html toxic substances control act of 1976] [http://www.stillwaterhomes.com/listings/images/pic/gdvpar.html replacing birth certificates] [http://maps.my2gig.com/cache/fqhibc.html the worst movies] [http://mkatzenbach.de/Website_MK_alt/content/cache/dir/end001/uaartx.html mood swing wild] [http://ndr.hu/rhodes/lfxpdu.html mortgage lending companies] [http://www.olemissfans.com/chatpro/image/hvtght.html lyrics love me] [http://2001.c3.hu/mas/eblkjr.html sweet dream are made of this lyrics] [http://kristinlyseggen.com/gallery/1documentaries/7travel/ovukhu.html university of pennsylvania call for papers] [http://maps.my2gig.com/cache/avrlhu.html psychology jobs in new jersey] [http://www.farmelco.hu/test/css/foqucc.html where does coal come from] [http://www.easypayinfo.com/subscribe/tmp/ergpcs.html townshend act pictures] [http://www.olemissfans.com/chatpro/image/ksmwad.html william milligan] [http://troniny.ovh.org/gallery/layout/pawlfx.html oxalic acid and sodium hydroxide] [http://kom-pas.de/3xcms/config/hkatuploads/images/kltjbu.html picture of symmetry in nature] [http://mkatzenbach.de/Website_MK_alt/content/cache/dir/end001/rohwoj.html tracks magazine surfing]
{{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