Left 4 Dead 2

Left 4 Dead 2

Survivor Abilities Pack
 This topic has been pinned, so it's probably important
smilzo  [developer] 5 May, 2022 @ 1:43am
Abilities Configuration
Survivor Abilities have the following parameters:
  • Cooldown time (cooldown time in seconds)
  • Max Usage (some abilities have certain amount of power that can be used before the ability stops automatically)
  • Duration (Max Usage reached or not, the ability will last max this time in seconds)
  • Range (some abilities work within a certain range but other abilities may use this differently)
  • Damage (some abilities use this as the damage to inflict to the infected but some can use this parameter differently)
The default value of these parameters are defined in the vscript code but you can change them from the 'types.txt' file.
In this file each line is in this format:
AbilityClass,Cooldown,MaxUsage,Duration,Range,Damage
You can use the vscript default by omitting the values in this file.
For example you can do this:
AbilityClass
You can do this:
AbilityClass,Cooldown,MaxUsage
But you cannot do this:
AbilityClass,,,Range,Damage

This is the 'types.txt' file with all the vscript default values of each ability:
Bhop,60,0,40,0,0 Bileman,60,0,40,2000,0 Bomberman,60,10,40,0,600 Fireman,60,10,40,100,0.1 Fly,60,0,30,0,0 Gravity,60,0,40,0.15,0 Invisible,60,0,30,0,0 Medic,60,10,40,170,5 Push,60,10,40,500,700 Radar,60,0,50,1500,0.9 Tesla,60,10,40,800,350 Warp,60,10,40,250,0
Please note that some abilities use the Range and Damage parameters to set different things.
For example:
  • Gravity uses the 'Range' parameter to define the gravity amount
  • Medic uses 'Damage' for the HP amount to regen each time
  • Push uses 'Damage' for the push force to apply
  • Radar uses 'Damage' as the glow duration

You can set the 'Duration' to '0' to make it infinite.
Last edited by smilzo; 5 May, 2022 @ 1:44am