Commit graph

258 commits

Author SHA1 Message Date
Knightmare66
5d252f3bbc Added changable railgun weapon skin based on sk_railgun_skin cvar to change railgun skin to default Lazarus, missionpack, and Zaero DLLs.
Added sk_rail_color_red, sk_rail_color_green, and sk_rail_color_blue cvars to change rail trail color when cvar sk_rail_color is set to 2 in default Lazarus, missionpack, and Zaero DLLs.
Added ctf_railcolors cvar to default Lazarus DLL.
2021-10-16 23:19:27 -04:00
Knightmare66
4635d4a5b8 Clean up Q_ftol() for Linux porting in DLL sources. 2021-10-11 22:02:12 -04:00
Knightmare66
fa0f460482 Straighten out USE_GLMIPMAP platform/OS confusion in r_image.c. 2021-10-11 17:58:06 -04:00
Knightmare66
6eec9c1a76 Fix minor oops with _WIN32 macro in g_misc.c. 2021-10-11 17:37:32 -04:00
Knightmare66
86b480711c Added unix shell script for extractfuncs.
Updated extractfuncs.exe from latest source.
Use new cvar modified functions to force vid_restart from vid_ref.
Renamed qglDrawRangeElementsEXT to qglDrawRangeElements in qgl_win.c (missed in last commit).
2021-10-11 16:27:13 -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
3956855f13 Added support for custom axis rotation for func_door_rotating, func_door_rot_dh, func_door_swinging, func_rotating, and func_rotatating_dh in default Lazarus and missionpack DLLs. 2021-10-06 19:04:43 -04:00
Knightmare66
d15474a52e Added changeable blaster weapon skin based on sk_blaster_color cvar in default Lazarus, missionpack, and Zaero DLLs.
Refactored some weapon code in missionpack DLL.
2021-09-30 20:09:36 -04:00
Knightmare66
bea11c25e0 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:50:33 -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
fcdd241f96 Added re-initialization of UI data (via UI_RefreshData() in ui_main.c) when changing gamedirs.
Added CL_ChangeGameRefresh() in cl_main.c.
Refactored execution of default.cfg and kmq2config.cfg via FS_ExecConfigs() in filesystem.c.
Fixed crash due to uncleared pointers when reinitializing mapshotvalid state arrays.
2021-09-27 21:37:44 -04:00
Knightmare66
3fcff505a8 Renamed internally generated textures.
Changed blendmode for envmap entity shells.
2021-09-27 12:59:00 -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
26bf1a14ad Added support for downloading sounds with player models. 2021-09-12 02:03:24 -04:00
Knightmare66
d0d781761d Added keybind menu control type.
Refactored key binding menu with new control type.
Minor cleanup of menu implementations.
2021-09-05 00:05:38 -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
69bbad2b9a Added video menu resolution list generation from vid_modes table via VID_GetModeInfo().
Added video menu anisotropic mode list generation from cvar.
Cleanup of menus and UI utils code from last refactoring.
Added player obituary for Makron in Zaaero game DLL.
2021-08-29 22:52:34 -04:00
Knightmare66
8ec00f2f51 Fixed pain sounds for soldiers with custom skins in default Lazarus DLL.
Added unique soundindex variables for Xatrix soldiers in missionpack DLL.
2021-08-26 02:18:59 -04:00
Knightmare66
a916bca556 Fixed bug with gekks not jumping out of water in missionpack DLL.
Fixed non-precached sounds for Xatrix soldiers in missionpack DLL.
Changed cvar mp_monster_replace to CVAR_LATCH in missionpack DLL to prevent issues with glitched soldier sounds.
2021-08-26 00:48:03 -04:00
Knightmare66
5fa2f39ddc Removed specific reference to xatrix from instructions on using basegame cvars. 2021-08-25 16:29:52 -04:00
Knightmare66
66e7c684f4 Update readme with instructions on using basegame cvars. 2021-08-25 16:23:05 -04:00
Knightmare66
a8769eca9b Update changelog for last commit. 2021-08-25 04:57:05 -04:00
Knightmare66
b80d34a3e3 Added r_mode_desktop cvar to force desktop resolution in borderless window mode. 2021-08-25 02:28:15 -04:00
Knightmare66
e872299cbd Excluded monsters in death anim from hint_path developer command in default Lazarus and missionpack DLLs.
Added close-range safety check for gunners with contact grenades in default Lazarus and missionpack DLLs.
2021-08-24 04:50:59 -04:00
Knightmare66
308e1b13c4 Zero-initialize drawStruct_t in cinematic, console background, HUD field, and subimage string drawing.
Fix crash vulnerabilities in hint_test, entid, and entlist developer commands in default Lazarus and missionpack DLLs.
2021-08-22 22:12:39 -04:00
Knightmare66
094bf36ce4 Zero-initialize drawStruct_t in client pic drawing funcs using = { 0 };
Zero-initialize vector in ED_ParseField() using = { 0.0f, 0.0f, 0.0f };
2021-08-22 04:18:03 -04:00
Knightmare66
3672ea6be8 Added cvars ui_new_textfield and ui_new_textbox to toggle drawing text fields and text boxes with new images and font-based tiles.
Improved Tactician Gunner prox mine detection in missionpack DLL.
Implemented Zaero modifications (can be pushed off ledge) to exploding barrels in missionpack DLL.
Changed incomplete vector parsing check in ED_ParseField() to a warning instead of an error in all game DLLs.
2021-08-21 14:27:04 -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
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
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
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
cedf3628ac More tweaks to Tactician Gunner prox aiming.
Added close range safety check/trace to Tactician Gunner prox aiming.
Added check for nightmare mode for Beta-Class Gladiator and dog.
2021-07-31 21:47:21 -04:00
Knightmare66
8401c475f6 Improved Tactician Gunner's prox mine aiming in missionpack DLL.
Added powerarmortype field to default Lazaus DLL.  This changes the savegame version.
Added support for blood_type value of 4 to default Lazaurus, missionpack, and Zaero DLLs.
Added support for Lazarus initially dead monsters (health < 0) to missionpack DLL.
Added support for Lazarus monsterjump cvar (berserk, gunner, infantry, mutant, parasite) to missionpack DLL.
Cleaned up surface rendering code from mpolyvertex_t refactoring.
2021-07-31 02:07:06 -04:00
Knightmare66
497ba1c195 Fixed pain skins not showing for soldiers at half health in Zaero DLL. 2021-07-28 23:55:45 -04:00
Knightmare66
74c1930cf5 Made Tactician Gunner lead target based on random chance and skill level.
Changed Tactican Gunner's min prox range to 320.
Added bad_area fields to monster-fired prox mines with new g_newai.c->MarkProxArea() function.
Misc AI tweaks to handle prox bad_area fields.
Fixed flechettes clipping against player movement.
Cleaned up some old code from borderless window support.
2021-07-26 02:55:41 -04:00
Knightmare66
59157b413d Clamped vid_fullscreen to 0, 1, or 2 before copying to dispType_t var.
Fixed railgun infinite loop (hang) bug in Awakening2 game DLL.
Added unique armor shard icon in 3ZB2 and Awakening2 game DLLs.
Updated changelog with missing changes from development changelog.
2021-07-20 22:14:01 -04:00
Knightmare66
240a4f089f Preliminary work for borderless window support on Linux. 2021-07-20 01:16:01 -04:00
Knightmare66
9912c694d0 Added borderless window support.
Added UI changes for renaming cl_screen.c->SCR_AdjustFrom640() to SCR_ScaleCoords().
Syntax cleanup in some client particle code.
Simplified Zaero visor HUD scaling hack with strncmp().
2021-07-20 00:21:05 -04:00
Knightmare66
263161d9fc Fixed Zaero visor HUD scaling hack triggering on Lazarus text popups containing "\"Tracking ".
Added yellow coloring to sscanf() failure warnings.
2021-07-14 22:21:01 -04:00
Knightmare66
4806e6cbc5 Added handling for sscanf() exceptions. 2021-07-14 05:27:46 -04:00
Knightmare66
85a20a70c2 Refactored surface rendering to use new mpolyvertex_t struct. This replaces the old vertex float array, and integrates vertex lighting.
Removed legacy GL_NV_texture_shader water warp effect.
Added r_subdivide_size cvar to control polygon subdivision of warp surfaces.
Added preliminary support for warp lightmaps.
2021-07-11 03:33:32 -04:00
Knightmare66
be77e50e1d Removed multitexture boolean field from glconfig_t struct in r_local.h. 2021-07-09 21:55:43 -04:00
Knightmare66
8d9024e33f Removed single-texuring surface rendering mode. Moved old functions to r_surface_singletex.c.
Refactored some suface rendering functions.
Moved some lightmap code from r_surface.c to r_warp.c.
2021-07-09 21:44:55 -04:00
Knightmare66
2b9c3da08e Implemented muzzleflashes for LMCTF plasma rifle in missionpack DLL.
Implemented unique muzzleflashes for ionripper guard and plasma guard in missionpack DLL.
Implemented extended w/ short index monster muzzleflashes using short enumerator in missionpack DLL.
2021-07-09 20:45:42 -04:00
Knightmare66
94e238a893 Renamed cl_screen.c->SCR_AdjustFrom640() to SCR_ScaleCoords().
Added support for laser model with multiple skins to client entity code.
Enabled old blaster/flechette puff model when particles are disabled.
Added player muzzleflashes for LMCTF plasma rifle in cl_ents.c->CL_ParseMuzzleFlash().
Added support for extended w/ short index monster muzzleflashes using short enumerator to cl_lights.c->CL_ParseMuzzleFlash2().
Added contact parameter to g_monster.c->monster_fire_grenade() in missionpack DLL.
Added changeable blaster flash colors to cl_lights.c->CL_ParseMuzzleFlash2().
Added muzzleflashes for ionripper and plasma rifle soldier in cl_lights.c->CL_ParseMuzzleFlash2().
Removed unused removed weapons/hyprbu1a.wav from plasma rifle precache in default Lazarus, missionpack, and Zaero DLLs.
Added support for extended monster muzzleflashes to monster weapon code in default Lazarus and missionpack DLLs.
Changed fire_blaster() to use different skins in the same model instead of separate models for blaster bolts.
Tweaked default gib_health values in default Lazarus DLL.
Removed Lazarus grenade avoidance code from missionpack DLL.
Renamed monster_gunner_commander to monster_gunner_tactician in Lazarus DLL.
Adjusted damage for Tactician Gunner prox mines.
Changed order of glow pass in shared model rendering to be after envmap and celshading.
2021-07-09 19:54:05 -04:00
Knightmare66
4b6e68fcd2 Added monster_gunner_commander to missionpack DLL.
Added monster_fire_flechette() and monster_fire_prox() functions to g_monster.c in missionpack DLL.
Refactored prox weapon code in missionpack DLL.
Added grenade evasion for monster-fired prox mines.
Added FL2_COMMANDER moreflag for medic commander and deadalus in missionpack DLL.
Added precache of hand grenade model to grenade ammo in g_items.c in default Lazarus DLL and missionpack DLL.
2021-04-23 05:08:26 -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
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
c18c245fe2 Renamed qcommon/files.c to qcommon/filesystem.c.
Added qcommon/filesystem.h for filesystem structs/prototypes.
Added update version to console (e.g. KMQuake2 v0.20u8).
2021-04-11 21:07:08 -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