Alibek Omarov
2d1e76199b
engine: host: always print Host_Error text to log, even if console hasn't been enabled
2024-12-27 18:37:25 +03:00
Alibek Omarov
a5d78ecfd7
engine: be more verbose on why the engine is going to be shut down
2024-12-27 18:30:46 +03:00
Alibek Omarov
48bdd4238e
engine: always include reason to server shutdown
2024-12-26 02:13:13 +03:00
Alibek Omarov
4f98187e9a
engine: move select-based stdin input function to platform/posix
2024-12-24 11:13:05 +03:00
Alibek Omarov
5007f8488c
engine: host: add simple usage help for -bugcomp flag
2024-12-05 18:29:54 +03:00
Alibek Omarov
f7062498c2
engine: turn old pfnGetGameDir behavior into a bugcomp flag get_game_dir_full
...
This function is kinda nasty, some mods (like old RCBot builds) expect a slash,
some newer mods (like Sandbot) doesn't. To preserve compatibility with both old
and new mods, just add it as bug compatibility flag.
2024-12-05 18:14:15 +03:00
Alibek Omarov
e14cd758ad
engine: turn Platform_Sleep into an inline function that directly calls platform-specific delay functions
2024-12-04 18:32:03 +03:00
Alibek Omarov
6b24b263ab
engine: host: expose new -clientport settings. Realign options
2024-11-25 02:53:28 +03:00
Alibek Omarov
31a86d8af2
engine: use new Q_splitstr to work with single character delimited strings
2024-11-17 05:35:36 +03:00
Alibek Omarov
6bdb3f6ea1
engine: don't save fps_override value as it's an experimental feature
2024-10-30 19:26:37 +03:00
Alibek Omarov
2fe94bceb6
engine: limit framerate during connection to GoldSrc servers to exactly 31 FPS, like GoldSrc
2024-10-30 19:25:48 +03:00
Alibek Omarov
371639f0dc
engine: introduce fps_override to unlock the 200 FPS limit in multiplayer games to 1000
2024-10-30 18:28:55 +03:00
Alibek Omarov
da76abda75
engine: even more refactorings to avoid global cls.legacymode usage, now with GoldSrc server autodetection
2024-10-16 07:31:27 +03:00
Alibek Omarov
f52c825bf5
engine: make some global variables static and const, make even more functions static if possible
2024-10-14 19:19:46 +03:00
Alibek Omarov
1d64635783
engine: correctly check for cls.legacymode, as it's not a boolean anymore
2024-10-11 00:08:21 +03:00
SNMetamorph
50c805826f
engine: implemented handling SIGTERM signal for proper stopping dedicated server
2024-10-08 01:05:26 +03:00
Alibek Omarov
2eb8f88a20
engine: move attenuation none sound spatialize fix to bugcomp mode, as Xash native games use this
2024-09-05 13:50:15 +03:00
Alibek Omarov
e70f9a67b8
engine: host: always enable console for dedicated
2024-07-26 11:08:34 +03:00
Alibek Omarov
6120c0daec
engine: print command line args alongside developer level during init
2024-07-22 22:15:56 +03:00
Alibek Omarov
708c691cdb
engine: fix XASH_DEDICATED check
2024-07-10 10:34:57 +03:00
Alibek Omarov
c42960ec2a
engine: server: mark some cvars and movevars as server cvars, so they get reported in rules query
...
Bring back sv_contact cvar, as it makes sense to get this from rules query
2024-07-07 03:01:59 +03:00
Alibek Omarov
d56e53a347
Replace hardcoded functions names by __func__ macro
...
* while we're here, fix some possible bugs
* and fix -Wformat=2
s/__FUNCTION__/__func__/g
awawawa
2024-06-19 06:53:42 +03:00
Alibek Omarov
95b48da37d
engine: allow to change hardcoded path to custom.hpk
2024-06-15 17:22:26 +03:00
Alibek Omarov
8bc76e3d58
engine: host: do not specifically check timedemo or vsync in Host_CalcSleep, because it's already has been checked in Host_CalcFPS
2024-06-15 13:57:12 +03:00
Alibek Omarov
3434005e66
engine: common: make Host_IsLocalGame and Host_IsLocalClient inlined
2024-06-13 01:20:14 +03:00
Alibek Omarov
240b6fb6f2
engine: fix possible unprivileged config execute with fake extension
2024-06-12 11:16:31 +03:00
Alibek Omarov
4163d3655a
engine: reformat and reorder host_parm_s struct, remove now unused host.daemonize and host.enabledll
2024-06-12 11:16:26 +03:00
Alibek Omarov
2c7bf49fc9
engine: host: avoid some of unnecessary double-to-float conversions
2024-06-12 10:20:09 +03:00
Alibek Omarov
739592e50d
engine: host: refactoring, reduce usage of global variables a bit
2024-06-12 10:20:09 +03:00
Alibek Omarov
393e31e509
engine: move finding root/readonly directory to FS initialization, remove unused host.rodir, host.rootidr
2024-06-12 10:20:09 +03:00
Alibek Omarov
4e2708c1ac
engine: bring back texture replacement
2024-06-11 06:16:26 +03:00
Alibek Omarov
a6c2cfe89b
engine: avoid constants in Q_strncpy third argument, where possible
2024-05-06 14:27:26 +03:00
Alibek Omarov
94d3eff9ce
engine: host: fix build with Q_strchrnul returning const char *
2024-05-03 15:31:20 +03:00
Alibek Omarov
31c0934108
engine: fix parsing -bugcomp flags, assume bugcomp flags only starts with alphabetic character
2024-05-03 06:28:48 +03:00
Alibek Omarov
dd410a2de5
engine: implement small Message Rewrite Facitility that allows to run mods that directly write internal GoldSrc messages
2024-04-28 06:59:18 +03:00
Alibek Omarov
ea34bc8652
engine: turn bugcomp into flags that can be enabled/disabled separately
2024-04-21 16:52:15 +03:00
Alibek Omarov
ca3b4a9d7f
engine: host: oops
2024-04-18 16:48:41 +03:00
Alibek Omarov
213650db8f
engine: exit with non-zero return code if engine tests are failed
2024-04-18 16:36:18 +03:00
Alibek Omarov
2640b6d869
engine: host: remove misleading message about TAB-autocompletion in dedicated mode
2024-03-19 21:24:21 +03:00
Alibek Omarov
049bed555e
engine: host: fit -help into 80 columns terminal
2024-03-19 21:13:28 +03:00
SNMetamorph
7d7e72196b
engine: host: enabled printing current developer level
2024-03-19 19:31:54 +03:00
Alibek Omarov
132c9de142
engine: host: add the most important command line flag help string
2024-02-05 15:28:18 +03:00
Alibek Omarov
b5f02324a6
engine: add basic sounds.lst implementation
2024-02-05 12:49:27 +03:00
Alibek Omarov
2b6a550405
engine: clean up common.h header from unused function prototypes, or move them to appropriate header or C file
2024-01-28 10:00:17 +03:00
Alibek Omarov
75d476f9df
engine: fix -Wmissing-prototypes
2024-01-28 09:55:18 +03:00
Alibek Omarov
dca862a838
engine: host: execute valid rc script if game was started from -game parameter using default launcher
2024-01-14 10:58:27 +03:00
Alibek Omarov
9551240680
engine: host: fix -Werror=parentheses
2024-01-05 02:35:16 +03:00
Alibek Omarov
6605d0456c
engine: host: force ENGINE_STEP_POSHISTORY_LERP for Counter-Strike and Condition Zero
2024-01-05 02:27:37 +03:00
Alibek Omarov
99e8f7b486
engine: host: fix warning about incompatible features bits
2024-01-05 02:26:25 +03:00
Alibek Omarov
f2584dcb9d
engine: host: better engine features print
2024-01-04 05:31:01 +03:00