Commit graph

33 commits

Author SHA1 Message Date
Ethan Lee
f4cad5010e Apply changes from Thirty Flights of Loving (2021 Edition) 2021-12-02 18:09:12 -05:00
Knightmare66
befa8db495 Added GL_PrintError() for more detailed OpenGL error output.
Added R_EndFrame() to remove direct calls to GLimp_EndFrame() from client and UI.
Removed GL_LockArrays()/GL_UnlockArrays() calls in shadow volume rendering.
Changed parameters to UI_DrawMenuString(), UI_DrawString(), and variants.
Added UI_DrawPopupMessage() to simplify popup text drawing.
2021-11-19 07:25:37 -05:00
Knightmare66
97a87dbe6e Added color1 userinfo cvar for player railgun effect color to client.
Added red/green/blue component sliders to player setup menu to change player railgun effect color.
Added parsing test code for color1 cvar in client code of default Lazarus DLL.
Will integrate custom color into railgun weapon code for next savegame version increment.
2021-10-21 02:03:19 -04:00
Knightmare66
4eea7036b8 Added Ethan Lee's Linux porting changes.
Moved loadingMessage, loadingMessages, and loadingPercent variables in client into client_static_t struct.
2021-10-11 15:38:20 -04:00
Knightmare66
2744534829 Added flag to reload player models in menu when new player models/skins have been downloaded. 2021-09-21 03:02:44 -04:00
Knightmare66
3ce18b138c Refactored spincontrol menu control with value lists, simplifying menu implementations.
Simplified loading and saving of cvars in slider menu control.
Enlarged text in Game, Multiplayer, and Options menus.
Fixed repeat of failed file causing HTTP downloads to restart.
Added cl_zoommode cvar to simplify Lazarus zoom command.
Changed zoom command to use new cl_zoommode cvar in default Lazarus and missionpack DLLs.
Removed unused "crossh" cvar in default Lazarus and missionpack DLLs.
Fixed Makron not having a classname when spawned from Jorg in default Lazarus and missionpack DLLs.
Made Tactician Gunner ignore small amounts of damage in missionpack DLL.
2021-09-04 02:18:06 -04:00
Knightmare66
1e5348cbe0 Refactoring and rearrangment of menu code.
Added new graphic for text box.
Made edict_t pointer arrays static in 3ZB2, Awakening2, and Zaero DLLs due to stack size concerns.
2021-08-12 15:30:51 -04:00
Knightmare66
add4c7cc46 Reworked 2D pic drawing using a new, merged R_DrawPic() function. Moved old pic drawing functions to r_draw_removed.c.
Added new SCR_DrawPic() variants in cl_screen.c.
Added new graphics for text fields and sliders in menus.
Improved mouse interaction for menu sliders.
Added resettargets developer command to default Lazarus and  missionpack DLLs.
Added hint_test developer command to missionpack DLL.
Fixed freeze developer command in default Lazarus and missionpack DLLs so it can be used more than once.
More tweaks to Tactician Gunner prox mine safety checks in misssionpack DLL.
2021-08-07 00:43:46 -04:00
Knightmare66
9753f5f98c Added default generated tone for missing sounds when cvar s_defaultsound is enabled.
Const-ified functions in cl_download.c.
2021-04-19 19:30:26 -04:00
Knightmare66
01b5c9bb8c Updated libcurl to 7.75.0. 2021-03-13 03:03:29 -05:00
Knightmare66
8083f057cf Added V_Shutdown() function.
Added better error message for clientnum underflow in HUD layout string.
Changed cvar ion_ripper_extra_sounds to default to 0 in missionpack DLL.
2021-03-01 21:49:38 -05:00
Knightmare66
15d8479c9b Refactored menu utility funcs for fonts, crosshairs, savegames, serverlist, start server maplist, and player models and moved them to ui_utils.c.
Renamed "cursor" cursor_t struct to "ui_menucursor".
Renamed "currentweaponmodel" char pointer to "ui_currentweaponmodel".
Added shutdown functions for console, screen, and UI.
2021-02-17 04:11:49 -05:00
Knightmare66
1abde37ba0 Changed parameter order for Q_strncpyz() and Q_strncatz() to match Com_strcpy() and Com_strcat() from missionpack DLL. 2021-01-25 02:47:07 -05:00
Knightmare66
a07cf5c962 Added ui_font and scr_font cvars to separately change menu and HUD font.
Added R_DrawString() to allow drawing of text strings directly in the renderer.
Refactored r_speeds drawing to use new R_DrawString() function.
2021-01-11 01:17:13 -05:00
Knightmare66
6f4f02f5bf Added implementation of TE_RAILTRAIL_COLORED.
Refactored railgun trail effect and decal code to handle color as red, green, blue parameters.
Moved CL_TextColor() from cl_string.c to cl_utils.c.
AddedCL_EffectColor() to cl_utils.c.
2020-10-08 17:32:37 -04:00
Knightmare66
f4a9eff8d3 Renamed cl_inv.c to cl_hud.c and moved HUD parsing/drawing code there from cl_screen.c.
Added dumping of  configstrings to DumpStatusLayout command.
Added temp debuging output of CS_GENERAL configstrings to CL_ParseConfigString().
2020-08-19 02:42:15 -04:00
Knightmare66
74e4a4f1cc Renamed cvars hud_scale, hud_alpha, and hud_squeezedigits to scr_hudsize, scr_hudalpha, and scr_hudsqueezedigits.
Added cl_hud and cl_hud_variant placeholder cvars.
Fixed some VS2019 compiler warnings pointed out by Paril.
2020-08-09 17:03:47 -04:00
Knightmare66
70759acf65 Added automatic setting of r_maxfps based on r_displayrefresh. 2020-08-06 00:33:53 -04:00
Knightmare66
26d58b1694 Added screenshot gamma correction.
Changed stats.log to save to savegamedir instead of the Quake2 root folder.
Renamed cvars menu_sensitivity, menu_rotate, and menu_alpha to ui_sensitivity, ui_item_rotate, and ui_background_alpha.
Removed some unused cvars.
Added CVAR_SAVE_IGNORE flag to "game" and "gamedir" cvars.
Added descriptions for most cvars.
Added dumpcvars command to output a list of cvars with their descriptions to cvarlist.txt.
2020-07-04 01:31:44 -04:00
Knightmare66
28ba96e804 Added ignorenick and ignoretext client commands from Q2Pro. 2020-06-29 02:20:11 -04:00
Knightmare66
e317029eac Updated GPL headers based on Q2 Tools GPL source release. 2020-06-04 17:01:28 -04:00
Knightmare66
93dc5e0534 Added chat version advertisement using "!kmq2_version" or "!version" from R1Q2 (client/client.h, cl_main.c, cl_parse.c)
Updated CPU identification (win32/sys_win.c)
2020-05-06 12:55:56 -04:00
Knightmare66
2708250c0a Added horizontal offset to third-person mode, controlled by cvar cg_thirdperson_offset.
Add thirdperson offset option to controls menu.
Added cg_thirdperson_overhead cvar for experimental overhead mode.
Increased MAX_GLTEXTURES to 16K.
2020-05-05 01:37:53 -04:00
Knightmare66
a810f29413 Fixed enleess looped HTTP download attempts of missing player model files.
Added cl_http_fallback cvar to disable Q2Pro path and UDP fallback for HTTP downloads.
Added check to prevent game library from sending unicasts to non-present clients (i.e. bots).
Updated Lazarus version number.
Updated Qudos' Unix makefile for source file changes.  Compiling for Linux still needs more fixes, such as static libs (libcurl/zlib/png/jpeg/ogg/vorbisfile).
2020-05-04 21:24:51 -04:00
Knightmare66
65b0c2281e Updated to libcurl 7.69.1 with HTTPS support.
Added UDP fallback from HTTP downloads and support for Q2Pro-style HTTP URLs.
Now allows downloading non-numerical pak files via flagging certain paks as protected.
Misc filesystem changes.
2020-04-30 02:10:27 -04:00
Knightmare66
ceb8970ecc Added font upscaling from Q2Pro.
Added dynamic updating of Anisotropic filtering.
Added Cvar_IsModified() function.
Refactored screen and HUD scaling functions.
Added text size to string drawing functions.
Added textSize field to menu items for submenu headers.
Fixed compiling on MSVC6.
2020-04-16 03:18:49 -04:00
Knightmare66
ce11b17e52 Fix text color codes not working in console notify messages due to false reset of formatting parms.
Renamed TextColor() and CL_StringSetParams in cl_string.c to CL_TextColor() and CL_StringSetParams().
Changed SetWindowLong() and GetWindowLong() calls in vid_dll.c to SetWindowLongPtr() and GetWindowLongPtr().
2020-04-07 21:14:22 -04:00
Knightmare66
bf0e8af8a7 Added support for quake2:// URLs.
Pointer fixes to dedicated console.
Renamed new teleport event.
Partial cleanup to game DLL fog code.
Added Zaero monsters and misc entities to missionpack DLL.
2020-04-07 02:02:54 -04:00
Knightmare66
d1c1e87940 Prevent divide by zero errors with cl_particle_scale cvar. 2020-03-19 17:15:38 -04:00
Knightmare66
f8e43f0a4b Added Q1 teleport entity event. 2020-03-09 15:11:50 -04:00
Knightmare66
9b3187651f Fixed HTTP download only working for a single pak file. Added stufftext filtering.
Fixed HTTP download of the first pak in a filelist from aborting other paks.
Added filtering of malicious stufftext from development branch.
2019-05-29 22:40:01 -04:00
Knightmare66
da1f56a0c5 Removed message size check for 404 messages in HTTP downloading.
Renamed modType() and roguepath() functions in qcommon/files.c to FS_ModType() and FS_Roguepath().
2019-04-05 01:25:40 -04:00
Knightmare66
f986267ae2 inital commit of full repository 2019-03-13 15:20:07 -04:00