Alibek Omarov
a5f0ca38f1
engine: remove inclusion of SDL headers globally, helps to cleanup code before SDL3 migration
2025-02-28 13:14:47 +03:00
Alibek Omarov
627444279f
Revert "common: cvar: make auto descriptions private to cvar subsystem, use them when Cvar_Get is called with NULL description"
...
This reverts commit ade560c601
.
2025-02-10 12:49:05 +03:00
Alibek Omarov
add02dc6f9
engine: fix potential UB in netadr_t
2025-02-06 20:54:18 +03:00
Alibek Omarov
5e524bca60
engine: client: enable half-texel hack for nearest filtering too, if the scaling factor isn't an integer
2025-02-05 20:16:16 +03:00
Alibek Omarov
cf3e56e275
engine: client: add alternative mode for hud_scale, where it scales HUD down to selected resolution with preserving aspect ratio
2025-02-05 19:47:59 +03:00
Alibek Omarov
ade560c601
common: cvar: make auto descriptions private to cvar subsystem, use them when Cvar_Get is called with NULL description
...
It allows us to not lose engine-side description when client or gameui registers cvar with the same name. In case of
menu it's the only way to get cvar pointer.
2025-02-05 19:11:16 +03:00
Alibek Omarov
9a8761f1d8
engine: client: remove unused NetAPI_ValueForKey function
2025-01-21 15:17:03 +03:00
Alibek Omarov
626c5e44f6
engine: client: use existing engine functions for some client API functions
2025-01-18 09:44:21 +03:00
Alibek Omarov
07189ca2f5
engine: client: remove spammy message about not precached model on client side
...
Recently, mods (Brutal Half-Life v3 and MMod) started to call this function
every frame as a hacky way to detect presence of some model on the level. I
don't know why they do that, but users (who co-incidentally run engine with
-dev) has been complaining about console spam.
This is why we can't have things.
2025-01-09 17:10:54 +03:00
Alibek Omarov
74c19a1557
engine: client: leave SDL2 client.dll detection for Windows only
2024-12-24 10:46:39 +03:00
Alibek Omarov
70897af362
public: add dll helpers to simplify basic interaction with exported functions lists
2024-12-23 04:43:15 +03:00
Alibek Omarov
f1d7101ad8
engine: client: get rid of NULL sentinels at the end of arrays
2024-12-22 07:43:26 +03:00
Alibek Omarov
1dd622fcbb
engine: client: keys: refactoring, remove NULL sentinels, make keys structs and few more functions private to keys.c file
2024-12-21 15:22:48 +03:00
Alibek Omarov
a834f4996f
engine: move client adding functions to their appropriate subsystems and make them static. Make in-engine functions inlined.
2024-12-20 05:47:46 +03:00
Alibek Omarov
fdcf267fe3
engine: client: fix usermessage being removed because of case-sensitivity (message names are case-insensitive when transferred from server to client)
2024-12-20 03:05:14 +03:00
Alibek Omarov
98e587285b
engine: client: allocate static entities only when server sends static entity packet
2024-12-18 06:57:43 +03:00
Alibek Omarov
689e29bc42
engine: client: only load paused icon when requested
2024-11-23 15:01:50 +03:00
Alibek Omarov
56c19c4f5a
engine: client: make some simple functions, like querying entity by index, getting local player, inline
2024-11-17 13:37:32 +03:00
Alibek Omarov
229f1560b0
engine: fix some possible off by one errors
2024-11-17 13:04:20 +03:00
Alibek Omarov
4cb11861e4
engine: client: reimplement Mod_LoadMapSprite on engine side
2024-11-03 02:58:31 +03:00
Alibek Omarov
addd50467e
engine: remove FillRGBABlend from RefAPI. FillRGBA now accepts rendermode parameter
2024-11-03 02:24:36 +03:00
Alibek Omarov
e3e4bcc015
engine: global refactoring of connectionless packets, now they can be customized from single protocol.h header
2024-10-19 14:05:00 +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
35ae9f4a64
engine: client: don't save thirdperson value, it's not used anywhere
2024-10-07 21:00:16 +03:00
Alibek Omarov
d7d96c02a2
engine: client: implement cvar showpause for GoldSrc compatibility
2024-10-07 20:59:44 +03:00
xiaodo
26f07196ea
engine: Format Codes.
2024-10-07 17:22:27 +03:00
xiaodo
8c291fdfe3
engine: fix CenterPrint Wrong Y Position.
2024-10-07 17:22:27 +03:00
xiaodoxd
d1e118f07c
Fix CenterPrint Wrong X Position
2024-10-07 17:22:27 +03:00
Alibek Omarov
8fcaf18897
engine: client: remove useless copy in NetAPI_SendRequest
2024-08-08 04:32:58 +03:00
Alibek Omarov
4a5f34089d
engine: client: fix TriColor4fRendermode
2024-07-28 20:50:20 +03:00
Alibek Omarov
7a469fb481
engine: always use original player hulls for pmove trace, because mods can write invalid data in pmove->player_{mins,maxs}
2024-07-21 11:01:18 +03:00
Alibek Omarov
2fddbdddee
engine: client: fix ScreenFade under quake compatibility mode
2024-07-21 04:33:46 +03:00
Alibek Omarov
a133b1c2a9
engine: remove unused texFlags argument in Mod_LoadSpriteModel
2024-07-21 03:04:21 +03:00
Alibek Omarov
fa74acb5f0
Revert "engine: client: make client engfuncs const"
...
This reverts commit 14ae9b312d
.
2024-07-21 02:53:28 +03:00
Alibek Omarov
14ae9b312d
engine: client: make client engfuncs const
2024-07-16 15:23:03 +03:00
Alibek Omarov
dabbe09918
engine: add NetAPI flag to send NetAPI requests to old protocol servers
2024-07-07 06:17:15 +03:00
Alibek Omarov
296a7ac11d
engine: client: fix NetAPI request sending
2024-07-07 06:16:46 +03:00
Alibek Omarov
6bbf08893e
engine: add NetAPI to extended menu API
2024-07-07 03:39:09 +03:00
Alibek Omarov
e55577fd26
engine: get rid of some size constants passed to Info_SetValueForKey, use sizeof instead
2024-07-07 03:02:02 +03:00
Alibek Omarov
b4376a6a8c
engine: client: make a common function for sending out userinfo changes
2024-07-06 06:09:19 +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
73a8144e75
engine: client: reduce console spam about not precached model to dev level 1
2024-06-15 08:44:18 +03:00
Alibek Omarov
ef786b7d79
engine: client: fix sprites transparency in Night at the Office
2024-04-02 02:18:49 +03:00
Alibek Omarov
27100e7751
engine: client: hook sensitivity cvar registration and make it priveleged cvar
2024-03-08 15:25:36 +03:00
Alibek Omarov
c2da125358
engine: client: as an experiment, let users override default font rendermode through hud_fontrender and con_fontrender cvars
2024-02-09 07:25:47 +03:00
Alibek Omarov
af316bff14
engine: client: add hud_scale_minimal_width to limit scaling factor and potentially avoid unsupported hud sprites resolutions
2024-01-29 04:58:07 +03:00
Alibek Omarov
0b24810927
engine: client: clean up client.h from unused function prototypes, or move them to appropriate C file
2024-01-28 11:17:06 +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
2f2890cd11
engine: client: use PARM_TEX_FILTERING to figure out whether we should apply half-texel trick to HUD textures when scaling
2024-01-25 05:50:11 +03:00