Commit Graph

476 Commits

Author SHA1 Message Date
Marco Cawthorne d31a3b65fd
NSView: fix some warnings. 2024-03-06 19:38:39 -08:00
Marco Cawthorne d697f53ca5
NSView: when we switch between dead/alive state, reset damage display/shake variables. 2024-03-06 19:31:26 -08:00
Marco Cawthorne 3d32e75e88
NSClientSpectator: add new method SpectatorDeathcam() 2024-03-06 19:13:11 -08:00
Marco Cawthorne f0034cb03a
SEND/READENTITY_ANGLE: use WriteAngle()/readangle() 2024-03-04 19:37:51 -08:00
Marco Cawthorne 649ed825ad
Big commit, work over various triggers. Clean up debug prints and make
them more consistent. Warnings are in yellow, while errors are in red.

New cvar: g_developerTimestamp will display timestamps next to debug messages
originating from the game-logic. Set g_developer to 1 to see them.
A lot of useful into, such as which entity id messages originate from
should aid in debugging quite a bit.

SP level transitions should also be more reliable now in terms of
transferring entities and the like.

Some levels have awkward transition areas and you might find yourself
jumping between levels frequently. Workarounds are in the works.
2024-03-02 00:40:08 -08:00
Marco Cawthorne 0147278359
Client View: Ensure modelindex of the viewmodels get set to 0 when
we've got no valid weapon set.
2024-02-23 14:26:55 -08:00
Marco Cawthorne c44bf11e3b
View: helper function to prepare for weapon changes on the client-side 2024-02-23 14:01:43 -08:00
Marco Cawthorne 06d959ef02
func_tracktrain: Lots of improvements across the board. Enjoy c0a0-c0a0e!
func_trackchange/autochange: Initial implementation.
2024-02-13 22:51:36 -08:00
Marco Cawthorne 4a8f4a6082
Add a whole bunch of new bot features, including bot profiles.
Developers: the internal class `bot` is now `NSBot`, and an entityDef
of the old name will be instantiated instead.

Override defs/bot.def in your mod and make it use any custom spawnclass
you wish. Now games don't have to override `addbot` or `bot_add` inside
the multiplayer game rules.

There's also more console commands. Clients now have access to:
addBot, killAllBots, killClass [classname], killMovables, trigger [targetname], input [entnum] [input] [data], listBotProfiles, listTargets, teleport [targetname], teleportToClass [classname], respawnEntities, spawn
2024-01-26 19:27:50 -08:00
Marco Cawthorne fea60cd435
Client: add return to exit early when skyPath isn't set, solely to avoid an unnecessary print. 2024-01-15 15:44:46 -08:00
Marco Cawthorne 40aee258ce
NSClientSpectator: new mode: overview which is work in progress.
Various misc fixes to code routines that negatively affect splitscreen.
We also set frametime/clframetime to 0.0 after the first player view has been drawn as to not run
predraw math more than once per frame. This should not cause any issues but if you are experiencing issues let us know.
2024-01-08 14:58:45 -08:00
Marco Cawthorne 0c7fc9abc6
NSRadar: add method InitEmpty() 2024-01-02 15:41:25 -08:00
Marco Cawthorne 4600a03165
NSRadar: checking in initial work on the class 2024-01-01 21:23:09 -08:00
Marco Cawthorne 2530608b1f
NSInteractiveSurface: fix typo 2023-12-15 16:59:19 -08:00
Marco Cawthorne 32f9d974bb
New commands: listClientSoundDef, listServerSoundDef
Merge various trigger fields from Source entities into NSTrigger
Rename default player related sounds to the Source Engine style for more parity with Half-Life 2 and later games
Various player physics code fixes, such as being unable to jump higher when pushing against solids and faster noclip speed
2023-11-17 18:54:46 -08:00
Marco Cawthorne bf705a9e31
speaker: now shared between client/server game
NSTalkMonster: Remove game specific PREDISASTER flag from the code, implement GAG instead
New entities: env_cascade_light (wip), logic_achievement, env_instructor_hint (wip)
2023-11-15 09:52:11 -08:00
Marco Cawthorne 97c2fdd778
env_smoker: Initial implementation. 2023-10-24 00:30:42 -07:00
Marco Cawthorne 73bec53034
PropData: read info from Source Engine .phy files 2023-10-22 23:30:31 -07:00
Marco Cawthorne 11deea5b3d
Add the following physics entities from Source: phys_ballsocket, phys_constraint, phys_constraintsystem, phys_convert, phys_hinge, phys_keepupright, phys_slideconstraint & env_physexplosion
Add new class phys_rope, which will handle move_rope and keyframe_rope from Source.
2023-10-17 16:49:01 -07:00
Marco Cawthorne 81a498d49e
Client: update viewmodel bone count directly after switching models, needed for getting the right attachment positions 2023-10-13 08:23:12 -07:00
Marco Cawthorne 900cf43bd0
!!! Mods/games should now remove modelevent.qc and view.qc from their csprogs !!!
env_muzzleflash: Initial implementation of this Half-Life 2 entity
Client: model events are for viewmodels are now handled by NSRenderableEntity.
2023-10-12 14:45:27 -07:00
Marco Cawthorne 9602d5eac8
Client: add new cheat cvar: r_skipWorld 2023-10-11 01:05:19 -07:00
Marco Cawthorne 9896b652c8
env_shockwave: Initial implementation of this SoHL entity 2023-10-06 00:20:48 -07:00
Marco Cawthorne b37893e660
Client: fix the typewriter text effect timing, where fadein controls the time for each character to fade in. 2023-10-04 07:55:55 -07:00
Marco Cawthorne 6298688e05
worldspawn: Change the way worldspawn keys are read, and shared with the client.
Avoiding the need to read the world on the client-side altogether.
2023-09-22 14:39:45 -07:00
Marco Cawthorne b7126fbadb
env_glow: from client-side only entity to shared. also support other rendermodes (accurate to GoldSrc) 2023-09-19 23:01:59 -07:00
Marco Cawthorne 5db3db539a
Client/Server: Handle 'skyname' universally and guess on the client whether we're using a Source Engine style skybox path 2023-09-13 07:56:11 -07:00
Marco Cawthorne b77ec906f6
env_steam: initial implementation of this Half-Life 2 entity. 2023-09-13 00:29:31 -07:00
Marco Cawthorne 5f070fa8c9
point_spotlight: give it a better texture (thanks Maxwell) and optimize some bits 2023-09-12 19:39:51 -07:00
Marco Cawthorne 59748adf86
point_spotlight: initial implementation of this Half-Life 2 entity; also fix env_projectedtexture, func_dustmotes and func_smokevolume not rendering 2023-09-12 15:00:56 -07:00
Marco Cawthorne bd470605a3
Exterminate FX_Explosion, FX_Spark and FX_Impact references. 2023-07-24 14:14:20 -07:00
Marco Cawthorne a8f454dd2c
Clean up some warnings 2023-07-16 22:46:26 -07:00
Marco Cawthorne c65c33ef13
Client: add new command 'listFramegroups [model path]' 2023-07-16 13:04:23 -07:00
Marco Cawthorne f877b1620f
Add the constants loader, to allow entityDefs and other scripts to reference constants defined within scripts/constants.txt 2023-07-15 11:34:58 -07:00
Marco Cawthorne b847316ec0
DecalGroups: precache decal groups up front to avoid loading and frames where decals are white/invisible. 2023-07-14 18:08:29 -07:00
Marco Cawthorne 9e6a203a02
Shared: Go over the various base classes and bring Save/Restore methods up to date. 2023-07-07 23:34:58 -07:00
Marco Cawthorne dd492c7822
Add new cvar `com_showTracers` to aid in debugging tracelines. 2023-07-04 08:42:32 -07:00
Marco Cawthorne 373e844305
Client: add new Util_ functons Util_GetTime, Util_GetTimeLeft and Util_GetAddress for the current server. 2023-06-15 11:40:46 -07:00
Marco Cawthorne 12bb472abc
add class NSPortal (initial work, plus custom pmove changes).
Work on NSProjectile expansion has begun.
Support for skill cvar referencing within entityDef values.
2023-05-27 11:58:34 -07:00
Marco Cawthorne 6078d31f12
NSMonster: add methods SetEyePos, and cvar r_showViewCone. 2023-05-17 08:59:26 -07:00
Marco Cawthorne ff78e34c16
Move Route_GetJumpVelocity() into shared/defs.h for now. 2023-05-10 16:12:59 -07:00
Marco Cawthorne 3a755aaba7
NSSurfacePropEntity: add SetCanBleed() and CanBleed() methods to abstract the old iBleeds field. 2023-04-22 01:05:27 -07:00
Marco Cawthorne f00d49e6ca
Client: when an unknown network event is received, error out with a message. 2023-04-19 15:21:04 -07:00
Marco Cawthorne 60bbe417ab
Client-Font: actually set con_textsize for the console font as well, because that makes sense to do. 2023-04-18 15:05:45 -07:00
Marco Cawthorne e1b024e345
Client-Font: when loading fonts/fontcon.font, apply it to gl_font. 2023-04-18 15:02:12 -07:00
Marco Cawthorne 7f55f1c868
Client - Titles: add new function Titles_GetTextBody() to grab the body portion of a titles.txt entry 2023-04-18 14:46:51 -07:00
Marco Cawthorne 89bf3e436a
Client: ensure renderflags are being set after calling RenderFXPass() on the view models 2023-04-16 11:31:44 -07:00
Marco Cawthorne 706241a7b6
Client: viewmodel and player model weapon now inherit the rendermode of the player. 2023-04-16 10:43:40 -07:00
Marco Cawthorne 0c5c714b79
GS-Entbase: Implementation of CS/DMC's env_fog entity. 2023-04-14 10:21:07 -07:00
Marco Cawthorne 405fe1cfa9
NSView: Mark certain methods as virtual (where it currently makes sense) 2023-04-09 11:34:50 -07:00