Commit Graph

85 Commits

Author SHA1 Message Date
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 10b2ff1fca
Add setorigin_safe(), which is just like setorigin but pushes
entities upwards out of the ground.
2021-09-12 00:12:55 +02:00
Marco Cawthorne 4a2cde56cc
Clean up pseudorandom() a bit. 2021-09-02 09:47:48 +02:00
Marco Cawthorne 57f1408b8c Add UpdateView() to CBaseVehicle, to let vehicles override the
camera properties in CSQC_UpdateView before rendering.
2021-09-01 15:19:50 +02:00
Marco Cawthorne d4fccac03f Work towards making vehicles predicted, this is ongoing. 2021-08-19 17:54:08 +02:00
Marco Cawthorne 883a64b744 Remove ftebug_checkpvs(), undefined behaviour was causing things to pop
in and out of existence. There was no fault with FTE's implementation after
all. Change func_dustmotes, prop_rope and env_glow to querying player pos
more reliably.
2021-06-29 10:47:51 +02:00
Marco Cawthorne 97bc849abe Add cvar ftebug_checkpvs, to see work around something that hasn't been
fixed yet.
2021-06-28 19:52:36 +02:00
Marco Cawthorne 7f00e9354d Add shared/platform.h which will send hints as to what target platform
we're dealing with (pc, touch, web, console etc.)
2021-06-18 09:26:24 +02:00
Marco Cawthorne af139751e0 setmodel(): verify if model exists in PATH and set it to an error one if
it's not present.
2021-06-01 12:40:53 +02:00
Marco Cawthorne 448b9bd20d Client: MakeStatic func_wall ents where we can do it on.
Shared: Bench PMove_Run using the engines builtin runstandardplayerphysics
2021-05-16 23:08:08 +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 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 95739c7a20 Basic spectator implementation for all games. 2021-03-24 07:50:30 +01:00
Marco Cawthorne d1b1431b8a BotLib: Bots ought to switch weapons now when they pick an item up!
Also moved the way_menu cmd into its own file...
2020-12-28 19:59:37 +01:00
Marco Cawthorne c130ab2c38 PMove: Added macros to let mods override a bunch of physics variables so
they keep their fingers out of pmove.c
2020-12-08 12:00:10 +01:00
Marco Cawthorne 3195b4c196 light: Improved entity documentation, deprecated spawnflags & 1 for any non
idTech 2 BSP files. Use start_active instead.
2020-12-07 18:16:45 +01:00
Marco Cawthorne 2fa4fd159c Move CLASSEXPORT from server/defs.h to shared/defs.h 2020-12-01 12:32:42 +01:00
Marco Cawthorne 422741a295 GS-Entbase: Add Input/Output methods for func_conveyor, func_guntarget,
func_wall_toggle
2020-10-31 14:32:23 +01:00
Marco Cawthorne 97d19c1b37 Add shared/include.src, so we touch gamename/include.src less for global
changes.
2020-10-30 12:21:00 +01:00
Marco Cawthorne d9dababe65 Moved all possibly game-specific flags (such as FL_FLASHLIGHT) into gflags,
this affects mods. Please check the diff to see what you'll need to adjust.
2020-10-22 16:30:37 +02:00
Marco Cawthorne fc3f124d24 Progs.src for server-side codebases are much simpler now, player class now
inherits the base_player class, which is a new addition.
2020-05-03 05:26:06 +02:00
Marco Cawthorne a025a41e73 Simplified the client progs.src file for each game massively. 2020-05-02 23:57:25 +02:00
Marco Cawthorne 2cee375ce5 Lots of commits bundled into one:
- Added GamePMove_Fall and GamePMove_Jump for controlling either.
- Tweaked maxspeed for Counter-Strike heavily.
- Worked on the Counter-Strike WEAPON_KNIFE (fully functional!).
- Worked on the Counter-Strike WEAPON_AWP (mainly zoom).
- The WEAPON_C4 in Counter-Strike will no longer unfreeze you during warmup
- Added cl_showtriggers for displaying brush-based triggers.
- Removed muzzleflash dynamic light, as it seems GoldSrc doesn't have any.
- Fixed bug in which the server-list would run into an infinite loop error.
- Fixed weapon pricing in Counter-Strike.
- To rescue hostages means to earn $$$
2020-04-20 06:45:14 +02:00
Marco Cawthorne 51cce26fd8 Added some init messages. 2020-04-19 12:02:05 +02:00
Marco Cawthorne 142e6c9cf3 Possible memalloc corruption mititagions. 2020-04-12 19:40:09 +02:00
Marco Cawthorne 324fadd668 Spring cleaning. Prepare for summer! Fixed lots of bugs too:
v_camroll is now working again.
Counter-Strike is finally getting somewhere again.
Counter-Strike has pseudo spray-patterns now! They're all the same.
func_button now can be programmed to use Sound-Shaders.
The menu handles the vid_conautoscale command autonomously. Set r_autoscale
to 0 if you don't like it.
The menu has an updater, requires a not-yet-pushed build of FTE.
Don't use it yet.
Moved a lot of globals into pSeat's structs to fix splitscreen with them.
Made explosion decals be handled client-side!
Added trigger_look, env_sun and light_environment entities.
2020-04-12 15:50:42 +02:00
Marco Cawthorne f43bc2cf32 update copyright dates because I've been forgetting all year. 2020-04-07 14:46:23 +02:00
Marco Cawthorne 755eecfc34 A bunch of mod changes contributed to by Xylemon, mixed together with
some of my FX code which is going places.
2020-04-05 02:25:27 +02:00
Marco Cawthorne 4f44d96be9 Pulled over Sound-Shader code from TW. We'll use this soon over hard-coded
sounds.
2020-04-02 22:43:37 +02:00
Marco Cawthorne 197b373335 Fixed some more prints to be cvar developer 1 only. 2020-03-31 09:28:40 +02: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 c5b0e0146f Some fixes to get FreeHL to compile without TW. 2019-11-09 02:09:17 +01:00
Marco Cawthorne 32b7791b2b Add internal support for damage types. still a few more useful ones to add
on a per-case basis.
2019-09-29 01:54:29 +02:00
Marco Cawthorne e64bc2ca8e Networking: Make sure level transitions don't miss player entity setup
packets
2019-09-08 12:59:17 +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
Renamed from src/defs.h (Browse further)