Shpoike
eb02e3b5ed
Fixes https://github.com/Shpoike/Quakespasm/issues/107
2022-07-19 22:36:57 +01:00
Shpoike
7a97911ff4
Merge tag 'quakespasm-0.94.5' into qss
2022-07-15 14:11:03 +01:00
Ozkan Sezer
02b953e993
use C11 _Generic macros for q_min, q_max and CLAMP, if available.
...
.. if not, then use GCC expression macros for them, if available.
2022-06-12 14:32:28 +03:00
Shpoike
26f0bc4682
Merge remote-tracking branch 'sf/master' into qss
...
(cl_startdemos stripped in favour of QSS's existing cl_demoreel cvar. osx project files ignored.)
2022-04-27 22:32:40 +01:00
Shpoike
9d78bc6d54
Fix omission with our single-server-socket stuff.
2022-04-25 23:33:06 +01:00
Andrei Drexler
e6d65c5aa4
Don't autoplay next demo after a timedemo
...
This happened when starting the game
with either -fitz or cl_startdemos 1
and then executing 'timedemo demo1'
while a title demo was still playing
2022-04-02 11:50:10 +03:00
Andrei Drexler
ec49ef2441
Add 'horde' cvar (for 2021 rerelease)
2022-03-01 11:20:10 +03:00
Shpoike
65aa0920fe
Reduce console warning spam.
2021-09-08 04:39:31 +01:00
Shpoike
9119c1d546
Merge branch 'master' of https://git.code.sf.net/p/quakespasm/quakespasm into HEAD
2021-09-03 06:27:09 +01:00
Shpoike
7ba6c4474b
Merge Quakespasm's post-fork changes into QSS (rebased to make them compatible)
2021-08-31 06:43:13 +01:00
Shpoike
085ff518fa
Add rcon command, let csqc handle some relevant console commands.
2021-08-31 04:59:13 +01:00
Shpoike
3fae242613
Small tweaks to make builds more deterministic.
2021-08-31 04:59:13 +01:00
Shpoike
43b704a54c
Make sure startmap_sp alias is created even if menuqc init crashes out. Also fix another missing Cbuf_AddText \n.
2021-08-31 04:59:13 +01:00
Shpoike
35aa21f27c
Switch to showing commit dates for version numbers instead of borrowing the QS version we're forked from.
2021-08-31 04:59:12 +01:00
Shpoike
bc768f33bc
cl_warncmd wasn't getting re-enabled properly.
2021-08-31 04:59:12 +01:00
Shpoike
a5e0cb1a52
Allow csqc to set physics_mode for support for engine movetypes in csqc. Also provide support for .customphysics too.
2021-08-31 04:59:12 +01:00
Shpoike
d4094cbaa0
Add the stuff for listener things.
2021-08-31 04:59:12 +01:00
Shpoike
03ec27b5f0
Allow csqc to implement CSQC_UpdateView for full control over the 3d scene.
2021-08-31 04:59:12 +01:00
Shpoike
929dd85164
Implement csqc validation, we can start on giving more capabilities now that we can distinguish between modified and unmodified csprogs.
2021-08-31 04:59:12 +01:00
Shpoike
bec4f4c0c5
Implement serverinfo and userinfo. Both can be read in ssqc via infokey, and via serverkey/getplayerkeyvalue in csqc. Can be changed/viewed via serverinfo/setinfo/user console commands
2021-08-31 04:59:12 +01:00
Shpoike
f4f0e9516a
Let menuqc detect engine more easily, so it can tailor available cvar values for specific engines. This is probably a bad thing but I don't see any other sane way around it. With it being a cvar, the user can at least override it/lie to fake forked engines.
2021-08-31 04:59:12 +01:00
Shpoike
54538a054a
Menuqc support. Only tested against menusys so far.
2021-08-31 04:59:12 +01:00
Shpoike
1a18a8af47
Add support for string stats (for csqc's use).
2021-08-31 04:59:12 +01:00
Shpoike
539832c356
Fix server-crash bug when kicking people.
2021-08-31 04:59:12 +01:00
Shpoike
ef5d841e80
Fix revision string escapes.
2021-08-31 04:59:12 +01:00
Shpoike
ebd361db63
qss is starting to be its own thing. be sure to provide more correct version info.
2021-08-31 04:59:12 +01:00
Shpoike
9ecc4a30be
Make sure world.message is set in csqc.
2021-08-31 04:59:12 +01:00
Shpoike
68f404a3df
Fix a couple of stupid bugs (reported by c0burn).
2021-08-31 04:59:12 +01:00
Spike
b2198414fe
Fix slowmo issue caused by framerates lower than 72 with network independance.
2021-08-31 04:59:11 +01:00
Spike
f166000a04
Avoid csqc crashes from setorigin etc.
...
Also avoid issues from csqc errors while scissor is enabled.
2021-08-31 04:59:11 +01:00
Spike
d58f3f6cfe
Throttle networking to 72 if host_maxfps is set any higher (or 0).
...
This means that you can just disable vsync and set host_maxfps to 0 for uncapped framerates without any new physics issues.
Note that this commit does not fix bf flashes.
2021-08-31 04:59:11 +01:00
Spike
13736f1fd3
Fix stupid oversight - I forgot to actually set qcvm->GetModel.
2021-08-31 04:59:11 +01:00
Spike
fe4b224c7d
Added support for simple csqc.
...
This is a subset of csqc, with alternative entry points that can be invoked by compat wrappers.
Also added sv_gameplayfix_setmodelrealbox cvar. Default value of 1 matches QuakeSpasm, whereas a value of 0 matches vanilla quake's behaviour.
2021-08-31 04:59:11 +01:00
Spike
d76ca606bf
All changes present in QSS-R7, plus
...
md3 support
quoth/etc bug fix
strzone bug fix
png/jpg replacement wall textures
rewrote mdl rendering to always use arrays, relaxing vertex+tri limits.
removed static ents limit
fixed ambient_level not working at high framerates.
2021-08-31 04:59:11 +01:00
Andrei Drexler
83af8d060f
Add basic localized strings support for 2021 re-release
...
See https://github.com/Novum/vkQuake/pull/345
2021-08-29 17:11:28 +03:00
Andrei Drexler
65c1644849
add a 'campaign' cvar for quake '2021 release' version.
2021-08-22 18:55:02 +03:00
Andrei Drexler
3c8611f604
Reset pointers to sky textures on map unload/game change
...
This fixes a crash when loading a skyless map after one with a sky.
( From: https://github.com/Novum/vkQuake/pull/339 )
2021-08-10 01:00:02 +03:00
Ozkan Sezer
29b903bc84
host.c (Host_WriteConfiguration): don't VID_SyncCvars()
...
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1565 af15c1b1-3010-417e-b628-4374ebc0bcbd
2018-02-21 16:25:04 +00:00
Ozkan Sezer
1cd6ed55ed
don't write the config file if we are Sys_Error()ing
...
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1564 af15c1b1-3010-417e-b628-4374ebc0bcbd
2018-02-21 07:33:07 +00:00
Ozkan Sezer
f8247e30bd
host.c (Host_WriteConfiguration): change bitwise and into logical and.
...
seems like a typo in original quake source.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1561 af15c1b1-3010-417e-b628-4374ebc0bcbd
2018-02-16 06:03:25 +00:00
Ozkan Sezer
e7648a42c9
minor cleanup to Max_Fps_f() cvar callback.
...
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1505 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-09-17 11:02:46 +00:00
Eric Wasylishen
e71737d35c
host_maxfps: tweak warning message; > character looks weird in quake
...
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1501 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-09-13 00:04:31 +00:00
Eric Wasylishen
45f1df6112
host_maxfps: warn the player if > 72 that physics will be broken
...
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1500 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-09-12 23:27:26 +00:00
Eric Wasylishen
e45de4c68a
Add QUAKESPASM_VER_SUFFIX macro for marking betas/dev builds.
...
Refactor printing of QUAKESPASM_VERSION/QUAKESPASM_VER_PATCH to use a new
QUAKESPASM_VER_STRING macro.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1408 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-05-29 04:17:49 +00:00
Eric Wasylishen
4fe5f6956f
Adjust "exceeds standard limit of" debug warnings to include the actual QS limit.
...
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1386 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-03-30 06:26:16 +00:00
Ozkan Sezer
9c7eb2c6ff
Host_Loadgame_f(): no need for entnum >= sv.max_edicts check
...
because EDICT_NUM() does it already. also move ent->free=false
statement to partial zero-fill case.
Host_ClearMemory(): remove check before free(sv.edicts)
SV_Init(): initialize sv.edicts to NULL (just paranoia)
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1319 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-06-25 05:21:22 +00:00
Ozkan Sezer
f07ac29c0b
fix C++11 -Wliteral-suffix warnings. fix -Wnarrowing errors/warnings.
...
fix the detestable in_sdl.c/SDL2 int-to-enum conversion failure errors
from g++.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1302 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-04-29 20:00:50 +00:00
Eric Wasylishen
ae8a4f82da
SV_SpawnServer: use malloc for sv.edicts, and only zero it as needed
...
Previously we were Hunk_Alloc'ing space for 8192 edicts (by default) which zeros all of that memory, this way we only use as much RAM as needed since the unuesd pages aren't dirtied
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1286 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-01-29 01:05:11 +00:00
Eric Wasylishen
65727a9810
max_edicts: raise to 8192 (from 2048) and make non-archived, to reduce the need for players to mess with it to get maps/mods to run.
...
Some measurements on the size of the sv.edicts hunk allocation, with this change, on various mods (it depends on the number of QC entity fields):
id1 7MB, quoth 11 MB, arcadim 21 MB, rrp 9MB, ne_ruins 16MB.
Since this is a Hunk_Alloc, the whole 10-20MB is cleared to zero which will allocate that much physical ram.
We could probably change it to a malloc later, and not clear the memory, so physical ram is only allocated when the memory is cleared in ED_Alloc.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1278 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-01-10 23:03:06 +00:00
Eric Wasylishen
0ba423061b
Add filename tab-completion for "playdemo" and "record" commands
...
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1219 af15c1b1-3010-417e-b628-4374ebc0bcbd
2015-05-30 02:28:58 +00:00