Ability charge: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "{{stub}} {{CD|CCharge}} {{This is a|logical entity|name=ability_charge|game=Left 4 Dead 2}} It controls the spitter's spit attack which creates spitter_projectile. == Convars == {{todo|keep cvars only relevant to charge attack}} <pre> z_charge_duration 2.5 "cheat", "rep", "cl" z_charge_impact_angle .7 "sv", "cheat" z_charge_impact_radius 120 "sv", "cheat" z_charge_interval 12 "cheat", "rep", "cl" z_charge_max_damage 10 "cheat", "rep", "cl" z_charge_max_for...")
 
No edit summary
Line 1: Line 1:
{{stub}}
{{stub}}
{{CD|CCharge}}
{{CD|CCharge}}
{{This is a|logical entity|name=ability_charge|game=Left 4 Dead 2}} It controls the [[spitter]]'s spit attack which creates [[spitter_projectile]].
{{This is a|logical entity|name=ability_charge|game=Left 4 Dead 2}} It controls the [[charger]]'s charge attack.


== Convars ==
== Convars ==

Revision as of 13:16, 23 May 2025

Stub

This article or section is a stub. You can help by expanding it.

C++ Class hierarchy
CCharge
CBaseAbility
CBaseEntity

ability_charge is a logical entity available in Left 4 Dead 2 Left 4 Dead 2. It controls the charger's charge attack.

Convars

Todo: keep cvars only relevant to charge attack
z_charge_duration	2.5	"cheat", "rep", "cl"	
z_charge_impact_angle	.7	"sv", "cheat"	
z_charge_impact_radius	120	"sv", "cheat"	
z_charge_interval	12	"cheat", "rep", "cl"	
z_charge_max_damage	10	"cheat", "rep", "cl"	
z_charge_max_force	800	"cheat", "rep", "cl"	
z_charge_max_speed	500	"cheat", "rep", "cl"	
z_charge_min_force	550	"cheat", "rep", "cl"	
z_charge_prop_damage	20	"sv", "cheat"	
z_charge_start_speed	250	"cheat", "rep", "cl"	
z_charge_tooshort	0	"cheat", "rep", "cl"	
z_charge_warmup	0.5	"cheat", "rep", "cl"	
z_charger_allow_shove	0	"sv", "cheat"	0 = Cannot be shoved, 1 = Can be shoved
z_charger_health	600	"sv", "cheat"	Charger max health
z_charger_impact_epsilon	8	"sv", "cheat"	
z_charger_limit	1	"sv", "cheat"	
z_charger_max_prop_force	3000	"sv", "cheat"	
z_charger_pound_dmg	15	"sv", "cheat"	
z_charger_probe_alone	6	"sv", "cheat"	
z_charger_probe_attack	24	"sv", "cheat"	

See also