Commit graph

70 commits

Author SHA1 Message Date
Spoike
262bc69548 So I can define globals/functions as static.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3147 fc73d0e0-1445-4013-8a0c-d673dee63da5
2009-03-29 23:47:29 +00:00
Lance
2e768fe44c Blub/0's fteqcc macro line fix to quote "seem to be some problems with
newlines in macros (causing wrong line numbers in error/warning 
outputs)"


git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3146 fc73d0e0-1445-4013-8a0c-d673dee63da5
2009-03-20 01:12:01 +00:00
Spoike
dce284811e Minor update...
Q3 clients can connect to q1 gamecode (sv_listen_q3).
hacked support for SendFlags. It'll work compatibly, just not efficiently.
Unified shared qc builtins.
fteqcc supports int |= float, more params in macros, &~= operator.
Additional recent DP QC extensions.
Particle system abstraction. 'r_particlesystem classic' (vs null or script) will revert to truly classic particles.
Nexuiz might run again.
Network address revamp (sv_port and sv_port_ipv6 can both be used to specify an ipv4 address:port and both corrently accept clients). localhost now properly favours ipv4 (use ::1 for ipv6 localhost).
Download system revamp.
Numerous other changes.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3051 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-11-09 22:29:28 +00:00
Spoike
bf8eed727e Reject double dots in macro names (fred.4 is allowed but fred..4 is not). This allows Hexen2 code to compile again.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3050 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-10-30 11:10:58 +00:00
Spoike
819d541362 local float blob = someformula; works now.
added support for -TDP (and #pragma TARGET DP). It is identical to -TFTE except for the instructions used. To be used with Blub's patch when he commits it for DP. It should allow more, this is a first-version.
#if defined(A) && defined(B) will also work as expected. Careful with nesting however, as complex formulas will not. Please use only a single operator.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3047 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-10-16 23:04:36 +00:00
Spoike
0a4c047eec Greater internal control over which variables are saved. Fixed a bug regarding temps and array references, which a couple of the nexuiz people found but didn't report (personally I found it was needed to be able to fire, but whatever).
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3037 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-10-05 02:55:01 +00:00
Spoike
8af647d7d4 Blub\0's latest patch. This one fixes up for arguments.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3027 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-07-27 02:48:59 +00:00
Mark Olsen
c44fb03810 CHARACTURE -> CHARACTER
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2883 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-01-28 13:28:35 +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
Lance
ff6630d28c Patch from BlackHC, Increase maximum macro size and fix endless loop bug caused by empty macros
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2880 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-01-27 01:14:44 +00:00
Lance
8c6dccbb70 BlackHC's patch to add support for \ (backslash) in macros
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2879 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-01-26 18:32:41 +00:00
Spoike
ae0a8461b7 Black's fix for #define macro parameters in fteqcc.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2868 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-01-23 00:37:56 +00:00
Spoike
67f89fa7f0 Expanded the maximum length of frame macro names to 64-1 characters as per LordHavoc's patch. Also added a message when a frame macro name is too long.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2861 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-01-16 03:43:53 +00:00
Molgrum
8f285d7787 Fix an error here that I caused.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2588 fc73d0e0-1445-4013-8a0c-d673dee63da5
2007-08-08 14:50:53 +00:00
Spoike
3671902d06 Added a warning for void() functionname() {} functions.
Fixed the ent.field.field += bug; by swapping the order of statements.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2495 fc73d0e0-1445-4013-8a0c-d673dee63da5
2007-04-15 17:35:58 +00:00
Spoike
24f1ed093a lol! added support for the ?: trinary operator.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2491 fc73d0e0-1445-4013-8a0c-d673dee63da5
2007-04-12 00:02:47 +00:00
Mark Olsen
af6b5bdc77 Support forward declaration of classes (hopefully). Reject declarations of already declared classes.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2396 fc73d0e0-1445-4013-8a0c-d673dee63da5
2006-09-28 02:46:42 +00:00
Spoike
42c43d960f mostly miscilaneous changes (some old stuff that I don't remember), lightsampling changes, qtv changes, avi sound changes
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2379 fc73d0e0-1445-4013-8a0c-d673dee63da5
2006-09-17 00:59:22 +00:00
TimeServ
9a2c2c386f remove octal escape code parsing (broken code)
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2350 fc73d0e0-1445-4013-8a0c-d673dee63da5
2006-07-14 19:54:26 +00:00
TimeServ
913e26b1ae musicvolume uses callback, cosmetic fix to qclib, disabled sw r_drawflat until there's a solution to make it like gl's r_drawflat
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2250 fc73d0e0-1445-4013-8a0c-d673dee63da5
2006-05-07 20:57:30 +00:00
Spoike
45a50b2e8e Two things.
1: make qclib's qcc more consistant, by passing in a '-src src' instead of hardcoding it inside qclib.
2: fixes the 'vote kick'/op_load bug in cutf.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2150 fc73d0e0-1445-4013-8a0c-d673dee63da5
2006-04-02 23:47:27 +00:00
Spoike
b5b74f2529 Rotating BSP fixes, hexen2 fixes, and a few extra bugs...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2134 fc73d0e0-1445-4013-8a0c-d673dee63da5
2006-03-23 19:22:12 +00:00
Spoike
3399f05c3b Randomer found a way to crash fteqcc, but he still needs to fix his code.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2018 fc73d0e0-1445-4013-8a0c-d673dee63da5
2006-02-23 23:03:12 +00:00
Spoike
ac60336e9e Slightly easier to use.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1867 fc73d0e0-1445-4013-8a0c-d673dee63da5
2006-01-14 03:37:22 +00:00
Spoike
503eff6421 Reworked the filesystem. We now support a virtual filesystem. Many places accept stream usage, although many formats do not support this.
I'm not sure if this will break anything. It shouldn't do, but it might.

Not everything is ported over yet. Ideally there would be no more use of fopen anywhere else in the engine, and com_gamedir would be made static to fs.c
There are a couple of other changes too.

http/ftp stuff is currently disabled.


git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1728 fc73d0e0-1445-4013-8a0c-d673dee63da5
2005-12-21 03:07:33 +00:00
Spoike
0371d2cab6 Print out a warning count, added an entnum intrinsic.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1718 fc73d0e0-1445-4013-8a0c-d673dee63da5
2005-12-16 17:15:43 +00:00
Spoike
339d478659 I wonder how much this will break. Ahh well. It works for me, and I need to go to bed.
Well, plugins should be able to read/write files through the engine. audio decoding plugin interface is in (might be changed later).
TCPConnect is in.
msg_filter and scr_centersbar.
some recording fixes too.


git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1634 fc73d0e0-1445-4013-8a0c-d673dee63da5
2005-11-30 01:20:53 +00:00
Spoike
27044fbbcb Fix for erroneous warning messages when definining compiler constants.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1498 fc73d0e0-1445-4013-8a0c-d673dee63da5
2005-10-17 17:17:20 +00:00
Spoike
184ca975fc Removed the prints, added a -Wno-mundane, and readded some ifstring stuff that black took out a while ago. grr. if he carelessly breaks anything like that again.... grr.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1384 fc73d0e0-1445-4013-8a0c-d673dee63da5
2005-09-28 16:57:10 +00:00
Spoike
13cade8fe9 fixed some minor issues
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1337 fc73d0e0-1445-4013-8a0c-d673dee63da5
2005-09-15 05:55:43 +00:00
Spoike
43a1890bcc Fixed an issue with fteqw's pr_fixbrokenqccarrays cvar when used with mutators. Also fixed field remapping with regard to multiple fields with the same offsets.
Played around with classes a bit. Should work a bit better now.
Added an extra compiler flag, to allow for fast-tracking arrays in supported engines. It uses a global to detect it, but we don't yet set that global anywhere in the loader. This will probably have issues in DP.


git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1325 fc73d0e0-1445-4013-8a0c-d673dee63da5
2005-09-14 04:36:07 +00:00
Spoike
347311db8c q3 fixes and misilaneous minor changes.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1298 fc73d0e0-1445-4013-8a0c-d673dee63da5
2005-09-08 22:52:46 +00:00
TimeServ
4ed3f5b009 poundonly -> hashonly
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1270 fc73d0e0-1445-4013-8a0c-d673dee63da5
2005-09-05 23:50:46 +00:00
TimeServ
cf1ec0b425 poundonly flag for preqcc-dependant mods
constant name max increased to 64


git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1267 fc73d0e0-1445-4013-8a0c-d673dee63da5
2005-09-03 21:42:22 +00:00
Spoike
d98ae49588 Added fix for var void() func = blah;
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1257 fc73d0e0-1445-4013-8a0c-d673dee63da5
2005-08-27 05:45:45 +00:00
Spoike
1130dea569 Rewrote a few bsp tracing stuff (primarily for heightmap things).
Q3 client and server support is in.
heightmaps are in.


git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1252 fc73d0e0-1445-4013-8a0c-d673dee63da5
2005-08-26 22:56:51 +00:00
Mark Olsen
c5c278da85 origional -> original.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1173 fc73d0e0-1445-4013-8a0c-d673dee63da5
2005-07-28 15:52:31 +00:00
Spoike
dfd8e1aaed Redesigned sound code for greater modularity.
Added support for dp6/dp7 protocols (ents are still broken).
md3 tags should work properly (still suffer from origin-of-parent interpolation bugs)


git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1089 fc73d0e0-1445-4013-8a0c-d673dee63da5
2005-06-14 04:52:10 +00:00
Spoike
c2930803d4 hopefully, everything will work that little bit better.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1072 fc73d0e0-1445-4013-8a0c-d673dee63da5
2005-06-04 04:20:20 +00:00
Spoike
23fff50934 It's more important that we can compile Quake mods than hexen2 mods. :/ You'll have to add a space for now.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1008 fc73d0e0-1445-4013-8a0c-d673dee63da5
2005-05-08 17:05:07 +00:00
Spoike
8eaac6ced3 Small bug fixes.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@983 fc73d0e0-1445-4013-8a0c-d673dee63da5
2005-05-04 14:45:00 +00:00
Spoike
403e207feb Don't apply \s specials if it's a special char that we're parsing.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@976 fc73d0e0-1445-4013-8a0c-d673dee63da5
2005-04-22 23:55:57 +00:00
Andreas Kirsch
76d99cdbc2 -Fixed a stupid bug in Precompiler which caused pragma keyword to do the
inverse you told it to.


git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@952 fc73d0e0-1445-4013-8a0c-d673dee63da5
2005-04-17 10:05:33 +00:00
Spoike
1c47b03601 Urm. Compiles in FreeBSD with gmake and gcc. So, urm, yeah... Maybe it runs too.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@947 fc73d0e0-1445-4013-8a0c-d673dee63da5
2005-04-17 02:22:51 +00:00
Spoike
f43b221896 Stuff
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@942 fc73d0e0-1445-4013-8a0c-d673dee63da5
2005-04-16 16:21:27 +00:00
Spoike
940f2ede3c tra la la...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@937 fc73d0e0-1445-4013-8a0c-d673dee63da5
2005-04-02 18:39:22 +00:00
Spoike
4c9337fd35 some bug fixes.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@936 fc73d0e0-1445-4013-8a0c-d673dee63da5
2005-04-02 18:00:45 +00:00
Spoike
7e1ab9e29b *** empty log message ***
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@906 fc73d0e0-1445-4013-8a0c-d673dee63da5
2005-03-20 02:57:11 +00:00
Spoike
9ae7e2621d SOFTWARE RENDERING IS BROKEN: DO NOT USE ASM VERSION.
Lots of changes.
CSQC should be functional, but is still tied to debug builds. It WILL have some bugs still, hopefully I'll be able to clean them up better if people test it a bit.
Precompiled headers are working properly now. Compile times are now much quicker in msvc. This takes most of the files this commit.
Restructured how client commands work. They're buffered outside the network message, some multithreaded code is in. It needs a bit of testing before it's active.


git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@885 fc73d0e0-1445-4013-8a0c-d673dee63da5
2005-02-28 07:16:19 +00:00
Spoike
b8acd511de Small fix.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@884 fc73d0e0-1445-4013-8a0c-d673dee63da5
2005-02-18 02:33:01 +00:00