Commit graph

2882 commits

Author SHA1 Message Date
Shpoike
22533dfab8 Fix up some minor portability issues. 2023-04-17 03:58:20 +01:00
Shpoike
91e0ec1f2b Show afk status on the scoreboard. Add some colours to the scoreboard to grade people's pings. 2023-04-17 03:58:20 +01:00
Shpoike
0d2a0c615a Eukara expressed an interest in loading fonts without any antialiasing. 2023-04-17 03:58:20 +01:00
Shpoike
73f9cddcdf Quick and dirty fix for broken 6dof/spiderpig cheats. 2023-04-17 03:58:20 +01:00
Shpoike
990066dea1 Add pm_bunnyfriction cvar to better mimic nq player physics with predictable QW physics. 2023-04-17 03:58:20 +01:00
Shpoike
45df6806c2 Load bumpmaps even if its just specular effects that are going to benefit. 2023-04-17 03:58:20 +01:00
Shpoike
354fbb2a85 Make blob shadows respond to gamecode a bit more naturally. 2023-04-17 03:58:20 +01:00
Shpoike
f54b9b8459 Fix up the web build's text+touch input a little. Make its webrtc cvars more consistent with desktop builds. 2023-04-17 03:58:20 +01:00
Shpoike
2d9ec83c20 Fix some build targets, fix csqc's setpause builtin. 2023-04-17 03:58:20 +01:00
Shpoike
d9a334c694 Add halfrate shading to the vulkan renderer, where supported by headers+drivers. Fonts are exempt. 2023-04-17 03:58:20 +01:00
Shpoike
6a419833a8 Fix excessive reported gpu usage. 2023-04-17 03:58:20 +01:00
Shpoike
b095266070 Fix cmake-on-mac build errors. 2023-04-17 03:58:20 +01:00
Shpoike
07032bc216 Fix multiplayer menu breaking pak file names. 2023-04-17 03:58:20 +01:00
Shpoike
89ef66642e Fix mid-room skies in q2. 2023-04-17 03:58:19 +01:00
Leo L. Schwab
1fda671b9a Joystick support fixes.
I did this because I wanted to fly around maps using a Spaceball
4000FLX, or any other 6DOF controller.  These fixes help it work.

Various fixes to joystick support:
  - joyaxiscallback() used strtol() to check to see if the supplied
    string was an integer, then didn't assign the parsed integer to
    the cvar.
  - Wrong multiplier for left/turnleft values.
  - Delete `axismap[]` from J_JoystickAxis().  It was causing problems,
    and smells like it was trying to do what the cvars
    joyadvaxis[xyzruv] are doing now.
  - Fix compiler error by adding case statements for:
	SDL_SENSOR_ACCEL_L
	SDL_SENSOR_ACCEL_R
	SDL_SENSOR_GYRO_L
	SDL_SENSOR_GYRO_R

New cvar: "joyonly".

"Joystick" axes are typically return-to-center affairs; their deflection
values are therefore reported as -MAX - MAX, with zero in the center.
"Game controllers" are similar, but also often have analog left and
right "triggers" which are reported as 0 - MAX, with zero at one end
(fully released to fully depressed).

Unfortunately, SDL will try its darndest to make a joystick look like a
"game controller."  It does this by reinterpreting certain of the axes
to report the range 0 - MAX, as if they were triggers.  This is not a
thing to do with 6DOF controllers, where all axes are return-to-center.
While it may be remotely possible to put together an SDL2 controller
mapping that reports -MAX - MAX on all axes, for me it was simpler to
hack on FTEQW.

Coupled with that is FTEQW's giving preference to "game controllers,"
i.e. if SDL_IsGameController() returns true, FTEQW will treat it as one.

"joyonly" is a boolean cvar.  If true, FTE will ignore "game
controllers" and treat everything as a joystick.  The default is false.
"joyonly" must be set at startup to be effective, when the controllers
are being enumerated by SDL.
2023-01-19 23:17:25 -08:00
Spoike
48576a59dc A bit of a code cleanup, change a couple of prints.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6343 fc73d0e0-1445-4013-8a0c-d673dee63da5
2023-01-09 05:15:31 +00:00
Spoike
62622491f0 Make sure bad q2 layout strings won't go out of bounds. Add dev2 prints for bad layout string commands (there's probably lots of bad q2 mods out there, hence not dev1/unconditional).
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6336 fc73d0e0-1445-4013-8a0c-d673dee63da5
2023-01-09 05:14:44 +00:00
Spoike
fb4531ea6c Attempt to improve touchscreen behaviours with onscreen buttons that appear upon touch events (and fade out). Long presses should close menus etc. Likely needs some more work.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6335 fc73d0e0-1445-4013-8a0c-d673dee63da5
2023-01-09 05:14:38 +00:00
Spoike
bc842ee28b Make sure freecs etc do heartbeats despite not giving a poop about nq/dp.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6333 fc73d0e0-1445-4013-8a0c-d673dee63da5
2023-01-09 05:14:15 +00:00
Spoike
c1bc6bbe23 Start game menu's map option is now a combo instead of a text field, to save on typing.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6331 fc73d0e0-1445-4013-8a0c-d673dee63da5
2023-01-09 05:14:01 +00:00
Spoike
1ae6b239e8 If multiple updates come from inside the same .zip url, extract each one of them from a single download instead of downloading the exact same zip multiple times. This is mostly for DP mods that expect to need to download everything upfront.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6330 fc73d0e0-1445-4013-8a0c-d673dee63da5
2023-01-09 05:13:55 +00:00
Spoike
4dc4dd33e7 Our Q2 code is a little fragile. Give it its assumptions to avoid hideousness.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6329 fc73d0e0-1445-4013-8a0c-d673dee63da5
2023-01-09 05:13:50 +00:00
Spoike
1765f15059 Alt+tab was randomly registering as tab presses - explicitly ignore tab at the start of the input line so we don't end up with walls of console completion suggestions.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6328 fc73d0e0-1445-4013-8a0c-d673dee63da5
2023-01-09 05:13:45 +00:00
Spoike
6700dfd289 Fix _bump texture loading.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6321 fc73d0e0-1445-4013-8a0c-d673dee63da5
2023-01-09 05:13:05 +00:00
Spoike
407c4eca8b Rework gamepad menu bindings, should be more intuitive now.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6320 fc73d0e0-1445-4013-8a0c-d673dee63da5
2023-01-09 05:12:59 +00:00
Spoike
503162aefe Add file uri support, requires a '-allowfileurl' commandline argument.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6318 fc73d0e0-1445-4013-8a0c-d673dee63da5
2023-01-09 05:12:39 +00:00
Spoike
cdcb3c3950 Add rogue's teamplay modes to the menu.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6317 fc73d0e0-1445-4013-8a0c-d673dee63da5
2023-01-09 05:12:31 +00:00
Spoike
2383c618ee Fix up some SDL issues.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6315 fc73d0e0-1445-4013-8a0c-d673dee63da5
2023-01-09 05:12:12 +00:00
Spoike
6307ae1303 add base64encode and base64decode builtins. Allow the second arg of registercommand builtin to specify a description for that command.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6314 fc73d0e0-1445-4013-8a0c-d673dee63da5
2023-01-09 05:12:04 +00:00
Spoike
c5d19c46ba Fix partial fakeshaft not always appearing.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6313 fc73d0e0-1445-4013-8a0c-d673dee63da5
2023-01-09 05:11:57 +00:00
Spoike
aa789965bf Fix cl_maxfps's periodic fast-frame bug. Reduce latency in singleplayer.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6312 fc73d0e0-1445-4013-8a0c-d673dee63da5
2023-01-09 05:11:50 +00:00
Spoike
df6b651eeb Better compat with QE. EX_PROMPT now supported serverside (emulated for non-qe clients). Per-client localisation now works. Scoreboards are now a little nicer when running mods with well-defined teams (eg NQ ssqc).
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6309 fc73d0e0-1445-4013-8a0c-d673dee63da5
2023-01-09 05:11:34 +00:00
Spoike
3a6f22d05c Make sure runstandardplayerphysics builtin properly initialises everything it needs.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6308 fc73d0e0-1445-4013-8a0c-d673dee63da5
2023-01-09 05:11:23 +00:00
Spoike
16c8e521ef Protocol compat with the Rerelease Update 4, at the expense of earlier versions.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6306 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-08-19 13:30:16 +00:00
Spoike
279474a019 Fix a skins issue on nq servers after changing maps.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6305 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-08-19 13:29:55 +00:00
Spoike
a0f2ffda90 Try to fix up some ICE quirks.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6302 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-08-07 23:49:33 +00:00
Spoike
5182692590 Slightly smoother framerates on shib8.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6299 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-07-28 02:17:58 +00:00
Spoike
6941032cc7 Add r_showbatches command to debug builds. Shows a list of all draw calls for the next video frame.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6298 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-07-28 02:17:52 +00:00
Spoike
4fc23b4f4d Make the frametime graph a bit more pretty.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6297 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-07-28 02:17:45 +00:00
Spoike
9abf7b74b3 Try to clean up our pext handshake code a smidge.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6295 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-07-28 02:17:33 +00:00
Spoike
62e8bb5774 Prevent FTE servers from getting mistreated as NQ servers, this should restore the 'observe' option.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6294 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-07-28 02:17:27 +00:00
Spoike
de644a5384 Add fence stuff to q2bsp, for Kingpin support.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6291 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-07-28 02:17:05 +00:00
Spoike
4fce9e090d Fix up vrinputs frame times.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6289 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-07-28 02:16:54 +00:00
Spoike
3f85c9793c Add TURN support to our ICE implementation, along with a few fixups. Must be configured with 'net_ice_servers turn:foo?user=foo?auth=bar'. space-separated list, can also accept additional 'stun:' servers.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6285 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-07-28 02:16:31 +00:00
Spoike
c4b043d39f Fix some missing ambient sounds on large bloated maps/mods (this really should have been fixed years ago).
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6281 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-06-29 07:20:24 +00:00
Spoike
304079e1dc Add a variation of the addentity builtin, for explicit light levels.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6278 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-06-26 08:08:50 +00:00
Spoike
81ab9277ac Make the various build config defines a little more robust.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6277 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-06-26 08:08:43 +00:00
Spoike
d41ca13562 Fix fixes.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6273 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-06-20 04:54:54 +00:00
Spoike
758f47ffc3 Fix ezhud images not loading.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6271 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-06-19 15:18:23 +00:00
Spoike
06038d496e First weapon wheel implementation.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6269 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-06-19 15:18:08 +00:00
Spoike
1068a62d75 Add vid_baseheight and vid_minsize cvars for TCs unhappy with vid_conheight to put in their default.cfg, instead of them feeling a need to force user settings.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6266 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-06-19 15:17:48 +00:00
Spoike
c39c4d0255 Make sure getmodelindex/modelnameforindex and sound equivelents are available in both ssqc and csqc.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6265 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-06-19 15:17:41 +00:00
Spoike
ce01181d88 wither reported that findkeysforcommandex wasn't present in menuqc. Fix that.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6264 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-06-19 15:17:35 +00:00
Spoike
89c37774ae basementApe reported segfaults in the audio init logic.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6263 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-06-19 15:17:29 +00:00
Eukara
f1c714a187 Stub INS_KeyToLocalName for SDL so we can build SDL2 again and ship a build out today.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6262 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-06-10 17:52:56 +00:00
Eukara
fab14e046f Fix a typo and therefore make a crash with QC server lists disappear
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6261 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-06-10 17:10:51 +00:00
Spoike
6bd79c8ff8 .ktx 2darray textures were being written incorrectly.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6260 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-06-06 02:20:55 +00:00
Spoike
2b440a186d Simplify QW network deltas. By just trusting the server instead of second-guessing it, we should get something more robust (at least for demo playback).
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6258 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-06-02 06:08:21 +00:00
Spoike
a84fa2e534 Fix warning message.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6254 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-05-28 18:00:22 +00:00
Spoike
12cdfc197f Make sure that either f_playmapend or f_specmapend work when f_mapend does, for people that want more specific behaviours. spec is ALWAYS used for demo playback too.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6251 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-05-28 17:59:51 +00:00
Spoike
74e9015f9d Modelviewer should cope with more bones now.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6249 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-05-28 17:59:39 +00:00
Spoike
0f8d07b8e8 Add lerptime protocol extension. Still WIP, don't record to demos.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6247 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-05-28 17:59:26 +00:00
Spoike
255ce795a0 Fix up some KTX issues (mostly bot related).
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6246 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-05-28 17:59:17 +00:00
Spoike
f996ff5fc8 Fix up some .wal palette issues when running q2 bsps in q1 gamedirs.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6245 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-05-28 17:59:08 +00:00
Spoike
08aedd4b5b Mouse4 now acts as a back button in our menus. Binds menu should now report system key names instead of guessed names (better non-qwerty support).
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6244 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-05-28 17:59:01 +00:00
Spoike
c45b0e5cf8 Fix up statically linking the ODE plugin into the engine (eukara wanted me to fix this up).
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6243 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-05-28 17:58:53 +00:00
Spoike
3ea2f04d90 Allow for better encoding of guarenteed-unsigned values.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6241 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-05-28 17:58:39 +00:00
Spoike
e0f3c35414 Improve robustness with weird build configs.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6239 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-05-28 17:58:27 +00:00
Eukara
7fea1f33ee OpenAL: Crush that annoying bug where volume changes creates clicks in the sound.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6236 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-05-05 23:28:33 +00:00
Eukara
bc8895c5fa Fix compiles without RTLIGHT. Update config_wastes.h
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6235 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-04-23 20:10:18 +00:00
Spoike
27c32fc1a0 Add a new net_ice_usewebrtc cvar for people that want to skip the extra overheads/bugs of webrtc.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6230 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-04-16 20:28:18 +00:00
Spoike
2ac548e17f Make use of fitz's interpolation hints when they're provided.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6229 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-04-16 20:28:11 +00:00
Eukara
6515c0e5cd Fix screenshot_cubemap command.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6222 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-03-28 10:31:07 +00:00
Spoike
6f5180a915 Fix q3plug-related crashes.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6221 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-03-08 07:21:44 +00:00
Spoike
29f9d620f9 Fix q3plug-related crashes.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6220 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-03-08 06:20:33 +00:00
Spoike
6dbfc0ebbe Fix msg_readcount issues.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6218 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-03-08 05:34:26 +00:00
Spoike
0d9a269ab4 Remove last plugin stubs.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6217 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-03-08 05:34:13 +00:00
Spoike
ba9a852d9d Move the q3 files into the plugins subdir.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6216 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-03-08 05:33:52 +00:00
Spoike
e800079baf minor cleanup.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6213 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-03-08 05:32:25 +00:00
Spoike
73c05fe3b2 Fix up some stubs in the q3 plugin.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6212 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-03-08 05:32:15 +00:00
Spoike
cb64ea30f9 Move playerview weaponmodel matrix into r_refdef instead, to fix viewmodel positions in q3.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6211 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-03-08 05:32:03 +00:00
Spoike
11d385ed77 Implement CG_R_LOADWORLD properly.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6210 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-03-08 05:31:52 +00:00
Spoike
6ceb76233c Move Quake3 support to a plugin. There's still a number of stubs+bugs.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6209 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-03-08 05:31:34 +00:00
Eukara
e55f21585e Fix graphical glitch on the sbar when cl_sbar is 0 and viewsize < 100.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6207 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-03-07 04:18:00 +00:00
Spoike
3e71c9863c Political statement.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6202 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-03-01 02:52:16 +00:00
Spoike
1fd65cc80d Use our json parser to make sense of emoji names instead of our previously hacked up mess.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6201 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-03-01 02:52:09 +00:00
Spoike
1af4e05ab6 Fix qw:// url stuff a little.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6200 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-03-01 02:52:02 +00:00
Spoike
c2633078ff Try to fix up package downloads, and dp-compat downloads too.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6199 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-03-01 02:51:55 +00:00
Spoike
01c498d136 Remove Q2 hacks from the usercmd_t type. Just translate them without trying to be clever.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6194 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-02-19 20:49:42 +00:00
Spoike
4e1b665277 Fix https://sourceforge.net/p/fteqw/tickets/115/
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6191 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-02-19 20:49:17 +00:00
Spoike
bd64ae2d17 Disable r_dynamic when r_shadow_realtime_dlight is active (both at the same time is a waste of processing time). Also treat the rerelease's world lights as dlights instead of just world lights, which should give behaviour closer to what's expected.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6190 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-02-19 20:48:59 +00:00
Spoike
dd03b69609 Move our gltf's json parser into the engine-proper, implement QC builtins to make json parsing available to qc. API defined by Joshua Ashton.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6188 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-02-19 20:48:40 +00:00
Spoike
242dea4676 Try and be a bit more portable; allow .map support in browser ports.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6186 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-02-07 14:34:36 +00:00
Spoike
75f11ba33b Fix CSQC_UpdateViewLoading.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6185 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-02-07 14:34:30 +00:00
Spoike
73f6df016c A few minor tweaks.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6183 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-02-07 14:34:11 +00:00
Spoike
40232ab5ca Lets just default this cvar to 1, in the hopes that it'll force windows' timers to not be quite so lame.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6180 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-02-07 14:33:49 +00:00
Spoike
42430d4712 Fix some misc memory leaks and a few other minor issues.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6176 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-01-30 05:55:01 +00:00
Spoike
5fb58a8990 Trim some redundant stuff from ftemaster.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6174 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-01-28 10:48:21 +00:00
Spoike
0f5c092a96 Fix +strafe with mouse movements, for Aberrant.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6173 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-01-28 10:48:14 +00:00
Spoike
86d2f0e0d4 Provide support for webrtc's sctp-over-dtls stuff, providing browser+native connectivity (via broker).
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6171 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-01-28 10:48:01 +00:00
Spoike
43565e4363 Increase QEx strings limit, for mods that use fancy writebyte hacks.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6170 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-01-28 10:47:52 +00:00
Spoike
578d12f254 Fix some updater issues.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6168 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-01-19 08:27:42 +00:00
Spoike
2ed3378a75 Misc compile fixes.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6166 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-01-17 09:12:56 +00:00
Spoike
6c112c3368 Attempt to support more of QuakeEx's network protocol changes, including a 'connectqe host' command to connect to QEx servers with the appropriate handshakes (requires manual PSK setup).
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6162 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-01-16 18:41:44 +00:00
Spoike
2e627df7b5 Add support for PSK for DTLS via gnutls and openssl. User needs to supply the keys.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6161 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-01-16 18:41:34 +00:00
Spoike
b8e628cc39 Minor code cleanups.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6159 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-01-08 10:01:29 +00:00
Spoike
bf44769b4d Add support for 'connect dtls://foo' without needing extra upgrading stuff first. This change allows for QEx to establish a dtls connection to our server, though the reverse still doesn't work.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6156 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-01-08 10:01:05 +00:00
Spoike
2e108f2a99 Misc minor fixups.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6154 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-01-08 10:00:49 +00:00
Spoike
495abcbe7b Fix up mapcluster functionality for windows.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6150 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-01-08 09:59:46 +00:00
Eukara
13b2a7935c Add support for HLMDL actions, and some builtins to interact with it.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6148 fc73d0e0-1445-4013-8a0c-d673dee63da5
2022-01-07 03:18:00 +00:00
Spoike
cfb1814be3 Migrate oldviewcluster stuff into the individual bmodel state. This allows us to clean things up a little.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6144 fc73d0e0-1445-4013-8a0c-d673dee63da5
2021-12-20 10:07:46 +00:00
Spoike
6c3754cf50 Strip useless symbol.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6139 fc73d0e0-1445-4013-8a0c-d673dee63da5
2021-12-20 10:07:07 +00:00
Spoike
4a6ba7146b Basic menu hack for vr.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6138 fc73d0e0-1445-4013-8a0c-d673dee63da5
2021-12-20 10:06:43 +00:00
Spoike
4f2994ab12 Prevent the setmaster console command from forgetting non-legacy masters...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6137 fc73d0e0-1445-4013-8a0c-d673dee63da5
2021-12-20 10:06:32 +00:00
Spoike
1f01465cf3 Rework openxr's actionset stuff.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6136 fc73d0e0-1445-4013-8a0c-d673dee63da5
2021-12-20 10:06:25 +00:00
Spoike
2808962a49 Gather q1bsp rendering logic into one place. Try to clean up r_framecount and r_visframecount somewhat in an attempt to fix openxr issues.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6134 fc73d0e0-1445-4013-8a0c-d673dee63da5
2021-12-20 10:06:09 +00:00
Spoike
df701ecfac Fix up some openxr issues (especially with vulkan).
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6133 fc73d0e0-1445-4013-8a0c-d673dee63da5
2021-12-20 10:05:55 +00:00
Spoike
9ede88f8be Tweak scenecache some more for more smoothness.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6128 fc73d0e0-1445-4013-8a0c-d673dee63da5
2021-11-14 03:15:17 +00:00
Spoike
b97496df20 Make r_scenecache a little less stuttery.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6127 fc73d0e0-1445-4013-8a0c-d673dee63da5
2021-11-14 00:35:28 +00:00
Spoike
5ace5c8d3f Improve compat with nq servers.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6126 fc73d0e0-1445-4013-8a0c-d673dee63da5
2021-11-14 00:35:23 +00:00
Spoike
566bba6af1 SDL builds are unable to guarentee stdin works, so don't depend on it (eg: when setrenderer fails completely due to no display server).
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6125 fc73d0e0-1445-4013-8a0c-d673dee63da5
2021-11-14 00:35:18 +00:00
Spoike
d332496ed4 Fix up some vulkan+openxr issues.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6123 fc73d0e0-1445-4013-8a0c-d673dee63da5
2021-11-14 00:35:08 +00:00
Spoike
99f20e7b80 Remove MAX_DYNAMIC_CHANNELS limit. We'll just spend even more time mixing audio instead of suffering random cutoffs. Yay.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6122 fc73d0e0-1445-4013-8a0c-d673dee63da5
2021-11-14 00:34:59 +00:00
Spoike
39add9730f Make plugins more robust with regard to different build configs.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6119 fc73d0e0-1445-4013-8a0c-d673dee63da5
2021-11-10 01:35:55 +00:00
Spoike
6a2c21f14d Fix up d3d builds a smidge.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6108 fc73d0e0-1445-4013-8a0c-d673dee63da5
2021-11-04 22:33:00 +00:00
Spoike
803d3801c9 Fix some mingw compile-time issues.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6107 fc73d0e0-1445-4013-8a0c-d673dee63da5
2021-11-04 17:54:24 +00:00
Spoike
8212ead238 More toys for map-loading plugins.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6106 fc73d0e0-1445-4013-8a0c-d673dee63da5
2021-11-03 20:31:52 +00:00
Spoike
a9a4e3c358 Allow plugins to provide material interpreters.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6105 fc73d0e0-1445-4013-8a0c-d673dee63da5
2021-11-03 20:31:41 +00:00
Spoike
022e42c6c7 Move model loaders over to variable-length file-magics.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6104 fc73d0e0-1445-4013-8a0c-d673dee63da5
2021-11-03 20:31:32 +00:00
Spoike
ab2dc14f49 Add support for image-loading plugins.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6103 fc73d0e0-1445-4013-8a0c-d673dee63da5
2021-11-03 20:31:21 +00:00
Spoike
57746acd5a Strip built-in VTF support.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6102 fc73d0e0-1445-4013-8a0c-d673dee63da5
2021-11-03 20:31:15 +00:00
Spoike
a096ec87d3 Scenecache wasn't bothering with areaportals.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6099 fc73d0e0-1445-4013-8a0c-d673dee63da5
2021-11-03 20:30:54 +00:00
Spoike
2b81527a69 Make our q2/q3 bsp code more modular, with q2/q3 gamecode treating it more generically.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6097 fc73d0e0-1445-4013-8a0c-d673dee63da5
2021-11-03 20:30:40 +00:00
Spoike
3afbfc8547 Attempt to download missing files from the uri named by the local sv_dlURL setting, if specified, for easier demo playback.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6095 fc73d0e0-1445-4013-8a0c-d673dee63da5
2021-10-31 18:20:45 +00:00
Spoike
9051c590e2 Make r_torch work regardless of whether the player model is visible or not.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6093 fc73d0e0-1445-4013-8a0c-d673dee63da5
2021-10-31 18:20:33 +00:00
Spoike
bc5d8c6815 Hide some cvars that don't have well-defined defaults when using 'cvarlist -c'.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6092 fc73d0e0-1445-4013-8a0c-d673dee63da5
2021-10-31 18:20:28 +00:00
Spoike
eb157e09b8 Spawn decals on csqc's bmodels, not just engine-deltaed ents.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6089 fc73d0e0-1445-4013-8a0c-d673dee63da5
2021-10-23 10:05:26 +00:00
Spoike
442d23f226 Rework our web html for drag+drop filesystem seeding to make it easier to run copyrighted stuff.
Add zlib support to the web build, to make running the rerelease's content feasable with a hack to get png files sized right.
Enable botlib in web builds, now that q3's data can be used.
Fix up our webrtc support a little.
Enable the server browser in web builds (rtc hosts only, for now).
A couple of related minor tweaks.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6088 fc73d0e0-1445-4013-8a0c-d673dee63da5
2021-10-22 22:27:58 +00:00
Spoike
f76fd58f3f Strip WebVR support. Any new stuff should be using WebXR instead.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6087 fc73d0e0-1445-4013-8a0c-d673dee63da5
2021-10-22 22:27:28 +00:00
Spoike
15bd67c8f0 Add support for AL_SOFT_loop_points. Implement quake-mixer-over-openal as a workaround for weird performance issues in Chromium.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6086 fc73d0e0-1445-4013-8a0c-d673dee63da5
2021-10-22 22:27:21 +00:00
Spoike
a5312d7838 Add s_al_hrtf for people that want in-game control over that (changes need snd_restart). Try to fix up browser audio not being spatialised properly.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6082 fc73d0e0-1445-4013-8a0c-d673dee63da5
2021-10-12 04:42:07 +00:00
Spoike
947d41ea95 Make use of webgl2 where available.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6081 fc73d0e0-1445-4013-8a0c-d673dee63da5
2021-10-12 04:42:01 +00:00
Spoike
06a8133048 Add an extra workaround as part of dpcompat_makeshitup 2 (to handle shaders that are not terminated properly).
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6079 fc73d0e0-1445-4013-8a0c-d673dee63da5
2021-10-12 04:41:41 +00:00
Spoike
00cd084bb8 Fix a few annoying bugs.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6078 fc73d0e0-1445-4013-8a0c-d673dee63da5
2021-10-09 07:58:27 +00:00
Spoike
7404d81d0b Add some sha2 stuff to qtv connections. Fix up 'qtvplay' command to support passwords.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6073 fc73d0e0-1445-4013-8a0c-d673dee63da5
2021-10-05 05:06:04 +00:00
Spoike
0218f2dcf2 Try to update our javascript.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6071 fc73d0e0-1445-4013-8a0c-d673dee63da5
2021-10-05 05:05:50 +00:00
Spoike
8267939edb Misc tweaks, including a corrupt-bsp crash fix.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6070 fc73d0e0-1445-4013-8a0c-d673dee63da5
2021-10-05 05:05:43 +00:00
Spoike
8ec36b7ab4 Rework our fallback defaults to override id1's too, so newbies don't need to rebind everything before playing.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6069 fc73d0e0-1445-4013-8a0c-d673dee63da5
2021-10-05 05:05:34 +00:00
Spoike
ca999f6eb4 Embed some basic metadata into plugins. Still needs signatures.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6067 fc73d0e0-1445-4013-8a0c-d673dee63da5
2021-10-05 05:05:22 +00:00
Spoike
b91273a930 Fix up CEF plugin a little.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6066 fc73d0e0-1445-4013-8a0c-d673dee63da5
2021-10-05 05:05:15 +00:00