Item healthcharger: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
 
 Placement Tip:
Placement Tip:
	
 Note:Content moved to Rendering and studio model related KIO/Keyvalues for continuation of page history
Note:Content moved to Rendering and studio model related KIO/Keyvalues for continuation of page history
 Note:Content moved to Rendering and studio model related KIO/Inputs for continuation of page history
Note:Content moved to Rendering and studio model related KIO/Inputs for continuation of page history
 Note:Content moved to Rendering and studio model related KIO/Outputs for continuation of page history
Note:Content moved to Rendering and studio model related KIO/Outputs for continuation of page history
		
	
| mNo edit summary | SirYodaJedi (talk | contribs)  m (→Keyvalues:  idk why this is commented out in the fgd) | ||
| Line 29: | Line 29: | ||
| ==Keyvalues== | ==Keyvalues== | ||
| {{KV|Deathmatch recharge delay|intn=dmdelay|float}} | |||
| {{KV|Charge|intn=charge|float|How full the charger should be (0 - 100)|only=BMS}} | {{KV|Charge|intn=charge|float|How full the charger should be (0 - 100)|only=BMS}} | ||
| {{KV|Force Skin|intn=skintype|Choices| |only=BMS}} | {{KV|Force Skin|intn=skintype|Choices| |only=BMS}} | ||
Revision as of 14:44, 2 May 2024

 
This is the health charger which gradually replenishes player health on use, until empty or the player is at full health. A charger normally holds 50 health points, regardless of the difficulty setting.
 Placement Tip:
Placement Tip:
- Rechargers 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 health 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.
Notes
- Players can't use it past the limit or maximum health points. Deny. Confirmed with  Half-Life 2. Half-Life 2.
- Player can use health chargers without suit.
ConVars/Commands
| Cvar/Command | Parameters or default value | Descriptor | Effect | 
|---|---|---|---|
| sk_healthcharger | 50 | Arbitrary number | Amount of health that can be gained from a single charger. | 
| cl_hpcharg_light_col_r | 255  Black Mesa | Arbitrary number | Red color value for dynamic light from health chargers. | 
| cl_hpcharg_light_col_g | 0  Black Mesa | Arbitrary number | Green color value for dynamic light from health chargers. | 
| cl_hpcharg_light_col_b | 0  Black Mesa | Arbitrary number | Blue color value for dynamic light from health chargers. | 
| cl_hpcharg_light_intensity | 32  Black Mesa | Arbitrary number | Intensity value for dynamic light from health chargers. | 
| cl_hpcharg_light_on | 1  Black Mesa | Arbitrary number | Sets state of dynamic light spawn by health chargers. 0 - disallow to spawn, 1 - allow to spawn. | 
| cl_hpcharg_light_range | 64  Black Mesa | Arbitrary number | Range value for dynamic light from health chargers. | 
| cl_hpcharg_light_debug | 0  Black Mesa | Arbitrary number | Sets debug state of health chargers light. | 
| sk_charger_health_rate | 1  Black Mesa | Arbitrary number | Sets treatment speed from health chargers. | 
| sk_charger_refill_delay | 15  Black Mesa | Arbitrary number | Delay before refill for suit and health chargers in seconds. Multiplayer only. | 
Keyvalues
- Deathmatch recharge delay (dmdelay) <float>
- Charge (charge)  <float> (only in  ) )
- How full the charger should be (0 - 100)
Determines model that the charger will use, dirty or clean.
- 0: None
- 1: Clean
- 2: Dirty
 Note:Content moved to Rendering and studio model related KIO/Keyvalues for continuation of page history
Note:Content moved to Rendering and studio model related KIO/Keyvalues for continuation of page history
Inputs
 Note:Content moved to Rendering and studio model related KIO/Inputs for continuation of page history
Note:Content moved to Rendering and studio model related KIO/Inputs for continuation of page history
Outputs
- OutRemainingHealth
- Remaining Health. Cut in  Black Mesa. Black Mesa.
- OnPlayerUse
- Fired when the player tries to +use the charger. Cut in  Black Mesa. Black Mesa.
- OnUse   (only in  ) )
- Fired when the player tries to +use the charger.
- OnTurnOff   (only in  ) !FGD ) !FGD
- Fires on disable.
- OnTurnOn   (only in  ) !FGD ) !FGD
- Fires on enable.
 Note:Content moved to Rendering and studio model related KIO/Outputs for continuation of page history
Note:Content moved to Rendering and studio model related KIO/Outputs for continuation of page history
See also
- func_healthcharger, a brush-based version of this entity.
- item_suitcharger, a version of this entity meant for suit power.

























