Commit graph

278 commits

Author SHA1 Message Date
5578b0e602
GS-EntBase: Add client-side prediction for func_tankmortar. 2021-09-08 20:17:13 +02:00
2a86794d67
Add precache_cubemap() to src/client/defs.h 2021-09-02 21:11:54 +02:00
8ba5bc56d2
Sound: Added 'distshader' keyword support... which will play a
another sound definition at global attenuation (explosions like this)
2021-09-02 10:10:27 +02:00
4a2cde56cc
Clean up pseudorandom() a bit. 2021-09-02 09:47:48 +02:00
9fa091db43
Reserve 3 SRC'04 rendermodes, implement RM_DONTRENDER. 2021-09-01 22:41:11 +02:00
fd05c2419c
Minor cleanup of SendFlags assignments, fix for 'sv respawn_ents' affecting players. 2021-09-01 22:11:30 +02:00
1657ff3e29
GS-EntBase: Move I/O system into CBaseEntity, add Skin, Disable/EnableShadow inputs... 2021-09-01 21:30:10 +02:00
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
6cea322f6a base_player: Network v_angle[1] along with angles[1] 2021-08-29 18:28:11 +02:00
34505bcacf GS-EntBase: Fix crash with vehicles by networking them separately
from CBaseEntity, which will assign the needed client-side input
method for prediction
2021-08-28 21:25:38 +02:00
d4fccac03f Work towards making vehicles predicted, this is ongoing. 2021-08-19 17:54:08 +02:00
62b5e300d7 Set default physics cvars up on init, as the engine has some set to "" and
thus renders our autocvar definitions useless.
2021-08-14 09:13:27 +02:00
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
97bc849abe Add cvar ftebug_checkpvs, to see work around something that hasn't been
fixed yet.
2021-06-28 19:52:36 +02:00
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
de63f37a52 Call Math_FixDelta before networking a bunch of different entity angles. 2021-06-16 11:56:28 +02:00
971b76f938 Menu-FN: Added support for parsing gameinfo.txt from Source Engine games 2021-06-13 09:04:29 +02:00
17368be5e7 Moved the PMove code into the base_player class, so mods can override
sections at will
2021-06-08 15:30:47 +02:00
3efae50481 GS-Entbase: Make use of setmodelindex() instead of directly assigning
modelindex.
PMove: Hack to get stop gravity=0 from breaking runstandardplayerphysics if
CUSTOMPHYSICS is not defined
2021-06-08 09:17:35 +02:00
b2c15d8fa4 build_editor.sh: Add check for env variable BUILD_CLEAN 2021-06-04 13:03:26 +02:00
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
2082f1355a Menu-FN: Parse liblist.gam files instead of relying on manifests outright. 2021-05-28 10:26:42 +02:00
03b16ff905 Add Vox_Sentence_Broadcast() and Vox_Sentence_Single 2021-05-25 10:25:20 +02:00
4964ba3859 Shared: Give base_player class a constructor. 2021-05-25 08:35:22 +02:00
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
2d17321554 Small fix to avoid spam in my inbox. 2021-05-17 20:15:49 +02:00
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
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
aef65b5749 Shared: Add frametime parameter to Animation_TimerUpdate(). 2021-05-10 12:22:12 +02:00
368e19f784 Spectator: Make sure we set spec_mode and spec_ent in the constructor to
some in-bound defaults. Fixes crash in HUD_Spectator()
2021-05-10 12:21:40 +02:00
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
a3ecd78f17 CBaseMonster: support for spawnflag MSF_IGNOREPLAYER (64). 2021-05-10 08:14:10 +02:00
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
6da1f3c4fa GS-Entbase: massive optimisation - any func_wall and illusionary without a
targetname will not be networked and handled 100% client-side.
2021-04-10 09:35:06 +02:00
fca8620cba Server: Physics variables are now controlled via sv_ cvars like they
usually are in idTech, however we're now checking them every frame and
updating the networked infokeys in question
2021-04-06 12:22:32 +02:00
44ab18793c Rearrange how we execute and time our player animation logic 2021-04-06 09:18:17 +02:00
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
08a4080c66 Some minor spectate input code cleanup, make it so that we cache the last
valid player position so we don't get warped to [0,0,0] when a player being
tracked dies.
2021-03-27 07:50:40 +01:00
95739c7a20 Basic spectator implementation for all games. 2021-03-24 07:50:30 +01:00
b49815872c Sound Shaders: Exit out when we attempt to play a shader that hasn't been
precached.
2021-03-13 04:24:53 +01:00
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
89be1ea628 PMove: Fixed water movement code a bit so we don't sink while moving 2021-02-16 11:02:39 +01:00
2449fa492e Half-Life: Fix viewmodel still drawing when dead, player moving 2021-02-13 10:07:52 +01:00
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
aeae39fc9a Materials_FixName: Fix typo 2021-01-25 12:09:43 +01:00
4cf229d946 CBaseEntity: Don't send origin/size info when 0 upon entering PVS 2021-01-22 16:05:40 +01:00
93728d283c Added Materials_FixName() for preparing materials.txt lookups 2021-01-22 15:54:06 +01:00
4b5125d97f CBaseEntity: Optimisation in SendEntity regarding predictable defaults. 2021-01-21 01:29:26 +01:00
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
3662565879 Unscrew player animation and fix a bug involving botlib overriding
important playermethods on bot-clients with CBaseEntity ones.
2021-01-06 15:54:17 +01:00