Alibek Omarov
ec2951cf45
engine: add size argument to COM_Default/ReplaceExtension calls
2 years ago
Alibek Omarov
8c7db8499f
engine: add size argument to COM_FileBase calls
2 years ago
Alibek Omarov
8f207362a5
public: remove Q_sprintf, and patch all code that used it to use Q_snprintf instead
2 years ago
Alibek Omarov
b16fa8eddc
public: remove Q_strcat and Q_strcpy, and patch the code that uses it
2 years ago
Alibek Omarov
096ee34f67
public: remove Q_vsprintf, replace by proper Q_vsnprintf proper calls
...
Fixes weird off by one error caused by glibc updates? I didn't tracked
what causes it exactly but replacing it seems to work. Anyway, we should
remove all 99999 hacks in libpublic.
2 years ago
Alibek Omarov
c24a1fafc5
engine: add missing HPAK_CheckSize/Integrity calls
2 years ago
Alibek Omarov
d8355a651f
engine: add missing Sequence_Init and Sequence_OnLevelLoad calls
2 years ago
Alibek Omarov
597027277c
engine: server: remove some totally unused functions
2 years ago
Alibek Omarov
01e0542223
engine: server: move master announce logic to masterlist, keep unique heartbeat challenge and heartbeat timer for each master
2 years ago
Alibek Omarov
892e5c59eb
engine: server: convert public_server cvar to static allocation
2 years ago
SNMetamorph
eac8c116a8
engine: server: sv_init: compiling error fix & minor cleanup
2 years ago
SNMetamorph
a03019f5e4
engine: server: sv_init: enabled handling sound resources specifically
...
This is for timely precaching on client side. Otherwise, files are being downloaded to client, but not precached immediatly after it, and therefore causing a late precaching of sound (obvious, this is bad)
2 years ago
Alibek Omarov
a81fa84321
engine: server: replace some obvious va uses to temp buffer and Q_snprintf
2 years ago
Alibek Omarov
5ef97ae99e
engine: convert Info_SetValueForKey with va to Info_SetValueForKeyf
2 years ago
Alibek Omarov
d667845777
engine: convert Cbuf_AddText with va to Cbuf_AddTextf
2 years ago
Alibek Omarov
6b62f9c1b9
engine: convert Cvar_Get with va to Cvar_Getf
2 years ago
Alibek Omarov
ba1cf25314
engine: convert MSG_WriteString with va to MSG_WriteStringf
2 years ago
fgsfds
97a7de3377
engine: server: remove duplicate registration for sv_autosave
2 years ago
Alibek Omarov
48ca8f9a70
engine: server: fix call to non existent function, in this tree it's called IsMasterAdr
2 years ago
Alibek Omarov
474833a3bf
engine: server: send heartbeats to master server if sv_nat is active, despite public cvar value
2 years ago
Alibek Omarov
602f23fbdf
engine: server: check if we got info request from master server, that acts as a bridge for NAT servers
2 years ago
Alibek Omarov
375c06400c
engine: server: avoid unaligned access in pfnMessageEnd
2 years ago
Alibek Omarov
0984368a31
engine: server: GoldSrc compliant pfnServerExecute(), don't execute config.cfg for server!
2 years ago
Alibek Omarov
fccf044976
engine: initialize network buffers used on player connect and after
2 years ago
fgsfds
15ba932046
engine: server: add sv_autosave cvar
...
* a1ba: added FCVAR_PRIVILEGED just in case
2 years ago
fgsfds
6557ac7fb4
server: add sv_autosave cvar
2 years ago
fgsfds
25a1cb8ce7
Nintendo Switch support (again)
2 years ago
Alibek Omarov
f7d4e5a2ea
engine: server: don't show GAMESAVED message in autosaves, small refactoring
2 years ago
Alibek Omarov
6df25392b8
engine: server: redirect special sounds, detected by leading asterisk, into CHAN_STREAM
...
In GoldSrc this magic symbol means that we should not override channel this
sound is playing on. Originally handled on client but for both static and dynamic sounds
so let's redirect channel on server side instead.
2 years ago
Alibek Omarov
de84df99f3
engine: fix functions returning void returning void value
2 years ago
Alibek Omarov
6ac3156a82
engine: fix discarded const pointer qualifier in PM_HullPointContents
2 years ago
Alibek Omarov
2479d28cd5
engine: remove useless pfnHullPointContents wrapper
2 years ago
Alibek Omarov
787d3bc5dd
engine: share playermove ClearPhysEnts function
2 years ago
Alibek Omarov
e305b81df0
engine: merge PM_TraceTexture into PM_TraceTexturePmove
2 years ago
Alibek Omarov
4cb109abe0
engine: make playermove funcs truly shared between client and server
2 years ago
Alibek Omarov
df1c9a5029
engine: simplify blue shift swapped lump check, change TestBmodelLumps to avoid reading past mod buffer
2 years ago
Alibek Omarov
aa3a0fa392
engine: server: increase infostring size in SV_Info allowing longer hostnames but try to cut off if it's even longer than that
2 years ago
Andrey Akhmichin
12bb0ca44b
engine: server: Fix broken description for saves.
2 years ago
Andrey Akhmichin
9450c08eec
engine: server: simplify strings operations.
2 years ago
Alibek Omarov
cd813bbfbe
engine: server: do not apply sound precache check for sentences, as they may start with 0 index
2 years ago
Alibek Omarov
a3ef6c955c
engine: don't double register rcon_password cvar
2 years ago
Alibek Omarov
60e7a7aa23
engine: server: set correct flags for rcon_ cvars on server
2 years ago
Alibek Omarov
e1431e1040
engine: server: add rcon_enable cvar to control whether server should accept remote commands
2 years ago
Alibek Omarov
e48133bf4b
engine: server: fix sv_log output for enttools usage
2 years ago
Alibek Omarov
7469d6a248
engine: server: implement server-to-master challenge extension, to secure server from IP spoofing
2 years ago
Alibek Omarov
859f36afce
engine: server: remove Master_Add call in ActivateServer, server will announce itself through heartbeat
2 years ago
Alibek Omarov
1d8acc16f1
engine: server: give master server a small time window to reply (by default 4000 ms, should be enough even when master server is overloaded)
2 years ago
Andrey Akhmichin
2454594a18
engine: server: simplify strings operations.
2 years ago
Alibek Omarov
d9a245dcb5
engine: reset cheat cvars on remote games
2 years ago
Alibek Omarov
b6bd4bc6f8
engine: server: precisely set client connected time after they were spawned
2 years ago