Commit graph

74 commits

Author SHA1 Message Date
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
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
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
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
26b6cd5797 Exported FS_Seek() and FS_Tell() to game API's game_import_t struct. 2021-03-25 02:25:48 -04: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
02c10a1976 Added frame and skinnum parms to ThrowGib(), ThrowHead(), and ThrowDebris() in default Lazarus DLL. 2021-02-02 00:55:10 -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
Knightmare66
6e81e12456 Rewrote Q_strncpyz() and Q_strncatz() to not be based on strncpy() and to return size copied.
Fixed g_ctf.c->CTFSay_Team_Location() not supporting green team in 3TCTF mode.
2021-01-29 00:29:13 -05:00
Knightmare66
45a81cf57b Fixed shootable func_door_secret not working in default Lazarus and missionpack DLLs.
Cleaned up strig handling functions in game DLLs.
Refactored ThrowGib(), ThrowHead() and ThrowDebris() functions in missionpack DLL.
2021-01-26 00:08:08 -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
53340c1158 Fixed potential crash in game DLLs from a monster accidentally shooting a corpse in coop mode.
See here:
4132eed597
2021-01-21 18:30:55 -05:00
Knightmare66
df2257814f Added support for making model_spawn start off by setting delay to 1 along with toggle flag for both default Lazarus and missionpack DLLs.
Added support to target_change for changing usermodel, skinnum, solidstate, effects, renderfx, startframe, and framenumbers of model_spawn and model train for both default Lazarus and missionpack DLLs.
Added movewith support to func_water and func_bobbingwater for both default Lazarus and missionpack DLLs.
Added "skinnum" field to edict_t instead of directly reading the key into s.skinnum for default Lazarus DLL.
Disabled unused run+fire animation for Freddie in missionpack DLL.
2020-12-14 00:09:31 -05:00
Knightmare66
c7334dfab0 Fixed mega health always sound being played on pickup for health items with custom count in both default Lazarus and missionpack DLLs. 2020-12-03 03:38:07 -05:00
Knightmare66
93a2e256eb Allow mapper-specified skinnum for items in default Lazarus and missionpack DLLs.
Allow mapper-specified model and count for health items in default Lazarus and missionpack DLLs.
2020-11-23 04:07:08 -05:00
Knightmare66
7b6f4281ad Added POSTTHINK_CHILD_MOVEMENT macro to new movewith host entities in g_spawn.c->SpawnEntities() in default Lazarus DLL.
Added Zaero flare gun to no-autoswitch in p_weapon.c->Pickup_Weapon() in missionpack DLL.
Added LM plasma rifle to p_weapon.c->NoAmmoWeaponChange() in missionpack DLL.
Added output of modelindex5&6, alpha, and attenuation to properties command  in missionpack DLL.
Added nogib and environment spawnflags to trigger_hurt and trigger_hurt_boox in missionpack DLL.
Added MONSTER_KNOWS_MIRRORS flag to berserker, barracuda shark, and mutant in missionpack DLL.
Added entity class IDs to misc_actor and target_actor in missionpack DLL.
Added syntax whitespacing to some files in missionpack DLL.
Added backpack drop to certain monsters in missionpack DLL.
Changed some sound paths for new monsters and weapons in missionpack DLL.
2020-10-29 13:03:20 -04:00
Knightmare66
e7db654934 Added entity class IDs for misc_actor and target_actor in default Lazarus DLL.
Restored updated GPL header in game/g_local.h.
2020-10-27 02:31:41 -04:00
Knightmare66
d16b46e3cf Added re-implementation of func_plat2 and func_door2 from rogue to default Lazarus DLL.
Overhauled child entity movement in default Lazarus DLL.
Added bbox versions of various triggers to default Lazarus DLL.
Added level.maptype field to default Lazarus DLL.
Added entity class IDs to default Lazarus DLL.
Incremented savegame version for default Lazarus DLL.
2020-10-27 02:00:05 -04:00
Knightmare66
08b4e6b1b4 Don't copy default.cfg to savegame dir. 2020-10-26 12:48:48 -04:00
Knightmare66
a680872065 Changed size of filename buffers for "entlist" and "properties" commands to MAX_OSPATH. 2020-08-30 00:20:39 -04:00
Knightmare66
72861a45cb Changed entlist command to use SavegameDirRelativePath().
Added better console output for entlist and properties commands.
2020-08-30 00:07:38 -04:00
Knightmare66
ed34b3b8ed Fixed missing sounds for buttons, doors, plats, etc. in id/rogue/xatrix maps caused by custom sound code in Lazarus and missionpack DLLs.
Added custom sound support to func_door_secret2 in missionpack DLL.
Changed missionpack DLL to use maptype_t enum in level_locals_t instead of constantly calling utility functions which contain multiple string compares.
2020-08-25 03:55:40 -04:00
Knightmare66
90274a87dd Added integer and description fields to cvar_t struct in game DLLs.
Fixed trailing ' in precache entry for weapon_chaingun.
Added sk_plasma_rifle_life_bounce and sk_plasma_rifle_life_spread cvars to
  missionpack DLL to control time-to-remove of plasma rifle projectiles.
Added SAVEGAME_DLLNAME specific to Citadel builds of missionpack DLL.
Added support for building a version of missionpack DLL specific to Quake2Evolved v0.40b.
2020-08-23 18:04:50 -04:00
Knightmare66
80982e59a6 Fixed health reverting to previous max_health value on map change when game is not saved first.
Merged 64-bit specfic descriptions and  filenames into resource scripts via preprocessor definition for resource scripts.
Removed separate resource files for 64-bit builds.
2020-08-17 00:41:24 -04:00
Knightmare66
d9848657dc Const-ified string parms for filesystem funcs, function exports, and related func in game DLLs. 2020-08-11 02:08:18 -04:00
Knightmare66
689ea4d497 Changed hyperblaster turret to use effects for blaster color instead of sounds. 2020-08-04 22:53:56 -04:00
Knightmare66
a4b5a70fff Added red hyperblaster turret.
Misc improvements/fixes to player-controlled turrets.
2020-08-04 21:33:39 -04:00
Knightmare66
497a0c5a7b Added blue and green hyperblaster modes to turret.
Fixed hyperblaster turret clipping against breach bmodel.
2020-08-04 17:03:00 -04:00
Knightmare66
5a30bf4a96 Renamed and moved declaration of flags for Musahsi's double barreled turret implementation 2020-08-04 05:15:41 -04:00
Knightmare66
8f43c6bf9f More 64-bit portability fixes. 2020-08-01 22:54:35 -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
38c148c0f8 Added ifeq, ifneq, ifgt, ifge, iflt, ifle, ifbit and ifnbit layout script commands.
Added missing bounds checks for layout script commands.
Fixed baseq2 paths in non-KMQ2 implementation for alias script loading, Lazarus text box loading, and GameDirRelativePath()/SavegameDirRelativePath() functions.
2020-07-19 22:33:17 -04:00
Knightmare66
e317029eac Updated GPL headers based on Q2 Tools GPL source release. 2020-06-04 17:01:28 -04:00
Knightmare66
9b4e85322c Added Q_StrScanToken() to replace StringContainsToken() for non-ambiguous token searching.
Changed CL_FilterStuffText() to use Q_StrScanToken() instead  of strstr().
2020-05-16 01:02:34 -04:00
Knightmare66
b020f21541 Fixed crucified insanes being screwed up by the clearing of spawnflags bit 8, which conflicts with SF_MONSTER_GOODGUY.
This manifiested as glitches such as them sliding downward when they or the player are shot.
2020-05-14 03:38:00 -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
ce580d2c10 Added new filesystem functions to game code.
Changed sk_ cvar names to match.
2020-04-19 23:57:44 -04:00
Knightmare66
f38b767fc1 Added support for cvar descriptions. 2020-04-08 23:26:17 -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