Commit graph

553 commits

Author SHA1 Message Date
Dabb
bafb8f7239 Basic DoS flood attack protections.
Commands added: netdosexpire, netdosvalues
(oops, forgot from last ;)
2000-08-13 14:34:49 +00:00
Dabb
afc467b84f Basic DoS flood attack protections. Use sv_netdosprotect 1 to turn them on.
(quite experimental, these might break something...)
Cvars added: sv_allow_log, sv_allow_status, sv_allow_ping, sv_netdosprotect
Commands added: netdosexpire, netdosvalues
2000-08-13 14:26:20 +00:00
Dabb
0bbc70dbd6 Fix for pause flood exploit. 2000-08-13 14:21:21 +00:00
Dabb
7234a479c8 Quick-fix for server crashing on some maps with null names/textures. 2000-08-08 12:47:37 +00:00
Anton E. Gavrilov
ea7c4363ba Fix for ugly 'unknown: #' messages at the end of a demo. 2000-08-04 09:47:53 +00:00
Dabb
9e38c05969 Builds now ... 2000-08-03 16:21:19 +00:00
Dabb
556ff79462 Added teamplay.c ... 2000-08-03 14:47:00 +00:00
Anton E. Gavrilov
bfcee99717 cl_deadbodyfilter and cl_gibfilter should work now. 2000-08-02 23:00:39 +00:00
Jeff Teunissen
c251476789 whitespace. 2000-08-02 22:53:59 +00:00
Anton E. Gavrilov
d80541c3ee Add teamplay.c to project 2000-08-02 22:53:44 +00:00
Jeff Teunissen
50e0cb54a7 Moved qf-server-win.mak makefile for Borland to qf-server.mak, made it
build qf-server.exe instead of qf-server-win.exe If you're running it on
Windows, it's pretty obviously a Windows program. :)
2000-08-02 22:51:41 +00:00
Anton E. Gavrilov
f48c974c01 Added cl_deadbodyfilter and cl_gibfilter cvars 2000-08-02 22:50:28 +00:00
Jeff Teunissen
cf2f9a1233 Add teamplay.[ch] to makefiles, also found some necessary files that would
be missed by make dist.
2000-08-02 22:49:41 +00:00
Anton E. Gavrilov
6f26023d81 #if 0'd the code that updates the screen after every Con_Printf when
disconnected.
2000-08-02 22:40:13 +00:00
Anton E. Gavrilov
f992062eff Proxy features should go to this file when possible 2000-08-02 15:20:15 +00:00
Dabb
43ff0932f4 Fixed stupid borland complier error 2000-08-02 15:16:36 +00:00
Jeff Teunissen
acf2de7612 Enabled time stamped messages for server. To turn it on, set
sv_timestamps.

To configure how timestamps are formatted, use the sv_timefmt Cvar. It's a
formatted string, with the following special tokens (taken from the
strftime() manual page):

       %a     The abbreviated weekday name according to the  cur­
              rent locale.

       %A     The  full  weekday  name  according  to the current
              locale.

       %b     The abbreviated month name according to the current
              locale.

       %B     The  full  month  name  according  to  the  current
              locale.

       %c     The preferred date and time representation for  the
              current locale.

       %C     The century number (year/100) as a 2-digit integer.
              (SU)

       %C     The century number (the year divided by   100   and
              truncated  to  an integer).

       %d     The  day of the month as a decimal number (range 01
              to 31).

       %D     Equivalent to  %m/%d/%y.  (Yecch  -  for  Americans
              only.   Americans  should  note that in other coun­
              tries %d/%m/%y is rather common. This means that in
              international  context this format is ambiguous and
              should not be used.) (SU)

       %e     Like %d, the day of the month as a decimal  number,
              but a leading zero is replaced by a space. (SU)

       %E     Modifier: use alternative format, see below. (SU)

       %G     The ISO 8601 year with century as a decimal number.
              The 4-digit year corresponding to the ISO week num­
              ber  (see  %V).  This has the same format and value
              as %y, except that if the ISO week  number  belongs
              to  the  previous  or  next year, that year is used
              instead. (TZ)

       %g     Like %G, but without century, i.e., with a  2-digit
              year (00-99). (TZ)

       %h     Equivalent to %b. (SU)

       %H     The  hour as a decimal number using a 24-hour clock
              (range 00 to 23).

       %I     The hour as a decimal number using a 12-hour  clock
              (range 01 to 12).

       %j     The  day of the year as a decimal number (range 001
              to 366).

       %k     The hour (24-hour clock) as a decimal number (range
              0  to  23);  single digits are preceded by a blank.
              (See also %H.) (TZ)

       %l     The hour (12-hour clock) as a decimal number (range
              1  to  12);  single digits are preceded by a blank.
              (See also %I.) (TZ)

       %m     The month as a decimal number (range 01 to 12).

       %M     The minute as a decimal number (range 00 to 59).

       %n     A newline character. (SU)

       %O     Modifier: use alternative format, see below. (SU)

       %p     Either `AM' or `PM' according  to  the  given  time
              value, or the corresponding strings for the current
              locale.  Noon is treated as `pm'  and  midnight  as
              `am'.

       %P     Like  %p but in lowercase: `am' or `pm' or a corre­
              sponding string for the current locale. (GNU)

       %r     The time in a.m. or p.m. notation.   In  the  POSIX
              locale this is equivalent to `%I:%M:%S %p'. (SU)

       %R     The  time  in  24-hour notation (%H:%M). (SU) For a
              version including the seconds, see %T below.

       %s     The number of seconds since the Epoch, i.e.,  since
              1970-01-01 00:00:00 UTC. (TZ)

       %S     The second as a decimal number (range 00 to 61).

       %t     A tab character. (SU)

       %T     The time in 24-hour notation (%H:%M:%S). (SU)

       %u     The  day  of  the  week as a decimal, range 1 to 7,
              Monday being 1.  See also %w. (SU)

       %U     The week number of the current year  as  a  decimal
              number,  range  00  to  53, starting with the first
              Sunday as the first day of week 01. See also %V and
              %W.

       %V     The  ISO  8601:1988 week number of the current year
              as a decimal number, range 01 to 53, where  week  1
              is  the  first week that has at least 4 days in the
              current year, and with Monday as the first  day  of
              the week. See also %U and %W. (SU)

       %w     The  day  of  the  week as a decimal, range 0 to 6,
              Sunday being 0.  See also %u.

       %W     The week number of the current year  as  a  decimal
              number,  range  00  to  53, starting with the first
              Monday as the first day of week 01.

       %x     The preferred date representation for  the  current
              locale without the time.

       %X     The  preferred  time representation for the current
              locale without the date.

       %y     The year as a  decimal  number  without  a  century
              (range 00 to 99).

       %Y     The year as a decimal number including the century.

       %z     The time-zone as hour offset from GMT.  Required to
              emit  RFC822-conformant  dates (using "%a, %d %b %Y
              %H:%M:%S %z"). (GNU)

       %Z     The time zone or name or abbreviation.

       %+     The date and time in date(1) format. (TZ)

       %%     A literal `%' character.

Some of these may not work on some systems.
2000-08-02 07:13:12 +00:00
Jeff Teunissen
808e3295ab Add $(GLX_LIBS) to -sgl _LDADD; temporary. 2000-08-02 01:31:16 +00:00
Jeff Teunissen
86de6d99f0 A few substantive changes, mostly whitespace. EVIL! 2000-08-02 01:18:37 +00:00
Joseph Carter
1cfc49b5b2 Clean up the warnings Tonik didn't 2000-08-01 21:55:26 +00:00
Anton E. Gavrilov
15929debf1 Con_Clear_f() will also reset console backscroll 2000-07-31 13:06:24 +00:00
Anton E. Gavrilov
3541ef420b bind command will now accept any number of parameters, e.g.
bind 5 impulse 5
2000-07-31 12:57:30 +00:00
Anton E. Gavrilov
bbb594019b Change a bunch of Sys_Error()'s to Host_EndGame() 2000-07-31 12:54:11 +00:00
Anton E. Gavrilov
8bcf348265 New cvar expansion code that works in say/say_team commands;
Command line chars are treated as unsigned now, so you can start a
token with a 'high' char (>127).
2000-07-31 10:24:37 +00:00
Anton E. Gavrilov
f8b0302ed6 Faster Cmd_TokenizeString - no malloc/free, just a static buffer. 2000-07-31 09:32:17 +00:00
Anton E. Gavrilov
4c49007a2b Faster Cbuf_InsertText 2000-07-31 07:40:13 +00:00
Dabb
8ccb6a9570 Evil hack to get directsound work under win32, will be removed when sound_sdl & other stuffs are done. 2000-07-30 10:17:18 +00:00
Dabb
a046a4ba69 SDL makefiles for Borland C++ - EXPERIMENTAL 2000-07-30 10:14:02 +00:00
Dabb
15de4e2566 Common cl_sys_sdl for win32 and *nix, replaces cl_sys_win and cl_sys_unix for SDL targets. 2000-07-30 10:12:24 +00:00
Bill Currie
92baf1a751 add gl_skymultipass to conroll whether the skydome is single or double pass.
Currently defaults to 1 (multipass, ie old behaviour).
2000-07-30 02:54:17 +00:00
Anton E. Gavrilov
b0f20f955c A partion of Key_Console() can be simplified by using memmove() 2000-07-28 14:37:41 +00:00
Bill Currie
858a0e5db2 Warp the cursor out of the way for 3dfx users. Hopefully this does the job. 2000-07-27 04:39:01 +00:00
Bill Currie
4f0e4c858a Move the mouse cursor hiding code from in_x11 to vid_{x11,glx} so it is
guaranteed to be done /before/ the glx context is created. Hopefully this
fixes knghtbrd's ugly cursor problem.
2000-07-27 03:37:41 +00:00
Anton E. Gavrilov
1d5ced14dc Fix Win32 paste-from-buffer problem by changing memcpy() to memmove()
(thanks Deek)
2000-07-24 13:32:16 +00:00
Thad Ward
2651d30d59 added pr_offs.c to the server project's files 2000-07-23 01:55:57 +00:00
Dabb
1dd5b7ee10 Changed alloca -> calloc to fix crash bug.
Also added modestate (will be removed).

btw, something to remember about ALLOCA:
"If the calling function does not contain  any references
to local variables in the stack,  the stack will not be
restored correctly when the function exits,  resulting
in a program crash. "
2000-07-19 17:58:19 +00:00
Joseph Carter
260687d229 who removed the fflush in Sys_Printf? It's back now. 2000-07-19 07:25:03 +00:00
Forest Hale
5ead0237ca Possible fix for ATI multitexture (gl_texsort 0) wall rendering. 2000-07-17 14:12:05 +00:00
Forest Hale
907be5bd58 commented out some extend bit reporting code 2000-07-17 14:06:33 +00:00
Joseph Carter
eedd4a5e96 Thanks to akawaka, vid_sdl works!
This is far from complete and still does many things oddly by "modern"
standards in newtree.
2000-07-16 21:48:16 +00:00
Dabb
3a50d8337d Added VID_SetCaption support and removed SDL_INIT_CDROM for now. (thats in cd_sdl.c). 2000-07-14 17:16:08 +00:00
Dabb
4f6b7053ac Added gl_mtex_enum and modestate, also added VID_SetCaption support. 2000-07-14 17:04:18 +00:00
Dabb
c29a59f262 VID_SetCaption (title) support. 2000-07-14 16:10:26 +00:00
Dabb
b183d0dcaf VID_SetCaption (title) stubs - code added later. 2000-07-14 16:09:35 +00:00
Dabb
0e2bc6adb3 Added VID_SetCaption (title) support for little more portability. 2000-07-14 16:08:23 +00:00
Dabb
5a1ef7ca3d Added SDL_INIT for cd-rom. 2000-07-13 13:27:19 +00:00
Dabb
32fe653e47 cd_sdl.c from oldtree. 2000-07-13 13:22:07 +00:00
Dabb
2a3cfd6251 Couple of #ifndef WIN32 to get SDL compile under Borland. 2000-07-11 14:42:05 +00:00
Jeff Teunissen
6a008a83c9 [mumble mumble] SDL target fixed, made -ggi not build. 2000-07-11 07:57:26 +00:00
Jeff Teunissen
1e28e71322 Normal SDL support. It might work. :) 2000-07-11 07:51:36 +00:00