Commit Graph

2296 Commits

Author SHA1 Message Date
Marco Cawthorne 8761b73e4a
NSGameRules: add some debug info for damage applications 2023-02-09 17:11:39 -08:00
Marco Cawthorne 0bf0fd42d1
Crosshair: terrible hack to deal with vid_conautoscale being inconsiderate 2023-02-09 17:11:00 -08:00
Marco Cawthorne ce90e2c221
Document and clean up platform/platform_default.cfg 2023-02-09 17:10:39 -08:00
Marco Cawthorne fe84c317e2
make_dist.sh: Fix the inclusion of release-readme.txt and allow game-dirs to pack their own info texts. 2023-02-08 16:17:22 -08:00
Marco Cawthorne 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
Marco Cawthorne f0d77627ea
NSClientPlayer: Ensure .scale is reset upon spawning 2023-02-07 16:21:33 -08:00
Marco Cawthorne 65f21af405
env_beam, env_laser, prop_rope: Use GetEyePos() to assign the proper player view position 2023-02-07 16:21:01 -08:00
Marco Cawthorne fb4e08c2bf
NSClientPlayer: fix the view_ofs check in EvaluateEntity() 2023-02-07 14:01:25 -08:00
Marco Cawthorne 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
Marco Cawthorne 099dba11f6
Client: some titles/text messages have an uppercase newline character. so handle those as well. 2023-01-23 16:44:18 -08:00
Marco Cawthorne 6aa3206d2b
Server: skip SV_RunClientCommand when our clients aren't fully initialized yet. 2023-01-23 00:12:35 -08:00
Marco Cawthorne 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
Marco Cawthorne 46f6bfc1d3
Client: add r_showTexts to aid debugging of env_message and game_text entities 2023-01-22 20:03:22 -08:00
Marco Cawthorne 66b773508d
Client: add console command 'listTitles' to aid debugging of titles.txt entries 2023-01-22 20:02:46 -08:00
Marco Cawthorne 441079b30c
NSRenderableEntity: take RenderFX setting into account before culling some networked info 2023-01-22 20:01:52 -08:00
Marco Cawthorne 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
Marco Cawthorne baadd35ffd
NSTimer: add method StopTimer() and invalidate any thinks during OnRemoveEntity() 2023-01-22 20:00:36 -08:00
Marco Cawthorne 0078d83d80
Add platform/cvars.cfg 2023-01-18 21:50:32 -08:00
Marco Cawthorne 5617000f77
NSClientPlayer: allow player to hold down Secondary attack after holding down Primary. 2023-01-18 21:31:36 -08:00
Marco Cawthorne 94564e0697
Minor script changes to change from GH to our own VCS. 2023-01-18 21:30:04 -08:00
Xylemon 9accdcb68a func_physbox: Use Disappear API call 2023-01-18 19:37:10 -08:00
Marco Cawthorne 655b5fa33e
NSEntity: add method IsFacing() which should make some common sneakish tasks easier. 2023-01-18 19:01:56 -08:00
Marco Cawthorne fae4bc09e5
NSProjectile: some touchups in regards to the Spawned() method. 2023-01-18 17:33:09 -08:00
Marco Cawthorne d562533111
NSProjectile: add AnimateOnce() method 2023-01-17 20:23:18 -08:00
Marco Cawthorne fea5ed574f
Shared: add crandom() implementation into defs.h 2023-01-17 16:39:57 -08:00
Xylemon 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
Xylemon 06d3721547 Add documentation for Arch Linux and remove SVN from the list as it's going bye bye 2023-01-15 14:41:11 -08:00
Marco Cawthorne 018b9c16b4
Platform: defaultskin.glsl: Add fallback for the chrome effect in case the GLSL cannot access skeletal information. 2023-01-12 18:50:56 -08:00
Marco Cawthorne c26f7ab2c4
Platform: Make changes to defaultskin.glsl that were contributed by dear Slartibarty. <3 2023-01-12 18:43:19 -08:00
Marco Cawthorne 5f011a28dd
Shared: Removal of Game_Input(). 2023-01-11 17:41:49 -08:00
Marco Cawthorne 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
Marco Cawthorne fa8e335564
Base: Doing more cleanup work here, more to be done for sure. Specifically finish a working NSWeapon class example. 2023-01-08 13:19:56 -08:00
Marco Cawthorne 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
Marco Cawthorne 9c3622f59b
nuclide, nuclide-ds: set fs_game post setting sv_gamedir to ensure we save into sane locations. 2023-01-06 13:24:13 -08:00
Marco Cawthorne 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
Marco Cawthorne 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
Marco Cawthorne 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
Marco Cawthorne dbf511dfb9
NSClientPlayer: add extrapolation of other clients, should be a lot smoother players all around now. 2023-01-05 15:31:25 -08:00
Marco Cawthorne d7012bff5b
Remove debug print that is no longer needed. 2023-01-05 11:36:31 -08:00
Marco Cawthorne 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
Marco Cawthorne 534b249ac4
Client: Call Weapons_PreDraw() inside NSClientPlayer's predraw. 2022-12-31 17:49:15 -08:00
Marco Cawthorne 46eae742cb
VGUI: Make sure defaults are filled into the attributes inside Spawned() for inherited ones. 2022-12-30 18:01:47 -08:00
Marco Cawthorne 324cbeb073
Merge pull request #7 from preston-thompson/master
Fix cstrike invisible weapons issue when zoomed in
2022-12-30 16:58:30 -08:00
Preston Thompson 9c7ac3636a Fix cstrike invisible weapons issue when zoomed in 2022-12-30 16:50:48 -08:00
Marco Cawthorne b356994beb
NSTrigger: SetTeam() will now assign an InfoKey to the target, if it's a client. 2022-12-30 13:54:28 -08:00
Marco Cawthorne 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
Marco Cawthorne 1bd9a5ea01
Menu-FN: Respect gameinfo_chatroom if it was set from a manifest override. 2022-12-30 12:09:23 -08:00
Marco Cawthorne 7fe51a3fa5
Platform: Fix missing return value change for Achievement_RequestStarts 2022-12-30 11:54:07 -08:00
Marco Cawthorne 27b0c26a12
Documentation improvements for platform, vgui etc. headers and files. 2022-12-30 00:15:10 -08:00
Marco Cawthorne 88131dbb9a
NSClient: add {Set,Get}InfoKey() methods. 2022-12-30 00:12:36 -08:00