Misc: Move shared stuff to shared git.

This commit is contained in:
zaCade
2018-12-08 21:12:39 +01:00
parent d4378f6476
commit 8cdcb01100
97 changed files with 25215 additions and 0 deletions
@@ -0,0 +1,139 @@
"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_freezetime"
{
"clamp"
{
"min" "0"
"max" "6"
}
}
"mp_restartgame"
{
"clamp"
{
"value" "1"
}
}
"mp_roundtime"
{
"clamp"
{
"min" "1"
"max" "60"
}
}
"mp_timelimit"
{
"clamp"
{
"min" "25"
"max" "85"
}
}
// sm_*
"sm_gravity" {}
"sm_freeze" {}
"sm_timebomb" {}
"sm_firebomb" {}
"sm_freezebomb" {}
"sm_slay" {}
"sm_say" {}
"sm_csay" {}
"sm_tsay" {}
"sm_hsay" {}
"sm_setcooldown" {}
"sm_startrace" {}
"sm_endrace" {}
"sm_cancelrace" {}
"sm_makovote" {}
// mce_*
"mce_extend"
{
"clamp"
{
"min" "1"
"max" "4"
}
}
// zr_*
"zr_class_modify" {}
"zr_class_reload" {}
"zr_config_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" {}
}
@@ -0,0 +1,74 @@
// Example config to showcase features
// This is a whitelist
"PointServerCommandFilter"
{
// Allow all
"say" {}
"exec" {}
// Allow "1"
mp_restartgame "1"
// Regex: Allow all cvars/commands that start with mp_
"/mp_.*/" {}
// Allow regex as paramter
"echo" "/DEBUG:.*/"
// Allow anything but
"sm"
{
"allow" {}
"deny"
{
"value" "/plugins unload/"
}
}
// Allow the following
"sm"
{
"allow"
{
"value" "/plugins unload/"
"value" "/plugins load/"
}
}
// also like this
"sm"
{
"allow" "/plugins unload/"
"allow" "/plugins load/"
}
// Only allow values between (including) 100 and 1000
"sv_gravity"
{
"allow"
{
"min" "100"
"max" "1000"
}
}
// Only allow values between 0 and 6,
// clamping if parmeter is outside of this range
// Example: 10 becomes 6 | -1 becomes 0
"mp_freezetime"
{
"clamp"
{
"min" "0"
"max" "6"
}
}
// Override since clamp has no paramters
"mp_restartgame"
{
"clamp"
{
"value" "1"
}
}
}