Alibek Omarov
ca134a85ee
engine: client: make it more obvious that CL_InitEdicts depends on maxclients value
1 year ago
Alibek Omarov
7e06d049f5
engine: common: static-ize common.c functions, set GAME_EXPORT to API functions
1 year ago
Alibek Omarov
6a1f96a2c6
engine: always unlink variables and commands BEFORE all pointers to them would be lost
1 year ago
Alibek Omarov
3918bcd71c
engine: client: move console cvars to static allocation
1 year ago
Alibek Omarov
1ee01163b7
engine: client: move scrn cvars to static allocation
1 year ago
Alibek Omarov
b1d60c248d
engine: client: move main client cvars to static allocation
1 year ago
Alibek Omarov
d9cbf1fa89
engine: client: move input cvars to static allocation
1 year ago
Alibek Omarov
04107d384e
engine: client: fix incorrectly parsed timings for TE_TEXTMESSAGE
2 years ago
Alibek Omarov
377dd9a255
engine: client: bring back NetAPI infostring options, as they conform to the API definitions
2 years ago
Alibek Omarov
de1e53311a
engine: client: cl_game: static-ize engine functions in client API
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
b72033eb74
engine: client: fix master server query through NetAPI
2 years ago
Alibek Omarov
398cec626e
engine: client: remove media/ prefix for CD tracks, add it while parsing cdaudio.txt for compatibility
2 years ago
Alibek Omarov
1affc36f06
engine: client: more accurate ScreenShake implementation, thanks @vasiavasiavasia95 for sharing it
2 years ago
Alibek Omarov
101a7a1240
engine: client: try to fix random crash in CL_ClearWorld when using legacy protocol
2 years ago
Alibek Omarov
192d510924
engine: client: remove unused function CL_FreeEntity and everything that used it
2 years ago
Alibek Omarov
dca637d4bb
engine: client: eliminate pfnServerCmd limit and, like GoldSrc, send our server command immediately to netchan
2 years ago
Alibek Omarov
1630d87c0d
engine: client: do not alter the state if invalid HANDLE was passed to pfnSPR_Set. Fixes Half-Life: MMod
2 years ago
Alibek Omarov
3a956a1ad3
engine: client: initialize variables in SPR_Width/Height/Frames functions, in case R_GetSpriteParms fails
2 years ago
Alibek Omarov
9690fe9334
engine: client: replace some obvious va uses by temp buffer and Q_snprintf
2 years ago
Alibek Omarov
7e9d46689c
engine: client: fix multiline CenterPrint
2 years ago
Alibek Omarov
f4961d9da7
engine: client: return empty string in pfnGetLevelName if no map is loaded yet
2 years ago
Alibek Omarov
c0fa91bec9
engine: client: consolidate client and menu scissor functions
2 years ago
Alibek Omarov
fd63018fb5
engine: client: make client string drawing functions ignore linefeeds
2 years ago
Alibek Omarov
77ea03a62c
engine: client: introduce bare-bones font manager and text drawing manager
...
* wire hud_fontscale so HUD font scaling can be used independently from
hud_scale
* allow small optimizatinons, like optional UTF-8 decoding, or not calling
SetRenderMode for each character
* even less copypasted code in text drawing between client code and console
* get rid of direct DrawCharacter calls when it can be just DrawString
* fix net_speeds, r_speeds with scaled console fonts
* try to fix MobilityAPI's pfnDrawCharacterScaled
* center keyboard keys in OSK code
2 years ago
Alibek Omarov
6282acc825
engine: client: simplify drawing loading or paused bar, fix position with hud_scale active
2 years ago
Alibek Omarov
84c14b32ec
engine: client: fix filtering errors by adjusting texcoords by half of a pixel
...
Remove useless wrapper functions and conversions
Don't scale texcoords and position if hud_scale is not active
2 years ago
Alibek Omarov
500ca54550
Revert "engine: get rid of MSG_BigShort, use htons instead, since network headers are always included"
...
This reverts commit a6475f530b
.
2 years ago
Alibek Omarov
a6475f530b
engine: get rid of MSG_BigShort, use htons instead, since network headers are always included
2 years ago
Alibek Omarov
787d3bc5dd
engine: share playermove ClearPhysEnts function
2 years ago
Alibek Omarov
0bec78a958
engine: client: make few function between pmove and client interface shared, remove unused CL_PointContents wrapper
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
a4865fd2fc
engine: client: fix ScreenFade FFADE_MODULATE rendering, more accurate alpha blending
2 years ago
Alibek Omarov
e5b32fe8ac
engine: client: force nearest filter for HUD textures and sprites to avoid artifacts with hud_scale
2 years ago
Andrey Akhmichin
f4fb8b4ac2
engine: client: simplify strings operation.
2 years ago
Alibek Omarov
9cbf5ab6a6
engine: client: streamline constructing master server scan request through common function
2 years ago
Alibek Omarov
c9e4e62474
engine: client: allow IPv6 in NetAPI
2 years ago
Alibek Omarov
c2a24fbbce
engine: client: put internal vgui shutdown AFTER HUD_Shutdown, to simulate default, external behavior
2 years ago
SNMetamorph
ae94a6aeba
engine: client: fixed client VGUI API shutdown
2 years ago
Alibek Omarov
e9da43666c
engine: client: fix loading internal vgui (thx @SNMetamorph )
2 years ago
Alibek Omarov
d27dd68072
engine: client: vgui: rework loading VGUI and probing client for internal vgui support API
2 years ago
Alibek Omarov
3e9f2df2bf
engine: client: fix incorrect mark for ConsolePrint notifications
2 years ago
Alibek Omarov
7341a6b020
engine: client: add old GoldSrc feature where ConsolePrint could print to notification zone, similar to Con_NPrintf( 0, ... )
2 years ago
Alibek Omarov
314672d82c
engine: client: fix invalid playerinfo being accessed by renderer
2 years ago
Alibek Omarov
5350d88f57
public: crtlib: add quotation mark support for ParseFile, required for filesystem_stdio
2 years ago
SNMetamorph
8f91830997
engine: added changeport parameter for NET_Config
2 years ago
Alibek Omarov
6e031b518a
engine: client: increase limit of client sprites, lower part of it can be used only for HUD sprites
...
higher part used for client sprites
map overview sprites are loaded as normal models
thus we have equal internal engine and hud sprite indices and it fixes compatibility issues
for mods like Half-Rats Parasomnia
2 years ago
SNMetamorph
fef0993f54
engine: client: cl_game: fixed hudGetModelByIndex function in client API ( fix #518 )
2 years ago
Alibek Omarov
6c7d57e1eb
engine: client: move vgui deinitialization out of CL_UnloadProgs. Delete cls.initialized check in CL_Shutdown, that used to shutdown various client-side subsystems that usually have needed checks by themselves
2 years ago