Left 4 Dead 2

Left 4 Dead 2

Admin System
Da' Crazy Woddy 2020 年 8 月 13 日 下午 11:00
Help with Cvars?
Been using this addon for a while but i still don't know how to properly get Cvars to work, any help with this? Is it possible to edit the Cvars so special infected stats change without using console commands or sv_cheats 1? Thanks in advance
< >
正在显示第 1 - 2 条,共 2 条留言
Maur0 2020 年 8 月 14 日 下午 12:05 
Here is a list of all the cvars commands in the game: L4D2 Cvars List

Simply the only thing you have to do to change the cvars commands, is to put in the chatbox or in the console to change the value and modify it. Here are some examples:
Chatbox: !cvar god 1 !cvar sv_infinite_ammo 1 !cvar sv_gravity 200 !cvar z_tank_health 10000 Console: scripted_user_func cvar,god,1 scripted_user_func cvar,sv_infinite_ammo,1 scripted_user_func cvar,sv_gravity,200 scripted_user_func cvar,z_tank_health,10000

Note: To use the command "scripted_user_func" (allows to make the command invisible to other players), you have to use the commas instead of the space bar.

Another way to load the cvars commands and modify the game is to use a "cvars.txt" file and put it in the "ems / admin system" folder. This allows you to quickly activate the commands every time you start or restart the server map.

引用自 Rayman1103
● Using a cvars.txt File
You can create a file called "cvars.txt" and place it in the following directory:
C:\Program Files (x86)\Steam\SteamApps\common\left 4 dead 2\left4dead2\ems\admin system

This file will automatically execute all Cvars upon loading each map. Keep in mind each Cvar will need to be on its own line within the file.

Here's an example of how you can enter the Cvars:
god "1" "sv_infinite_ammo" "1" sv_gravity 200 scripted_user_func give,all,rifle_m60 scripted_user_func max_health,all,300

And so you can modify the commands without having to do it within the game.
最后由 Maur0 编辑于; 2020 年 8 月 14 日 下午 12:07
Da' Crazy Woddy 2020 年 8 月 15 日 下午 1:14 
引用自 Maur0
Here is a list of all the cvars commands in the game: L4D2 Cvars List

Simply the only thing you have to do to change the cvars commands, is to put in the chatbox or in the console to change the value and modify it. Here are some examples:
Chatbox: !cvar god 1 !cvar sv_infinite_ammo 1 !cvar sv_gravity 200 !cvar z_tank_health 10000 Console: scripted_user_func cvar,god,1 scripted_user_func cvar,sv_infinite_ammo,1 scripted_user_func cvar,sv_gravity,200 scripted_user_func cvar,z_tank_health,10000

Note: To use the command "scripted_user_func" (allows to make the command invisible to other players), you have to use the commas instead of the space bar.

Another way to load the cvars commands and modify the game is to use a "cvars.txt" file and put it in the "ems / admin system" folder. This allows you to quickly activate the commands every time you start or restart the server map.

引用自 Rayman1103
● Using a cvars.txt File
You can create a file called "cvars.txt" and place it in the following directory:
C:\Program Files (x86)\Steam\SteamApps\common\left 4 dead 2\left4dead2\ems\admin system

This file will automatically execute all Cvars upon loading each map. Keep in mind each Cvar will need to be on its own line within the file.

Here's an example of how you can enter the Cvars:
god "1" "sv_infinite_ammo" "1" sv_gravity 200 scripted_user_func give,all,rifle_m60 scripted_user_func max_health,all,300

And so you can modify the commands without having to do it within the game.

Thank you so much!, You reply to every discussion and help everyone!
< >
正在显示第 1 - 2 条,共 2 条留言
每页显示数: 1530 50