Commit Graph

29 Commits

Author SHA1 Message Date
Marco Cawthorne dcfdf531ce
Move the duties of hlmaterials.txt into surfaceproperties.txt, since Source has a 'gamematerial' keyword we should use instead. 2022-10-16 00:36:18 -07:00
Marco Cawthorne f01e90ad2e
Merge material property definitions into the surfaceproperties system to streamline
everything more and to allow level designers custom properties without recompiling
the game-logic. This will also make it more Source Engine compatible.
2022-10-15 22:43:32 -07:00
Marco Cawthorne db2d3b1730
Get rid of hlmaterials.qc by making the look-up happen fully within NSMaterial.qc as part of the newly unified material routines.
There's also a new file (hlmaterials.txt) that is subject to change which will allow you
to add many custom material definitions without hard-coding a thing. Which fixes conflicts between different GoldSrc games.
2022-10-15 20:32:40 -07:00
Marco Cawthorne a463498f60
Huge cleanup. Add initial code for the revamped material definition system. 2022-06-01 17:38:52 -07:00
Marco Cawthorne a469c06fc8
Add 'surfaceparm projectile' support, so non-solid surfaces can
still react to tracelines and projectiles.
2022-04-13 16:58:42 -07:00
Marco Cawthorne 143a00e94e
Fix light_dynamic (static) from not spawning in CSQC. Add r_skipDiffuse to rtlight.glsl,
add SURF_PENETRATE, which will make bullets pass right through them when
BULLETPENETRATION is set. Go over and refactor a lot of base_client, player
and spectator code to facilitate both permanent and temporary spectators
better. Add experimental env_glow lens flare code. Fix material ID detection
bug for Q3 based BSPs. A couple helper functions were added to src/client/utils.cpp
but they are not yet final.
2022-03-17 21:05:47 -07:00
Marco Cawthorne 1bd7d1a68c
Add platform/base_scripts.pk3dir/particles/burn.cfg. 2022-01-20 16:38:49 -08:00
Marco Cawthorne f2e44b24fb
Add platform/base_sound.pk3, move base sound shaders in there. Add misc/null
and misc/missing PCM samples for fallback.
2021-12-18 15:06:37 -08:00
Marco Cawthorne a48baff2d1
Menu-FN: Add a hack around drawtextfield(), wasting QC asm instructions in
the process for something as simple as specifying character size.
2021-11-06 11:17:54 +01:00
Marco Cawthorne 32ed57b4d7
Menu-FN: Add rendersize 11 to fonts/menu_label.font 2021-11-06 07:59:13 +01:00
Marco Cawthorne c22b001f60
Cleanup: get rid of the ancient Font_LoadFont() wrapper, pipe _all_ text
font info through our internal font_s data structure.
2021-11-04 22:48:19 +01:00
Marco Cawthorne aa0ccf4413
Add test_grenadeclip.
Add helper functions to convert RGB255 to ^x color codes.
Small fixes for fonts in vguilib.
2021-11-03 21:54:43 +01:00
Marco Cawthorne 70fe95e5a7
Add support for Source styled surfaceproperties.txt definitions, which
is incorporated into func_breakable/pushable already. Mods can now control
material/surface properties without code.
2021-10-15 19:01:36 +02:00
Marco Cawthorne 2b377fdd79
Document the various CONTENTBITS that are relevant to us and reserve
a GRENADECLIP content bit, so levels can be optimised for nade throws.
2021-09-24 10:48:05 +02:00
Marco Cawthorne 844c29bf23 Menu-FN: Off-load font definitions into external .font files, like cgame 2021-08-08 13:54:05 +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 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 3b36834b93 Platform: HL doesn't have concrete4 and flesh4 debris sounds 2021-05-17 22:19:29 +02:00
Marco Cawthorne f09f5833e0 Introduced the new OpenAL EFX handling subsystem. It's fully user-definable
via plain-text definitions and allows even legacy/GoldSrc content to take
advantage of it.
2021-04-22 11:33:48 +02:00
Marco Cawthorne 27b5b59f0d Server: Precache step_sand.left/right, add to footsteps.sndshd.
Fix some botlib waypointing strings.
2021-04-18 08:24:55 +02:00
Marco Cawthorne 5b07ee41a9 Add damage_bullet sound shader definitions. Those are played when a bullet
successfully hits a hurtable body.
2021-03-27 09:09:10 +01:00
Marco Cawthorne cec4872994 Add modelevent_shell sound shader definitions, so mods can set shell eject
sounds.
2021-03-27 07:47:56 +01:00
Marco Cawthorne cd9dad472e func_door: define sound shaders for legacy move/stop sound 0 (nothing) 2021-03-17 11:58:00 +01:00
Marco Cawthorne e4cb99dc02 Add player.sndshd to platform for convenience. 2021-03-15 11:31:44 +01:00
Marco Cawthorne 0fe863aabc Server: Add water stepping, wading and swimming sounds + script definitions 2021-02-13 23:06:06 +01:00
Marco Cawthorne f8606ae7e7 Extend impacts to the full spectrum of material definitions, sound shaders
and all. Still needs patch for Counter-Strike.
2021-01-19 10:37:28 +01:00
Marco Cawthorne 0f50c46623 Platform: Added blood decal for non-Q3BSP.
GS-Entbase: Add mitigations for possible unwanted adddecal() calls, remove decals upon CSQC_Shutdown()
2020-10-23 05:15:59 +02:00
Marco Cawthorne 074e1cc120 Client/Platform: Added some base impact decal examples for non HL BSP...
this will change a bit more to include more material types. Patience!
2020-10-15 19:02:55 +02:00
Marco Cawthorne b6e9aceb02 Platform: Restructure the directory, add example maps and sources. 2020-09-24 15:33:35 +02:00