Commit graph

1429 commits

Author SHA1 Message Date
23b671956f
Weapons_AddItem: Only count NSGameRules' MaxItemPerSlot() when we're adding a new weapon 2023-02-14 22:02:47 -08:00
86dfb3ff1a
Fix various compiler warnings. 2023-02-14 12:54:06 -08:00
c939e790e8
Menu-FN: ifdef the reference to g_ePreviewModel out in cz_cxHQModelChanged 2023-02-12 13:02:35 -08:00
9738a6a525
prop_dynamic/static: support for 'sequence' key 2023-02-11 22:38:23 -08:00
370396a415
Menu-FN: Parsing user.scr and settings.scr in Advanced options is now mostly done. Still need to support LIST type layout elements. 2023-02-11 17:10:43 -08:00
7518e743b9
Menu-FN: further work to make the Multiplayer > Customize menu more accurate 2023-02-10 13:50:36 -08:00
943897e5ba
Menu-FN: add options in the Multiplayer > Customize menu for HQ models (with preview) and voice chat settings 2023-02-09 19:08:47 -08:00
53c8665b11
Menu-FN: update spray related infokeys upon init 2023-02-09 17:12:31 -08:00
8761b73e4a
NSGameRules: add some debug info for damage applications 2023-02-09 17:11:39 -08:00
0bf0fd42d1
Crosshair: terrible hack to deal with vid_conautoscale being inconsiderate 2023-02-09 17:11:00 -08:00
855daac7e7
Menu-FN: ensure g_iModInstallCache is set to -1 upon init to avoid Custom Game from being glitchy from a fresh install. 2023-02-08 15:55:13 -08:00
f0d77627ea
NSClientPlayer: Ensure .scale is reset upon spawning 2023-02-07 16:21:33 -08:00
65f21af405
env_beam, env_laser, prop_rope: Use GetEyePos() to assign the proper player view position 2023-02-07 16:21:01 -08:00
fb4e08c2bf
NSClientPlayer: fix the view_ofs check in EvaluateEntity() 2023-02-07 14:01:25 -08:00
daf8512aa2
NSTalkMonster: Don't greet non-friendly players.
NSMonster: Improvements to alerting, turning and what to do when they lose their target.
NSInteractiveSurface: Unbreak it by allowing it to spawn in CSQC
Server: Spawn AI nodes for info_player_{start,deathmatch} when no real nodes are present
2023-02-06 16:41:19 -08:00
099dba11f6
Client: some titles/text messages have an uppercase newline character. so handle those as well. 2023-01-23 16:44:18 -08:00
6aa3206d2b
Server: skip SV_RunClientCommand when our clients aren't fully initialized yet. 2023-01-23 00:12:35 -08:00
993c2a6ebc
Shared: Expose INPUT_BUTTON6 and INPUT_BUTTON7 so mods can define some extra movement/weapon inputs for clients. 2023-01-22 20:06:06 -08:00
46f6bfc1d3
Client: add r_showTexts to aid debugging of env_message and game_text entities 2023-01-22 20:03:22 -08:00
66b773508d
Client: add console command 'listTitles' to aid debugging of titles.txt entries 2023-01-22 20:02:46 -08:00
441079b30c
NSRenderableEntity: take RenderFX setting into account before culling some networked info 2023-01-22 20:01:52 -08:00
638825af56
NSEntity: add GetSpawnAge() and GetSpawnTime() methods, which communicate when an instance of an entity was brought into the world. 2023-01-22 20:01:24 -08:00
baadd35ffd
NSTimer: add method StopTimer() and invalidate any thinks during OnRemoveEntity() 2023-01-22 20:00:36 -08:00
5617000f77
NSClientPlayer: allow player to hold down Secondary attack after holding down Primary. 2023-01-18 21:31:36 -08:00
9accdcb68a func_physbox: Use Disappear API call 2023-01-18 19:37:10 -08:00
655b5fa33e
NSEntity: add method IsFacing() which should make some common sneakish tasks easier. 2023-01-18 19:01:56 -08:00
fae4bc09e5
NSProjectile: some touchups in regards to the Spawned() method. 2023-01-18 17:33:09 -08:00
d562533111
NSProjectile: add AnimateOnce() method 2023-01-17 20:23:18 -08:00
fea5ed574f
Shared: add crandom() implementation into defs.h 2023-01-17 16:39:57 -08:00
19d7f30cc4 Replace some Hide calls with Disappear and we don't need this check in TalkMonster anymore 2023-01-17 13:37:03 -08:00
5f011a28dd
Shared: Removal of Game_Input(). 2023-01-11 17:41:49 -08:00
179a95088f
NSGameRules: Add overridable methods ImpulseCommand(NSClient, float) and PlayerRequestRespawn(NSClientPlayer).
Game_Input, the game specific function every game had to implement will be
deprecated to streamline the overall codebase. Migrate custom impulses into your gamerule overrides.
This will make it much easier to separate cheat impulse from the multiplayer game too.
2023-01-11 17:12:20 -08:00
1069468be1
Client: add cvar net_debugUpdates, to show which entity updates.
NSSurfacePropEntity: Add method: TimeSinceDeath()
Also further improvements to consistency of cvars, etc.
2023-01-08 13:18:57 -08:00
0ac1bc4b68
NSEntity: Add method CanSpawn(bool) which will be used to determine mainly if an entity is to be spawned on the client or server module (but it can also let a class handle under which other conditions it spawns)
NSEntity: move RestoreComplete() into NSIO because NSGameRules needs this.
2023-01-06 13:23:48 -08:00
b2925d46e4
Lots of small clean ups and microoptimisations. ambient_generic has also been fixed in multiplayer and made to save more bandwidth.
Rename a bunch of cvars to be more in a more consitent style similar to later id Tech games.
2023-01-05 23:41:48 -08:00
6ee21bc0ea
NSEntity: add attribute m_bIsBrush, which will be set if the entity is using a brush model. 2023-01-05 22:30:49 -08:00
dbf511dfb9
NSClientPlayer: add extrapolation of other clients, should be a lot smoother players all around now. 2023-01-05 15:31:25 -08:00
d7012bff5b
Remove debug print that is no longer needed. 2023-01-05 11:36:31 -08:00
2c5bf43c58
Fixed spectator inputs getting stuck and physics being run twice, due to the recent changes to SV_RunClientCommand. 2023-01-02 18:10:20 -08:00
534b249ac4
Client: Call Weapons_PreDraw() inside NSClientPlayer's predraw. 2022-12-31 17:49:15 -08:00
46eae742cb
VGUI: Make sure defaults are filled into the attributes inside Spawned() for inherited ones. 2022-12-30 18:01:47 -08:00
b356994beb
NSTrigger: SetTeam() will now assign an InfoKey to the target, if it's a client. 2022-12-30 13:54:28 -08:00
4322f1fd93
GS-EntBase: prevent light entities from overriding the first built-in lightstyles.
worldspawn: Assign two more lightstyles that Half-Life registers.
2022-12-30 13:53:42 -08:00
1bd9a5ea01
Menu-FN: Respect gameinfo_chatroom if it was set from a manifest override. 2022-12-30 12:09:23 -08:00
7fe51a3fa5
Platform: Fix missing return value change for Achievement_RequestStarts 2022-12-30 11:54:07 -08:00
27b0c26a12
Documentation improvements for platform, vgui etc. headers and files. 2022-12-30 00:15:10 -08:00
88131dbb9a
NSClient: add {Set,Get}InfoKey() methods. 2022-12-30 00:12:36 -08:00
3c71b49b49
Client: Add Cross_ helper functions. This will take care of common crosshair specific rendering tasks, as well as handle third-person and XR versions of crosshairs. 2022-12-28 16:48:57 -08:00
633046d28e
NSClient: Rename ClientInput() method in NSClient to ProcessInput(), as well as add SharedInputFrame() that can be overriden by the game. 2022-12-28 16:47:44 -08:00
ce7cf4519f
Server: Set cvar s_nominaldistance to 1000 upon init. Dedicated server needs this to play sounds properly. 2022-12-28 15:15:30 -08:00