Alibek Omarov
0809453b2c
engine: server: static-ize sv_query functions
2 years ago
Alibek Omarov
8350d81c18
engine: server: static-ize sv_pmove functions
2 years ago
Alibek Omarov
57499dea33
engine: server: static-ize sv_phys functions, set GAME_EXPORT attribute for PhysicAPI functions
2 years ago
Alibek Omarov
6b223f1325
engine: server: static-ize functions in sv_game. Set GAME_EXPORT attribute to server GameAPI functions
2 years ago
Alibek Omarov
01ad3dda2a
engine: server: escape rcon arguments before passing it to command buffer, also use more efficient concatenation
2 years ago
Alibek Omarov
2a05624615
engine: server: keep silence in case of unset or invalid rcon password
2 years ago
Alibek Omarov
16c87ae2c9
engine: platform: reorganize UpdateStatusLine, make it shared but implemented only if platform has SetStatus. Implement SetStatus for systemd/Linux
2 years ago
Alibek Omarov
c7d748e8df
engine: server: add sv_log_outofband cvar that controls whether connectionless packets should be printed or not
2 years ago
Alibek Omarov
c966589a50
engine: server: static-ize few game API functions, set GAME_EXPORT attribute
2 years ago
Alibek Omarov
4c02c25506
engine: server: do not assert if SetFatPVS/PAS were called without active player
...
Fixes issues with POD-Bot based bots.
2 years ago
Alibek Omarov
a4997d0647
engine: server: port old engine's fullupdate ratelimit, but simplify it
2 years ago
Alibek Omarov
243c3cc80f
engine: server: port old engine's userinfo penalty
2 years ago
Alibek Omarov
9c62fa901f
engine: server: pregenerate CRC table and testpacket data
2 years ago
jeefo
61c75b9809
engine: server: log: use S_USAGE in logaddress for consistency with existing code
2 years ago
jeefo
868d10a842
engine: server: log: allow to disable logaddress without turning off logs completely
2 years ago
jeefo
699f3579fe
engine: server: log: fix log off command not disabling logging to console ( fixes #1340 )
2 years ago
jeefo
873ce0ce48
engine: server: query: A2S_PLAYER response should contain bots and normal players
2 years ago
Alibek Omarov
278ff22ba9
engine: server: query: use common SV_GetPlayerCount, fix random styling issues
2 years ago
jeefo
d9ef1d4608
server: implement correct answers to TSourceEngineQuery server queries
...
* count bots as clients as in goldsrc
* handle source-style packets after xash's built-in packets to not interfere with them
2 years ago
Alibek Omarov
f49a2bc8f3
engine: server: move pfnWriteString character replacement hack to the ALLOC_STRING, the same way as GoldSrc does
2 years ago
Alibek Omarov
9e0d389d9e
engine: server: moved server cvars to static allocation
2 years ago
Alibek Omarov
4ce2475602
engine: common: move network cvars to static allocation
2 years ago
Alibek Omarov
214fc7e827
engine: common: move host cvars to static allocation
2 years ago
Alibek Omarov
5627dbbf34
engine: server: greatly simplify pfnWriteString implementation, it shouldn't modify input string
2 years ago
Alibek Omarov
275cd73ade
engine: server: do not trigger speedhack detection for fakeclients
2 years ago
Alibek Omarov
fbd7d8f58a
engine: server: use sv_speedhack_kick cvar value as a number of speedhack warns before automatic kick
...
Thanks to @tyabus for suggestion
2 years ago
Alibek Omarov
3415185dde
engine: server: implement simple anti-speedhack
2 years ago
Alibek Omarov
551ea71906
engine: server: make generic function to kick players with a reason
2 years ago
Alibek Omarov
bd3dc71f39
engine: server: refactor banid, explicitly does not allow ban using userid for now
2 years ago
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