2005-11-30 20:46:09 +00:00
/*
Copyright ( C ) 2001 - 2002 A Nourai
This program is free software ; you can redistribute it and / or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation ; either version 2
of the License , or ( at your option ) any later version .
This program is distributed in the hope that it will be useful ,
but WITHOUT ANY WARRANTY ; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE .
See the included ( GNU . txt ) GNU General Public License for more details .
You should have received a copy of the GNU General Public License
along with this program ; if not , write to the Free Software
Foundation , Inc . , 59 Temple Place - Suite 330 , Boston , MA 02111 - 1307 , USA .
*/
# include "quakedef.h"
# include "cl_ignore.h"
2005-12-21 03:07:33 +00:00
# include <ctype.h>
2005-11-30 20:46:09 +00:00
# define MAX_TEAMIGNORELIST 4
# define FLOODLIST_SIZE 10
2010-12-05 02:46:07 +00:00
int Player_IdtoSlot ( int id )
{
2005-11-30 20:46:09 +00:00
int j ;
2013-10-29 17:38:22 +00:00
for ( j = 0 ; j < cl . allocated_client_slots ; j + + )
2010-12-05 02:46:07 +00:00
{
2005-11-30 20:46:09 +00:00
if ( cl . players [ j ] . name [ 0 ] & & cl . players [ j ] . userid = = id )
return j ;
}
return - 1 ;
}
2017-02-11 16:14:06 +00:00
int Player_StringtoSlot ( const char * arg )
2010-12-05 02:46:07 +00:00
{
2005-11-30 20:46:09 +00:00
int i , slot ;
2013-10-29 17:38:22 +00:00
for ( i = 0 ; i < cl . allocated_client_slots ; i + + )
2010-12-05 02:46:07 +00:00
{
2005-11-30 20:46:09 +00:00
if ( cl . players [ i ] . name [ 0 ] & & ! strncmp ( arg , cl . players [ i ] . name , MAX_SCOREBOARDNAME - 1 ) )
return i ;
}
if ( ! arg [ 0 ] )
return PLAYER_NAME_NOMATCH ;
2010-12-05 02:46:07 +00:00
for ( i = 0 ; arg [ i ] ; i + + )
{
2005-11-30 20:46:09 +00:00
if ( ! isdigit ( arg [ i ] ) )
return PLAYER_NAME_NOMATCH ;
}
return ( ( slot = Player_IdtoSlot ( Q_atoi ( arg ) ) ) > = 0 ) ? slot : PLAYER_ID_NOMATCH ;
}
Reworked client support for DPP5+. less code now, its much more graceful.
added waterfog command. waterfog overrides regular fog only when the view is in water.
fixed 64bit printf format specifiers. should work better on winxp64.
fixed some spec angle weirdness.
fixed viewsize 99.99 weirdness with ezhud.
fixed extra offset on the console (exhibited in 64bit builds, but not limited to).
fixed .avi playback, can now actually display frames again.
reimplemented line sparks.
fixed r_editlights_save flipping the light's pitch.
fixed issue with oggs failing to load.
fixed condump to cope with unicode properly.
made sv_bigcoords default except in quake. hexen2 kinda needs it for bsp angle precision.
fixed nq server to not stall weirdly on map changes.
fixed qwprogs svc_cdtrack not bugging out with nq clients on the server.
fixed restart command to load the last map run by the server, instead of start.bsp (when idle)
optimised d3d9 renderer a little. now uses less draw calls, especially with complex scenes. seems to get higher framerates than opengl now.
fixed d3d9 renderer to not bug out quite so much when run fullscreen (shader subsystem is now correctly initialised).
fixed a couple of bugs from font change. also now supports utf-8 in a few more places.
r_editlights_reload no longer generates rtlights inside the void. this resolves a few glitches (but should also help framerates a little).
fixed so corona-only lights won't generate shadowmaps and waste lots of time.
removed lots of #defines from qclib. I should never have made them in the first place, but I was lazy. obviously there's more left that I cba to remove yet.
fixed nested calls with variant-vectors. this fixes csaddon's light editor.
fixed qcc hc calling conventions using redundant stores.
disabled keywords can still be used by using __keyword instead.
fixed ftegccgui grep feature.
fixed motionless-dog qcc bug.
tweaked qcc warnings a little. -Wall is now a viable setting. you should be able to fix all those warnings.
fixed qw svc_intermission + dpp5+ clients bug.
fixed annoying spam about disconnecting in hexen2.
rewrote status command a little to cope with ipv6 addresses more gracefully
fixed significant stall when hibernating/debugging a server with a player sitting on it.
fixed truelightning.
fixed rocketlight overriding pflags.
fixed torches vanishing on vid_restart.
fixed issue with decal scaling.
fixed findentityfield builtin.
fixed fteqcc issue with ptr+1
fixed use of arrays inside class functions.
fixed/implemented fteqcc emulation of pointer opcodes.
added __inout keyword to fteqcc, so that it doesn't feel so horrendous.
fixed sizeof(*foo)
fixed *struct = struct;
fixed recursive structs.
fixed fteqcc warning report.
fixed sdl2 controller support, hopefully.
attempted to implement xinput, including per-player audio playback.
slightly fixed relaxed attitude to mouse focus when running fullscreen.
fixed weird warnings/errors with 'ent.arrayhead' terms. now generates sane errors.
implemented bindmaps (for csqc).
fixed crashing bug with eprint builtin.
implemented subset of music_playlist_* functionality. significant changes to music playback.
fixed some more dpcsqc compat.
fixed binds menu. now displays and accepts modifiers.
fixed issues with huge lightmaps.
fixed protocol determinism with dp clients connecting to fte servers. the initial getchallenge request now inhibits vanilla nq connection requests.
implemented support for 'dupe' userinfo key, allowing clients to request client->server packet duplication. should probably queue them tbh.
implemented sv_saveentfile command.
fixed resume after breaking inside a stepped-over function.
fixed erroneous footer after debugging.
(I wonder just how many things I broke with these fixes)
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4946 fc73d0e0-1445-4013-8a0c-d673dee63da5
2015-07-26 10:56:18 +00:00
int Player_NametoSlot ( const char * name )
2010-12-05 02:46:07 +00:00
{
2005-11-30 20:46:09 +00:00
int i ;
2013-10-29 17:38:22 +00:00
for ( i = 0 ; i < cl . allocated_client_slots ; i + + )
2010-12-05 02:46:07 +00:00
{
2005-12-01 22:36:01 +00:00
if ( cl . players [ i ] . name [ 0 ] & & ! strncmp ( cl . players [ i ] . name , name , MAX_SCOREBOARDNAME - 1 ) )
2005-11-30 20:46:09 +00:00
return i ;
}
return PLAYER_NAME_NOMATCH ;
}
2010-12-05 02:46:07 +00:00
int Player_SlottoId ( int slot )
{
2013-10-29 17:38:22 +00:00
return ( slot > = 0 & & slot < cl . allocated_client_slots & & cl . players [ slot ] . name [ 0 ] ) ? cl . players [ slot ] . userid : - 1 ;
2005-11-30 20:46:09 +00:00
}
2010-12-05 02:46:07 +00:00
char * Player_MyName ( void )
{
2013-06-23 02:17:02 +00:00
return cl . players [ cl . playerview [ 0 ] . playernum ] . name ;
2005-11-30 20:46:09 +00:00
}
2019-09-17 19:49:39 +00:00
cvar_t ignore_spec = CVARD ( " ignore_spec " , " 0 " , " 0: Never ignore spectators. \n 1: Ignore spectators only when playing. \n 2: Always ignore spectators even when spectating. " ) ;
Reworked client support for DPP5+. less code now, its much more graceful.
added waterfog command. waterfog overrides regular fog only when the view is in water.
fixed 64bit printf format specifiers. should work better on winxp64.
fixed some spec angle weirdness.
fixed viewsize 99.99 weirdness with ezhud.
fixed extra offset on the console (exhibited in 64bit builds, but not limited to).
fixed .avi playback, can now actually display frames again.
reimplemented line sparks.
fixed r_editlights_save flipping the light's pitch.
fixed issue with oggs failing to load.
fixed condump to cope with unicode properly.
made sv_bigcoords default except in quake. hexen2 kinda needs it for bsp angle precision.
fixed nq server to not stall weirdly on map changes.
fixed qwprogs svc_cdtrack not bugging out with nq clients on the server.
fixed restart command to load the last map run by the server, instead of start.bsp (when idle)
optimised d3d9 renderer a little. now uses less draw calls, especially with complex scenes. seems to get higher framerates than opengl now.
fixed d3d9 renderer to not bug out quite so much when run fullscreen (shader subsystem is now correctly initialised).
fixed a couple of bugs from font change. also now supports utf-8 in a few more places.
r_editlights_reload no longer generates rtlights inside the void. this resolves a few glitches (but should also help framerates a little).
fixed so corona-only lights won't generate shadowmaps and waste lots of time.
removed lots of #defines from qclib. I should never have made them in the first place, but I was lazy. obviously there's more left that I cba to remove yet.
fixed nested calls with variant-vectors. this fixes csaddon's light editor.
fixed qcc hc calling conventions using redundant stores.
disabled keywords can still be used by using __keyword instead.
fixed ftegccgui grep feature.
fixed motionless-dog qcc bug.
tweaked qcc warnings a little. -Wall is now a viable setting. you should be able to fix all those warnings.
fixed qw svc_intermission + dpp5+ clients bug.
fixed annoying spam about disconnecting in hexen2.
rewrote status command a little to cope with ipv6 addresses more gracefully
fixed significant stall when hibernating/debugging a server with a player sitting on it.
fixed truelightning.
fixed rocketlight overriding pflags.
fixed torches vanishing on vid_restart.
fixed issue with decal scaling.
fixed findentityfield builtin.
fixed fteqcc issue with ptr+1
fixed use of arrays inside class functions.
fixed/implemented fteqcc emulation of pointer opcodes.
added __inout keyword to fteqcc, so that it doesn't feel so horrendous.
fixed sizeof(*foo)
fixed *struct = struct;
fixed recursive structs.
fixed fteqcc warning report.
fixed sdl2 controller support, hopefully.
attempted to implement xinput, including per-player audio playback.
slightly fixed relaxed attitude to mouse focus when running fullscreen.
fixed weird warnings/errors with 'ent.arrayhead' terms. now generates sane errors.
implemented bindmaps (for csqc).
fixed crashing bug with eprint builtin.
implemented subset of music_playlist_* functionality. significant changes to music playback.
fixed some more dpcsqc compat.
fixed binds menu. now displays and accepts modifiers.
fixed issues with huge lightmaps.
fixed protocol determinism with dp clients connecting to fte servers. the initial getchallenge request now inhibits vanilla nq connection requests.
implemented support for 'dupe' userinfo key, allowing clients to request client->server packet duplication. should probably queue them tbh.
implemented sv_saveentfile command.
fixed resume after breaking inside a stepped-over function.
fixed erroneous footer after debugging.
(I wonder just how many things I broke with these fixes)
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4946 fc73d0e0-1445-4013-8a0c-d673dee63da5
2015-07-26 10:56:18 +00:00
cvar_t ignore_qizmo_spec = CVAR ( " ignore_qizmo_spec " , " 0 " ) ;
cvar_t ignore_mode = CVAR ( " ignore_mode " , " 0 " ) ;
cvar_t ignore_flood_duration = CVARD ( " ignore_flood_duration " , " 4 " , " Time limit for inbound messages to be considered duplicates. " ) ;
2019-09-04 08:32:22 +00:00
cvar_t ignore_flood = CVARD ( " ignore_flood " , " 0 " , " Provides a way to reduce inbound spam from flooding out your chat (dupe messages are ignored). \n 0: No inbound flood protection. \n 1: Duplicate non-team messages will be filtered. \n 2: ALL duplicate messages will be filtered " ) ;
2019-09-17 19:49:39 +00:00
cvar_t ignore_opponents = CVARD ( " ignore_opponents " , " 0 " , " 0: Don't ignore chat from enemies. \n 1: Always ignore chat from opponents (note: can also ignore f_ruleset checks). \n 2: Ignore chat from opponents only during a match (requires servers that actually reports match state). \n " ) ;
2005-11-30 20:46:09 +00:00
char ignoreteamlist [ MAX_TEAMIGNORELIST ] [ 16 + 1 ] ;
2010-12-05 02:46:07 +00:00
typedef struct flood_s
{
Reworked client support for DPP5+. less code now, its much more graceful.
added waterfog command. waterfog overrides regular fog only when the view is in water.
fixed 64bit printf format specifiers. should work better on winxp64.
fixed some spec angle weirdness.
fixed viewsize 99.99 weirdness with ezhud.
fixed extra offset on the console (exhibited in 64bit builds, but not limited to).
fixed .avi playback, can now actually display frames again.
reimplemented line sparks.
fixed r_editlights_save flipping the light's pitch.
fixed issue with oggs failing to load.
fixed condump to cope with unicode properly.
made sv_bigcoords default except in quake. hexen2 kinda needs it for bsp angle precision.
fixed nq server to not stall weirdly on map changes.
fixed qwprogs svc_cdtrack not bugging out with nq clients on the server.
fixed restart command to load the last map run by the server, instead of start.bsp (when idle)
optimised d3d9 renderer a little. now uses less draw calls, especially with complex scenes. seems to get higher framerates than opengl now.
fixed d3d9 renderer to not bug out quite so much when run fullscreen (shader subsystem is now correctly initialised).
fixed a couple of bugs from font change. also now supports utf-8 in a few more places.
r_editlights_reload no longer generates rtlights inside the void. this resolves a few glitches (but should also help framerates a little).
fixed so corona-only lights won't generate shadowmaps and waste lots of time.
removed lots of #defines from qclib. I should never have made them in the first place, but I was lazy. obviously there's more left that I cba to remove yet.
fixed nested calls with variant-vectors. this fixes csaddon's light editor.
fixed qcc hc calling conventions using redundant stores.
disabled keywords can still be used by using __keyword instead.
fixed ftegccgui grep feature.
fixed motionless-dog qcc bug.
tweaked qcc warnings a little. -Wall is now a viable setting. you should be able to fix all those warnings.
fixed qw svc_intermission + dpp5+ clients bug.
fixed annoying spam about disconnecting in hexen2.
rewrote status command a little to cope with ipv6 addresses more gracefully
fixed significant stall when hibernating/debugging a server with a player sitting on it.
fixed truelightning.
fixed rocketlight overriding pflags.
fixed torches vanishing on vid_restart.
fixed issue with decal scaling.
fixed findentityfield builtin.
fixed fteqcc issue with ptr+1
fixed use of arrays inside class functions.
fixed/implemented fteqcc emulation of pointer opcodes.
added __inout keyword to fteqcc, so that it doesn't feel so horrendous.
fixed sizeof(*foo)
fixed *struct = struct;
fixed recursive structs.
fixed fteqcc warning report.
fixed sdl2 controller support, hopefully.
attempted to implement xinput, including per-player audio playback.
slightly fixed relaxed attitude to mouse focus when running fullscreen.
fixed weird warnings/errors with 'ent.arrayhead' terms. now generates sane errors.
implemented bindmaps (for csqc).
fixed crashing bug with eprint builtin.
implemented subset of music_playlist_* functionality. significant changes to music playback.
fixed some more dpcsqc compat.
fixed binds menu. now displays and accepts modifiers.
fixed issues with huge lightmaps.
fixed protocol determinism with dp clients connecting to fte servers. the initial getchallenge request now inhibits vanilla nq connection requests.
implemented support for 'dupe' userinfo key, allowing clients to request client->server packet duplication. should probably queue them tbh.
implemented sv_saveentfile command.
fixed resume after breaking inside a stepped-over function.
fixed erroneous footer after debugging.
(I wonder just how many things I broke with these fixes)
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4946 fc73d0e0-1445-4013-8a0c-d673dee63da5
2015-07-26 10:56:18 +00:00
int playernum ;
2005-11-30 20:46:09 +00:00
char data [ 2048 ] ;
float time ;
} flood_t ;
static flood_t floodlist [ FLOODLIST_SIZE ] ;
static int floodindex ;
extern int PaddedPrint ( char * s , int x ) ;
2010-12-05 02:46:07 +00:00
static qboolean IsIgnored ( int slot )
{
2005-11-30 20:46:09 +00:00
return cl . players [ slot ] . ignored ;
}
2010-12-05 02:46:07 +00:00
static void Display_Ignorelist ( void )
{
2005-11-30 20:46:09 +00:00
int i ;
2010-12-05 02:46:07 +00:00
int x ;
qboolean foundone ;
2017-05-28 15:42:32 +00:00
playerview_t * pv = & cl . playerview [ 0 ] ;
2005-11-30 20:46:09 +00:00
2010-12-05 02:46:07 +00:00
x = 0 ;
foundone = false ;
2013-10-29 17:38:22 +00:00
for ( i = 0 ; i < cl . allocated_client_slots ; i + + )
2010-12-05 02:46:07 +00:00
{
2005-11-30 20:46:09 +00:00
if ( cl . players [ i ] . name [ 0 ] & & cl . players [ i ] . ignored )
2010-12-05 02:46:07 +00:00
{
if ( ! foundone )
{
Con_Printf ( " \x02 " " User Ignore List: \n " ) ;
foundone + + ;
}
2005-11-30 20:46:09 +00:00
x = PaddedPrint ( cl . players [ i ] . name , x ) ;
2010-12-05 02:46:07 +00:00
}
}
if ( ! foundone )
Con_Printf ( " \x02 " " User Ignore List: empty \n " ) ;
else if ( x )
2005-11-30 20:46:09 +00:00
Con_Printf ( " \n " ) ;
2010-12-05 02:46:07 +00:00
2005-11-30 20:46:09 +00:00
x = 0 ;
2010-12-05 02:46:07 +00:00
foundone = false ;
2013-10-29 17:38:22 +00:00
for ( i = 0 ; i < cl . allocated_client_slots ; i + + )
2010-12-05 02:46:07 +00:00
{
if ( cl . players [ i ] . name [ 0 ] & & cl . players [ i ] . ignored )
{
if ( ! foundone )
{
Con_Printf ( " \x02 " " User Mute List: \n " ) ;
foundone + + ;
}
x = PaddedPrint ( cl . players [ i ] . name , x ) ;
}
}
if ( ! foundone )
Con_Printf ( " \x02 " " User Mute List: empty \n " ) ;
else if ( x )
2005-11-30 20:46:09 +00:00
Con_Printf ( " \n " ) ;
2010-12-05 02:46:07 +00:00
2013-03-12 22:47:42 +00:00
if ( ignoreteamlist [ 0 ] [ 0 ] )
2010-12-05 02:46:07 +00:00
{
x = 0 ;
Con_Printf ( " \x02 " " Team Ignore List: \n " ) ;
for ( i = 0 ; i < MAX_TEAMIGNORELIST & & ignoreteamlist [ i ] [ 0 ] ; i + + )
x = PaddedPrint ( ignoreteamlist [ i ] , x ) ;
if ( x )
Con_Printf ( " \n " ) ;
}
2005-11-30 20:46:09 +00:00
2009-11-04 21:16:50 +00:00
if ( ignore_opponents . ival )
2005-11-30 20:46:09 +00:00
Con_Printf ( " \x02 " " Opponents are Ignored \n " ) ;
2017-05-28 15:42:32 +00:00
if ( ignore_spec . ival = = 2 | | ( ignore_spec . ival = = 1 & & ! pv - > spectator ) )
2005-11-30 20:46:09 +00:00
Con_Printf ( " \x02 " " Spectators are Ignored \n " ) ;
2009-11-04 21:16:50 +00:00
if ( ignore_qizmo_spec . ival )
2005-11-30 20:46:09 +00:00
Con_Printf ( " \x02 " " Qizmo spectators are Ignored \n " ) ;
Con_Printf ( " \n " ) ;
}
2010-12-05 02:46:07 +00:00
static qboolean Ignorelist_Add ( int slot )
{
2005-11-30 20:46:09 +00:00
if ( IsIgnored ( slot ) )
return false ;
cl . players [ slot ] . ignored = true ;
2010-12-05 02:46:07 +00:00
cl . players [ slot ] . vignored = true ;
S_Voip_Ignore ( slot , true ) ;
2005-11-30 20:46:09 +00:00
return true ;
}
2010-12-05 02:46:07 +00:00
static qboolean Ignorelist_VAdd ( int slot )
{
if ( cl . players [ slot ] . vignored )
return false ;
2005-11-30 20:46:09 +00:00
2010-12-05 02:46:07 +00:00
cl . players [ slot ] . vignored = true ;
S_Voip_Ignore ( slot , true ) ;
return true ;
}
2015-11-18 07:37:39 +00:00
static qboolean Ignorelist_VDel ( int slot )
{
if ( ! cl . players [ slot ] . vignored )
return false ;
cl . players [ slot ] . vignored = false ;
S_Voip_Ignore ( slot , false ) ;
return true ;
}
2010-12-05 02:46:07 +00:00
static qboolean Ignorelist_Del ( int slot )
{
2005-11-30 20:46:09 +00:00
if ( cl . players [ slot ] . ignored = = false )
return false ;
cl . players [ slot ] . ignored = false ;
2010-12-05 02:46:07 +00:00
cl . players [ slot ] . vignored = true ;
S_Voip_Ignore ( slot , false ) ;
2005-11-30 20:46:09 +00:00
return true ;
}
2010-12-05 02:46:07 +00:00
static void VIgnore_f ( void )
{
2005-11-30 20:46:09 +00:00
int c , slot ;
2010-12-05 02:46:07 +00:00
if ( ( c = Cmd_Argc ( ) ) = = 1 )
{
2005-11-30 20:46:09 +00:00
Display_Ignorelist ( ) ;
return ;
2010-12-05 02:46:07 +00:00
}
else if ( c ! = 2 )
{
2005-11-30 20:46:09 +00:00
Con_Printf ( " Usage: %s [userid | name] \n " , Cmd_Argv ( 0 ) ) ;
return ;
}
2010-12-05 02:46:07 +00:00
if ( ( slot = Player_StringtoSlot ( Cmd_Argv ( 1 ) ) ) = = PLAYER_ID_NOMATCH )
{
2005-11-30 20:46:09 +00:00
Con_Printf ( " %s : no player with userid %d \n " , Cmd_Argv ( 0 ) , Q_atoi ( Cmd_Argv ( 1 ) ) ) ;
2010-12-05 02:46:07 +00:00
}
else if ( slot = = PLAYER_NAME_NOMATCH )
{
2005-11-30 20:46:09 +00:00
Con_Printf ( " %s : no player with name %s \n " , Cmd_Argv ( 0 ) , Cmd_Argv ( 1 ) ) ;
2010-12-05 02:46:07 +00:00
}
else
{
if ( Ignorelist_VAdd ( slot ) )
2015-11-18 07:37:39 +00:00
Con_Printf ( " Added user %s to mute list \n " , cl . players [ slot ] . name ) ;
2010-12-05 02:46:07 +00:00
else
2015-11-18 07:37:39 +00:00
Con_Printf ( " User %s is already mute \n " , cl . players [ slot ] . name ) ;
}
}
static void VUnignore_f ( void )
{
int c , slot ;
if ( ( c = Cmd_Argc ( ) ) = = 1 )
{
Display_Ignorelist ( ) ;
return ;
}
else if ( c ! = 2 )
{
Con_Printf ( " Usage: %s [userid | name] \n " , Cmd_Argv ( 0 ) ) ;
return ;
}
if ( ( slot = Player_StringtoSlot ( Cmd_Argv ( 1 ) ) ) = = PLAYER_ID_NOMATCH )
{
Con_Printf ( " %s : no player with userid %d \n " , Cmd_Argv ( 0 ) , Q_atoi ( Cmd_Argv ( 1 ) ) ) ;
}
else if ( slot = = PLAYER_NAME_NOMATCH )
{
Con_Printf ( " %s : no player with name %s \n " , Cmd_Argv ( 0 ) , Cmd_Argv ( 1 ) ) ;
}
else
{
if ( Ignorelist_VDel ( slot ) )
Con_Printf ( " Removed user %s from mute list \n " , cl . players [ slot ] . name ) ;
else
Con_Printf ( " User %s already wasn't muted \n " , cl . players [ slot ] . name ) ;
2010-12-05 02:46:07 +00:00
}
}
static void Ignore_f ( void )
{
int c , slot ;
if ( ( c = Cmd_Argc ( ) ) = = 1 )
{
Display_Ignorelist ( ) ;
return ;
}
else if ( c ! = 2 )
{
Con_Printf ( " Usage: %s [userid | name] \n " , Cmd_Argv ( 0 ) ) ;
return ;
}
if ( ( slot = Player_StringtoSlot ( Cmd_Argv ( 1 ) ) ) = = PLAYER_ID_NOMATCH )
{
Con_Printf ( " %s : no player with userid %d \n " , Cmd_Argv ( 0 ) , Q_atoi ( Cmd_Argv ( 1 ) ) ) ;
}
else if ( slot = = PLAYER_NAME_NOMATCH )
{
Con_Printf ( " %s : no player with name %s \n " , Cmd_Argv ( 0 ) , Cmd_Argv ( 1 ) ) ;
}
else
{
2005-11-30 20:46:09 +00:00
if ( Ignorelist_Add ( slot ) )
Con_Printf ( " Added user %s to ignore list \n " , cl . players [ slot ] . name ) ;
else
Con_Printf ( " User %s is already ignored \n " , cl . players [ slot ] . name ) ;
}
}
2010-12-05 02:46:07 +00:00
static void IgnoreList_f ( void )
{
2005-11-30 20:46:09 +00:00
if ( Cmd_Argc ( ) ! = 1 )
Con_Printf ( " %s : no arguments expected \n " , Cmd_Argv ( 0 ) ) ;
else
Display_Ignorelist ( ) ;
}
2010-12-05 02:46:07 +00:00
static void Ignore_ID_f ( void )
{
2005-11-30 20:46:09 +00:00
int c , userid , i , slot ;
char * arg ;
2010-12-05 02:46:07 +00:00
if ( ( c = Cmd_Argc ( ) ) = = 1 )
{
2005-11-30 20:46:09 +00:00
Display_Ignorelist ( ) ;
return ;
2010-12-05 02:46:07 +00:00
}
else if ( c ! = 2 )
{
2005-11-30 20:46:09 +00:00
Con_Printf ( " Usage: %s [userid] \n " , Cmd_Argv ( 0 ) ) ;
return ;
}
arg = Cmd_Argv ( 1 ) ;
2010-12-05 02:46:07 +00:00
for ( i = 0 ; arg [ i ] ; i + + )
{
if ( ! isdigit ( arg [ i ] ) )
{
2005-11-30 20:46:09 +00:00
Con_Printf ( " Usage: %s [userid] \n " , Cmd_Argv ( 0 ) ) ;
return ;
}
}
userid = Q_atoi ( arg ) ;
2010-12-05 02:46:07 +00:00
if ( ( slot = Player_IdtoSlot ( userid ) ) = = PLAYER_ID_NOMATCH )
{
2005-11-30 20:46:09 +00:00
Con_Printf ( " %s : no player with userid %d \n " , Cmd_Argv ( 0 ) , userid ) ;
return ;
}
if ( Ignorelist_Add ( slot ) )
Con_Printf ( " Added user %s to ignore list \n " , cl . players [ slot ] . name ) ;
else
Con_Printf ( " User %s is already ignored \n " , cl . players [ slot ] . name ) ;
}
2010-12-05 02:46:07 +00:00
static void Unignore_f ( void )
{
2005-11-30 20:46:09 +00:00
int c , slot ;
2010-12-05 02:46:07 +00:00
if ( ( c = Cmd_Argc ( ) ) = = 1 )
{
2005-11-30 20:46:09 +00:00
Display_Ignorelist ( ) ;
return ;
2010-12-05 02:46:07 +00:00
}
else if ( c ! = 2 )
{
2005-11-30 20:46:09 +00:00
Con_Printf ( " Usage: %s [userid | name] \n " , Cmd_Argv ( 0 ) ) ;
return ;
}
2010-12-05 02:46:07 +00:00
if ( ( slot = Player_StringtoSlot ( Cmd_Argv ( 1 ) ) ) = = PLAYER_ID_NOMATCH )
{
2005-11-30 20:46:09 +00:00
Con_Printf ( " %s : no player with userid %d \n " , Cmd_Argv ( 0 ) , Q_atoi ( Cmd_Argv ( 1 ) ) ) ;
2010-12-05 02:46:07 +00:00
}
else if ( slot = = PLAYER_NAME_NOMATCH )
{
2005-11-30 20:46:09 +00:00
Con_Printf ( " %s : no player with name %s \n " , Cmd_Argv ( 0 ) , Cmd_Argv ( 1 ) ) ;
2010-12-05 02:46:07 +00:00
}
else
{
2005-11-30 20:46:09 +00:00
if ( Ignorelist_Del ( slot ) )
Con_Printf ( " Removed user %s from ignore list \n " , cl . players [ slot ] . name ) ;
else
Con_Printf ( " User %s is not being ignored \n " , cl . players [ slot ] . name ) ;
}
}
2010-12-05 02:46:07 +00:00
static void Unignore_ID_f ( void )
{
2005-11-30 20:46:09 +00:00
int c , i , userid , slot ;
char * arg ;
2010-12-05 02:46:07 +00:00
if ( ( c = Cmd_Argc ( ) ) = = 1 )
{
2005-11-30 20:46:09 +00:00
Display_Ignorelist ( ) ;
return ;
2010-12-05 02:46:07 +00:00
}
else if ( c ! = 2 )
{
2005-11-30 20:46:09 +00:00
Con_Printf ( " Usage: %s [userid] \n " , Cmd_Argv ( 0 ) ) ;
return ;
}
arg = Cmd_Argv ( 1 ) ;
2010-12-05 02:46:07 +00:00
for ( i = 0 ; arg [ i ] ; i + + )
{
if ( ! isdigit ( arg [ i ] ) )
{
2005-11-30 20:46:09 +00:00
Con_Printf ( " Usage: %s [userid] \n " , Cmd_Argv ( 0 ) ) ;
return ;
}
}
userid = Q_atoi ( arg ) ;
2010-12-05 02:46:07 +00:00
if ( ( slot = Player_IdtoSlot ( userid ) ) = = PLAYER_ID_NOMATCH )
{
2005-11-30 20:46:09 +00:00
Con_Printf ( " %s : no player with userid %d \n " , Cmd_Argv ( 0 ) , userid ) ;
return ;
}
if ( Ignorelist_Del ( slot ) )
Con_Printf ( " Removed user %s from ignore list \n " , cl . players [ slot ] . name ) ;
else
Con_Printf ( " User %s is not being ignored \n " , cl . players [ slot ] . name ) ;
}
2010-12-05 02:46:07 +00:00
static void Ignoreteam_f ( void )
{
2005-11-30 20:46:09 +00:00
int c , i , j ;
char * arg ;
c = Cmd_Argc ( ) ;
2010-12-05 02:46:07 +00:00
if ( c = = 1 )
{
2005-11-30 20:46:09 +00:00
Display_Ignorelist ( ) ;
return ;
2010-12-05 02:46:07 +00:00
}
else if ( c ! = 2 )
{
2005-11-30 20:46:09 +00:00
Con_Printf ( " Usage: %s [team] \n " , Cmd_Argv ( 0 ) ) ;
return ;
}
arg = Cmd_Argv ( 1 ) ;
2013-10-29 17:38:22 +00:00
for ( i = 0 ; i < cl . allocated_client_slots ; i + + )
2010-12-05 02:46:07 +00:00
{
if ( cl . players [ i ] . name [ 0 ] & & ! cl . players [ i ] . spectator & & ! strcmp ( arg , cl . players [ i ] . team ) )
{
for ( j = 0 ; j < MAX_TEAMIGNORELIST & & ignoreteamlist [ j ] [ 0 ] ; j + + )
{
if ( ! strncmp ( arg , ignoreteamlist [ j ] , sizeof ( ignoreteamlist [ j ] ) - 1 ) )
{
2005-11-30 20:46:09 +00:00
Con_Printf ( " Team %s is already ignored \n " , arg ) ;
return ;
}
}
if ( j = = MAX_TEAMIGNORELIST )
Con_Printf ( " You cannot ignore more than %d teams \n " , MAX_TEAMIGNORELIST ) ;
2023-04-03 00:33:35 +00:00
else
{
Q_strncpyz ( ignoreteamlist [ j ] , arg , sizeof ( ignoreteamlist [ j ] ) ) ;
if ( j + 1 < MAX_TEAMIGNORELIST )
ignoreteamlist [ j + 1 ] [ 0 ] = 0 ;
Con_Printf ( " Added team %s to ignore list \n " , arg ) ;
}
2005-11-30 20:46:09 +00:00
return ;
}
}
Con_Printf ( " %s : no team with name %s \n " , Cmd_Argv ( 0 ) , arg ) ;
}
2010-12-05 02:46:07 +00:00
static void Unignoreteam_f ( void )
{
2005-11-30 20:46:09 +00:00
int i , c , j ;
char * arg ;
c = Cmd_Argc ( ) ;
2010-12-05 02:46:07 +00:00
if ( c = = 1 )
{
2005-11-30 20:46:09 +00:00
Display_Ignorelist ( ) ;
return ;
2010-12-05 02:46:07 +00:00
}
else if ( c ! = 2 )
{
2005-11-30 20:46:09 +00:00
Con_Printf ( " Usage: %s [team] \n " , Cmd_Argv ( 0 ) ) ;
return ;
}
arg = Cmd_Argv ( 1 ) ;
2010-12-05 02:46:07 +00:00
for ( i = 0 ; i < MAX_TEAMIGNORELIST & & ignoreteamlist [ i ] [ 0 ] ; i + + )
{
if ( ! strncmp ( arg , ignoreteamlist [ i ] , sizeof ( ignoreteamlist [ i ] ) - 1 ) )
{
2005-11-30 20:46:09 +00:00
for ( j = i ; j < MAX_TEAMIGNORELIST & & ignoreteamlist [ j ] [ 0 ] ; j + + )
;
if ( - - j > i )
Q_strncpyz ( ignoreteamlist [ i ] , ignoreteamlist [ j ] , sizeof ( ignoreteamlist [ i ] ) ) ;
ignoreteamlist [ j ] [ 0 ] = 0 ;
Con_Printf ( " Removed team %s from ignore list \n " , arg ) ;
return ;
}
}
Con_Printf ( " Team %s is not being ignored \n " , arg ) ;
}
2010-12-05 02:46:07 +00:00
static void UnignoreAll_f ( void )
{
2005-11-30 20:46:09 +00:00
int i ;
2010-12-05 02:46:07 +00:00
if ( Cmd_Argc ( ) ! = 1 )
{
2005-11-30 20:46:09 +00:00
Con_Printf ( " %s : no arguments expected \n " , Cmd_Argv ( 0 ) ) ;
return ;
}
2013-10-29 17:38:22 +00:00
for ( i = 0 ; i < cl . allocated_client_slots ; i + + )
2010-12-05 02:46:07 +00:00
Ignorelist_Del ( i ) ;
2005-11-30 20:46:09 +00:00
Con_Printf ( " User ignore list cleared \n " ) ;
}
2010-12-05 02:46:07 +00:00
static void UnignoreteamAll_f ( void )
{
if ( Cmd_Argc ( ) ! = 1 )
{
2005-11-30 20:46:09 +00:00
Con_Printf ( " %s : no arguments expected \n " , Cmd_Argv ( 0 ) ) ;
return ;
}
ignoreteamlist [ 0 ] [ 0 ] = 0 ;
Con_Printf ( " Team ignore list cleared \n " ) ;
}
Reworked client support for DPP5+. less code now, its much more graceful.
added waterfog command. waterfog overrides regular fog only when the view is in water.
fixed 64bit printf format specifiers. should work better on winxp64.
fixed some spec angle weirdness.
fixed viewsize 99.99 weirdness with ezhud.
fixed extra offset on the console (exhibited in 64bit builds, but not limited to).
fixed .avi playback, can now actually display frames again.
reimplemented line sparks.
fixed r_editlights_save flipping the light's pitch.
fixed issue with oggs failing to load.
fixed condump to cope with unicode properly.
made sv_bigcoords default except in quake. hexen2 kinda needs it for bsp angle precision.
fixed nq server to not stall weirdly on map changes.
fixed qwprogs svc_cdtrack not bugging out with nq clients on the server.
fixed restart command to load the last map run by the server, instead of start.bsp (when idle)
optimised d3d9 renderer a little. now uses less draw calls, especially with complex scenes. seems to get higher framerates than opengl now.
fixed d3d9 renderer to not bug out quite so much when run fullscreen (shader subsystem is now correctly initialised).
fixed a couple of bugs from font change. also now supports utf-8 in a few more places.
r_editlights_reload no longer generates rtlights inside the void. this resolves a few glitches (but should also help framerates a little).
fixed so corona-only lights won't generate shadowmaps and waste lots of time.
removed lots of #defines from qclib. I should never have made them in the first place, but I was lazy. obviously there's more left that I cba to remove yet.
fixed nested calls with variant-vectors. this fixes csaddon's light editor.
fixed qcc hc calling conventions using redundant stores.
disabled keywords can still be used by using __keyword instead.
fixed ftegccgui grep feature.
fixed motionless-dog qcc bug.
tweaked qcc warnings a little. -Wall is now a viable setting. you should be able to fix all those warnings.
fixed qw svc_intermission + dpp5+ clients bug.
fixed annoying spam about disconnecting in hexen2.
rewrote status command a little to cope with ipv6 addresses more gracefully
fixed significant stall when hibernating/debugging a server with a player sitting on it.
fixed truelightning.
fixed rocketlight overriding pflags.
fixed torches vanishing on vid_restart.
fixed issue with decal scaling.
fixed findentityfield builtin.
fixed fteqcc issue with ptr+1
fixed use of arrays inside class functions.
fixed/implemented fteqcc emulation of pointer opcodes.
added __inout keyword to fteqcc, so that it doesn't feel so horrendous.
fixed sizeof(*foo)
fixed *struct = struct;
fixed recursive structs.
fixed fteqcc warning report.
fixed sdl2 controller support, hopefully.
attempted to implement xinput, including per-player audio playback.
slightly fixed relaxed attitude to mouse focus when running fullscreen.
fixed weird warnings/errors with 'ent.arrayhead' terms. now generates sane errors.
implemented bindmaps (for csqc).
fixed crashing bug with eprint builtin.
implemented subset of music_playlist_* functionality. significant changes to music playback.
fixed some more dpcsqc compat.
fixed binds menu. now displays and accepts modifiers.
fixed issues with huge lightmaps.
fixed protocol determinism with dp clients connecting to fte servers. the initial getchallenge request now inhibits vanilla nq connection requests.
implemented support for 'dupe' userinfo key, allowing clients to request client->server packet duplication. should probably queue them tbh.
implemented sv_saveentfile command.
fixed resume after breaking inside a stepped-over function.
fixed erroneous footer after debugging.
(I wonder just how many things I broke with these fixes)
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4946 fc73d0e0-1445-4013-8a0c-d673dee63da5
2015-07-26 10:56:18 +00:00
char Ignore_Check_Flood ( player_info_t * sender , const char * s , int flags )
2010-12-05 02:46:07 +00:00
{
Reworked client support for DPP5+. less code now, its much more graceful.
added waterfog command. waterfog overrides regular fog only when the view is in water.
fixed 64bit printf format specifiers. should work better on winxp64.
fixed some spec angle weirdness.
fixed viewsize 99.99 weirdness with ezhud.
fixed extra offset on the console (exhibited in 64bit builds, but not limited to).
fixed .avi playback, can now actually display frames again.
reimplemented line sparks.
fixed r_editlights_save flipping the light's pitch.
fixed issue with oggs failing to load.
fixed condump to cope with unicode properly.
made sv_bigcoords default except in quake. hexen2 kinda needs it for bsp angle precision.
fixed nq server to not stall weirdly on map changes.
fixed qwprogs svc_cdtrack not bugging out with nq clients on the server.
fixed restart command to load the last map run by the server, instead of start.bsp (when idle)
optimised d3d9 renderer a little. now uses less draw calls, especially with complex scenes. seems to get higher framerates than opengl now.
fixed d3d9 renderer to not bug out quite so much when run fullscreen (shader subsystem is now correctly initialised).
fixed a couple of bugs from font change. also now supports utf-8 in a few more places.
r_editlights_reload no longer generates rtlights inside the void. this resolves a few glitches (but should also help framerates a little).
fixed so corona-only lights won't generate shadowmaps and waste lots of time.
removed lots of #defines from qclib. I should never have made them in the first place, but I was lazy. obviously there's more left that I cba to remove yet.
fixed nested calls with variant-vectors. this fixes csaddon's light editor.
fixed qcc hc calling conventions using redundant stores.
disabled keywords can still be used by using __keyword instead.
fixed ftegccgui grep feature.
fixed motionless-dog qcc bug.
tweaked qcc warnings a little. -Wall is now a viable setting. you should be able to fix all those warnings.
fixed qw svc_intermission + dpp5+ clients bug.
fixed annoying spam about disconnecting in hexen2.
rewrote status command a little to cope with ipv6 addresses more gracefully
fixed significant stall when hibernating/debugging a server with a player sitting on it.
fixed truelightning.
fixed rocketlight overriding pflags.
fixed torches vanishing on vid_restart.
fixed issue with decal scaling.
fixed findentityfield builtin.
fixed fteqcc issue with ptr+1
fixed use of arrays inside class functions.
fixed/implemented fteqcc emulation of pointer opcodes.
added __inout keyword to fteqcc, so that it doesn't feel so horrendous.
fixed sizeof(*foo)
fixed *struct = struct;
fixed recursive structs.
fixed fteqcc warning report.
fixed sdl2 controller support, hopefully.
attempted to implement xinput, including per-player audio playback.
slightly fixed relaxed attitude to mouse focus when running fullscreen.
fixed weird warnings/errors with 'ent.arrayhead' terms. now generates sane errors.
implemented bindmaps (for csqc).
fixed crashing bug with eprint builtin.
implemented subset of music_playlist_* functionality. significant changes to music playback.
fixed some more dpcsqc compat.
fixed binds menu. now displays and accepts modifiers.
fixed issues with huge lightmaps.
fixed protocol determinism with dp clients connecting to fte servers. the initial getchallenge request now inhibits vanilla nq connection requests.
implemented support for 'dupe' userinfo key, allowing clients to request client->server packet duplication. should probably queue them tbh.
implemented sv_saveentfile command.
fixed resume after breaking inside a stepped-over function.
fixed erroneous footer after debugging.
(I wonder just how many things I broke with these fixes)
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4946 fc73d0e0-1445-4013-8a0c-d673dee63da5
2015-07-26 10:56:18 +00:00
int i ;
int slot ;
2005-11-30 20:46:09 +00:00
if ( ! (
Reworked client support for DPP5+. less code now, its much more graceful.
added waterfog command. waterfog overrides regular fog only when the view is in water.
fixed 64bit printf format specifiers. should work better on winxp64.
fixed some spec angle weirdness.
fixed viewsize 99.99 weirdness with ezhud.
fixed extra offset on the console (exhibited in 64bit builds, but not limited to).
fixed .avi playback, can now actually display frames again.
reimplemented line sparks.
fixed r_editlights_save flipping the light's pitch.
fixed issue with oggs failing to load.
fixed condump to cope with unicode properly.
made sv_bigcoords default except in quake. hexen2 kinda needs it for bsp angle precision.
fixed nq server to not stall weirdly on map changes.
fixed qwprogs svc_cdtrack not bugging out with nq clients on the server.
fixed restart command to load the last map run by the server, instead of start.bsp (when idle)
optimised d3d9 renderer a little. now uses less draw calls, especially with complex scenes. seems to get higher framerates than opengl now.
fixed d3d9 renderer to not bug out quite so much when run fullscreen (shader subsystem is now correctly initialised).
fixed a couple of bugs from font change. also now supports utf-8 in a few more places.
r_editlights_reload no longer generates rtlights inside the void. this resolves a few glitches (but should also help framerates a little).
fixed so corona-only lights won't generate shadowmaps and waste lots of time.
removed lots of #defines from qclib. I should never have made them in the first place, but I was lazy. obviously there's more left that I cba to remove yet.
fixed nested calls with variant-vectors. this fixes csaddon's light editor.
fixed qcc hc calling conventions using redundant stores.
disabled keywords can still be used by using __keyword instead.
fixed ftegccgui grep feature.
fixed motionless-dog qcc bug.
tweaked qcc warnings a little. -Wall is now a viable setting. you should be able to fix all those warnings.
fixed qw svc_intermission + dpp5+ clients bug.
fixed annoying spam about disconnecting in hexen2.
rewrote status command a little to cope with ipv6 addresses more gracefully
fixed significant stall when hibernating/debugging a server with a player sitting on it.
fixed truelightning.
fixed rocketlight overriding pflags.
fixed torches vanishing on vid_restart.
fixed issue with decal scaling.
fixed findentityfield builtin.
fixed fteqcc issue with ptr+1
fixed use of arrays inside class functions.
fixed/implemented fteqcc emulation of pointer opcodes.
added __inout keyword to fteqcc, so that it doesn't feel so horrendous.
fixed sizeof(*foo)
fixed *struct = struct;
fixed recursive structs.
fixed fteqcc warning report.
fixed sdl2 controller support, hopefully.
attempted to implement xinput, including per-player audio playback.
slightly fixed relaxed attitude to mouse focus when running fullscreen.
fixed weird warnings/errors with 'ent.arrayhead' terms. now generates sane errors.
implemented bindmaps (for csqc).
fixed crashing bug with eprint builtin.
implemented subset of music_playlist_* functionality. significant changes to music playback.
fixed some more dpcsqc compat.
fixed binds menu. now displays and accepts modifiers.
fixed issues with huge lightmaps.
fixed protocol determinism with dp clients connecting to fte servers. the initial getchallenge request now inhibits vanilla nq connection requests.
implemented support for 'dupe' userinfo key, allowing clients to request client->server packet duplication. should probably queue them tbh.
implemented sv_saveentfile command.
fixed resume after breaking inside a stepped-over function.
fixed erroneous footer after debugging.
(I wonder just how many things I broke with these fixes)
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4946 fc73d0e0-1445-4013-8a0c-d673dee63da5
2015-07-26 10:56:18 +00:00
( ( ignore_flood . value = = 1 & & ( ( flags & TPM_NORMAL ) | | ( flags & TPM_SPECTATOR ) ) ) | |
2010-12-05 02:46:07 +00:00
( ignore_flood . value = = 2 & & flags ! = 0 ) )
) )
{
2005-11-30 20:46:09 +00:00
return NO_IGNORE_NO_ADD ;
2010-12-05 02:46:07 +00:00
}
2005-11-30 20:46:09 +00:00
Reworked client support for DPP5+. less code now, its much more graceful.
added waterfog command. waterfog overrides regular fog only when the view is in water.
fixed 64bit printf format specifiers. should work better on winxp64.
fixed some spec angle weirdness.
fixed viewsize 99.99 weirdness with ezhud.
fixed extra offset on the console (exhibited in 64bit builds, but not limited to).
fixed .avi playback, can now actually display frames again.
reimplemented line sparks.
fixed r_editlights_save flipping the light's pitch.
fixed issue with oggs failing to load.
fixed condump to cope with unicode properly.
made sv_bigcoords default except in quake. hexen2 kinda needs it for bsp angle precision.
fixed nq server to not stall weirdly on map changes.
fixed qwprogs svc_cdtrack not bugging out with nq clients on the server.
fixed restart command to load the last map run by the server, instead of start.bsp (when idle)
optimised d3d9 renderer a little. now uses less draw calls, especially with complex scenes. seems to get higher framerates than opengl now.
fixed d3d9 renderer to not bug out quite so much when run fullscreen (shader subsystem is now correctly initialised).
fixed a couple of bugs from font change. also now supports utf-8 in a few more places.
r_editlights_reload no longer generates rtlights inside the void. this resolves a few glitches (but should also help framerates a little).
fixed so corona-only lights won't generate shadowmaps and waste lots of time.
removed lots of #defines from qclib. I should never have made them in the first place, but I was lazy. obviously there's more left that I cba to remove yet.
fixed nested calls with variant-vectors. this fixes csaddon's light editor.
fixed qcc hc calling conventions using redundant stores.
disabled keywords can still be used by using __keyword instead.
fixed ftegccgui grep feature.
fixed motionless-dog qcc bug.
tweaked qcc warnings a little. -Wall is now a viable setting. you should be able to fix all those warnings.
fixed qw svc_intermission + dpp5+ clients bug.
fixed annoying spam about disconnecting in hexen2.
rewrote status command a little to cope with ipv6 addresses more gracefully
fixed significant stall when hibernating/debugging a server with a player sitting on it.
fixed truelightning.
fixed rocketlight overriding pflags.
fixed torches vanishing on vid_restart.
fixed issue with decal scaling.
fixed findentityfield builtin.
fixed fteqcc issue with ptr+1
fixed use of arrays inside class functions.
fixed/implemented fteqcc emulation of pointer opcodes.
added __inout keyword to fteqcc, so that it doesn't feel so horrendous.
fixed sizeof(*foo)
fixed *struct = struct;
fixed recursive structs.
fixed fteqcc warning report.
fixed sdl2 controller support, hopefully.
attempted to implement xinput, including per-player audio playback.
slightly fixed relaxed attitude to mouse focus when running fullscreen.
fixed weird warnings/errors with 'ent.arrayhead' terms. now generates sane errors.
implemented bindmaps (for csqc).
fixed crashing bug with eprint builtin.
implemented subset of music_playlist_* functionality. significant changes to music playback.
fixed some more dpcsqc compat.
fixed binds menu. now displays and accepts modifiers.
fixed issues with huge lightmaps.
fixed protocol determinism with dp clients connecting to fte servers. the initial getchallenge request now inhibits vanilla nq connection requests.
implemented support for 'dupe' userinfo key, allowing clients to request client->server packet duplication. should probably queue them tbh.
implemented sv_saveentfile command.
fixed resume after breaking inside a stepped-over function.
fixed erroneous footer after debugging.
(I wonder just how many things I broke with these fixes)
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4946 fc73d0e0-1445-4013-8a0c-d673dee63da5
2015-07-26 10:56:18 +00:00
if ( ! sender ) //don't ignore system messages.
2005-11-30 20:46:09 +00:00
return NO_IGNORE_NO_ADD ;
Reworked client support for DPP5+. less code now, its much more graceful.
added waterfog command. waterfog overrides regular fog only when the view is in water.
fixed 64bit printf format specifiers. should work better on winxp64.
fixed some spec angle weirdness.
fixed viewsize 99.99 weirdness with ezhud.
fixed extra offset on the console (exhibited in 64bit builds, but not limited to).
fixed .avi playback, can now actually display frames again.
reimplemented line sparks.
fixed r_editlights_save flipping the light's pitch.
fixed issue with oggs failing to load.
fixed condump to cope with unicode properly.
made sv_bigcoords default except in quake. hexen2 kinda needs it for bsp angle precision.
fixed nq server to not stall weirdly on map changes.
fixed qwprogs svc_cdtrack not bugging out with nq clients on the server.
fixed restart command to load the last map run by the server, instead of start.bsp (when idle)
optimised d3d9 renderer a little. now uses less draw calls, especially with complex scenes. seems to get higher framerates than opengl now.
fixed d3d9 renderer to not bug out quite so much when run fullscreen (shader subsystem is now correctly initialised).
fixed a couple of bugs from font change. also now supports utf-8 in a few more places.
r_editlights_reload no longer generates rtlights inside the void. this resolves a few glitches (but should also help framerates a little).
fixed so corona-only lights won't generate shadowmaps and waste lots of time.
removed lots of #defines from qclib. I should never have made them in the first place, but I was lazy. obviously there's more left that I cba to remove yet.
fixed nested calls with variant-vectors. this fixes csaddon's light editor.
fixed qcc hc calling conventions using redundant stores.
disabled keywords can still be used by using __keyword instead.
fixed ftegccgui grep feature.
fixed motionless-dog qcc bug.
tweaked qcc warnings a little. -Wall is now a viable setting. you should be able to fix all those warnings.
fixed qw svc_intermission + dpp5+ clients bug.
fixed annoying spam about disconnecting in hexen2.
rewrote status command a little to cope with ipv6 addresses more gracefully
fixed significant stall when hibernating/debugging a server with a player sitting on it.
fixed truelightning.
fixed rocketlight overriding pflags.
fixed torches vanishing on vid_restart.
fixed issue with decal scaling.
fixed findentityfield builtin.
fixed fteqcc issue with ptr+1
fixed use of arrays inside class functions.
fixed/implemented fteqcc emulation of pointer opcodes.
added __inout keyword to fteqcc, so that it doesn't feel so horrendous.
fixed sizeof(*foo)
fixed *struct = struct;
fixed recursive structs.
fixed fteqcc warning report.
fixed sdl2 controller support, hopefully.
attempted to implement xinput, including per-player audio playback.
slightly fixed relaxed attitude to mouse focus when running fullscreen.
fixed weird warnings/errors with 'ent.arrayhead' terms. now generates sane errors.
implemented bindmaps (for csqc).
fixed crashing bug with eprint builtin.
implemented subset of music_playlist_* functionality. significant changes to music playback.
fixed some more dpcsqc compat.
fixed binds menu. now displays and accepts modifiers.
fixed issues with huge lightmaps.
fixed protocol determinism with dp clients connecting to fte servers. the initial getchallenge request now inhibits vanilla nq connection requests.
implemented support for 'dupe' userinfo key, allowing clients to request client->server packet duplication. should probably queue them tbh.
implemented sv_saveentfile command.
fixed resume after breaking inside a stepped-over function.
fixed erroneous footer after debugging.
(I wonder just how many things I broke with these fixes)
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4946 fc73d0e0-1445-4013-8a0c-d673dee63da5
2015-07-26 10:56:18 +00:00
slot = sender - cl . players ;
2005-11-30 20:46:09 +00:00
Reworked client support for DPP5+. less code now, its much more graceful.
added waterfog command. waterfog overrides regular fog only when the view is in water.
fixed 64bit printf format specifiers. should work better on winxp64.
fixed some spec angle weirdness.
fixed viewsize 99.99 weirdness with ezhud.
fixed extra offset on the console (exhibited in 64bit builds, but not limited to).
fixed .avi playback, can now actually display frames again.
reimplemented line sparks.
fixed r_editlights_save flipping the light's pitch.
fixed issue with oggs failing to load.
fixed condump to cope with unicode properly.
made sv_bigcoords default except in quake. hexen2 kinda needs it for bsp angle precision.
fixed nq server to not stall weirdly on map changes.
fixed qwprogs svc_cdtrack not bugging out with nq clients on the server.
fixed restart command to load the last map run by the server, instead of start.bsp (when idle)
optimised d3d9 renderer a little. now uses less draw calls, especially with complex scenes. seems to get higher framerates than opengl now.
fixed d3d9 renderer to not bug out quite so much when run fullscreen (shader subsystem is now correctly initialised).
fixed a couple of bugs from font change. also now supports utf-8 in a few more places.
r_editlights_reload no longer generates rtlights inside the void. this resolves a few glitches (but should also help framerates a little).
fixed so corona-only lights won't generate shadowmaps and waste lots of time.
removed lots of #defines from qclib. I should never have made them in the first place, but I was lazy. obviously there's more left that I cba to remove yet.
fixed nested calls with variant-vectors. this fixes csaddon's light editor.
fixed qcc hc calling conventions using redundant stores.
disabled keywords can still be used by using __keyword instead.
fixed ftegccgui grep feature.
fixed motionless-dog qcc bug.
tweaked qcc warnings a little. -Wall is now a viable setting. you should be able to fix all those warnings.
fixed qw svc_intermission + dpp5+ clients bug.
fixed annoying spam about disconnecting in hexen2.
rewrote status command a little to cope with ipv6 addresses more gracefully
fixed significant stall when hibernating/debugging a server with a player sitting on it.
fixed truelightning.
fixed rocketlight overriding pflags.
fixed torches vanishing on vid_restart.
fixed issue with decal scaling.
fixed findentityfield builtin.
fixed fteqcc issue with ptr+1
fixed use of arrays inside class functions.
fixed/implemented fteqcc emulation of pointer opcodes.
added __inout keyword to fteqcc, so that it doesn't feel so horrendous.
fixed sizeof(*foo)
fixed *struct = struct;
fixed recursive structs.
fixed fteqcc warning report.
fixed sdl2 controller support, hopefully.
attempted to implement xinput, including per-player audio playback.
slightly fixed relaxed attitude to mouse focus when running fullscreen.
fixed weird warnings/errors with 'ent.arrayhead' terms. now generates sane errors.
implemented bindmaps (for csqc).
fixed crashing bug with eprint builtin.
implemented subset of music_playlist_* functionality. significant changes to music playback.
fixed some more dpcsqc compat.
fixed binds menu. now displays and accepts modifiers.
fixed issues with huge lightmaps.
fixed protocol determinism with dp clients connecting to fte servers. the initial getchallenge request now inhibits vanilla nq connection requests.
implemented support for 'dupe' userinfo key, allowing clients to request client->server packet duplication. should probably queue them tbh.
implemented sv_saveentfile command.
fixed resume after breaking inside a stepped-over function.
fixed erroneous footer after debugging.
(I wonder just how many things I broke with these fixes)
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4946 fc73d0e0-1445-4013-8a0c-d673dee63da5
2015-07-26 10:56:18 +00:00
if ( ! cls . demoplayback & & ! strcmp ( sender - > name , Player_MyName ( ) ) )
2010-12-05 02:46:07 +00:00
{
2005-11-30 20:46:09 +00:00
return NO_IGNORE_NO_ADD ;
}
2010-12-05 02:46:07 +00:00
for ( i = 0 ; i < FLOODLIST_SIZE ; i + + )
{
Reworked client support for DPP5+. less code now, its much more graceful.
added waterfog command. waterfog overrides regular fog only when the view is in water.
fixed 64bit printf format specifiers. should work better on winxp64.
fixed some spec angle weirdness.
fixed viewsize 99.99 weirdness with ezhud.
fixed extra offset on the console (exhibited in 64bit builds, but not limited to).
fixed .avi playback, can now actually display frames again.
reimplemented line sparks.
fixed r_editlights_save flipping the light's pitch.
fixed issue with oggs failing to load.
fixed condump to cope with unicode properly.
made sv_bigcoords default except in quake. hexen2 kinda needs it for bsp angle precision.
fixed nq server to not stall weirdly on map changes.
fixed qwprogs svc_cdtrack not bugging out with nq clients on the server.
fixed restart command to load the last map run by the server, instead of start.bsp (when idle)
optimised d3d9 renderer a little. now uses less draw calls, especially with complex scenes. seems to get higher framerates than opengl now.
fixed d3d9 renderer to not bug out quite so much when run fullscreen (shader subsystem is now correctly initialised).
fixed a couple of bugs from font change. also now supports utf-8 in a few more places.
r_editlights_reload no longer generates rtlights inside the void. this resolves a few glitches (but should also help framerates a little).
fixed so corona-only lights won't generate shadowmaps and waste lots of time.
removed lots of #defines from qclib. I should never have made them in the first place, but I was lazy. obviously there's more left that I cba to remove yet.
fixed nested calls with variant-vectors. this fixes csaddon's light editor.
fixed qcc hc calling conventions using redundant stores.
disabled keywords can still be used by using __keyword instead.
fixed ftegccgui grep feature.
fixed motionless-dog qcc bug.
tweaked qcc warnings a little. -Wall is now a viable setting. you should be able to fix all those warnings.
fixed qw svc_intermission + dpp5+ clients bug.
fixed annoying spam about disconnecting in hexen2.
rewrote status command a little to cope with ipv6 addresses more gracefully
fixed significant stall when hibernating/debugging a server with a player sitting on it.
fixed truelightning.
fixed rocketlight overriding pflags.
fixed torches vanishing on vid_restart.
fixed issue with decal scaling.
fixed findentityfield builtin.
fixed fteqcc issue with ptr+1
fixed use of arrays inside class functions.
fixed/implemented fteqcc emulation of pointer opcodes.
added __inout keyword to fteqcc, so that it doesn't feel so horrendous.
fixed sizeof(*foo)
fixed *struct = struct;
fixed recursive structs.
fixed fteqcc warning report.
fixed sdl2 controller support, hopefully.
attempted to implement xinput, including per-player audio playback.
slightly fixed relaxed attitude to mouse focus when running fullscreen.
fixed weird warnings/errors with 'ent.arrayhead' terms. now generates sane errors.
implemented bindmaps (for csqc).
fixed crashing bug with eprint builtin.
implemented subset of music_playlist_* functionality. significant changes to music playback.
fixed some more dpcsqc compat.
fixed binds menu. now displays and accepts modifiers.
fixed issues with huge lightmaps.
fixed protocol determinism with dp clients connecting to fte servers. the initial getchallenge request now inhibits vanilla nq connection requests.
implemented support for 'dupe' userinfo key, allowing clients to request client->server packet duplication. should probably queue them tbh.
implemented sv_saveentfile command.
fixed resume after breaking inside a stepped-over function.
fixed erroneous footer after debugging.
(I wonder just how many things I broke with these fixes)
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4946 fc73d0e0-1445-4013-8a0c-d673dee63da5
2015-07-26 10:56:18 +00:00
if ( floodlist [ i ] . playernum = = slot & & floodlist [ i ] . data [ 0 ] & & ! strncmp ( floodlist [ i ] . data , s , sizeof ( floodlist [ i ] . data ) - 1 ) & &
2005-11-30 20:46:09 +00:00
realtime - floodlist [ i ] . time < ignore_flood_duration . value ) {
return IGNORE_NO_ADD ;
}
}
return NO_IGNORE_ADD ;
}
Reworked client support for DPP5+. less code now, its much more graceful.
added waterfog command. waterfog overrides regular fog only when the view is in water.
fixed 64bit printf format specifiers. should work better on winxp64.
fixed some spec angle weirdness.
fixed viewsize 99.99 weirdness with ezhud.
fixed extra offset on the console (exhibited in 64bit builds, but not limited to).
fixed .avi playback, can now actually display frames again.
reimplemented line sparks.
fixed r_editlights_save flipping the light's pitch.
fixed issue with oggs failing to load.
fixed condump to cope with unicode properly.
made sv_bigcoords default except in quake. hexen2 kinda needs it for bsp angle precision.
fixed nq server to not stall weirdly on map changes.
fixed qwprogs svc_cdtrack not bugging out with nq clients on the server.
fixed restart command to load the last map run by the server, instead of start.bsp (when idle)
optimised d3d9 renderer a little. now uses less draw calls, especially with complex scenes. seems to get higher framerates than opengl now.
fixed d3d9 renderer to not bug out quite so much when run fullscreen (shader subsystem is now correctly initialised).
fixed a couple of bugs from font change. also now supports utf-8 in a few more places.
r_editlights_reload no longer generates rtlights inside the void. this resolves a few glitches (but should also help framerates a little).
fixed so corona-only lights won't generate shadowmaps and waste lots of time.
removed lots of #defines from qclib. I should never have made them in the first place, but I was lazy. obviously there's more left that I cba to remove yet.
fixed nested calls with variant-vectors. this fixes csaddon's light editor.
fixed qcc hc calling conventions using redundant stores.
disabled keywords can still be used by using __keyword instead.
fixed ftegccgui grep feature.
fixed motionless-dog qcc bug.
tweaked qcc warnings a little. -Wall is now a viable setting. you should be able to fix all those warnings.
fixed qw svc_intermission + dpp5+ clients bug.
fixed annoying spam about disconnecting in hexen2.
rewrote status command a little to cope with ipv6 addresses more gracefully
fixed significant stall when hibernating/debugging a server with a player sitting on it.
fixed truelightning.
fixed rocketlight overriding pflags.
fixed torches vanishing on vid_restart.
fixed issue with decal scaling.
fixed findentityfield builtin.
fixed fteqcc issue with ptr+1
fixed use of arrays inside class functions.
fixed/implemented fteqcc emulation of pointer opcodes.
added __inout keyword to fteqcc, so that it doesn't feel so horrendous.
fixed sizeof(*foo)
fixed *struct = struct;
fixed recursive structs.
fixed fteqcc warning report.
fixed sdl2 controller support, hopefully.
attempted to implement xinput, including per-player audio playback.
slightly fixed relaxed attitude to mouse focus when running fullscreen.
fixed weird warnings/errors with 'ent.arrayhead' terms. now generates sane errors.
implemented bindmaps (for csqc).
fixed crashing bug with eprint builtin.
implemented subset of music_playlist_* functionality. significant changes to music playback.
fixed some more dpcsqc compat.
fixed binds menu. now displays and accepts modifiers.
fixed issues with huge lightmaps.
fixed protocol determinism with dp clients connecting to fte servers. the initial getchallenge request now inhibits vanilla nq connection requests.
implemented support for 'dupe' userinfo key, allowing clients to request client->server packet duplication. should probably queue them tbh.
implemented sv_saveentfile command.
fixed resume after breaking inside a stepped-over function.
fixed erroneous footer after debugging.
(I wonder just how many things I broke with these fixes)
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4946 fc73d0e0-1445-4013-8a0c-d673dee63da5
2015-07-26 10:56:18 +00:00
void Ignore_Flood_Add ( player_info_t * sender , const char * s )
2010-12-05 02:46:07 +00:00
{
Reworked client support for DPP5+. less code now, its much more graceful.
added waterfog command. waterfog overrides regular fog only when the view is in water.
fixed 64bit printf format specifiers. should work better on winxp64.
fixed some spec angle weirdness.
fixed viewsize 99.99 weirdness with ezhud.
fixed extra offset on the console (exhibited in 64bit builds, but not limited to).
fixed .avi playback, can now actually display frames again.
reimplemented line sparks.
fixed r_editlights_save flipping the light's pitch.
fixed issue with oggs failing to load.
fixed condump to cope with unicode properly.
made sv_bigcoords default except in quake. hexen2 kinda needs it for bsp angle precision.
fixed nq server to not stall weirdly on map changes.
fixed qwprogs svc_cdtrack not bugging out with nq clients on the server.
fixed restart command to load the last map run by the server, instead of start.bsp (when idle)
optimised d3d9 renderer a little. now uses less draw calls, especially with complex scenes. seems to get higher framerates than opengl now.
fixed d3d9 renderer to not bug out quite so much when run fullscreen (shader subsystem is now correctly initialised).
fixed a couple of bugs from font change. also now supports utf-8 in a few more places.
r_editlights_reload no longer generates rtlights inside the void. this resolves a few glitches (but should also help framerates a little).
fixed so corona-only lights won't generate shadowmaps and waste lots of time.
removed lots of #defines from qclib. I should never have made them in the first place, but I was lazy. obviously there's more left that I cba to remove yet.
fixed nested calls with variant-vectors. this fixes csaddon's light editor.
fixed qcc hc calling conventions using redundant stores.
disabled keywords can still be used by using __keyword instead.
fixed ftegccgui grep feature.
fixed motionless-dog qcc bug.
tweaked qcc warnings a little. -Wall is now a viable setting. you should be able to fix all those warnings.
fixed qw svc_intermission + dpp5+ clients bug.
fixed annoying spam about disconnecting in hexen2.
rewrote status command a little to cope with ipv6 addresses more gracefully
fixed significant stall when hibernating/debugging a server with a player sitting on it.
fixed truelightning.
fixed rocketlight overriding pflags.
fixed torches vanishing on vid_restart.
fixed issue with decal scaling.
fixed findentityfield builtin.
fixed fteqcc issue with ptr+1
fixed use of arrays inside class functions.
fixed/implemented fteqcc emulation of pointer opcodes.
added __inout keyword to fteqcc, so that it doesn't feel so horrendous.
fixed sizeof(*foo)
fixed *struct = struct;
fixed recursive structs.
fixed fteqcc warning report.
fixed sdl2 controller support, hopefully.
attempted to implement xinput, including per-player audio playback.
slightly fixed relaxed attitude to mouse focus when running fullscreen.
fixed weird warnings/errors with 'ent.arrayhead' terms. now generates sane errors.
implemented bindmaps (for csqc).
fixed crashing bug with eprint builtin.
implemented subset of music_playlist_* functionality. significant changes to music playback.
fixed some more dpcsqc compat.
fixed binds menu. now displays and accepts modifiers.
fixed issues with huge lightmaps.
fixed protocol determinism with dp clients connecting to fte servers. the initial getchallenge request now inhibits vanilla nq connection requests.
implemented support for 'dupe' userinfo key, allowing clients to request client->server packet duplication. should probably queue them tbh.
implemented sv_saveentfile command.
fixed resume after breaking inside a stepped-over function.
fixed erroneous footer after debugging.
(I wonder just how many things I broke with these fixes)
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4946 fc73d0e0-1445-4013-8a0c-d673dee63da5
2015-07-26 10:56:18 +00:00
floodlist [ floodindex ] . playernum = sender - cl . players ;
2005-11-30 20:46:09 +00:00
floodlist [ floodindex ] . data [ 0 ] = 0 ;
Q_strncpyz ( floodlist [ floodindex ] . data , s , sizeof ( floodlist [ floodindex ] . data ) ) ;
floodlist [ floodindex ] . time = realtime ;
floodindex + + ;
if ( floodindex = = FLOODLIST_SIZE )
floodindex = 0 ;
}
Reworked client support for DPP5+. less code now, its much more graceful.
added waterfog command. waterfog overrides regular fog only when the view is in water.
fixed 64bit printf format specifiers. should work better on winxp64.
fixed some spec angle weirdness.
fixed viewsize 99.99 weirdness with ezhud.
fixed extra offset on the console (exhibited in 64bit builds, but not limited to).
fixed .avi playback, can now actually display frames again.
reimplemented line sparks.
fixed r_editlights_save flipping the light's pitch.
fixed issue with oggs failing to load.
fixed condump to cope with unicode properly.
made sv_bigcoords default except in quake. hexen2 kinda needs it for bsp angle precision.
fixed nq server to not stall weirdly on map changes.
fixed qwprogs svc_cdtrack not bugging out with nq clients on the server.
fixed restart command to load the last map run by the server, instead of start.bsp (when idle)
optimised d3d9 renderer a little. now uses less draw calls, especially with complex scenes. seems to get higher framerates than opengl now.
fixed d3d9 renderer to not bug out quite so much when run fullscreen (shader subsystem is now correctly initialised).
fixed a couple of bugs from font change. also now supports utf-8 in a few more places.
r_editlights_reload no longer generates rtlights inside the void. this resolves a few glitches (but should also help framerates a little).
fixed so corona-only lights won't generate shadowmaps and waste lots of time.
removed lots of #defines from qclib. I should never have made them in the first place, but I was lazy. obviously there's more left that I cba to remove yet.
fixed nested calls with variant-vectors. this fixes csaddon's light editor.
fixed qcc hc calling conventions using redundant stores.
disabled keywords can still be used by using __keyword instead.
fixed ftegccgui grep feature.
fixed motionless-dog qcc bug.
tweaked qcc warnings a little. -Wall is now a viable setting. you should be able to fix all those warnings.
fixed qw svc_intermission + dpp5+ clients bug.
fixed annoying spam about disconnecting in hexen2.
rewrote status command a little to cope with ipv6 addresses more gracefully
fixed significant stall when hibernating/debugging a server with a player sitting on it.
fixed truelightning.
fixed rocketlight overriding pflags.
fixed torches vanishing on vid_restart.
fixed issue with decal scaling.
fixed findentityfield builtin.
fixed fteqcc issue with ptr+1
fixed use of arrays inside class functions.
fixed/implemented fteqcc emulation of pointer opcodes.
added __inout keyword to fteqcc, so that it doesn't feel so horrendous.
fixed sizeof(*foo)
fixed *struct = struct;
fixed recursive structs.
fixed fteqcc warning report.
fixed sdl2 controller support, hopefully.
attempted to implement xinput, including per-player audio playback.
slightly fixed relaxed attitude to mouse focus when running fullscreen.
fixed weird warnings/errors with 'ent.arrayhead' terms. now generates sane errors.
implemented bindmaps (for csqc).
fixed crashing bug with eprint builtin.
implemented subset of music_playlist_* functionality. significant changes to music playback.
fixed some more dpcsqc compat.
fixed binds menu. now displays and accepts modifiers.
fixed issues with huge lightmaps.
fixed protocol determinism with dp clients connecting to fte servers. the initial getchallenge request now inhibits vanilla nq connection requests.
implemented support for 'dupe' userinfo key, allowing clients to request client->server packet duplication. should probably queue them tbh.
implemented sv_saveentfile command.
fixed resume after breaking inside a stepped-over function.
fixed erroneous footer after debugging.
(I wonder just how many things I broke with these fixes)
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4946 fc73d0e0-1445-4013-8a0c-d673dee63da5
2015-07-26 10:56:18 +00:00
qboolean Ignore_Message ( const char * sendername , const char * s , int flags )
2010-12-05 02:46:07 +00:00
{
2017-05-28 15:42:32 +00:00
int slot , i ;
playerview_t * pv = & cl . playerview [ 0 ] ;
2005-11-30 20:46:09 +00:00
2009-11-04 21:16:50 +00:00
if ( ! ignore_mode . ival & & ( flags & 2 ) )
2005-11-30 20:46:09 +00:00
return false ;
2009-11-04 21:16:50 +00:00
if ( ignore_spec . ival = = 2 & & ( flags = = 4 | | ( flags = = 8 & & ignore_mode . ival ) ) )
2005-11-30 20:46:09 +00:00
return true ;
2017-05-28 15:42:32 +00:00
else if ( ignore_spec . ival = = 1 & & ( flags = = 4 ) & & ! pv - > spectator )
2005-11-30 20:46:09 +00:00
return true ;
Reworked client support for DPP5+. less code now, its much more graceful.
added waterfog command. waterfog overrides regular fog only when the view is in water.
fixed 64bit printf format specifiers. should work better on winxp64.
fixed some spec angle weirdness.
fixed viewsize 99.99 weirdness with ezhud.
fixed extra offset on the console (exhibited in 64bit builds, but not limited to).
fixed .avi playback, can now actually display frames again.
reimplemented line sparks.
fixed r_editlights_save flipping the light's pitch.
fixed issue with oggs failing to load.
fixed condump to cope with unicode properly.
made sv_bigcoords default except in quake. hexen2 kinda needs it for bsp angle precision.
fixed nq server to not stall weirdly on map changes.
fixed qwprogs svc_cdtrack not bugging out with nq clients on the server.
fixed restart command to load the last map run by the server, instead of start.bsp (when idle)
optimised d3d9 renderer a little. now uses less draw calls, especially with complex scenes. seems to get higher framerates than opengl now.
fixed d3d9 renderer to not bug out quite so much when run fullscreen (shader subsystem is now correctly initialised).
fixed a couple of bugs from font change. also now supports utf-8 in a few more places.
r_editlights_reload no longer generates rtlights inside the void. this resolves a few glitches (but should also help framerates a little).
fixed so corona-only lights won't generate shadowmaps and waste lots of time.
removed lots of #defines from qclib. I should never have made them in the first place, but I was lazy. obviously there's more left that I cba to remove yet.
fixed nested calls with variant-vectors. this fixes csaddon's light editor.
fixed qcc hc calling conventions using redundant stores.
disabled keywords can still be used by using __keyword instead.
fixed ftegccgui grep feature.
fixed motionless-dog qcc bug.
tweaked qcc warnings a little. -Wall is now a viable setting. you should be able to fix all those warnings.
fixed qw svc_intermission + dpp5+ clients bug.
fixed annoying spam about disconnecting in hexen2.
rewrote status command a little to cope with ipv6 addresses more gracefully
fixed significant stall when hibernating/debugging a server with a player sitting on it.
fixed truelightning.
fixed rocketlight overriding pflags.
fixed torches vanishing on vid_restart.
fixed issue with decal scaling.
fixed findentityfield builtin.
fixed fteqcc issue with ptr+1
fixed use of arrays inside class functions.
fixed/implemented fteqcc emulation of pointer opcodes.
added __inout keyword to fteqcc, so that it doesn't feel so horrendous.
fixed sizeof(*foo)
fixed *struct = struct;
fixed recursive structs.
fixed fteqcc warning report.
fixed sdl2 controller support, hopefully.
attempted to implement xinput, including per-player audio playback.
slightly fixed relaxed attitude to mouse focus when running fullscreen.
fixed weird warnings/errors with 'ent.arrayhead' terms. now generates sane errors.
implemented bindmaps (for csqc).
fixed crashing bug with eprint builtin.
implemented subset of music_playlist_* functionality. significant changes to music playback.
fixed some more dpcsqc compat.
fixed binds menu. now displays and accepts modifiers.
fixed issues with huge lightmaps.
fixed protocol determinism with dp clients connecting to fte servers. the initial getchallenge request now inhibits vanilla nq connection requests.
implemented support for 'dupe' userinfo key, allowing clients to request client->server packet duplication. should probably queue them tbh.
implemented sv_saveentfile command.
fixed resume after breaking inside a stepped-over function.
fixed erroneous footer after debugging.
(I wonder just how many things I broke with these fixes)
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4946 fc73d0e0-1445-4013-8a0c-d673dee63da5
2015-07-26 10:56:18 +00:00
if ( ! sendername )
2005-11-30 20:46:09 +00:00
return false ;
Reworked client support for DPP5+. less code now, its much more graceful.
added waterfog command. waterfog overrides regular fog only when the view is in water.
fixed 64bit printf format specifiers. should work better on winxp64.
fixed some spec angle weirdness.
fixed viewsize 99.99 weirdness with ezhud.
fixed extra offset on the console (exhibited in 64bit builds, but not limited to).
fixed .avi playback, can now actually display frames again.
reimplemented line sparks.
fixed r_editlights_save flipping the light's pitch.
fixed issue with oggs failing to load.
fixed condump to cope with unicode properly.
made sv_bigcoords default except in quake. hexen2 kinda needs it for bsp angle precision.
fixed nq server to not stall weirdly on map changes.
fixed qwprogs svc_cdtrack not bugging out with nq clients on the server.
fixed restart command to load the last map run by the server, instead of start.bsp (when idle)
optimised d3d9 renderer a little. now uses less draw calls, especially with complex scenes. seems to get higher framerates than opengl now.
fixed d3d9 renderer to not bug out quite so much when run fullscreen (shader subsystem is now correctly initialised).
fixed a couple of bugs from font change. also now supports utf-8 in a few more places.
r_editlights_reload no longer generates rtlights inside the void. this resolves a few glitches (but should also help framerates a little).
fixed so corona-only lights won't generate shadowmaps and waste lots of time.
removed lots of #defines from qclib. I should never have made them in the first place, but I was lazy. obviously there's more left that I cba to remove yet.
fixed nested calls with variant-vectors. this fixes csaddon's light editor.
fixed qcc hc calling conventions using redundant stores.
disabled keywords can still be used by using __keyword instead.
fixed ftegccgui grep feature.
fixed motionless-dog qcc bug.
tweaked qcc warnings a little. -Wall is now a viable setting. you should be able to fix all those warnings.
fixed qw svc_intermission + dpp5+ clients bug.
fixed annoying spam about disconnecting in hexen2.
rewrote status command a little to cope with ipv6 addresses more gracefully
fixed significant stall when hibernating/debugging a server with a player sitting on it.
fixed truelightning.
fixed rocketlight overriding pflags.
fixed torches vanishing on vid_restart.
fixed issue with decal scaling.
fixed findentityfield builtin.
fixed fteqcc issue with ptr+1
fixed use of arrays inside class functions.
fixed/implemented fteqcc emulation of pointer opcodes.
added __inout keyword to fteqcc, so that it doesn't feel so horrendous.
fixed sizeof(*foo)
fixed *struct = struct;
fixed recursive structs.
fixed fteqcc warning report.
fixed sdl2 controller support, hopefully.
attempted to implement xinput, including per-player audio playback.
slightly fixed relaxed attitude to mouse focus when running fullscreen.
fixed weird warnings/errors with 'ent.arrayhead' terms. now generates sane errors.
implemented bindmaps (for csqc).
fixed crashing bug with eprint builtin.
implemented subset of music_playlist_* functionality. significant changes to music playback.
fixed some more dpcsqc compat.
fixed binds menu. now displays and accepts modifiers.
fixed issues with huge lightmaps.
fixed protocol determinism with dp clients connecting to fte servers. the initial getchallenge request now inhibits vanilla nq connection requests.
implemented support for 'dupe' userinfo key, allowing clients to request client->server packet duplication. should probably queue them tbh.
implemented sv_saveentfile command.
fixed resume after breaking inside a stepped-over function.
fixed erroneous footer after debugging.
(I wonder just how many things I broke with these fixes)
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4946 fc73d0e0-1445-4013-8a0c-d673dee63da5
2015-07-26 10:56:18 +00:00
if ( ( slot = Player_NametoSlot ( sendername ) ) = = PLAYER_NAME_NOMATCH )
2005-11-30 20:46:09 +00:00
return false ;
2010-12-05 02:46:07 +00:00
if ( IsIgnored ( slot ) )
2005-11-30 20:46:09 +00:00
return true ;
2009-11-04 21:16:50 +00:00
if ( ignore_opponents . ival & & (
2010-12-05 02:46:07 +00:00
( int ) ignore_opponents . ival = = 1 | |
2019-09-17 19:49:39 +00:00
( cls . state > = ca_connected & & cl . matchstate = = MATCH_INPROGRESS & & ! cls . demoplayback & & ! pv - > spectator ) // match?
2010-12-05 02:46:07 +00:00
) & &
2017-05-28 15:42:32 +00:00
flags = = 1 & & ! pv - > spectator & & slot ! = pv - > playernum & &
( ! cl . teamplay | | strcmp ( cl . players [ slot ] . team , cl . players [ pv - > playernum ] . team ) )
2010-12-05 02:46:07 +00:00
)
{
2005-11-30 20:46:09 +00:00
return true ;
2010-12-05 02:46:07 +00:00
}
2005-11-30 20:46:09 +00:00
if ( ! cl . teamplay )
return false ;
Reworked client support for DPP5+. less code now, its much more graceful.
added waterfog command. waterfog overrides regular fog only when the view is in water.
fixed 64bit printf format specifiers. should work better on winxp64.
fixed some spec angle weirdness.
fixed viewsize 99.99 weirdness with ezhud.
fixed extra offset on the console (exhibited in 64bit builds, but not limited to).
fixed .avi playback, can now actually display frames again.
reimplemented line sparks.
fixed r_editlights_save flipping the light's pitch.
fixed issue with oggs failing to load.
fixed condump to cope with unicode properly.
made sv_bigcoords default except in quake. hexen2 kinda needs it for bsp angle precision.
fixed nq server to not stall weirdly on map changes.
fixed qwprogs svc_cdtrack not bugging out with nq clients on the server.
fixed restart command to load the last map run by the server, instead of start.bsp (when idle)
optimised d3d9 renderer a little. now uses less draw calls, especially with complex scenes. seems to get higher framerates than opengl now.
fixed d3d9 renderer to not bug out quite so much when run fullscreen (shader subsystem is now correctly initialised).
fixed a couple of bugs from font change. also now supports utf-8 in a few more places.
r_editlights_reload no longer generates rtlights inside the void. this resolves a few glitches (but should also help framerates a little).
fixed so corona-only lights won't generate shadowmaps and waste lots of time.
removed lots of #defines from qclib. I should never have made them in the first place, but I was lazy. obviously there's more left that I cba to remove yet.
fixed nested calls with variant-vectors. this fixes csaddon's light editor.
fixed qcc hc calling conventions using redundant stores.
disabled keywords can still be used by using __keyword instead.
fixed ftegccgui grep feature.
fixed motionless-dog qcc bug.
tweaked qcc warnings a little. -Wall is now a viable setting. you should be able to fix all those warnings.
fixed qw svc_intermission + dpp5+ clients bug.
fixed annoying spam about disconnecting in hexen2.
rewrote status command a little to cope with ipv6 addresses more gracefully
fixed significant stall when hibernating/debugging a server with a player sitting on it.
fixed truelightning.
fixed rocketlight overriding pflags.
fixed torches vanishing on vid_restart.
fixed issue with decal scaling.
fixed findentityfield builtin.
fixed fteqcc issue with ptr+1
fixed use of arrays inside class functions.
fixed/implemented fteqcc emulation of pointer opcodes.
added __inout keyword to fteqcc, so that it doesn't feel so horrendous.
fixed sizeof(*foo)
fixed *struct = struct;
fixed recursive structs.
fixed fteqcc warning report.
fixed sdl2 controller support, hopefully.
attempted to implement xinput, including per-player audio playback.
slightly fixed relaxed attitude to mouse focus when running fullscreen.
fixed weird warnings/errors with 'ent.arrayhead' terms. now generates sane errors.
implemented bindmaps (for csqc).
fixed crashing bug with eprint builtin.
implemented subset of music_playlist_* functionality. significant changes to music playback.
fixed some more dpcsqc compat.
fixed binds menu. now displays and accepts modifiers.
fixed issues with huge lightmaps.
fixed protocol determinism with dp clients connecting to fte servers. the initial getchallenge request now inhibits vanilla nq connection requests.
implemented support for 'dupe' userinfo key, allowing clients to request client->server packet duplication. should probably queue them tbh.
implemented sv_saveentfile command.
fixed resume after breaking inside a stepped-over function.
fixed erroneous footer after debugging.
(I wonder just how many things I broke with these fixes)
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4946 fc73d0e0-1445-4013-8a0c-d673dee63da5
2015-07-26 10:56:18 +00:00
if ( cl . players [ slot ] . spectator | | ! strcmp ( Player_MyName ( ) , sendername ) )
2005-11-30 20:46:09 +00:00
return false ;
2010-12-05 02:46:07 +00:00
for ( i = 0 ; i < MAX_TEAMIGNORELIST & & ignoreteamlist [ i ] [ 0 ] ; i + + )
{
2005-11-30 20:46:09 +00:00
if ( ! strncmp ( cl . players [ slot ] . team , ignoreteamlist [ i ] , sizeof ( ignoreteamlist [ i ] ) - 1 ) )
return true ;
}
return false ;
}
2010-12-05 02:46:07 +00:00
void Ignore_ResetFloodList ( void )
{
2005-11-30 20:46:09 +00:00
int i ;
for ( i = 0 ; i < FLOODLIST_SIZE ; i + + )
floodlist [ i ] . data [ 0 ] = 0 ;
floodindex = 0 ;
}
2010-12-05 02:46:07 +00:00
void Ignore_Init ( void )
{
2005-11-30 20:46:09 +00:00
int i ;
# define IGNOREGROUP "Player Ignoring"
for ( i = 0 ; i < MAX_TEAMIGNORELIST ; i + + )
ignoreteamlist [ i ] [ 0 ] = 0 ;
Ignore_ResetFloodList ( ) ;
Cvar_Register ( & ignore_flood_duration , IGNOREGROUP ) ;
Cvar_Register ( & ignore_flood , IGNOREGROUP ) ;
Cvar_Register ( & ignore_spec , IGNOREGROUP ) ;
Cvar_Register ( & ignore_qizmo_spec , IGNOREGROUP ) ;
Cvar_Register ( & ignore_mode , IGNOREGROUP ) ;
Cvar_Register ( & ignore_opponents , IGNOREGROUP ) ;
2012-04-24 07:59:11 +00:00
Cmd_AddCommand ( " cl_voip_mute " , VIgnore_f ) ;
2015-11-18 07:37:39 +00:00
Cmd_AddCommand ( " cl_voip_unmute " , VUnignore_f ) ;
2010-12-05 02:46:07 +00:00
Cmd_AddCommand ( " ignore " , Ignore_f ) ;
2005-11-30 20:46:09 +00:00
Cmd_AddCommand ( " ignorelist " , IgnoreList_f ) ;
Cmd_AddCommand ( " unignore " , Unignore_f ) ;
Cmd_AddCommand ( " ignore_team " , Ignoreteam_f ) ;
Cmd_AddCommand ( " unignore_team " , Unignoreteam_f ) ;
Cmd_AddCommand ( " unignoreAll " , UnignoreAll_f ) ;
Cmd_AddCommand ( " unignoreAll_team " , UnignoreteamAll_f ) ;
Cmd_AddCommand ( " unignore_id " , Unignore_ID_f ) ;
Cmd_AddCommand ( " ignore_id " , Ignore_ID_f ) ;
}