added in-production PointServerCommandFilter config
This commit is contained in:
parent
c532a321fa
commit
f5ca547c96
132
PointServerCommandFilter/configs/PointServerCommandFilter.cfg
Normal file
132
PointServerCommandFilter/configs/PointServerCommandFilter.cfg
Normal file
@ -0,0 +1,132 @@
|
||||
"PointServerCommandFilter"
|
||||
{
|
||||
"say" {}
|
||||
"exec" {}
|
||||
"echo" {}
|
||||
|
||||
// sv_*
|
||||
"sv_enablebunnyhopping" {}
|
||||
"sv_airaccelerate" {}
|
||||
"sv_turbophysics" {}
|
||||
"sv_gravity"
|
||||
{
|
||||
"allow"
|
||||
{
|
||||
"min" "100"
|
||||
"max" "1000"
|
||||
}
|
||||
}
|
||||
"sv_accelerate"
|
||||
{
|
||||
"clamp"
|
||||
{
|
||||
"min" "-5"
|
||||
"max" "5"
|
||||
}
|
||||
}
|
||||
"sv_friction"
|
||||
{
|
||||
"clamp"
|
||||
{
|
||||
"min" "0"
|
||||
"max" "4"
|
||||
}
|
||||
}
|
||||
"phys_pushscale"
|
||||
{
|
||||
"clamp"
|
||||
{
|
||||
"min" "0"
|
||||
"max" "5"
|
||||
}
|
||||
}
|
||||
|
||||
// mp_ *
|
||||
"mp_flashlight" {}
|
||||
"mp_freezetime"
|
||||
{
|
||||
"clamp"
|
||||
{
|
||||
"min" "0"
|
||||
"max" "6"
|
||||
}
|
||||
}
|
||||
"mp_restartgame"
|
||||
{
|
||||
"clamp"
|
||||
{
|
||||
"value" "1"
|
||||
}
|
||||
}
|
||||
"mp_roundtime"
|
||||
{
|
||||
"clamp"
|
||||
{
|
||||
"min" "1"
|
||||
"max" "16"
|
||||
}
|
||||
}
|
||||
"mp_timelimit"
|
||||
{
|
||||
"clamp"
|
||||
{
|
||||
"min" "25"
|
||||
"max" "85"
|
||||
}
|
||||
}
|
||||
|
||||
// sm_*
|
||||
"sm" "plugins unload WeaponEquip"
|
||||
"sm_gravity" "/#STEAM_/"
|
||||
"sm_freeze" "/#STEAM_/"
|
||||
"sm_slay" "@all"
|
||||
"sm_say" {}
|
||||
"sm_csay" {}
|
||||
"sm_tsay" {}
|
||||
"sm_hsay" {}
|
||||
"sm_setcooldown" {}
|
||||
|
||||
// mce_*
|
||||
"mce_extend"
|
||||
{
|
||||
"clamp"
|
||||
{
|
||||
"min" "1"
|
||||
"max" "4"
|
||||
}
|
||||
}
|
||||
|
||||
// zr_*
|
||||
"zr_class_modify" {}
|
||||
"zr_class_reload" {}
|
||||
"zr_restrict" {}
|
||||
"zr_unrestrict" {}
|
||||
"zr_ambientsounds" {}
|
||||
"zr_ambientsounds_file" {}
|
||||
"zr_ambientsounds_volume" {}
|
||||
"zr_ambientsounds_length" {}
|
||||
"zr_roundend_overlay" {}
|
||||
"zr_roundend_overlays_human" {}
|
||||
"zr_roundend_overlays_zombie" {}
|
||||
"zr_respawn" {}
|
||||
"zr_respawn_delay"
|
||||
{
|
||||
"clamp"
|
||||
{
|
||||
"min" "5"
|
||||
}
|
||||
}
|
||||
"zr_infect_mzombie_ratio" {}
|
||||
"zr_infect_mzombie_respawn" {}
|
||||
"zr_infect_spawntime_min" {}
|
||||
"zr_infect_spawntime_max" {}
|
||||
"zr_infect_sound" {}
|
||||
"zr_ztele_zombie" {}
|
||||
"zr_ztele_human_before" {}
|
||||
"zr_ztele_human_after" {}
|
||||
"zr_ztele_delay_zombie" {}
|
||||
"zr_ztele_delay_human" {}
|
||||
"zr_ztele_max_zombie" {}
|
||||
"zr_ztele_max_human" {}
|
||||
"zr_ztele_autocancel" {}
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
// Example config to showcase features
|
||||
// This is a whitelist
|
||||
"PointDetour"
|
||||
"PointServerCommandFilter"
|
||||
{
|
||||
// Allow all
|
||||
"say" {}
|
@ -259,11 +259,11 @@ void LoadConfig()
|
||||
Cleanup();
|
||||
|
||||
static char sConfigFile[PLATFORM_MAX_PATH];
|
||||
BuildPath(Path_SM, sConfigFile, sizeof(sConfigFile), "configs/PointDetour.cfg");
|
||||
BuildPath(Path_SM, sConfigFile, sizeof(sConfigFile), "configs/PointServerCommandFilter.cfg");
|
||||
if(!FileExists(sConfigFile))
|
||||
SetFailState("Could not find config: \"%s\"", sConfigFile);
|
||||
|
||||
KeyValues Config = new KeyValues("PointDetour");
|
||||
KeyValues Config = new KeyValues("PointServerCommandFilter");
|
||||
if(!Config.ImportFromFile(sConfigFile))
|
||||
{
|
||||
delete Config;
|
||||
|
Loading…
Reference in New Issue
Block a user