Left 4 Dead 2

Left 4 Dead 2

Left 4 Fun
 This topic has been pinned, so it's probably important
smilzo  [developer] 25 Apr, 2019 @ 10:37am
Extra (fake) cvars
Here is the list of "extra cvars" used by Left 4 Fun addon to add more customization to your games.
You can use these fake cvars in your mod files exactly like the real game cvars.

Name / Description
Allowed values
Default value
l4f_survivor_abilities

Enables/Disables the Survivor Ability feature
  • false (disabled)
  • true (enabled)
false
l4f_survivor_abilities_hud

Enables/Disables the hud showing the Survivor Ability cooldown time of each survivor
  • false (disabled)
  • true (enabled)
false
l4f_survivor_abilities_removeonincap

If enabled, the active survivor ability is automatically stopped upon incap
  • false (Ability remains active)
  • true (Ability is removed)
true
l4f_survivor_abilities_add_onspawn

If enabled, the player's Survivor Ability is automatically started on spawn
  • false (Ability must be started manually)
  • true (Ability auto starts on spawn)
false
l4f_survivor_abilities_notifications

Enables/Disables text notifications to the players to inform of ability started/stopped and cooldown status
  • false (Disabled)
  • true (Enabled)
false
l4f_survivor_abilities_allow_cmds

Enables/Disables the ability_* commands (only the user version). You can disable this if you want to control the abilities via external scripts (like a mutation) only
  • false (Disabled)
  • true (Enabled)
true
l4f_survivor_abilities_allow_set

Enables/Disables only the ability_set command (only the user version). You can disable this if you want the character to stick to their default abilities
  • false (Disabled)
  • true (Enabled)
true
l4f_helpme

Players of this category can revive themselves (from incap or ledge hanging) if they have a first aid kit, pain pills or adrenaline in their inventory using the chat trigger: !helpme
  • none (disabled)
  • admins (enabled for admins only)
  • users (enabled for non-admins only)
  • all (enabled for everyone)
none
l4f_helpme_auto_health

When l4f_helpme is enabled an incapped (or hanging) player who has first aid kit, pain pills or adrenaline in his inventory will be automatically revived when his health drops to this level
Any valid number > 0 or < 0 to disable it
-10
l4f_autorespawn

Players of this category will respawn automatically after l4f_autorespawn_delay seconds from their death if there is still at least one survivor alive
  • none (disabled)
  • admins (enabled for admins only)
  • users (enabled for non-admins only)
  • all (enabled for everyone)
none
l4f_autorespawn_delay

Delay (in seconds) for the autorespawn, if l4f_autorespawn is active
Any valid number > 0
8
l4f_utils_restore_interval

Molotov, pipe bomb and vomit jar will respawn in the player's (non admins only) inventory after this amount of seconds for l4f_utils_max_restores times
Any valid integer number > 0
15
l4f_utils_max_restores

Molotov, pipe bomb and vomit jar will respawn in the player's (non admins only) inventory this number of times
Any valid integer number > 0 or 0 to disable it
0
l4f_utils_restore_interval_adm

Same as l4f_utils_restore_interval but for admins only
Any valid integer number > 0
10
l4f_utils_max_restores_adm

Same as l4f_utils_max_restores but for admins only
Any valid integer number > 0 or 0 to disable it
0
l4f_adrenalineboost

Players of this category can automatically get a temporary adrenaline effect in a few special situations (after being revived, after reviving someone else, when health drops to a certain level)
  • none (disabled)
  • admins (enabled for admins only)
  • users (enabled for non-admins only)
  • all (enabled for everyone)
none
l4f_adrenalineboost_health

When l4f_adrenalineboost is enabled any damage received by the player while his health is equal or below this number will give a temporary adrenaline effect
Any valid number >= 0 or < 0 to disable it
10
l4f_adrenalineboost_duration

Duration (in seconds) of the effect given when the health drops under l4f_adrenalineboost_health
Any valid floating point number
10
l4f_adrenalineboost_duration_onrevive

Duration (in seconds) of the effect given when the player is revived or he revived a team mate
Any valid floating point number
5
l4f_tank_clones

Number of tank clones for each regular tank spawned
A valid integer number >= 0
0
l4f_witch_clones

Number of witch clones for each regular witch spawned
A valid integer number >= 0
0
l4f_health_onnewchapter

At the beginnin of each chapter the health of all the survivors will be refilled to this number
A valid integer number > 0 or 0 to disable it
0
l4f_chat_notices

Enable/Disable public chat notices generated by this addon (ex. "Player XXX respawned" etc.)
  • true (enabled)
  • false (disabled)
false
l4f_user_hints

Enable/Disable onscreen hints to the players generated by this addon
  • true (enabled)
  • false (disabled)
false
l4f_supershove

Players of this category have a "super" shove (right mouse button)
  • none (disabled)
  • admins (enabled for admins only)
  • users (enabled for non-admins only)
  • all (enabled for everyone)
none
l4f_supershove_type

Type of supershove to use
  • stagger
  • push
stagger
l4f_supershove_onadmin

Can the admins be supershoved?
  • true (yes)
  • false (no)
false
l4f_superjump

Players of this category can double jump as long as they hold the SPACE button (or hit an obstacle)
  • none (disabled)
  • admins (enabled for admins only)
  • users (enabled for non-admins only)
  • all (enabled for everyone)
none
l4f_money

Enable/Disable the money system (survivors receive money from the kills and can buy items). Notice: survivor bots will buy items by themselves but they wont grab money pickups from the ground unless they accidentally step on it
  • true (enabled)
  • false (disabled)
false
l4f_money_hud

Enable/Disable the hud to show onscreen the money collected by the survivors
  • true (enabled)
  • false (disabled)
false
l4f_money_reset

If enabled, the money collected will be reset to 0 at the beginning of each chapter
  • true (enabled)
  • false (disabled)
false
l4f_money_replacepickups

If enabled, the item spawns contained in the file 'ems/left4fun/money/pickupstoreplace.txt' will be replaced by money pickups. The file has the format 'object_class = amount' on each line where object_class defines the map object class that will be replaced by amount money or 0 to remove the map object without spawning money
  • true (enabled)
  • false (disabled)
true
l4f_zombiedrops

If enabled, zombies will spawn items when they die. You can customize the spawned items for each type of infected on each map with a file named mapname.txt in the directory 'ems/left4fun/zombiedrops/' (see here for further details)
  • true (enabled)
  • false (disabled)
false
l4f_zombiedrops_onplayer

If enabled, the killed zombies will spawn the items at the player's position instead (if 'l4f_zombiedrops' is active)
  • true (enabled)
  • false (disabled)
false
l4f_charger_steer_humans

If enabled, human controlled chargers can steer during the charge
  • true (enabled)
  • false (disabled)
false
l4f_charger_steer_bots

If enabled, AI controlled chargers can steer during the charge
  • true (enabled)
  • false (disabled)
false
l4f_timed_notice

This text will be sent to the chat every timed_notice_interval seconds. Notice: l4f_chat_notices has no effect on this
Any text or blank to disable it
blank
l4f_timed_notice_interval

Interval (in seconds) for the 'timed_notice'
Any valid number
0
l4f_remove_pistol_onincap

If enabled it removes the pistol from any incapacitated survivor. Can be useful when trying to unlock melee only achievements like "Beat the rush" with the bots
  • true (enabled)
  • false (disabled)
false
gl_airborn_push_force

Push force (backwards relative to the tip of the GL) applied to the player when shooting with a grenade launcher while airborn (not touching the ground). Can be used to rocket jump by jumping and shooting towards the ground.
Any valid number
0
m60_airborn_push_force

Same as 'gl_airborn_push_force' but used with the M60 rifle (push force is applied every round fired).
Any valid number
0
Last edited by smilzo; 4 May, 2022 @ 12:03pm
< >
Showing 1-1 of 1 comments
smilzo  [developer] 3 May, 2022 @ 6:09am 
Additionally you can use the following commands to customize the weapon spawns:
  • l4f_weapontoconvert <weapon1>,<weapon2> (first given weapon will be converted to the second given one)
  • l4f_weapontoremove <weapon> (given weapon will not spawn)
  • l4f_defaultitem <item> (Survivors will spawn with the given item)
You can add multiple lines of the same command to customize all the weapons you want (one command on each line).

Example:
l4f_weapontoconvert weapon_first_aid_kit,weapon_pain_pills_spawn l4f_weapontoconvert weapon_smg,weapon_pumpshotgun_spawn l4f_weapontoremove weapon_pistol l4f_weapontoremove weapon_pistol_magnum l4f_defaultitem chainsaw
In the example above the first aid kits will be replaced by pain pills, smg by pump shotgun, pistols will not spawn at all and survivors will spawn with a chainsaw instead.

You can even convert the infected types with the command:
  • l4f_zombietoconvert <infected_type_id1>,<infected_type_id2> (first given infected type will be converted to the second one)
Example:
l4f_zombietoconvert 4,8 // spitter becomes a tank l4f_zombietoconvert 5,7 // jockey becomes a witch l4f_zombietoconvert 6,11 // charger becomes a witch bride
Here is the list of infected type IDs:
0 = Common 1 = Smoker 2 = Boomer 3 = Hunter 4 = Spitter 5 = Jockey 6 = Charger 7 = Witch 8 = Tank 11 = Witch Bride

With the following command you can change all the Director's options you want:
  • l4f_director.<director_option> <value> (a list of director options you can change can be found here)
Example:
l4f_director.AggressiveSpecials 0 l4f_director.cm_AggressiveSpecials 0 l4f_director.MaxSpecials 4 l4f_director.cm_MaxSpecials 4

With this command you can change the render settings of certain entities:
  • l4f_render.<render_variable>.<entity_type> <value>
render_variable can be "mode", "fx", "color".
entity_type can be "survivor", "common", "smoker", "boomer", "hunter", "spitter", "jockey", "charger", "tank", "witch".
Example:
l4f_render.mode.common 1 l4f_render.fx.common 9 l4f_render.color.common 255 255 255 50
For a better example of what you can do with this command, check the "l4f_ghosts" mod from the Left 4 Fun sample mods addon.

The following command can be used to remove certain item / item spawns from the map:
  • l4f_sanitize <type> (one type each line)
Example:
l4f_sanitize weapons l4f_sanitize weapon_spawns l4f_sanitize ammo
Here is the list of available types:
weapons (all the weapons) weapon_spawns (all the weapons) utils (pipe bomb, bile jar, molotov) util_spawns (pipe bomb, bile jar, molotov) meds (medkit, pain pills, adrenaline) med_spawns (medkit, defibrillator, pain pills, adrenaline) health_cabinets (yes, the health cabinets) upgrades (incendiary / explosive bullets) upgrade_spawns (incendiary / explosive bullets, laser sight) extras (gas can, oxygen tank, propane tank, fireworks crate) extra_spawns (gas can, oxygen tank, propane tank, fireworks crate) ammo (ammo pile) all (all of them)
< >
Showing 1-1 of 1 comments
Per page: 1530 50