From f5ca547c967276aed9a3721ec17320f895b74c3e Mon Sep 17 00:00:00 2001 From: BotoX Date: Fri, 22 Jan 2016 23:25:07 +0100 Subject: [PATCH] added in-production PointServerCommandFilter config --- .../configs/PointServerCommandFilter.cfg | 132 ++++++++++++++++++ ...g => PointServerCommandFilter.example.cfg} | 2 +- .../scripting/PointServerCommandFilter.sp | 4 +- 3 files changed, 135 insertions(+), 3 deletions(-) create mode 100644 PointServerCommandFilter/configs/PointServerCommandFilter.cfg rename PointServerCommandFilter/configs/{PointDetour.cfg => PointServerCommandFilter.example.cfg} (97%) diff --git a/PointServerCommandFilter/configs/PointServerCommandFilter.cfg b/PointServerCommandFilter/configs/PointServerCommandFilter.cfg new file mode 100644 index 00000000..0d79725c --- /dev/null +++ b/PointServerCommandFilter/configs/PointServerCommandFilter.cfg @@ -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" {} +} diff --git a/PointServerCommandFilter/configs/PointDetour.cfg b/PointServerCommandFilter/configs/PointServerCommandFilter.example.cfg similarity index 97% rename from PointServerCommandFilter/configs/PointDetour.cfg rename to PointServerCommandFilter/configs/PointServerCommandFilter.example.cfg index 6ad85723..f8f57ab2 100644 --- a/PointServerCommandFilter/configs/PointDetour.cfg +++ b/PointServerCommandFilter/configs/PointServerCommandFilter.example.cfg @@ -1,6 +1,6 @@ // Example config to showcase features // This is a whitelist -"PointDetour" +"PointServerCommandFilter" { // Allow all "say" {} diff --git a/PointServerCommandFilter/scripting/PointServerCommandFilter.sp b/PointServerCommandFilter/scripting/PointServerCommandFilter.sp index 5e606581..62485257 100644 --- a/PointServerCommandFilter/scripting/PointServerCommandFilter.sp +++ b/PointServerCommandFilter/scripting/PointServerCommandFilter.sp @@ -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;