Commit Graph

1299 Commits

Author SHA1 Message Date
Marco Cawthorne 44479cd637 Networking improvements. Make player entities and NPC networking
conditional. Only changed fields are networked. This is because the overall
design seems mature enough.
2019-09-07 21:01:05 +02:00
Marco Cawthorne 31750420be Remove/Fix sounds that were named wrong or missing. 2019-09-07 08:39:28 +02:00
Marco Cawthorne 63d91bb40e HL/SH: Make the ammo type icon affected by the ammo2/3 alpha 2019-09-07 07:47:11 +02:00
Marco Cawthorne 6413e26786 Clean the 'valve' HUD for splitscreen. 2019-09-07 07:31:38 +02:00
Marco Cawthorne 137a44dac4 Cleaned up spraylogo.cpp a bit. 2019-09-07 06:21:27 +02:00
Marco Cawthorne 5ddd040f9d Added src/mk_mapdef.sh to generate Radiant compatible entity definition
files.
2019-09-07 05:51:12 +02:00
Marco Cawthorne 27707e37b6 Move things from the root src/ dir into the src/shared folder, as that
makes the most sense.
2019-09-07 05:50:44 +02:00
Marco Cawthorne f4ced97ad0 Started documenting map entities via QUAKED style comments.
Use the mk_mapdef.sh script to generate a radiant compatible entities.def
file.
2019-09-07 05:37:06 +02:00
Marco Cawthorne 98e7bdef03 Spraylogos: Illuminate them with getlight() 2019-09-05 18:11:01 +02:00
Marco Cawthorne 396e811850 Scientist Hunt: Fixed weapon kill icon info. 2019-09-05 04:47:43 +02:00
Marco Cawthorne cf795010b9 Turn down the camera roll a litte. 2019-09-05 03:46:39 +02:00
Marco Cawthorne 5aa167d4af Added graphical obituaries for HL/SH.
The way the weapon is chosen is not yet final. I'm just tired and don't
feel like engineering the damage stuff right now.
2019-09-04 18:11:55 +02:00
Marco Cawthorne 53a12821e1 Cleaned up the damage routines to prepare for a bunch of new changes
related to obituaries etc.

Also added support for headshots. Right now they'll explode scientists'
heads so that's hilarious.
2019-09-04 10:38:39 +02:00
Marco Cawthorne 9f68bc97e1 Scientist Hunt: Tweak the chainsaw for a bit animation wise. 2019-09-04 04:40:05 +02:00
Marco Cawthorne 0841eb65f0 Scientist Hunt: Set the double barrel muzzle flash. 2019-09-04 04:39:46 +02:00
Marco Cawthorne bc4bd0580d Scientist Hunt: Tweak the Hammer to not violate our precious ears 2019-09-04 04:39:16 +02:00
Marco Cawthorne a7c2c04651 Delete v_cambob, as that never really worked well anymore to begin with. 2019-09-04 04:02:20 +02:00
Marco Cawthorne 50c1aced6e Handle muzzleflashes differently.
Originally I thought that the model event calls would decide which
muzzleflash to use. It WORKED close enough for CS afterall. It turns out
that the numbers must relate to size or something else which I have yet
to figure out. Either way this unbreaks muzzleflashes in Half-Life and soon
when I port the weapons from CS' system over to the predicted weapon system
from FreeHL, they'll get it too.
2019-09-04 03:57:06 +02:00
Marco Cawthorne 205cd5856f Made it so camera roll is only calculated when the player movetype is MOVETYPE_WALK 2019-09-04 03:14:41 +02:00
Marco Cawthorne 9726d25eaf trigger_autosave: Will now print the game saved text to the screen. 2019-09-04 02:52:13 +02:00
Marco Cawthorne b34bd0298d Added cvar v_camroll. 2019-09-04 02:51:49 +02:00
Marco Cawthorne d577f378e2 Menu: Error checking for strings.lst parsing, as some mods (The Ship) can't
do access out-of-bounds string indices.
2019-09-03 10:41:13 +02:00
Marco Cawthorne 22763a61ff Fixed HORRIBLE Damage_Radius behaviour.
Basically the damage value from the parameter was modified which resulted
in every entity found that's damaged taking damage away from every entity
that's potentially affected by the radius damage.

In Half-Life the armor skip would also be ignored, resulting that the
command 'kill' would not do much when wearing a fully charged HEV suit.
2019-09-03 05:01:35 +02:00
Marco Cawthorne b70eb4b7ce Counter-Strike: Bring back the scoreboard, as it wasn't interactive anyway. Maybe in the future there will be some fancy VGUI version. 2019-09-03 04:58:49 +02:00
Marco Cawthorne e23dc04d26 Menu: Stop mod print spamming for now. It's solid as it is. 2019-09-02 15:53:13 +02:00
Marco Cawthorne 3fa355069b Switch from memrealloc to memalloc for titles, so we count them manually now.
This is generally more reliable because lots of memcpy operations are annoying.
An entry will also now only get allocated when braces are fully enclosed.
This will fix crashes with Counter-Strike and other mods with faulty titles.txt files.
2019-09-02 15:52:01 +02:00
Marco Cawthorne 0f3cc9c5f5 Initial support for scripted_sentence and sentences.txt. It doesn't do anything fancy yet. 2019-09-02 06:29:18 +02:00
Marco Cawthorne 13f4044481 removed redundant check for the titles file. 2019-09-02 04:38:06 +02:00
Marco Cawthorne b4113b82d2 Move titles.txt parsing into its own file. 2019-09-02 04:26:48 +02:00
Marco Cawthorne 7a34587038 Set some debugging hulls for the player spawns. 2019-09-02 04:20:09 +02:00
Marco Cawthorne 978a0dd865 Added initial func_guntarget and trigger_autosave. 2019-09-01 22:39:56 +02:00
Marco Cawthorne 57e28231c1 Tweaked game message fading a bit. 2019-09-01 13:46:05 +02:00
Marco Cawthorne 78429997aa Support for scrolling env_message text, as well as a test cmd (titles_test) that allows you to test message definitions. 2019-09-01 13:34:11 +02:00
Marco Cawthorne f4ae48b1b5 Initial titles.txt support. Only env_message works with it right now. 2019-09-01 11:45:42 +02:00
Marco Cawthorne 7cc9a73cbd Scientist Hunt: Adopt 'valve' chat parsing that was more reliable. 2019-09-01 10:37:20 +02:00
Marco Cawthorne 0e70bc0ab6 Half-Life: Add early ammo definitions for ammo_mp5clip and ammo_mp5grenades 2019-09-01 10:09:49 +02:00
Marco Cawthorne 3dee62271f Half-Life: Let items trigger targets. Required for Hazard Course at least. 2019-09-01 10:08:59 +02:00
Marco Cawthorne afa60a0482 Half-Life: Start with suit in deathmatch. 2019-09-01 10:08:31 +02:00
Marco Cawthorne 05980cfb3e Half-Life: Only use flashlight when ITEM_SUIT is present. 2019-09-01 10:08:17 +02:00
Marco Cawthorne 7541db9f63 Half-Life: Only draw HUD when ITEM_SUIT is present. 2019-09-01 10:07:58 +02:00
Marco Cawthorne 106604661b Tweaking footsteps sound sensitivity a little. 2019-09-01 08:00:01 +02:00
Marco Cawthorne 15181308f8 Counter-Strike: Add item_suit, so that the training works again. 2019-09-01 06:59:09 +02:00
Marco Cawthorne 0968ee7756 Counter-Strike: Don't open VGUI in singleplayer upon start. 2019-09-01 06:20:00 +02:00
Marco Cawthorne 97aa368f67 got rid of redundant path data in gs-entbase .src files 2019-09-01 05:24:28 +02:00
Marco Cawthorne dee8eb2fd8 Updated progs.src file paths. 2019-09-01 05:23:24 +02:00
Marco Cawthorne b3acf9b715 Moving game specifics .src files into their own dirs. 2019-09-01 05:06:43 +02:00
Marco Cawthorne a6c53e9a7c vid_reload/restart will now refresh decal shaders. 2019-09-01 04:52:49 +02:00
Marco Cawthorne 0456322d28 Removed cstrike's player.cpp as it's unused. 2019-09-01 04:38:35 +02:00
Marco Cawthorne b604077d0b Renamed /Source to /src 2019-09-01 04:35:37 +02:00