Commit Graph

89 Commits

Author SHA1 Message Date
Marco Cawthorne 736ecb61f8
TraceAttack: check surfaceflags on world traces, m_iMaterial on anything
else.
2021-10-15 09:37:51 +02:00
Marco Cawthorne 147969e8a8
Client: Add Weapons_EnableModel() and Weapons_DisableModel() so weapons can
manually control the visibility regardless of viewzoom setting
2021-10-08 21:50:04 +02:00
Marco Cawthorne 574980bb1d
CGameRules: Now incorporates DamageApply and DamageRadius, thus making you
able to have gamerule specific logic for inflicting damage to entities.
2021-10-07 23:30:21 +02:00
Marco Cawthorne 7acdd8a2d6
Base: Weapons_SetModel; make sure the viewmodel's bbox gets set to point
size every time the model changes, in case the sv_gameplayfix for setmodel
sizes hack is enabled.
2021-10-04 22:47:52 +02:00
Marco Cawthorne 251713121c
PropData: Add support for the BreakModel info parsing. Any CBaseEntity can
now be augmented. prop_physics entities can already make use of them.
2021-09-21 20:33:09 +02:00
Marco Cawthorne cba54d3e2b
Added crossprint, changed input_sequence from int to float as
it's now integrated into the engine, however as a float (blame DP)
2021-09-15 22:44:31 +02:00
Marco Cawthorne 2a86794d67
Add precache_cubemap() to src/client/defs.h 2021-09-02 21:11:54 +02:00
Marco Cawthorne 527318bd65
Deprecate CBaseFX, introduce .predraw for weapon functions. 2021-09-02 09:39:37 +02:00
Marco Cawthorne 9fb574d920 CBaseEntity: Fix error for when games are not compiled with GS_RENDERFX 2021-08-03 07:15:25 +02:00
Marco Cawthorne 0709688f9f Add base/default.cfg, some fallback menu assets. 2021-08-02 22:36:36 +02:00
Marco Cawthorne 1ec3cf2e8e Decouple Camera/Viewmodel effects from src/ into base/src/ 2021-08-01 08:53:21 +02:00
Marco Cawthorne 972304bf23 Update base/liblist.gam 2021-07-19 11:27:11 +02:00
Marco Cawthorne 971b76f938 Menu-FN: Added support for parsing gameinfo.txt from Source Engine games 2021-06-13 09:04:29 +02:00
Marco Cawthorne 243c875a3f CBaseTrigger: Add support for Source Engine's FireUser/OnUser 1-4 trigger
inputs/outputs.
2021-05-29 10:52:47 +02:00
Marco Cawthorne a4a40be8ae Menu-FN: Parse "minversion" command from liblist.gam.
Base: Document example liblist heavily.
2021-05-28 21:24:57 +02:00
Marco Cawthorne 2082f1355a Menu-FN: Parse liblist.gam files instead of relying on manifests outright. 2021-05-28 10:26:42 +02:00
Marco Cawthorne 19065e4810 Base Game: Adding some base weapon helper functions, will make dealing with
multi-state weapons like shotguns during reloads easier.
2021-05-25 08:33:35 +02:00
Marco Cawthorne 148c5f0e86 Base: Unset think() of the player if they're alive and switching weapons. 2021-05-22 20:37:53 +02:00
Marco Cawthorne 09528c2944 Add support for top/bottom color on players and viewmodels.
Fix func_breakable's sound shader from precaching non existing sounds.
2021-05-20 16:01:07 +02:00
Marco Cawthorne 8072ba2872 Add Weapons_Sound() back, because now it'll be useful 2021-05-17 20:18:25 +02:00
Marco Cawthorne c5cea7a162 Base: Weapons now track weight (for Weapons_SwitchBest)
BotLib: Add CreateObjective() method that can be overridden
2021-05-12 15:42:20 +02:00
Marco Cawthorne aef65b5749 Shared: Add frametime parameter to Animation_TimerUpdate(). 2021-05-10 12:22:12 +02:00
Marco Cawthorne 1485544b91 Base: Get rid of g_eAttacker, which had been replaced by g_dmg_eAttacker.
Go over TraceAttack and make it combine multiple Damage_Apply calls into
one.
2021-05-10 11:33:31 +02:00
Marco Cawthorne a3ecd78f17 CBaseMonster: support for spawnflag MSF_IGNOREPLAYER (64). 2021-05-10 08:14:10 +02:00
Marco Cawthorne 64745eb23c Overhaul prediction routines by boxing the generic client attributes away
from the game specific code. Add some helper macros... clean a whole bunch
up.
2021-05-08 17:44:16 +02:00
Marco Cawthorne 76507b3e9e Client: Handle EFX_Shutdown() for OpenAL Environmental FX 2021-05-07 16:29:24 +02:00
Marco Cawthorne 7a9d50b4c9 Strip Weapons_PlaySound() from base 2021-05-07 13:30:44 +02:00
Marco Cawthorne 54be70da80 fx_spark: make it use our sound shader definitions 2021-04-07 12:57:23 +02:00
Marco Cawthorne 44ab18793c Rearrange how we execute and time our player animation logic 2021-04-06 09:18:17 +02:00
Marco Cawthorne e5ba0406fd Added pSeatLocal, which is like pSeat but games no longer break if upstream
Nuclide expects new fields. You might have to migrate some fields over.
2021-03-31 13:40:27 +02:00
Marco Cawthorne 9319e63619 View_AddEvent: Add hack to cache and verify we're playing the event only on our frame of choice 2021-03-30 07:30:33 +02:00
Marco Cawthorne b043b57ed5 Get rid of the View_EjectShell* functions I added last week and replace it
with the much cooler View_AddEvent() which allows for much more.
2021-03-29 21:52:53 +02:00
Marco Cawthorne 48d1b1ad0d Client: View_EjectShell is now replaced by three different variations. 2021-03-17 14:34:26 +01:00
Marco Cawthorne 3d1041fcf6 Added ClientGame callbacks for PreDraw and PostDraw calls. 2021-03-17 06:24:38 +01:00
Marco Cawthorne f8798d6084 Base: Merge client/input.qc and server/input.qc into shared/input.qc, as
it makes a lot more sense of prediction purposes
2021-03-09 11:39:52 +01:00
Marco Cawthorne fc75a1be11 Base, Half-Life, Counter-Strike, Opposing Force and Scientist Hunt have
now been reworked to have fully networked ammo that's also fully affected
by rollback netcode. Big diff, mods WILL break. Beware.
2021-02-28 02:31:27 +01:00
Marco Cawthorne 3037d38b9a Base-Mod: Document client and server progs.src a bit more to encourage
a kind-of structure.
2021-02-17 11:16:30 +01:00
Marco Cawthorne a902b702ae Small building adjustment to the mod progs.src and Makefiles.
Changed some client progs function names for readability, more to come
2021-02-17 00:44:40 +01:00
Marco Cawthorne 02efa21e3d Move game-specific sources into their respective mod-dirs. This was planned
for a while and was inevitable. Latest fteqcc required that fixes a limit
with paths. Also added src/server/mapcycle.qc
2021-02-08 13:35:15 +01:00