Left 4 Dead 2

Left 4 Dead 2

55 ratings
Survivor Abilities Pack
   
Award
Favorite
Favorited
Unfavorite
Survivors: Survivors
Game Content: Scripts, Miscellaneous
Items: Other
File Size
Posted
Updated
100.856 KB
May 4, 2022 @ 12:12pm
May 5, 2022 @ 1:50am
2 Change Notes ( view )

Subscribe to download
Survivor Abilities Pack

Description
A small collection of Survivor Abilities for the Left 4 Fun addon.

This is not a standalone addon, this addon requires Left 4 Fun and Left 4 Lib addons to work.

How to install
  • Subscribe to this addon
  • Subscribe to the required addons (if you havent already)
  • Open the folder "C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2\left4dead2\ems\left4fun" in explorer and create a new subfolder named "survivorabilities"
  • Inside the newly created folder, create 2 text files named "types.txt" and "char_defaults.txt" respectively.
  • Open the 2 new text files with a text editor and add the following content to them, then save them.

types.txt
Bhop Bileman Bomberman Fireman Fly Gravity Invisible Medic Push Radar Tesla Warp
This represents the list of Survivor Ability classes that will be loaded by the Left 4 Fun addon.
You can remove any ability you do not want to be loaded or add new abilities simply by editing this file.
With this file you can also change the default parameters of the abilities, see HERE.

char_defaults.txt
fireman fireman fireman fireman fireman fireman fireman fireman
This file represent the default ability (ability name not the ability class) for each one of the 8 survivor characters.
Survivors will start with these default abilities but they can always change it with the 'ability_set' command (unless you disabled it via 'l4f_survivor_abilities_allow_set' fake cvar).

How to use
The Survivor Ability feature must be enabled on Left 4 Fun in order for this to work.
You can do this by settings the fake cvar 'l4f_survivor_abilities' to 'true' via 'cvar' command (!l4f cvar l4f_survivor_abilities true), however the value will revert to 'false' after a map transition.
You can make it permanent by using the 'pcvar' command instead (!l4f pcvar l4f_survivor_abilities true).
You can set the other 'l4f_survivor_abilities_*' cvars in the same way.
The list of the fake cvars can be found HERE.

An alternative to the permanent cvar is to make a L4F mod and switch to it via '!l4f settings mod modname' command.
For example you can create a text file named 'survivor_abilities_all.txt' in the 'ems\left4fun\mods\' folder and add these lines to it:
l4f_survivor_abilities 1 l4f_survivor_abilities_hud 1 l4f_survivor_abilities_notifications 1 //l4f_survivor_abilities_removeonincap 1 //l4f_survivor_abilities_add_onspawn 0 //l4f_survivor_abilities_allow_cmds 1 //l4f_survivor_abilities_allow_set 1
Then, create a local game and, after the map finished loading, type '!l4f settings mod survivor_abilities', then '!l4f restart'.

Survivor Abilities are now loaded, you can set your preferred ability via '!l4f ability_set abilityname' command.
You start / stop the ability via '!l4f ability_start' / '!l4f ability_stop' commands and fire it via '!l4f ability_use' command.

More details on the commands can be found HERE.

A demonstration can be seen in the linked videos.

Another alternative is to make your own mutation, like THIS ONE.

How to bind the 'ability_use' command to a button
Open the console and type:
bind "KEY" "scripted_user_func l4f,ability_use"
Change KEY with the key you want to use.

'ability_start' and 'ability_stop' commands can be bound the same way.


Like my mods?
Donations are not required but are greatly appreciated.
[ko-fi.com]
Popular Discussions View All (1)
0
May 5, 2022 @ 1:43am
PINNED: Abilities Configuration
smilzo
15 Comments
X-RAY Mar 27 @ 5:29pm 
I've followed the instructions and nothing seems to work? the console tells me "command unknown" as I'm supposed to be doing this now.
Punks Not Dead Oct 17, 2023 @ 5:57am 
thx, i will try it soon.
smilzo  [author] Oct 17, 2023 @ 4:44am 
@Clementine's Lover it's literally in the descripion and in the 2 linked videos. The first video has outdated commands but you just have to add "l4f" at the beginning of each command. For example: "!ability_use" becomes "!l4f ability_use". "scripted_user_func ability_start" becomes "scripted_user_func l4f,ability_start" etc.
If you have a question about a specific step ask here, i will answer when i can.
Punks Not Dead Oct 16, 2023 @ 10:48pm 
could u create a new guide, pls?
smilzo  [author] Oct 9, 2023 @ 12:46pm 
@Clementine's Lover sorry the Left4Fun commands changed recently and i forgot to update the description of this. Basically all the commands need to start with !l4f now.
Punks Not Dead Oct 9, 2023 @ 8:20am 
Inst worked
ᵉˣᵃᶜᵗˡʸ Feb 13, 2023 @ 11:58pm 
This mod Awful I'm not Getting Download that
ᵉˣᵃᶜᵗˡʸ Feb 13, 2023 @ 11:57pm 
i'm so stupid is not working?
smilzo  [author] Jan 15, 2023 @ 9:37am 
@VendibleGallus i don't know, sorry.
VendibleGoose Dec 20, 2022 @ 4:34pm 
is this compatible with project smok