Func recharge: Difference between revisions
Jump to navigation
Jump to search
Note:For Keyvalues and Inputs affecting brush rendering, see Brush entity/Rendering related keyvalues and inputs
m (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.) |
(-added class hierarchy, cleanup) |
||
| Line 1: | Line 1: | ||
{{tabs|func_recharge|goldsrc=1|source=1|main=source}} | {{tabs|func_recharge|goldsrc=1|source=1|main=source}} | ||
{{CD|CRecharge|file1=func_recharge.cpp}} | |||
{{toc-right}} | |||
{{this is a|brush entity|name=func_recharge|game=Half-Life 2|game1=Half-Life 2: Episode One|game2=Half-Life 2: Episode Two|game3=Half-Life 2: Deathmatch}} It's a brush-based version of {{ent|item_suitcharger}}. | {{this is a|brush entity|name=func_recharge|game=Half-Life 2|game1=Half-Life 2: Episode One|game2=Half-Life 2: Episode Two|game3=Half-Life 2: Deathmatch}} It's a brush-based version of {{ent|item_suitcharger}}. | ||
{{stray ent|{{portal}} {{portal2}}}} | {{stray ent|{{portal}} {{portal2}}}} | ||
==Keyvalues== | |||
{{Brush rendering note}} | |||
== | |||
{{ | |||
{{KV Targetname}} | |||
{{KV|Deathmatch recharge delay|intn=dmdelay|integer}} | {{KV|Deathmatch recharge delay|intn=dmdelay|integer}} | ||
==Flags== | ==Flags== | ||
{{fl|8192|Citadel recharger}} | |||
==Inputs== | ==Inputs== | ||
{{IO|Recharge|Sets charge to maximum.}} | {{IO|Recharge|Sets charge to maximum.}} | ||
{{IO|SetCharge|deprecated=1|param=int|Not present in code. Sets the remaining charge in the charger to the value specified.}} | {{IO|SetCharge|deprecated=1|param=int|Not present in code. Sets the remaining charge in the charger to the value specified.}} | ||
==Outputs== | ==Outputs== | ||
| Line 33: | Line 25: | ||
{{IO|OnFull|Fires when the charger gets recharged to the max.}} | {{IO|OnFull|Fires when the charger gets recharged to the max.}} | ||
{{IO|OnPlayerUse|Fires when a player {{ent|+use}}s the entity.}} | {{IO|OnPlayerUse|Fires when a player {{ent|+use}}s the entity.}} | ||
{{ | |||
==ConVars/Commands== | |||
{{varcom|start}} | |||
{{varcom|sk_suitcharger|75 (HL2) 30 (HL2DM)|Arbitrary number|Amount of power a normal charger may give.}} | |||
{{varcom|sk_suitcharger_citadel|500 (HL2) 200 (HL2DM)|Arbitrary number|Amount of power a citadel charger may give.}} | |||
{{varcom|sk_suitcharger_citadel_maxarmor|200|Arbitrary number|Amount of power the suit can be charged to via a citadel charger.}} | |||
{{varcom|end}} | |||
==See also== | ==See also== | ||
*{{ent|func_healthcharger}}, a version of this entity meant for health. | *{{ent|func_healthcharger}}, a version of this entity meant for health. | ||
Revision as of 00:17, 3 September 2024
| CRecharge |
func_recharge is a brush entity available in
Half-Life 2,
Half-Life 2: Episode One,
Half-Life 2: Episode Two, and
Half-Life 2: Deathmatch. It's a brush-based version of item_suitcharger.
Keyvalues
- Name (targetname) <string>
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentnameortarget).
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>
Flags
- Citadel recharger : [8192]
Inputs
- Recharge
- Sets charge to maximum.
SetCharge <integer>
- Deprecated.
Not present in code. Sets the remaining charge in the charger to the value specified.
Outputs
- OutRemainingCharge
- Fires 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. This output automatically puts the amount of charge remaining in the charger into the parameter box for inputs, if the mapper does not override the parameter with something else.
- OnHalfEmpty
- Fires when the "charge left" reaches 50% of its max.
- OnEmpty
- Fires when the charger is empty.
- OnFull
- Fires when the charger gets recharged to the max.
- OnPlayerUse
- Fires when a player +uses the entity.
ConVars/Commands
| Cvar/Command | Parameters or default value | Descriptor | Effect |
|---|---|---|---|
| sk_suitcharger | 75 (HL2) 30 (HL2DM) | Arbitrary number | Amount of power a normal charger may give. |
| sk_suitcharger_citadel | 500 (HL2) 200 (HL2DM) | Arbitrary number | Amount of power a citadel charger may give. |
| sk_suitcharger_citadel_maxarmor | 200 | Arbitrary number | Amount of power the suit can be charged to via a citadel charger. |
See also
- func_healthcharger, a version of this entity meant for health.