Commit graph

278 commits

Author SHA1 Message Date
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
Knightmare66
1a5fcdc13a Renamed SurfAlphaCalc() to R_SurfAlphaCalc() in r_surface.c.
Changed R_SurfAlphaCalc() to use transparency value of 0.5f for both TRANS33 and TRANS66 flags if r_solidalpha is disabled.
2021-03-21 18:13:04 -04:00
Knightmare66
63e7ce1c99 Updated description of client compatibility option in join server menu. 2021-03-19 01:07:38 -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
40571031c3 Fixed EMP Nuke not working on beta class Gladiator in missionpack DLL.
Added function monster_fire_phalanx() in g_monster.c in missionpack DLL.
Renamed monster_dabeam() function to monster_fire_dabeam() in g_monster.c in missionpack DLL.
Renamed "plasma" functions for phalanx cannon to "phalanx_plasma" in g_weapon.c in missionpack DLL.
Removed unused heat_think() function in g_weapon.c in missionpack DLL.
Removed unused Q1TeleportSounds2() function in g_utils_q1.c in missionpack DLL.
2021-03-15 17:30:02 -04:00
Knightmare66
d74c17da6f Updated libogg to 1.3.4 and libvorbis/libvorbisfile to 1.3.7. 2021-03-13 17:48:17 -05:00
Knightmare66
2a34ecfb51 Updated libjpeg to version 9d. 2021-03-13 04:02:46 -05:00
Knightmare66
01b5c9bb8c Updated libcurl to 7.75.0. 2021-03-13 03:03:29 -05:00
Knightmare66
931bdeb6d2 Updated libpng to 1.6.37. 2021-03-12 23:42:49 -05:00
Knightmare66
751fbac9de Changed 3ZB2 game DLL to use inline Q_vsnprintf() function instead of abstracting _vsnprintf().
Changed missionpack and Zaero game DLLs to use _MSC_VER insead of _WIN32 macro for using Q_vsnprintf() inline function.
2021-03-11 22:57:01 -05:00
Knightmare66
2b1aff408d Added target_effect entity from Lazarus to Awakening2 game DLL.
Minor formatting change to assigns and comapares for moveinfo.ratio in 3ZB2, Awakening, and missionpack game DLLs.
2021-03-11 04:07:29 -05:00
Knightmare66
115428abd6 Added missing skinnum field to model_spawn in 3ZB2 and Awakening2 game DLLs.
Added custom attenuation support to func_plat2 in 3ZB2 and all func_ entities in Awakening2 game DLLs.
Added support for sounds = 1 for silent func_door_secret and func_door_secret2 in 3ZB2 and Awakening game DLLs.
2021-03-11 02:33:38 -05:00
Knightmare66
2629b6f39a Added percentage display boolean for slider menu controls.
Changed increment for sound and some alpha menu option sliders.
2021-03-08 00:52:46 -05:00
Knightmare66
6ec18155d2 More improvement to mod porting instructions in readme. 2021-03-06 15:48:21 -05:00
Knightmare66
ec70f966a0 Improved to mod porting instructions in readme. 2021-03-06 15:42:41 -05: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
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
180292a66b Tweaked alignment of team icons in 3Team CTF HUD layout.
Minor tweaks to CTF capture detection.
2021-02-24 03:47:08 -05:00
Knightmare66
cae88a2dd8 Enlarged hostname field in start server menu. 2021-02-21 22:28:57 -05:00
Knightmare66
8d0e9fe406 Added dedicated server option to start server menu.
Added switching between dedicated and normal mode in Qcommon_Frame() if the cvar dedicated is modified.
2021-02-21 22:05:20 -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
c9e3575516 Updated changelog.
Commented out currently unused crosshair lists in menu utils code.
Commented out unused playermodel strings in menu utils code.
2021-02-17 15:38:30 -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
02c10a1976 Added frame and skinnum parms to ThrowGib(), ThrowHead(), and ThrowDebris() in default Lazarus DLL. 2021-02-02 00:55:10 -05:00
Knightmare66
acbc341e53 Change error level to 3 for release builds of 3ZB2 and Awakening2 game DLLs.
Comment out unused vars in SP_func_door_secret2() in 3ZB2 and Awakening2 game DLLs.
Add ent->attenuation default in SP_func_door_secret2() in 3ZB2 and Awakening2 game DLLs.
Add prototype for door_use_areaportals() to g_local.h in 3ZB2 and Awakening2 game DLLs.
2021-02-02 00:30:24 -05:00
Knightmare66
5b7a23ad1b Added missing sounds and added support for sounds and area portals to func_door_secret2 in 3ZB2 and Awakening2 game DLLs.
Added missing sounds to func_door_secret in 3ZB2 and Awakening2 game DLLs.
Added SVF_GIB flag for physics to gibs and debris in Awakening2 game DLL.
2021-02-01 22:18:47 -05:00
Knightmare66
9481c7c513 Rewrote Com_strcpy() and Com_strcat() in game DLLs to not be based on strncpy() and to return size copied.
Changed Zaero and 3ZB2 game DLLs to use WORLD_SIZE for various calculations instead of 8192.
Cleaned up string handling in 3ZB2 game DLL.
Added func_plat2, func_door_secret2, and func_force_wall from Rogue to 3ZB2 game DLL.
Added alternate attack contact explode for grenade launcher in 3ZB2 game DLL.
Added awakening2 game DLL source.
2021-02-01 20:19:52 -05:00
Knightmare66
4afc95c317 Cleaned up string handling in extractfuncs. 2021-01-29 17:00:19 -05:00