Commit graph

81 commits

Author SHA1 Message Date
Knightmare66
f829090864 Added custom animations array and enabled target_animation entity in missionpack DLL.
Added support for custom client railgun colors in missionpack DLL.
Removed sk_rail_color_* cvars from missionpack DLL.
Added CS_HUDVARIANT configstring.
Added code to set CS_HUDVARIANT configstring in game DLLs.
2021-11-11 21:32:00 -05:00
Knightmare66
ec1c4c03f8 More reformating and refactoring of m_actor.c in default Lazarus and missionpack DLLs. 2021-11-05 16:08:04 -04:00
Knightmare66
6de038bb2b Refactored m_actor.c in default Lazarus and missionpack DLLs with macros for weapon numbers.
Reformatted g_camera.c in default Lazarus and missionpack DLLs.
Added color string utility function to missionpack DLL.
2021-11-05 05:23:57 -04:00
Knightmare66
054d9522ec More formatting changes to misc_actor code in default missionpack and Lazarus DLLs.
Added support for LMSP plasma rifle to misc_actor in missionpack DLL.
2021-11-03 18:02:54 -04:00
Knightmare66
b4a509243d Reformatted m_actor.c and m_actor_weap.c in default Lazarus and missionpack DLLs. 2021-11-03 03:46:07 -04:00
Knightmare66
f4d66df31b Added "This file is generated by Extractfuncs, do not modify" comment to header ouput for extractfuncs. 2021-11-02 19:19:17 -04:00
Knightmare66
95295401a4 Added support for custom client railgun colors in 3ZB2, Awakening2, and Zaero DLLs.
Added weapon balancing and tech control cvars to 3ZB2 DLL.
Added Vampire and Ammogen techs to 3ZB2 game DLL.
Fixed func_door_secret movement bug (when built with origin brush) in Zaero DLL.
Fixed armor stacking bug in default Lazarus, missionpack, and Zaero DLLs.
Removed unused tech cvars in default Lazarus DLL.
Changed parsing of TE_BLASTER_COLORED tempent.
2021-10-31 03:53:09 -04:00
Knightmare66
b573e7da75 Add support for arrays of structs (up to 4 dimensions) to extractfuncs. 2021-10-28 20:28:49 -04:00
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
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
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
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
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
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
4806e6cbc5 Added handling for sscanf() exceptions. 2021-07-14 05:27:46 -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
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
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
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
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
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
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
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
77a2053b72 Fixed PatchMonsterModel() skin names for certain monsters. 2021-01-02 15:58:52 -05:00
Knightmare66
124642a661 Reduced vulture fly speed to 10 in missionpack DLL. 2020-12-25 19:00:08 -05:00
Knightmare66
46d73f0f42 Changed monster Freddie to uses "sounds" key to select laser attack instead of a spawnflag. 2020-12-14 01:50:25 -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
56473dc6e4 Added top comment decription to m_vulture.c in missionpack DLL. 2020-12-03 17:04:50 -05:00
Knightmare66
e8769195cd Added freddie and vulture monsters to missionpack DLL.
Added functions ThrowGibFrame() and ThrowDebrisFrame() to g_misc.c in missionpack DLL.
Added GIB_FEATHER gib type and MOVETYPE_FEATHER phys type to missionpack DLL.
Added precache functions for monster weapons in g_weapon_q1.c in missionpack DLL.
Moved function AimGrenade() from grenade.c to g_weapon.c in missionpack DLL.
2020-12-03 17:00:15 -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