Func recharge: Difference between revisions
Jump to navigation
Jump to search

Note:Archived page history
Important:These pages are linked often from page history logs so Special:WhatLinksHere will not show anything.
m (removed {{DISPLAYTITLE}}, covered by the hl2 brush template) |
(updates) |
||
Line 1: | Line 1: | ||
{{hl2 brush|func_recharge}} It's a brush-based version of | {{lang|Func recharge}} | ||
{{hl2 brush|func_recharge}} It's a brush-based version of {{ent|item_suitcharger}}. | |||
{{stray ent|{{portal}} {{portal2}}}} | |||
{{code class|CRecharge|func_recharge.cpp}} | |||
==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}} | |||
==Keyvalues== | ==Keyvalues== | ||
{{KV | {{KV visiblebrush}} | ||
{{KV | {{KV BaseEntity|brush=1|l4d2=1}} | ||
==Flags== | ==Flags== | ||
* 8192 : Citadel recharger | *8192: Citadel recharger | ||
==Inputs== | ==Inputs== | ||
{{IO|Recharge|Sets charge to maximum.}} | |||
{{IO|SetCharge|deprecated=1|param=int|Not present in code. Sets the remaining charge in the charger to whatever value you specify.}} | |||
{{IO|Recharge|Sets charge to maximum }} | {{I visiblebrush}} | ||
{{IO|SetCharge| | {{I BaseEntity}} | ||
==Outputs== | ==Outputs== | ||
{{IO|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. {{outadd|the amount of charge remaining in the charger}}}} | |||
{{IO|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.}} | {{IO|OnHalfEmpty|Fires when the "charge left" reaches 50% of its max.}} | ||
{{IO|OnHalfEmpty| | {{IO|OnEmpty|Fires when the charger is empty.}} | ||
{{IO|OnEmpty| | {{IO|OnFull|Fires when the charger gets recharged to the max.}} | ||
{{IO|OnFull| | {{IO|OnPlayerUse|Fires when a player {{ent|+use}}s the entity.}} | ||
{{IO|OnPlayerUse| | {{O BaseEntity}} | ||
==See Also== | ==See Also== | ||
* | *{{ent|func_healthcharger}}, a version of this entity meant for health. | ||
Revision as of 14:42, 4 October 2018


Template:Hl2 brush It's a brush-based version of item_suitcharger.
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. |
Keyvalues

This template (and its redirect) is
Deprecated. Its use is not recommended and its functionality may be compromised.
Please use {{Brush rendering note}} instead.
You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion.

Please use {{Brush rendering note}} instead.
You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion.


Flags
- 8192: Citadel recharger
Inputs
- Recharge
- Sets charge to maximum.
SetCharge <integer >- Deprecated.
Not present in code. Sets the remaining charge in the charger to whatever value you specify.
- SetDamageFilter <targetname >
- Sets a filter for this entity for when it receives damage.
- EnableDamageForces
- Allows the entity to be pushed by damage done to it (usually force amount correlates with the damage done).
- DisableDamageForces
- Prevents the entity from being pushed by damage done to it.
Todo: move/mention at proper place
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.
See Also
- func_healthcharger, a version of this entity meant for health.