revert to old pmove for the time being, add sv_floodprotect to control flood protection, defaults to 1
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2305 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
637633af80
commit
e529c86c55
2 changed files with 11 additions and 3 deletions
|
@ -58,6 +58,8 @@ cvar_t sv_brokenmovetypes = SCVAR("sv_brokenmovetypes", "0");
|
|||
|
||||
cvar_t sv_chatfilter = SCVAR("sv_chatfilter", "0");
|
||||
|
||||
cvar_t sv_floodprotect = SCVAR("sv_floodprotect", "1");
|
||||
|
||||
cvar_t votelevel = SCVAR("votelevel", "0");
|
||||
cvar_t voteminimum = SCVAR("voteminimum", "4");
|
||||
cvar_t votepercent = SCVAR("votepercent", "-1");
|
||||
|
@ -1863,6 +1865,8 @@ void SV_SayOne_f (void)
|
|||
float SV_CheckFloodProt(client_t *client)
|
||||
{
|
||||
int tmp;
|
||||
if (!sv_floodprotect.value)
|
||||
return 0;
|
||||
if (fp_messages)
|
||||
{
|
||||
if (!sv.paused && realtime<client->lockedtill)
|
||||
|
@ -5066,6 +5070,8 @@ void SV_UserInit (void)
|
|||
|
||||
Cvar_Register (&sv_pushplayers, cvargroup_servercontrol);
|
||||
|
||||
Cvar_Register (&sv_floodprotect, cvargroup_servercontrol);
|
||||
|
||||
Cvar_Register (&sv_cmdlikercon, cvargroup_serverpermissions);
|
||||
Cvar_Register(&cmd_gamecodelevel, "Access controls");
|
||||
Cvar_Register(&cmd_allowaccess, "Access controls");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue