Commit graph

35 commits

Author SHA1 Message Date
Knightmare66
0dc88d405d Merged Ethan Lee's finishing Linux and MacOS X porting changes.
Added support for MacOS-specific keys to cl_keys.c.
2021-11-17 18:58:12 -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
e8680f266e Added automatic re-initialization of UI data and execution of config files (via CL_ChangeGameRefresh() and FS_ExecConfigs()) when changing "game" cvar and gamedir.
Added CL_ChangeGameRefresh() in cl_main.c.
Added UI_RefreshData() in ui_main.c.
Added FS_ExecConfigs() in filesystem.c to handle execution of default.cfg and kmq2config.cfg.
Fixed crash due to uncleared pointers when reinitializing mapshotvalid state arrays.
2021-09-27 21:47:12 -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
0a54aa8423 Added new monster muzzleflashes in client and missionpack DLL: MZ2_SOLDIER_HYPERBLASTER_x, MZ2_GLADBETA_PHALANX_1, MZ2_TURRET_RAILGUN_1, MZ2_GUNNER_ETF_RIFLE_x.
Removed unused muzzleflash MZ2_SUPERTANK_GRENADE_x in q_shared.h for both default Lazarus DLL and missionpack DLL.
Added check for filename length before swapping extension to .ent in qcommon/cmodel.c->CMod_LoadEntityString().
Added check for filename length before swapping extension to .pcx in renderer/r_image.c->R_LoadPic().
Added check for filename length before swapping extension to .md3 in renderer/r_model.c->R_RegisterModel().
2021-04-22 21:41:49 -04:00
Knightmare66
8a2739c555 Added client detection of server protocol from challenge message.
Tweaked client handling of "Server is version x.xx" server rejection messages.
Client now sends info requests to servers with both KMQ2 and stock Q2 protocol versions.
Client now ignores server "wrong version" status messages.
Added server sending protocol version in challenge message.
2021-03-19 00:57:26 -04:00
Knightmare66
20baf8e390 Added handling for "print" command in cl_main.c->CL_ConnectionlessPacket() that changes cl_servertrick and reconnects when a known "wrong version" rejection message is received.
Changed wrong protocol rejection messaged in sv_main.c->SVC_DirectConnect() to send KMQuake2 version instead of just version number.
2021-03-18 05:35:26 -04:00
Knightmare66
5a1a138095 Refactored Netchan_OutOfBandPrint() calls in cl_main.c. 2021-03-18 03:30:06 -04: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
bcf678286b Added CL_ShutdownLocal() in cl_main.c.
Changed func_door_secret in missionpack DLL to have the correct die function (door_secret_die) if health is set.
Moved misc, model_*, and target entity code to new source files g_misc_laz.c, g_misc_nm.c, g_model.c, and g_target_laz.c in missionpack DLL.
2021-02-21 21:01:45 -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
8aab001fb9 Fixed func_door_secret spawn function setting wrong die function if it has a health value in 3ZB2 and Awakening DLLs.
Overhauled slider menu control to show cvar value and simplify implementation.
Changed RGB color increment for railtrail in effects options menu from 16 to 4.
Changed default values for cl_railgreen and cl_railblue to be multiples of 4 to match increment of menu sliders.
Moved misc utility functions in ui_subsystem.c to ui_utils.c.
2021-02-16 13:22:45 -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
37eb683714 Added cvar r_maxfps_autoset to allow disabling of automatic framerate capping.
Moved call to CL_SetFramerateCap() to UpdateVideoRef().
Future-proofed CL_SetFramerateCap() for higher refresh rates.
2020-08-06 18:47:26 -04:00
Knightmare66
70759acf65 Added automatic setting of r_maxfps based on r_displayrefresh. 2020-08-06 00:33:53 -04:00
Knightmare66
b281dd23ca Increased net_maxfps max clamp to 100. 2020-08-05 22:46:42 -04:00
Knightmare66
988347e7d2 Yet more 64-bit porting fixes. 2020-08-02 02:00:01 -04:00
Knightmare66
7cf0c475f5 Miscellaneous 64-bit porting fixes. 2020-07-29 06:05:09 -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
c0aa905347 Removed userinfo flag from cvars cl_engine and cl_engine_version.
Fixes userinfo overflow with certain mods that results in null player name.
2020-06-01 18:43:52 -04:00
Knightmare66
ee9f79daff Use cvar integer field instead of float value field where applicable in client and UI.
Fixed false alerts on 0-length unicasts in PF_Unicast().
2020-05-29 03:54:33 -04:00
Knightmare66
62c5281baa Refactored BUILDSTRING into OS_STRING and COMPILETYPE_STRING 2020-05-06 14:49:40 -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
30012ce19c Finished implementation of fs_savegamedir and fs_downloaddir. 2020-05-02 16:08:01 -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
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
9c5fca4da2 Fixed maps.lst inside pak file overridding the external version of this file in baseq2.
Blacklisted maps.lst from loading from pak files.
Cleaned up unneeded va() string expansion in cl_main.c->CL_Connect_f().
2019-05-05 13:07:41 -04:00
Knightmare66
f9f4527aa4 Fixed output message for CL_WriteConfig_f() to only output when successful. 2019-04-24 02:53:29 -04:00
Knightmare66
132b05f03a Added check for autosave slot in LoadGameCallback() to not specify a non-existent saveshot.
Check for minumum length of saveshot name in SCR_DrawLoading().
Skip STX char before map title in dedicated console output.
Increased number of failed images/textures and walsizes to 1024 from 256.
Added one last modType() -> FS_ModType() change I forgot to commit.
2019-04-16 19:15:25 -04:00
Knightmare66
f986267ae2 inital commit of full repository 2019-03-13 15:20:07 -04:00