Spoike
9741aacb98
Fix a crash which qqshka reported, and fixed up some C style.
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3021 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-07-07 20:39:21 +00:00
Molgrum
8278f53e15
Patch from Spike, change droptofloor() to take entity number as argument instead to comply with QVM mods.
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3020 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-06-29 11:17:46 +00:00
Molgrum
eec8fcb78b
Add G_MOVETOGOAL builtin for KTX.
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3019 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-06-27 20:26:33 +00:00
TimeServ
0adc1e1054
clear colorshifts on disconnect, don't decrease cshifts on gamma change, fix warning
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3009 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-06-12 23:19:47 +00:00
TimeServ
9cf2db123c
added persistant queries (UNTESTED), changed sqlopenquery call, added sqlreadfloat, fixed deallocs, self/other is stored on openquery call and is checked against a spawnid on callback call (reset to world when check fails), preliminary add FTE_ENT_UNIQUESPAWNID
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3006 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-06-11 16:04:14 +00:00
Molgrum
33140dbf24
Ruleset expanded with ruleset_allow_localvolume. Set to 0 in 'nqr' and 'strict'. Made NET_AdrToString return a non-static pointer.
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3002 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-06-08 14:37:57 +00:00
Mark Olsen
f15fc6fefd
Build... Even if you don't have SQL defined.
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3001 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-06-06 21:27:04 +00:00
TimeServ
f0b6bf19d3
commands sqlstatus, sqlkill, sqlkillall added; cvars sql_driver, sql_host, sql_username, sql_password, sql_defaultdb added; sqlconnect params changed to (string host, string user, string pass, string db, string driver) with all params optional; code works with these cvars when params omitted or "" but we only have one driver (mysql)
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2998 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-06-04 20:48:28 +00:00
TimeServ
8761bb1485
fix sql init/deinit, add broadcast to force sql thread termination
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2995 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-06-02 23:13:03 +00:00
Molgrum
afb7e76967
It comiples in Linux, thanks to Spike for the break&fix.
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2994 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-06-02 18:36:52 +00:00
Spoike
519983dee2
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2992 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-06-01 22:06:22 +00:00
TimeServ
a631205fe7
added conditional variables for win/linux/sdl, switched sql thread worker to conditional to avoid busy looping, corrected a spikeism
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2991 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-06-01 05:42:23 +00:00
Spoike
94d108c522
Fixed up qc stat field submission.
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2989 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-05-31 10:35:38 +00:00
Molgrum
69a32e88de
Stop RealIP-checks when realip_status has reached sv_getrealip.
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2986 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-05-30 21:38:02 +00:00
Spoike
0e754dea0f
k, next time I might test it.
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2985 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-05-27 20:08:21 +00:00
Spoike
89a4f03160
Tweeked the realip stuff to tolerate ezquake. Added new cvar, sv_realip_kick. should be set to no greater than sv_getrealip. sv_getrealip 1 is mvdsv-level security, 2 ensures that there is a quakeworld client at that ip, while 3 ensures that its the actual client that its meant to be. Note that only FTE supports 3 and ezquake/fuhquake don't even support 2 (while mqwcl does). The higher the value, the higher the certainty.
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2984 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-05-27 18:59:07 +00:00
Spoike
0479526cfe
okay, guaranteed no collisions on realip challenges.
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2983 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-05-26 21:58:26 +00:00
Spoike
4afc4aa4e6
Randomized the realip challenge.
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2982 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-05-26 21:51:19 +00:00
Spoike
594c81c3b5
Fixed voting to not crash the server when votes time out. Whoops.
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2981 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-05-26 21:50:11 +00:00
Spoike
af47e57535
Fixed a typo, sv_realiphostname_ipv6 should now exist.
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2978 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-05-26 19:34:03 +00:00
Spoike
654eabc4c2
Reworked stats for csqc to match LH's suggestion. CSQC can read the 'delta' entities (experimental). Fixed up sv_getrealip, made banning work based on realip too. Added a ban command to easily ban a single client. Renamed some svcs for clarification. Added pvsflags to ssqc for greater control over how ents are sent to csqc. Broke some stuff.
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2977 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-05-25 22:23:43 +00:00
Molgrum
3ddb5e5dc5
Make it compile on Windows.
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2962 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-05-24 20:04:38 +00:00
TimeServ
ce5cb75832
this commit will most likely break things: main Z_*/BZ_* calls no longer have zone logic, tagged allocs redone and now partially thread safe (still Sys_Error), code using reallocs should no longer assume new memory is zeroed, minor mysql fixes
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2951 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-05-09 14:22:37 +00:00
TimeServ
cd0171d73e
fix sqlescape, sqlopenquery changed so parameters 3+ can be concatenated for final query string
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2943 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-04-17 19:16:21 +00:00
TimeServ
9e7a43c96c
SQL: sqlreadfield with a negative row returns field name, server request/result stacks changed to queues, query references numbers limited to +/-50000, proper library init/end calls, sqlversion call
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2942 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-04-15 00:29:17 +00:00
TimeServ
7f73771ba2
mysql includes and libmysql.dll loader code for win32
...
added preliminary FTE_SQL code (not in a usable state), current problems:
WINDOWS ONLY, database connect is hardcoded to a local server, conditional wait needed for worker thread (currently consumes 100% cpu), query requests and results should be a queue not a stack, sql init and deinit is in the wrong place, project and defines need updating, tons more things
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2941 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-04-14 07:47:30 +00:00
TimeServ
1673ca7a7a
PROTOCOL_VERSION to PROTOCOL_VERSION_QW to resolve a future header conflict
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2940 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-04-12 23:24:19 +00:00
Molgrum
85c12e3a9c
Bugfix, found by qqshka.
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2936 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-03-10 15:24:25 +00:00
Spoike
04bdd8d827
Fixed a minor bug that has never occurred.
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2910 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-02-05 02:44:01 +00:00
Spoike
8c6bf11a10
That's meant to be a temporary error.
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2909 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-02-05 02:41:46 +00:00
Mark Olsen
83d23423ab
characture -> character
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2882 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-01-28 13:27:30 +00:00
Spoike
7584ae2e34
Changed the pf_clientstat function and parameters to match the ordering originally documented in the ext_csqc extension I posted on wiki.quakesrc.org, as per krimzon's recommendation. Updated qclib to support querying fields based on their offset rather than purely a name basis, to support the clientstat change.
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2869 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-01-23 01:31:01 +00:00
TimeServ
ec41df875c
terrible workaround for optimization floating point compare problems
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2856 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-01-13 00:25:06 +00:00
Spoike
bd6e6cb2b8
More meaningful name for unnamed clients
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2843 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-01-08 19:36:30 +00:00
Molgrum
8e31e97f60
Screwed up here, this is supposed to be code for two cases. Thanks qqshka.
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2842 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-01-05 12:29:23 +00:00
TimeServ
463a172753
forgot pthread include
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2835 fc73d0e0-1445-4013-8a0c-d673dee63da5
2007-12-30 20:12:50 +00:00
TimeServ
16caf0e1da
added another thread call and fixed up some thread creation logic
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2834 fc73d0e0-1445-4013-8a0c-d673dee63da5
2007-12-30 20:05:49 +00:00
TimeServ
a6617581c8
thread creation/mutex stubs, code is probably wrong but everything is surronded by #define MULTITHREAD so shouldn't break anything
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2831 fc73d0e0-1445-4013-8a0c-d673dee63da5
2007-12-30 00:09:34 +00:00
Mark Olsen
fa9ffe86b4
thier -> their
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2818 fc73d0e0-1445-4013-8a0c-d673dee63da5
2007-12-23 20:28:40 +00:00
Mark Olsen
17a004d9c5
Really funny. Random stack values always are.
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2802 fc73d0e0-1445-4013-8a0c-d673dee63da5
2007-12-03 11:40:18 +00:00
Mark Olsen
bd10f65dfc
Someone forgot a static keyword in Sys_Milliseconds(), making the comparison base always a random stack value.
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2801 fc73d0e0-1445-4013-8a0c-d673dee63da5
2007-12-03 11:38:58 +00:00
Spoike
bc19d31dc3
Some implementations ignore 0x prefixes in atoi
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2783 fc73d0e0-1445-4013-8a0c-d673dee63da5
2007-11-09 21:21:21 +00:00
Molgrum
239f0c9d38
I guess all of these are to be changed too, please confirm.
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2779 fc73d0e0-1445-4013-8a0c-d673dee63da5
2007-11-04 08:21:19 +00:00
Molgrum
93c94f2b61
Just a minor consistency fix.
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2778 fc73d0e0-1445-4013-8a0c-d673dee63da5
2007-11-04 08:16:23 +00:00
Molgrum
ef3c7621af
Warning fixes.
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2768 fc73d0e0-1445-4013-8a0c-d673dee63da5
2007-10-29 06:46:04 +00:00
Lance
f34c09bc37
fix in map loading code, quake can now load dm6++
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2762 fc73d0e0-1445-4013-8a0c-d673dee63da5
2007-10-25 07:29:59 +00:00
Molgrum
48933f0862
Temporary workaround for the DP_SV_BOTCLIENT speedbug on listen servers. Needs some proper fixing!
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2745 fc73d0e0-1445-4013-8a0c-d673dee63da5
2007-10-14 20:32:21 +00:00
Molgrum
d598dbbe64
Naming standard being followed: DP_QC_BOTCLIENT -> DP_SV_BOTCLIENT
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2743 fc73d0e0-1445-4013-8a0c-d673dee63da5
2007-10-14 01:52:42 +00:00
Mark Olsen
306a02204b
Workaround for broken bot angles.
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2742 fc73d0e0-1445-4013-8a0c-d673dee63da5
2007-10-14 00:54:29 +00:00
Molgrum
458e39e36a
Removed the oldmovement code in DP_QC_BOTCLIENT. Previous commit was warning fixes in D3D.
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2736 fc73d0e0-1445-4013-8a0c-d673dee63da5
2007-10-11 13:31:31 +00:00