Left 4 Dead 2

Left 4 Dead 2

Admin Menu 2.0
Arex 21 Oct, 2018 @ 9:30pm
Its missing essential commands
Just add the sv_cheats command in the admin menu, the other one has it i don´t know why yours don´t, you added the leaker command but somehow you don´t add the important one.
PD: Great work, maybe you should add a more organic way of spawing the hidden weapons.
< >
Showing 1-15 of 24 comments
Maur0  [developer] 23 Oct, 2018 @ 8:16am 
The problem with putting the command "sv_cheats 1", is that it will not work for local server and you have to use the "map" command to activate it and nobody can enter your server and requires location of your ip and port.

In the section of "weapons commands" are the hidden weapons. If you want to be scattered around the map, you can use this little plugin:

"Weapon Unlock"
https://forums.alliedmods.net/showthread.php?p=1041458

"Knife Unlock"
https://forums.alliedmods.net/showthread.php?p=1709049

Note: you will need to have installed sourcemod and metamod and place the plugins in the folder "addons / sourcemod / plugins"
Arex 24 Oct, 2018 @ 9:29pm 
thank you for responding, i guess you are right, but it bums me that the fun stuff is locked with playing online and not changing things for a solo play.
Maur0  [developer] 25 Oct, 2018 @ 9:22am 
You can change several cvars and launchers with the command "cvar" either in the chatbox or console.
Chatbox: !cvar god 1 Console: scripted_user_func god,1

For the command in the console "scripted_user_func" next to the command they have to be together, that is, each space replace it with the comma. This is used to hide commands without others seeing you write. They also work for all commands in the admin system mod.
scripted_user_func god,nick scripted_user_func max_health,nick,300 scripted_user_func give,nick,rifle_m60 scripted_user_func z_spawn,tank

Another more useful way to save all the commands that you changed and enter the server, is with a document file "cvats.txt" and put it in this location:
"C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2\left4dead2\ems\admin system"

And within the file you can add cvars and launchers such as these:
god 1 sv_infinite_ammo 1 sv_gravity 100 scripted_user_func max_health,all,300 scripted_user_func give,all,rifle_m60 z_witch_always_kills 1 ammo_m60_max 300
Then every time you start the server or reboots, all the changed commands will be automatically saved inside the file.

Here is the list of all the cvars commands:
List of L4D2 Cvars
Arex 25 Oct, 2018 @ 5:13pm 
So let me see if i get it straight, i can make a txt file for a list of commands that i wish to execute in my server but its kinda similar if i just used the "exec" command, the thing that i want its make slow zombies and slow survivor making a more experience a la Zombie Panic! But in order to do that i need to test it in my own SOLO experience not making a server already.
PS: Why the limit common infected doesn´t stick around and you have to enter it every time you change of chapter?
Maur0  [developer] 25 Oct, 2018 @ 7:45pm 
The only difference with the cvars file with the exec is that you can only send cvars, launcher and admin system commands for quick and saved use.

Also if you want to make slow zombies, here are a few commands in recommendation:
scripted_user_func speed,all,0.5 director_no_specials 1 director_no_bosses 1 sv_disable_glow_survivors 1 sv_disable_glow_faritems 1 sv_rescue_disabled 1 z_health 1000 z_non_head_damage_factor_multiplier 0.5 z_head_damage_causes_wounds 1 z_use_next_difficulty_damage_factor 1 z_speed 100 z_tank_health 10000 z_tank_speed 150 ammo_grenadelauncher_max 10 ammo_assaultrifle_max 180 ammo_autoshotgun_max 45 ammo_huntingrifle_max 75 ammo_shotgun_max 28 ammo_smg_max 325 ammo_sniperrifle_max 90 fog_override 1 fog_enable 1 fog_start 242 fog_end 730 fog_startskybox -10000 fog_endskybox -10000 fog_enableskybox 1 z_common_limit 60 z_background_limit 60 z_mega_mob_size 60 z_mob_spawn_max_size 60 z_mob_spawn_min_size 60
All those commands are kept in the cvars file. The "speed" command allows to increase and decrease the speed of the survivors or infected.

Also if you have done with the "limit" command, each time the map is reset it will return to its default value. Unless you've put in the cvars file.
Maur0  [developer] 25 Oct, 2018 @ 7:50pm 
Another advanced option is to use the file "server.nut"
  • Using a server.nut File
You can use a file called "server.nut" to make a few additional changes to your game. Step 1: Download the server.nut file here[www.dropbox.com] Step 2: Place the server.nut file in left 4 dead 2/left4dead2/scripts/vscripts. You can open the file using a text editor, and make changes and additions to whatever you prefer. For a list of more functions you can check the L4D2 VScripts page, or EMS page.

With this file you can modify the game mode with commands vscripts. Such as giving slow zombies more damage and dying alone to the head. Also change weapons or items, remove weapons or items, appear with the weapon or item, etc.
DirectorOptions <- { ActiveChallenge = 1 cm_HeadshotOnly = 1 cm_BaseCommonAttackDamage = 5 MobSpawnMaxTime = 300 MobSpawnMinTime = 300 // convert items that aren't useful weaponsToConvert = { weapon_upgradepack_explosive = "weapon_rifle_m60_spawn" weapon_upgradepack_incendiary = "weapon_rifle_m60_spawn" } function ConvertWeaponSpawn( classname ) { if ( classname in weaponsToConvert ) { return weaponsToConvert[classname]; } return 0; } // weapons to start with DefaultItems = [ "weapon_pistol", ] function GetDefaultItem( idx ) { if ( idx < DefaultItems.len() ) { return DefaultItems[idx]; } return 0; } weaponsToRemove = { ammo = 0 } function AllowWeaponSpawn( classname ) { if ( classname in weaponsToRemove ) { return false; } return true; } function ShouldAvoidItem( classname ) { if ( classname in weaponsToRemove ) { return true; } return false; } }

And remember that you can even do it only in local server or with the "map" command. You can even put only friends so that no one enters or downloads a workshop mod that has "private game" so that nobody can enter, nor your friends.
Last edited by Maur0; 25 Oct, 2018 @ 7:59pm
Arex 26 Oct, 2018 @ 10:33pm 
♥♥♥♥♥♥♥♥♥... i didn´t know you could modify everything, even the reserve ammo wich has been a pain in my head since i did scripts for weapons but i didn´t know how to make them a little bit fair for both ends.
PS: Thanks now i gotta do some test runs and lets see what i got.
Maur0  [developer] 27 Oct, 2018 @ 5:17pm 
Finally, if you want to modify the weapons to make them more realistic or similar to the style of zombie panic source. You can use this guide to modify the status of each weapon:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1060964738&searchtext=weapons+scripts
Arex 28 Oct, 2018 @ 2:23pm 
Ok i have the txt file and everything in its place once i start the game how should i acces the txt file?
Maur0  [developer] 29 Oct, 2018 @ 6:26am 
Just go to the location where you left the file:
C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2\left4dead2\ems\admin system

And there you can modify when you want adding or removing some commands and then save it.
Arex 31 Oct, 2018 @ 1:15am 
But how do i execute all the commands ¿What is the command for executing the txt file?
Maur0  [developer] 2 Nov, 2018 @ 5:51am 
Originally posted by Arex:
But how do i execute all the commands ¿What is the command for executing the txt file?
-In a notebook you write the commands.
-Then you go to "file" and "save as."
-There you put the name of the file "cvars" (without the quotes), and type "all the files".
-You give to save and take the file to the location that you had said:
C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2\left4dead2\ems\admin system
Arex 2 Nov, 2018 @ 5:05pm 
Ok, i did that, now...(Sorry if im being a little bit annoying about setting this up) i just boot up the local server and the CVAR file just executes alone or do I have yo input something in console like the "Scripted_Func" thing?
Arex 2 Nov, 2018 @ 5:51pm 
Ok, f u c k m e... the commands dont execute at all, i have them in the correct directory, i have them in each line, but they dont execute at all in my local server and i start without the things i specified.
Arex 2 Nov, 2018 @ 5:55pm 
Oh... I fixed it. Thank you so much.
< >
Showing 1-15 of 24 comments
Per page: 1530 50