Commit Graph

254 Commits

Author SHA1 Message Date
Marco Cawthorne aa6b541313 the slot1-10 keys are now working as expected. 2020-03-25 19:57:08 +01:00
Marco Cawthorne 80d06e7dcd Cleaned up warnings. 2020-03-25 17:42:36 +01:00
Marco Cawthorne 4bdefa4cd7 Big commit, list of additions:
Added stubs for a variety of monsters for 'valve' which a few mods inherit.
Added support for the 'vote' and 'callvote' command.
Made env_laser network some info to the clients, kinda rough because
we're working around some engine iffyness with CSQC ents right now.
Updated the menu so that the server-lists for Internet and LAN games are
a bit more helpful.
Made the CBaseMonster class for useful for the future.
Fixed setting of transparency for all entities.
2020-03-25 13:58:19 +01:00
Marco Cawthorne 66b629b83a Valve: Basic weapon pickup notification, cl_autoweaponswitch 2020-03-24 16:20:58 +01:00
Marco Cawthorne 223d740448 Effect_Blood can now take 'color' as a parameter. Also added some basic
trails which will be shoved into the client-side asap.
2020-03-24 11:20:21 +01:00
Marco Cawthorne 7bf8db941d Shoved some precaching stuff around 2020-03-24 07:47:41 +01:00
Marco Cawthorne f1190cd282 Fixed compiling against the latest entity-codebase 2020-03-24 07:26:49 +01:00
Marco Cawthorne 20c6a2d508 Gone over triggers to add some helpful prints. 2020-03-23 17:25:03 +01:00
Marco Cawthorne 41ce469bb3 Fix worldspawn 'skyname' key 2020-03-08 11:53:57 +01:00
Marco Cawthorne c51da15564 Made the codebase compile again... 2020-03-08 10:59:46 +01:00
Marco Cawthorne 673cf9dbf8 Manual networking of all base-entities. This shouldn't be necessary,
but, as the engine-bug that's as old as time itself that has been
responsible for prediction being wonky has still not been fixed, I have
to do this. Maybe it'll be for worse, maybe it'll be for the better.
2020-01-16 05:43:12 +01:00
Marco Cawthorne 6c75cb749e Send classname over the net instead of netname if there isn't one 2020-01-08 02:29:29 +01:00
Marco Cawthorne 674432f6cb Added missing They Hunger files. 2019-12-22 23:28:39 +01:00
Marco Cawthorne cfe0094c28 - Added early Poke646 entries.
- Added missing Shock-Rifle particle file.
- Fixed monster_scientist behaviour in SciHunt that broke.
- Added parenting functionality for entities (The Wastes uses this.)
- More updates to BasePhysics. Requires plugins/bullet.
  I want to make it work with primitive physics however.
- Updated prop_rope entity. The Wastes uses this and requires an updated
  engine.
- Changed the way env_sound works. This may be more accurate.
2019-12-22 12:13:49 +01:00
Marco Cawthorne 6fea65a586 Gunman Chronicles: Basic work on weapons and their menus completed.
Some weapons and their visuals are not implemented yet.
It's a very good preview of how things are going to work though.
2019-09-22 15:41:13 +02:00
Marco Cawthorne 18fda226f6 Updated Damage_Apply and TraceAttack functions to cache which weapon was
used to attack.

Also a few more weapon fixes. When will it ever be done???
2019-09-17 02:29:00 +02:00
Marco Cawthorne 8985a8f373 Added ammo culling for Half-Life 2019-09-15 23:55:18 +02:00
Marco Cawthorne 881e24905c Fixed that the weapon selection number was defined as being 255 instead of
256... go figure.
2019-09-15 15:49:05 +02:00
Marco Cawthorne aa5dac4e01 Half-Life: Bring WEAPON_GLOCK a bit more polished with more accurate
weapon idle animation timers.
2019-09-15 08:38:52 +02:00
Marco Cawthorne 9f86e70f2f Weapon Select: Fix precision issue with flawed bitfield check.
Otherwise we're only getting access to 23 bits of mantissa... this should
totally be classified as a compiler bug, by the way.
2019-09-14 11:52:22 +02:00
Marco Cawthorne 2489e4d872 Renamed client/*.cpp to .c files where appropriate 2019-09-13 09:58:35 +02:00
Marco Cawthorne caf39bd2ef Renamed text.c to prints.c, as it is more appropriate 2019-09-13 09:55:27 +02:00
Marco Cawthorne b27f060589 Moved non-entity specific code from gs-entbase/client/ to client/ 2019-09-13 09:43:34 +02:00
Marco Cawthorne fcc9643190 More tweaks for both Half-Life and Opposing Force weapons and behaviour.
Also added Gunman stubs.
2019-09-12 09:12:12 +02:00
Marco Cawthorne bf5c78fab2 Opposing Force: Initial commit of weapons.
Includes some networking fixes so we can actually use 32bits of items.
That's what these mods are good for - testing the infrastructure.
2019-09-12 01:20:03 +02:00
Marco Cawthorne 5132b28c49 Team Fortress: Basic Team/Class spawning. 2019-09-11 13:08:12 +02:00
Marco Cawthorne 94b0b5acc5 Team Fortress: Initial commit. Rough framework for the weapons, build
scripts, etc.
2019-09-11 08:45:41 +02:00
Marco Cawthorne 1f0ed248a5 Cleaned/optimised some obituary code. 2019-09-09 18:58:02 +02:00
Marco Cawthorne 9feedd1f04 Cleaned up some names used in prediction. 2019-09-09 18:57:46 +02:00
Marco Cawthorne bca3a1f713 Prediction: Unbreak Weapons_Draw by setting the roll-back values of
predicted variables. This is because we're doing something that happens
outside the prediction... this should be more elegant but it works for now.
2019-09-08 12:19:27 +02:00
Marco Cawthorne 4da3cf5079 Prediction: Roll back .viewzoom, as that was forgotten about before. 2019-09-08 12:16:27 +02:00
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 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 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 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 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 b34bd0298d Added cvar v_camroll. 2019-09-04 02:51:49 +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 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 978a0dd865 Added initial func_guntarget and trigger_autosave. 2019-09-01 22:39:56 +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 7541db9f63 Half-Life: Only draw HUD when ITEM_SUIT is present. 2019-09-01 10:07:58 +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 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 b604077d0b Renamed /Source to /src 2019-09-01 04:35:37 +02:00