Ragnvald Maartmann-Moe IV
5536883f71
Convert joy_sensitivity to joy_amp and joy_pre_amp, and support in_amp, in_pre_amp.
2001-08-17 08:35:26 +00:00
Ragnvald Maartmann-Moe IV
36395e1681
Minor comment updates, Imt->IMT in a few function names, and accel->amp for input amplification (once known as sensitivity).
2001-08-17 07:26:01 +00:00
Zephaniah E. Hull
80696badc7
kgt->imt, and imt now displays the current IMT.
2001-08-17 07:06:01 +00:00
Bill Currie
d96f0962ab
fix for new input crap
2001-08-17 04:58:10 +00:00
Adam Olsen
f0c200120c
yup, more
2001-08-17 03:43:28 +00:00
Ragnvald Maartmann-Moe IV
13f394b161
Damn -Werrors to hell.
2001-08-17 02:18:06 +00:00
Bill Currie
86be79d1c7
forgot to convert unbind's keyname
2001-08-17 01:55:54 +00:00
Bill Currie
bb2079a6d7
make the conversion case insensitive
2001-08-17 01:54:03 +00:00
Adam Olsen
62813111a0
yet more IE stuff
2001-08-16 23:34:49 +00:00
Bill Currie
f840a44981
gcc 3.0 related fixes
2001-08-16 23:24:39 +00:00
Ragnvald Maartmann-Moe IV
4ca1499c51
Whitespace. Don't you wish it would all just go away?
2001-08-16 23:14:46 +00:00
Bill Currie
373792ff69
`fix' for new input system
...
still broken functionally :/
2001-08-16 22:49:53 +00:00
Adam Olsen
92729ff6b2
More changes to input events
2001-08-16 22:27:22 +00:00
Adam Olsen
916b503f14
Some basic stuff for input events. Not yet used.
2001-08-16 21:08:17 +00:00
Bill Currie
1c12dd804c
ok, old configs /should/ work again, though I'm having problems with F10
...
not quitting (mind you, I'm not connected)
2001-08-16 20:42:57 +00:00
Bill Currie
b0cb351fba
bind and unbind wrappers for in_bind and in_unbind. old configs/mods are
...
still currently broken because I need to translate key names still.
2001-08-16 19:10:35 +00:00
Bill Currie
98b7a9fdd5
part way there :/ I'll leave vid_wgl and vid_mgl alone for now (probably move
...
that code to in_win.c)
2001-08-16 18:25:17 +00:00
Bill Currie
999c6a3b93
mek eet verk!
2001-08-16 17:52:35 +00:00
Bill Currie
12eff5eb65
x11 seems ok (hard to say: nothing's bound:/)
...
rename bind and unbind to in_bind and in_unbind
2001-08-16 16:41:40 +00:00
Zephaniah E. Hull
7cf0fd1b3b
Fix a few bugs.
2001-08-16 11:43:17 +00:00
Zephaniah E. Hull
20adccc9e4
A few things, first is that I removed the (rather broken) serial
...
networking support.
Second, I moves keys.c from qw and nq to libs/video/targets when I did
the next thing.
Existing user configs which do binds, sledge hammer. Sledge hammer,
existing user configs which do binds. *WHACK* *WHACK* *WHACK*
See, much nicer now.
Someone should document it, and fix all targets which don't use SDL for
input. (I honestly don't expect svgalib and the like to ever be fixed.)
2001-08-16 09:19:36 +00:00
Ragnvald Maartmann-Moe IV
0c7f011f4b
whitespace.
2001-08-16 06:58:55 +00:00
Adam Olsen
4d92467e7c
Make SDL support vid_fullscreen toggling too
2001-08-16 03:36:40 +00:00
Bill Currie
9ee3450265
extend the hash api to more easily support general cases
2001-08-16 02:51:53 +00:00
Zephaniah E. Hull
8f7918d4ad
Fix the other keypad keys for SDL input.
...
Ditch sensitivity as a name, we now have in_mouse_accel,
in_mouse_filter, and in_mouse_pre_accel.
2001-08-15 23:04:54 +00:00
Zephaniah E. Hull
8f011f91ec
Length is now a #define, not a bloody function!
2001-08-15 23:01:56 +00:00
Bill Currie
092d3486bd
make cd plugins repect --with-plugin-path
2001-08-15 23:00:08 +00:00
Bill Currie
d48b3ee9d2
s/LIB_DEPS/DEPENDENCIES/
2001-08-15 22:40:56 +00:00
Jeff Teunissen
2d84e89432
whitespace.
2001-08-15 22:38:11 +00:00
Bill Currie
edf4b85cc7
don't need to (and seems that you shouldn't) specify a path for local libs
2001-08-15 22:31:07 +00:00
Bill Currie
a22fd5a172
sdl 1.1.5 fixes
2001-08-15 21:29:18 +00:00
Adam Olsen
e3590642fb
Moved the sound renderer into a seperate lib. You'll need to rerun
...
configure, else it won't build said lib and you'll get errors loading
sound plugins.
2001-08-15 21:03:10 +00:00
Bill Currie
9ecce9becd
remove a magic number
2001-08-15 15:32:24 +00:00
Bill Currie
5dc827ccf8
comment brein damage
2001-08-15 07:50:21 +00:00
Bill Currie
8059265181
pr_strings.c:
...
fix some off-by-one bugs
gl_mesh.c:
make the messing... message developer mode
2001-08-15 06:01:38 +00:00
Ragnvald Maartmann-Moe IV
d96eb31db3
Grr, missed one.
2001-08-15 02:40:43 +00:00
Ragnvald Maartmann-Moe IV
cddaa521cc
Change loadas8bit to snd_loadas8bit.
2001-08-15 00:53:37 +00:00
Bill Currie
b33b9fc58a
remove a redundant call to JOY_Command
2001-08-14 22:10:55 +00:00
Bill Currie
9f2418d873
new cvar: gl_mesh_cache. controls minimum triangle count in a model before
...
the model is cached or cache checks are done for that model. 0 disables
caching entrirely.
2001-08-14 20:02:54 +00:00
Bill Currie
dd16a1c4d5
call the IE init ans shutdown functions. still need to rework the rest of the
...
intput system to use it.
2001-08-14 00:03:03 +00:00
Bill Currie
07a09e0812
statement printing now infers the type of a def from the instruction where
...
possible, thus allowing anonymous defs to print their contents.
2001-08-13 23:49:04 +00:00
Bill Currie
d55199bece
re-arrange the types of store and storep so things make a little more sense
2001-08-13 23:00:17 +00:00
Bill Currie
283b0e1a21
change the types of the statement operands to unsigned short to clean up
...
most of the uses
2001-08-13 21:09:00 +00:00
Bill Currie
45fd3e084d
rhamph's deadbeaf locals patch as-is :)
2001-08-13 20:29:33 +00:00
Bill Currie
31a560cc3f
d'oh
2001-08-13 20:23:41 +00:00
Bill Currie
da7e8568a4
fix a couple of issues with garbage collection
2001-08-13 20:22:36 +00:00
Bill Currie
2a6830d2d8
revised dynamic string handling. allows for `bounds checking'
2001-08-13 20:01:37 +00:00
Ragnvald Maartmann-Moe IV
637bdea058
Fix indent comment dementia.
2001-08-12 17:45:55 +00:00
Bill Currie
bbef4b0b6f
ugh, I hate the need for this, but it's needed. sv_old_entity_free is my
...
compromise :) set it to 1 to allow progs like MegaTF to work (reload crash).
2001-08-12 04:14:25 +00:00
Adam Olsen
6414897dae
got a few new operators for qc :)
...
<< >> % which all act like their C counterparts
+= -= *= /= &= ^= |= <<= >>= %= which just expand into the obvious,
also like the C versions.
2001-08-10 16:17:00 +00:00
Ragnvald Maartmann-Moe IV
ca4d4791c9
Fix a severe braino, and get less excessively parenthetical in one spot.
2001-08-10 03:07:34 +00:00
Bill Currie
753928bd39
/me grumbles about some versions of gcc
2001-08-10 02:50:05 +00:00
Bill Currie
a2ef36e7ba
get the scaling on v_blend right for the change from 0-255 to 0-1
2001-08-10 02:42:34 +00:00
Ragnvald Maartmann-Moe IV
b868a09661
Kill off gl_view.c and sw_view.c. Renderer merge is more or less complete now. Software and gl renderers now calculate color shifts the same way, and sw looks a bit different now. Powerups don't shift enough in sw right now, IMO.
2001-08-10 00:28:57 +00:00
Bill Currie
ac9dace768
add focus loss/gain events and fix a silly bug in IE_Set_Focus
2001-08-09 23:43:13 +00:00
Bill Currie
bc34529a80
code for the input event system
2001-08-09 23:16:54 +00:00
Bill Currie
081d8f3c47
^ and ~ operators for qc (^ from Rhamphoryncus) and clean up the punctuation
...
line in qc-lex.l (why didn't I think to do that in the first place?!?)
2001-08-09 16:34:46 +00:00
Bill Currie
998c3405e1
make the server module's console output line buffered when curses isn't being
...
used
2001-08-09 15:33:44 +00:00
Adam Olsen
4cd037f025
Make the console line-bufered. woot.
2001-08-09 12:19:15 +00:00
Bill Currie
06946d6ab4
memset doesn't use bits 8+
2001-08-08 23:32:09 +00:00
Bill Currie
3047a6a4ba
this seems to fix the flickering dlights problem. surface visibility was
...
calculated too late for light marking.
2001-08-08 22:20:57 +00:00
Bill Currie
cd522a6f97
should now handle any size of model. also modify the mesh file format slightly
...
(version and commands+verts sum for checking) and change the mesh extention to
.qfms
2001-08-08 08:52:55 +00:00
Ragnvald Maartmann-Moe IV
a4ea8d088a
Header sort.
2001-08-07 21:35:54 +00:00
Bill Currie
0cba1b0f62
pre-calculate blended alias frame verteces and don't bother doing any
...
blended calculations for single pose frames/models
2001-08-07 21:18:49 +00:00
Bill Currie
a81828fe38
port over gl's lighting improvements. only gives ~4.6% improvement on my c600
...
but that's better than nothing. (34.41 to 36.00)
2001-08-07 17:29:21 +00:00
Bill Currie
c64c31b2e9
white space
2001-08-07 17:27:28 +00:00
Zephaniah E. Hull
6a59ac6c51
The end of in_dga_mouseaccel, the birth of in_pre_sensitivity.
...
As the ONLY ways that in_dga_mouseaccel differed from sensitivity was
that it worked before m_filter, and that it was DGA only, it had to go.
Now in_pre_sensitivity works with all targets and is applied just before
m_filter.
2001-08-06 05:01:31 +00:00
Bill Currie
9ac148dd69
freaking out by one error :/ I'm suprised previous runs worked at all, but
...
with this correction I am finally seeing the expected speed boost (12% on my
c450 using my null GL lib).
2001-08-06 04:13:41 +00:00
Zephaniah E. Hull
ebb03c1c65
Fixed the sdl and sgl targets to work a bit better.
2001-08-06 00:16:48 +00:00
Bill Currie
ece21540f7
almost working. just need to figure out why vis info isn't doing the right
...
thing (I suspect a bug in my deconpression)
2001-08-05 23:17:55 +00:00
Bill Currie
899d8385a9
fix a subtle bug with the lava hall to e3 in start
2001-08-05 06:10:27 +00:00
Bill Currie
dcc6a76313
make SURF_LIGHTBOTHSIDES work and fix a bug in Mod_PointInLeaf that was
...
preventing grenades from lighting up surfaces when using the vis lighting
2001-08-05 05:59:15 +00:00
Bill Currie
8883bbb369
some lighting fixes. not quite there yet
2001-08-05 05:07:49 +00:00
Bill Currie
647d38fa40
Make R_MarkLights use the vis info to speed things up. Oddly, even though
...
R_MarkLights is now about 3% instead of about 15%, I've lost 8 fps on my
null GL speed test. However, R_AddDynamicLights has jumped up a bit, so I'm
wording if maybe more surfaces are being lit.
2001-08-05 04:01:45 +00:00
Bill Currie
874a2c6716
don't include malloc.h
2001-08-05 03:13:08 +00:00
Adam Olsen
dc98a63098
Add a getfunction, which gives an error if it's not found
2001-08-04 23:44:50 +00:00
Ragnvald Maartmann-Moe IV
85992c58d3
Make more cvar names sane. _snd_mixahead is now snd_mixahead.
2001-08-04 18:18:33 +00:00
Adam Olsen
c218ede288
Add support for checkfunction, which is a builtin that searches for
...
another builtin by name, and returns it.
Soon I'll change all our new builtins to by allocated dynamically, as
well as changing the number checkfunction uses, and happily break
everything that uses them :D
2001-08-04 09:11:50 +00:00
Bill Currie
f9e85cdf8a
split up mleaf_t's minmaxs into two arrays
2001-08-03 23:54:09 +00:00
Adam Olsen
ae133d0a90
Modify progs to add builtins at runtime. It should be trivial to
...
lookup functions by name, and make all our new QC builtins allocate
numbers automatically.
2001-08-03 06:40:28 +00:00
Bill Currie
0a4caac3c6
mingw compile fixes
2001-08-02 23:00:39 +00:00
Bill Currie
b455458629
exit cleanup. Sys_Error and Sys_Quit should be used whenever possible.
2001-08-02 17:16:12 +00:00
Ragnvald Maartmann-Moe IV
2887dd3950
Fix issue with gl_lightmap_components 4 and lightmap updates.
2001-08-02 04:12:26 +00:00
Bill Currie
4c23641759
print line and char number for the error
2001-08-02 02:49:14 +00:00
Ragnvald Maartmann-Moe IV
fd0c5aab36
Garbage comment removal.
2001-08-02 02:28:17 +00:00
Ragnvald Maartmann-Moe IV
6e9b51edfc
(Optionally) Use glTexSubImage2D for lightmap updates. Doesn't give as large a boost as I'd hoped, but will matter far more as other optimizations happen. New cvars gl_lightmap_align does nothing yet, and gl_lightmap_subimage only works in mode 0 and 1. Mode 2 (should be fastest mode on most cards) will eventully get implemented...
2001-08-02 02:18:04 +00:00
Bill Currie
8fa4bff0c4
_ is legal in an unquoted string and make PL_ObjectForKey return the correct
...
value
2001-08-01 16:07:39 +00:00
Bill Currie
2a96ffb19b
fix a couple of warnings
2001-08-01 07:05:28 +00:00
Jeff Teunissen
76385372f3
plist updates; PL_GetPropertyList now calls Sys_Error() on plist errors.
2001-08-01 07:03:46 +00:00
Bill Currie
b6ee3e72da
don't have blank SUBDIRS=, it hurts
2001-08-01 05:07:58 +00:00
Bill Currie
22339b712d
create fs_userdir if it's not "." rather than not FS_USERPATH
2001-07-31 21:52:52 +00:00
Bill Currie
fb26d8b18a
make Info_Set* take flags indicating wether funchars should be stripped or not
2001-07-31 18:27:49 +00:00
Bill Currie
6cb2cb5bdc
start making the rotated bounding box (really dynamic clipping huls) more
...
generice, and also more in line with the rest of quake's clipping system
(ie, support the entity size selected hulls). I'm not /entirly happy with
what's here, but it's a start, and the force fields in customtf work /much/
better :)
2001-07-30 04:33:59 +00:00
Adam Olsen
0219bcb4c8
Make the help command work with commands too. (moved to cmd.c while I
...
was at it)
2001-07-30 01:01:39 +00:00
Bill Currie
75f3f27a22
fix a silly mistake that caused configs not to be written
2001-07-24 03:22:54 +00:00
Bill Currie
c248372e20
Initial integer type support. qfcc /is/ partially broken when it comes to
...
integer constants and float function args/return values.
pr_comp.h:
o add the integer opcodes to pr_opcode_e
pr_edict.c:
o add "quaternion" and "integer" to type_name[]
o support quatnernion and integers types when printing values
o support the integer opcodes when bounds checking
pr_exec.c
o enable the integer opcodes
pr_opcode:
o add the integer opcodes to the opcode table
o logical operators all result in an integer rather than a value
expr.h:
o rename int_val to integer_val
qfcc.h:
o kill another magic number
expr.c:
o move the opcode to string conversion out of type_mismatch and into
get_op_string
o rename int_val to integer_val
o general integer type support.
o generate an internal comipiler error for null opcodes rather than
segging.
pr_imm.c:
o rename int_val to integer_val
o support integer constants, converting to float when needed.
pr_lex.c:
o magic number death and support quaternions and integers in type_size[]
qc-lex.l
o rename int_val to integer_val
o support quaternion and integer type keywords
qc-parse.y:
o rename int_val to integer_val
o use binary_expr instead of new_binary_expr for local initialized
variables
builtins.c:
o rename int_val to integer_val
o fix most (all?) of the INT related FIXMEs
defs.qc:
o use integer instead of float where it makes sense
main.c:
o read_result is now integer rather than float
main.qc:
o float -> integer where appropriate
o new test for int const to float arg
2001-07-23 01:31:22 +00:00
Bill Currie
22c9716b56
rename int_var to integer_var
2001-07-22 20:20:46 +00:00
Bill Currie
bad184b11b
change the results of the test instructions from float to int.
2001-07-22 19:58:17 +00:00
Bill Currie
67d20e0b70
remove all the _IF, _FI, _IV and _VI instructions (none yet enabled) as I don't
...
want to implement implicit integer <-> float `conversions'
2001-07-22 19:27:17 +00:00
Bill Currie
d6f82b6370
make Qwrite's buffer pointer const.
2001-07-22 18:38:59 +00:00