Commit graph

25 commits

Author SHA1 Message Date
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
608814c830 Fixed firing player weapon while using spycam/remote turret in default Lazarus and missionpack DLLs.
Fixed Tactician Gunner's flechettes going thru player bbox at point blank.
Made edict_t pointer arrays static in server, default Lazarus, and missionpack DLLs due to stack size concerns.
Added contact grenade mode for special monster flag for gunners in default Lazarus and missionpack DLLs.
2021-08-10 16:37:04 -04:00
Knightmare66
c531db636d Changed protocol version to 57.
Fixed an old protocol bug in how extended HUD stats were sent to the client.
Changed protocol for svc_sound servercommand to separate channel and entity values from a merged short to a byte and a short.
More improvements to Tactician Gunner prox aiming safety in missionpack DLL.
Fixed SV_CheckVelocity() sv_velocity cap in missionpack, 3ZB2, and Zaero game DLLs.
2021-08-04 02:15:24 -04:00
Knightmare66
26b6cd5797 Exported FS_Seek() and FS_Tell() to game API's game_import_t struct. 2021-03-25 02:25:48 -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
1b4eb2b6d7 Refactored server, qcommon, and Win32 code to use cvar integer field where applicable.
Commented out removal of "sethud" command in cl_screen.c.
2021-03-05 16:46:22 -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
fdca639bd4 Renamed save slots to use format of kmq2savexxx.
Increased number of save slots in save/load menus to 24.
2020-09-27 19:59:38 -04:00
Knightmare66
988347e7d2 Yet more 64-bit porting fixes. 2020-08-02 02:00:01 -04:00
Knightmare66
a523e11915 Abstracted "save" folder name for 64-bit portability. 2020-07-31 17:11:31 -04:00
Knightmare66
7cf0c475f5 Miscellaneous 64-bit porting fixes. 2020-07-29 06:05:09 -04:00
Knightmare66
d30c74ebe3 Fix crash with null pointer in SV_AreaEdicts_r().
Fix crash with null activator in G_UseTargets().
Tweak descripton of cvar r_modulate.
Update change log for new layout script commands.
2020-07-27 18:03:25 -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
e317029eac Updated GPL headers based on Q2 Tools GPL source release. 2020-06-04 17:01:28 -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
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
00dd6821ab Fix bug with .sv2 file getting overwritten inside .savz file when writing savegames to fs_savegamedir. 2020-05-02 16:46:25 -04:00
Knightmare66
30012ce19c Finished implementation of fs_savegamedir and fs_downloaddir. 2020-05-02 16:08:01 -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
9272d5ea85 Change Hunk_* and zone alloc functions to use size_t instead of int.
Replace READ_COMPRESSED_SAVEGAMES and WRITE_COMPRESSED_SAVEGAMES macros with COMPRESSED_SAVEGAMES.
Misc changes and some cleanup to game code.
2020-04-20 03:17:27 -04:00
Knightmare66
01d78fcaf7 Added new FS_GetFileList() function to retrieve lists of files (by extension or filter) from both paks and game dirs.
Changed UI_LoadArenas() to use FS_GetFileList().
Exported FS_GetFileList() to game DLL.
2019-10-08 21:55:44 -04:00
Knightmare66
9b61347592 Added compression of .sv2 and .sav files into one .savz zip archive.
Added additional save info (full mapname, date and time, auto/quick save) to server.ssv file.
2019-08-29 18:54:46 -04:00
Knightmare66
09bcccf8bf Fix crash in fog code when loading save from different/incompatible game DLL. Add support for game DLLs compiled for current development version.
Fixed crash in Fog_Off() when called from ShutdownGame(), typically when trying to load an incompatible savegame from a different (or different version) game DLL.
Added filesytem function exports to game DLL from development branch to support game DLLs compiled for that version.
2019-03-13 19:54:41 -04:00
Knightmare66
f986267ae2 inital commit of full repository 2019-03-13 15:20:07 -04:00