Commit Graph

57 Commits

Author SHA1 Message Date
Marco Cawthorne ab31ae0242
Fix player animations and attachment from not showing up since player drawing is handled much differently. 2022-11-08 20:29:10 -08:00
Marco Cawthorne 15fa5a8f12
Update codebase to be in line with upstream Nuclide. Add scripts/decals.txt and other shenanigans. 2022-11-08 19:49:53 -08:00
Marco Cawthorne d579defc89
HUD_DrawWeaponSelect: Avoid crash when we've got only empty weapons and try switching. 2022-08-24 14:20:17 -07:00
Marco Cawthorne f8f9703df3
Minor tweaks to the weapons, notably WEAPON_GAUSS. 2022-08-12 14:29:08 -07:00
Marco Cawthorne 8eb5a1fbc6
Clean up our player enumflags. 2022-08-07 14:14:16 -07:00
Marco Cawthorne c4e3745288
...facepalm. 2022-08-05 23:28:31 -07:00
Marco Cawthorne 64048e9b32
HUD: sanity check before calling isempty... 2022-08-05 22:36:12 -07:00
Marco Cawthorne 0e4baba0cd
Client: Skip over empty weapons when scrolling through the weapon selection 2022-08-05 22:14:14 -07:00
Marco Cawthorne 21a1a67b84
Move the MUZZLE_ definitions over from Nuclide. As they belong here instead. 2022-08-05 14:43:04 -07:00
Marco Cawthorne 51e9a7d851
Shared: WEAPON_PYTHON, WEAPON_EGON, WEAPON_GAUSS, WEAPON_MP5, WEAPON_SHOTGUN and WEAPON_SNARK no longer allow for firing underwater. 2022-08-05 14:10:04 -07:00
Marco Cawthorne 92c2b54ef0
Cleanup: Some CGameRules methods are now of type 'bool'
Remove rules.qc
2022-07-16 15:09:00 -07:00
Marco Cawthorne 58ef5dc162
Add mp_teamplay, mp_teamlist cvars, as well as the 'chooseteam' command because guess what, we have initial teamplay support. 2022-07-14 23:18:21 -07:00
Marco Cawthorne 454da78b0c
Add missing wrappers for ammo_9mmARclip and ammo_glockclip.
Add 'weaponbox' pickup, which may not be fully complete.
Some FX_ effects make proper use of env_sprite APIs now.
Edited default.cfg to parse skill.cfg itself.
Removed GS_RENDERFX flag in progs.src.
2022-07-07 09:13:16 -07:00
Marco Cawthorne bba57cb7ef
Adjust naming against upstream. 2022-05-11 12:51:12 -07:00
Marco Cawthorne 27028a834b
Client: Make HUD_ItemNotify use a seperate cache for old health/armor/item values. 2022-05-05 21:02:41 -07:00
Marco Cawthorne 8fad0d7dc1
WEAPON_TRIPMINE: Wiggle with SetBody and SetFrame on the pickup a bit. 2022-04-26 21:03:32 -07:00
Marco Cawthorne fef95603e7
Clean up some of the monster code, document and simplify viewmodel bob code.
Just general cleanups.
2022-04-26 11:23:21 -07:00
Marco Cawthorne 4cda2628e6
Extend FX_GibHuman with a dir (euler) and force parameter. 2022-04-05 20:46:11 -07:00
Marco Cawthorne fdd706526f
Various changes to enable use of the new Touch(entity) method. 2022-04-03 14:06:23 -07:00
Marco Cawthorne d1962767b4
Rebased against the latest Nuclide commit. 2022-03-15 19:34:26 -07:00
Marco Cawthorne 0293f9a441
Update copyright information
Remove pmodel attributes from the player class.
Sound shaders for weapon firing now call alerts to AI.
2022-03-13 16:57:51 -07:00
Marco Cawthorne 27c69ffecc
ClientGame_EventParse() now has returns either 0 or 1 to signal successful overrides. 2022-03-03 14:11:27 -08:00
Marco Cawthorne 8edb6984cf
Client: Get rid of .pitch reference
Shared: Tweak player animations a bit.
2022-02-01 09:45:53 -08:00
Marco Cawthorne ad7b2a0586
Client: Add hack to make ammo notifications for WEAPON_HORNET only appear
when under a certain condition.
2021-12-17 21:51:59 -08:00
Marco Cawthorne 3117e979d6
Client: Add damage and item pickup notifications to the HUD. This is the
last stretch of the HUD stuff (now we only need the tracktrain UI!)
2021-12-17 18:22:02 -08:00
Marco Cawthorne 2f8bdaa32b
Client: Handle ammo notifications for GEARBOX, ifdefd 2021-12-16 17:19:31 -08:00
Marco Cawthorne f1fdad0bb7
Client: Added ammo pickup notifications, fix some impact effect assignments
and change the fadeout time on weapon pickup notifications.
2021-12-16 15:39:11 -08:00
Marco Cawthorne 06af7f9e33
Use Font_GetID() in the places where drawfont is used. 2021-11-04 22:49:53 +01:00
Marco Cawthorne 44a90e3bcf
Move the damage indicator drawing/caching code into the client module
here from Nuclide-SDK.
2021-10-21 23:32:01 +02:00
Marco Cawthorne 954867b435
Remove deprecated EV_CHAT_VOX. Change monster_gman to NSTalkMonster. 2021-10-20 01:20:11 +02:00
Marco Cawthorne dae98790e5
Insert muzzleflash precaches from Nuclide into ClientGame_RendererRestart 2021-10-06 22:01:30 +02:00
Marco Cawthorne bd84d76685
Animation jitter fix for players. 2021-09-08 20:16:32 +02:00
Marco Cawthorne 8535399f7b
Update WEAPON_EGON to work with .predraw instead of CBaseFX (deprecated)
which will allow for streamlined weapon visuals for first and thirdperson
modes.
2021-09-02 09:40:47 +02:00
Marco Cawthorne 8d1f3d8412 HUD: Make armor display appear from bottom to top. 2021-08-29 19:43:09 +02:00
Marco Cawthorne 280484600d #ifdef out the GAUSS beam to VALVE so other mods compile better. 2021-08-29 18:28:49 +02:00
Marco Cawthorne 4635b900c6 WEAPON_EGON: Make the beam visible across the network. 2021-08-29 18:23:52 +02:00
Marco Cawthorne 24d7388580 WEAPON_GAUSS: More work towards the visual stuff this weapon offers by
fixing beams and things.
2021-08-29 17:45:33 +02:00
Marco Cawthorne ed71d7a97a Add decoupled viewmodel effects 2021-08-01 08:54:52 +02:00
Marco Cawthorne 4278d1fd61 Tweak the explosion effect to be a bit bigger, with sparks and stuff 2021-07-19 13:43:25 +02:00
Marco Cawthorne 8f051dd406 Updated the game-specific PMove code to be part of our player class 2021-06-08 15:31:21 +02:00
Marco Cawthorne d7293c8871 Client: Separate flashlight code from player.qc. 2021-05-22 20:36:55 +02:00
Marco Cawthorne 692b0eb214 Add support for cl_himodels. 2021-05-20 22:59:49 +02:00
Marco Cawthorne 7290c631d8 Use PMove_SetSize() to get accurate bbox info. 2021-05-16 23:12:30 +02:00
Marco Cawthorne 7723261567 Fix that dead but spectating team members don't show up in the scoreboard.
Spectators already are team 0, so they wouldn't be queried here anyway!
2021-05-12 15:48:19 +02:00
Marco Cawthorne 8878715c85 Update Animation_TimerUpdate to conform with upstream Nuclide.
Make player models run timers at the end of every predraw to ensure smooth
animation.
2021-05-10 12:24:00 +02:00
Marco Cawthorne f43ad5d661 Shared: Inherit weapon_common from Nuclide's base game 2021-05-10 08:16:22 +02:00
Marco Cawthorne ced4cb5bf8 Simplify prediction code with the help from upstream changes. 2021-05-08 17:45:58 +02:00
Marco Cawthorne fe4bfc455f Handle player model weapon attachments & animation for all the weapons! 2021-04-06 09:20:12 +02:00
Marco Cawthorne 5ad23eb22a Change pSeat references to pSeatLocal where applicable. 2021-03-31 13:42:24 +02:00
Marco Cawthorne 12183f669f Add m_flEventFrame to the player seat struct 2021-03-30 07:32:24 +02:00