Item suitcharger: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
m (Classifying as model entity)
 
(76 intermediate revisions by 29 users not shown)
Line 1: Line 1:
[http://indiahobart.totalh.com/data/fish-pond.html fish pond] [http://tianapereira.totalh.com/web/pattaya-girls.html pattaya girls] [http://xuzilowga.fhpanel.com/new/robert-lewis-stevenson.html robert lewis stevenson state park] [http://xuzilowga.fhpanel.com/new/thailand-girls.html thailand girls] [http://zpkuguh.fhpanel.com/monday-tuesday.html monday tuesday happy days wednesday thursday happy days] [http://pegradcliffe.totalh.com/web/indian-upskirt.html indian upskirt] [http://cybertyger.interfree.it/directory/anime-movie-for.htm anime movie for sale] [http://nicolaich13.interfree.it/web/workout-routines.htm workout routines] [http://indiahobart.totalh.com/data/truth-or-fiction.html truth or fiction] [http://valerieller.totalh.com/cake-decorations.html cake decorations] [http://capara.interfree.it/small/optimization-service.html optimization service] [http://kerriemiddlebro.totalh.com/articles/grannies-n-fatties.html grannies n fatties] [http://nixadigogu.fhpanel.com/view/n-her-shoes.htm n her shoes] [http://dzlajici.fhpanel.com/styles/sarah-connor.html sarah connor] [http://dreamacammarata.totalh.com/web/long-term-car.htm long term car hire usa] [http://firesmith.interfree.it/hotbodies.htm hotbodies] [http://annamariasamani.totalh.com/boys-lockerroom.html boys lockerroom] [http://lavondamifflin.totalh.com/jamaican-beautiful.html jamaican beautiful girls] [http://firesmith.interfree.it/rap-music-videos.htm rap music videos] [http://indiahobart.totalh.com/data/us-news.html us news] [http://lolagilstrap.totalh.com/styles/automotive.html automotive] [http://dreamacammarata.totalh.com/web/anniversary-rings.htm anniversary rings] [http://pegradcliffe.totalh.com/web/sexual-intercourse.html sexual intercourse positions] [http://xuzilowga.fhpanel.com/new/supergrass.html supergrass] [http://capara.interfree.it/small/hide-and-seek.html hide and seek] [http://zpkuguh.fhpanel.com/freezing-vegetables.html freezing vegetables] [http://valerieller.totalh.com/greek-islands.html greek islands] [http://kerriemiddlebro.totalh.com/articles/sexy-actresses.html sexy actresses] [http://nicolaich13.interfree.it/web/stacey-dash-naked.htm stacey dash naked] [http://zpkuguh.fhpanel.com/hilton-head-south.html hilton head south carolina] [http://dzlajici.fhpanel.com/styles/wifelover.html wifelover] [http://nicolaich13.interfree.it/web/electronic-data.htm electronic data storage] [http://nixadigogu.fhpanel.com/view/bugs.htm bugs] [http://valerieller.totalh.com/lolita-dorki.html lolita dorki] [http://dreamacammarata.totalh.com/web/membership-cancellation.htm membership cancellation letters] [http://firesmith.interfree.it/bangkok.htm bangkok] [http://rinujamta.fhpanel.com/content/the-human-right.html the human right act] [http://tyeshamacgregor.totalh.com/view/bass-shoes-outlet.htm bass shoes outlet] [http://dreamacammarata.totalh.com/web/linux-dedicated.htm linux dedicated server] [http://dreamacammarata.totalh.com/web/disney-games.htm disney games] [http://kerriemiddlebro.totalh.com/articles/pussy-creampies.html pussy creampies] [http://firesmith.interfree.it/kid-frost.htm kid frost] [http://dzlajici.fhpanel.com/styles/no-down-home-loans.html no down home loans seattle] [http://firesmith.interfree.it/free-swinger-personal.htm free swinger personal homepages] [http://zpkuguh.fhpanel.com/yomamajokes.html yomamajokes] [http://nixadigogu.fhpanel.com/view/gag-her.htm gag her] [http://valerieller.totalh.com/skagen.html skagen] [http://rinujamta.fhpanel.com/content/cheap-airline-ticket.html cheap airline ticket europe] [http://lavondamifflin.totalh.com/scarface.html scarface] [http://firesmith.interfree.it/hairless-underage.htm hairless underage girls] [http://kerriemiddlebro.totalh.com/articles/lolitampeg.html lolitampeg] [http://xuzilowga.fhpanel.com/new/rize.html rize] [http://tyeshamacgregor.totalh.com/view/plymouth-road.htm plymouth road runner 1969] [http://firesmith.interfree.it/divas-hot.htm divas hot] [http://kerriemiddlebro.totalh.com/articles/globetrotter.html globetrotter inn edinburgh] [http://indiahobart.totalh.com/data/thermometer.html thermometer] [http://zpkuguh.fhpanel.com/classic-mustang.html classic mustang part] [http://xuzilowga.fhpanel.com/new/at-home-spa-treatments.html at home spa treatments] [http://tyeshamacgregor.totalh.com/view/free-pics-of-chics.htm free pics of chics] [http://zpkuguh.fhpanel.com/oxymoron.html oxymoron] [http://rinujamta.fhpanel.com/content/girl-girl-sex.html girl girl sex] [http://capara.interfree.it/small/inuyasha-love-stories.html inuyasha love stories] [http://indiahobart.totalh.com/data/pants-down-smack.html pants down smack bottom] [http://dzlajici.fhpanel.com/styles/prescription.html prescription migraine drug] [http://tianapereira.totalh.com/web/vampyre.html vampyre] [http://lolagilstrap.totalh.com/styles/jennifer-garner.html jennifer garner naked] [http://lavondamifflin.totalh.com/trisha-campbell.html trisha campbell] [http://dzlajici.fhpanel.com/styles/bing-crosby.html bing crosby] [http://indiahobart.totalh.com/data/plump-fuck.html plump fuck] [http://kerriemiddlebro.totalh.com/articles/proactive-skin.html proactive skin care] [http://cybertyger.interfree.it/directory/asia.htm asia] [http://pegradcliffe.totalh.com/web/choclate.html choclate] [http://rinujamta.fhpanel.com/content/cnc-programming.html cnc programming software] [http://rinujamta.fhpanel.com/content/large-women-bras.html large women bras] [http://firesmith.interfree.it/ladbrokes-poker.htm ladbrokes poker] [http://dzlajici.fhpanel.com/styles/electronic-claims.html electronic claims processing] [http://kerriemiddlebro.totalh.com/articles/teen-spring-break.html teen spring break camps] [http://indiahobart.totalh.com/data/teen-love.html teen love] [http://valerieller.totalh.com/sims-superstar.html sims superstar] [http://cybertyger.interfree.it/directory/sailor-pluto.htm sailor pluto] [http://tianapereira.totalh.com/web/webcam-sex-show.html webcam sex show] [http://lolagilstrap.totalh.com/styles/sting-mp3.html sting mp3] [http://valerieller.totalh.com/airline-travel-for.html airline travel for pets] [http://zpkuguh.fhpanel.com/free-caller-ringtones.html free caller ringtones] [http://rinujamta.fhpanel.com/content/judge.html judge] [http://pegradcliffe.totalh.com/web/residential-electric.html residential electric service] [http://capara.interfree.it/small/star-wars-3.html star wars 3 trailer] [http://valerieller.totalh.com/protect-ipod-screen.html protect ipod screen] [http://xuzilowga.fhpanel.com/new/improved-search.html improved search engine ranking wisconsin] [http://apockrif.interfree.it/description/nude-demi-moore.html nude demi moore] [http://nicolaich13.interfree.it/web/cheerleaders-locker.htm cheerleaders locker room] [http://rinujamta.fhpanel.com/content/knowledge-management.html knowledge management law firms] [http://apockrif.interfree.it/description/animated-graphics.html animated graphics] [http://dreamacammarata.totalh.com/web/ghin.htm ghin] [http://tyeshamacgregor.totalh.com/view/holding-out.htm holding out for a hero mp3] [http://capara.interfree.it/small/bolton.html bolton] [http://zpkuguh.fhpanel.com/anime-cumshots.html anime cumshots] [http://indiahobart.totalh.com/data/hot-teen-porn.html hot teen porn] [http://indiahobart.totalh.com/data/thankyou-card-templates.html thankyou card templates] [http://xuzilowga.fhpanel.com/new/sprint-pcs-customer.html sprint pcs customer service]
{{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