Commit Graph

2589 Commits

Author SHA1 Message Date
Marco Cawthorne a3268ef65b
env_shake: active global shake entities can be stopped by removing them from the game now. 2024-03-05 00:33:37 -08:00
Marco Cawthorne a9b6f9a428
trigger_transition: filter out "players" in all transitioning modes. 2024-03-04 20:13:53 -08:00
Marco Cawthorne 0c2db7a23a
SV_PerformLoad: Saner check for if we can call Destroy()... 2024-03-04 19:55:30 -08:00
Marco Cawthorne 32a36d8017
Server: show 'entered game' message once and only in MP. 2024-03-04 19:48:37 -08:00
Marco Cawthorne f0034cb03a
SEND/READENTITY_ANGLE: use WriteAngle()/readangle() 2024-03-04 19:37:51 -08:00
Marco Cawthorne 9c66c2c5f9
func_door: Fix `targetClose` not getting triggered right when START_OPEN spawnflag is set 2024-03-04 19:34:13 -08:00
Marco Cawthorne c0b031ed9f
Nodes: Make the way nodes are generated a bit better. 2024-03-04 18:52:21 -08:00
Marco Cawthorne e2239a236f
Minor cleanups to some point entities and replace various usage of whichpack(). 2024-03-04 18:51:07 -08:00
Marco Cawthorne 50cc1b6198
phys_rope: Remove newline from print. 2024-03-04 18:49:22 -08:00
Marco Cawthorne 6c8b56c39f
env_explosion: Don't trigger when disabled (duh) 2024-03-04 18:48:54 -08:00
Marco Cawthorne 57b19425c1
NSIO: Give it an empty ParentUpdate() to work around StartFrame() calling a null function on them. 2024-03-04 18:45:06 -08:00
Marco Cawthorne 37ab385bcf
NSEntity: add empty DebugDraw method for listen servers. 2024-03-04 18:44:10 -08:00
Marco Cawthorne 0f96e635b0
NSTalkMonster: add anim event 1009. 2024-03-04 18:43:17 -08:00
Marco Cawthorne 86cfec6e6d
NSTrigger: ensure killtarget is transferred on delayed triggers. Also double check a target is specified before we attempt to search for entities to trigger. 2024-03-04 18:42:48 -08:00
Marco Cawthorne d405ff7e90
PropData: Change warning to a log. Not every model has to have PropData. 2024-03-04 18:42:05 -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 0792fbaee9
Server: add Skill_Init inside init() 2024-02-23 13:58:59 -08:00
Marco Cawthorne cb4ba0c201
env_spark: Fix spawnflag START_ON not implying TOGGLE, add Input() method and implement more stuff. 2024-02-23 13:57:28 -08:00
Marco Cawthorne ca318e29f9
button_target, trigger_changelevel, trigger_transition: doc improvements 2024-02-23 13:54:46 -08:00
Marco Cawthorne c60012b757
env_shooter: Add Input() method 2024-02-23 13:53:04 -08:00
Marco Cawthorne 8b2d484917
func_train: fix how we initially spawn, preventing the train from accidentally getting triggered on spawn 2024-02-23 13:50:52 -08:00
Marco Cawthorne 02551ed71b
env_shooter: Apparently 'scale' only works on sprites. So let's add some systems to detect that. 2024-02-23 13:41:04 -08:00
Marco Cawthorne ee58089a55
env_explosion: Get it up to Source Engine standards. 2024-02-23 13:23:19 -08:00
Marco Cawthorne 34884b68a3
ambient_generic: fix mix-up of small and medium radius.
also set s_nominaldistance to 1024.
2024-02-23 13:22:51 -08:00
Marco Cawthorne e2ee6987de
NSTraceAttack: save traceline endpos and plane_normal in case it gets set elsewhere 2024-02-23 13:21:44 -08:00
Marco Cawthorne 7d58b4a96a
NSRenderableEntity: Remove aggressive angle optimisation 2024-02-23 13:21:08 -08:00
Marco Cawthorne 8a18c2e992
PropData: gibs use a fixed angular velocity in fallback physics mode, and have a hitbox. 2024-02-23 13:20:53 -08:00
Marco Cawthorne 0f86ba61a1
DecalGroups_Place: cancel out if the group wasn't found. 2024-02-23 13:20:15 -08:00
Marco Cawthorne 5c90692873
SurfaceProperties: impacts now pass a proper dir vector to the particle system 2024-02-21 21:11:48 -08:00
Marco Cawthorne 6319f6166e
Skill.qc: readcmd() builtin usage replaced with a tiny config parser.
Context:
localcmd/stuffcmd are delayed enough that we can't use it to load
difficulty settings from skill.cfg before the game objects have spawned.

readcmd worked around this, but its usage is buggy and discouraged.

loading config files from the root game directory is forbidden by the
engine for security reasons (being able to read passwords etc.)
but we're allowed to do so from sub-directories.

by emulating the source engine behaviour we become compatible with their
convention, while also working around said incompatibility.
2024-02-21 21:08:57 -08:00
Marco Cawthorne 2f56725160
func_plat: nudge the platform the way way when no height is defined and we make up a position 2024-02-21 16:41:52 -08:00
Marco Cawthorne 29a997dbcf
Sound: add Sound_Stop() to make that task more slightly more accessible. 2024-02-21 16:11:14 -08:00
Marco Cawthorne 33e5038881
func_pushable: play the surfaceproperty specific scraping sound when being pushed around 2024-02-21 16:10:28 -08:00
Marco Cawthorne b2fc4d2918
env_muzzleflash: add cvar `cg_muzzleflashDLightColor` 2024-02-21 16:09:32 -08:00
Marco Cawthorne 3e182b3737
NSRenderableEntity: Ensure .skeletonindex is set to 0 after deleting the skeletal object 2024-02-21 14:50:44 -08:00
Marco Cawthorne 0e3eb491a6
NSClientPlayer: ensure pmodels have a shadow as well 2024-02-21 13:51:43 -08:00
Marco Cawthorne a9836563d1
trigger_teleport: add telefrag. 2024-02-21 13:43:43 -08:00
Marco Cawthorne 9847f3828e
NSGameRules: send a newly joined player to the intermission screen gently 2024-02-21 13:41:18 -08:00
Marco Cawthorne 08259f5652
make_mapdef.sh/trigger_changetarget: Minor fixes. 2024-02-19 13:23:46 -08:00
Marco Cawthorne 0df1e78cc3
Platform: Comment out debug strings. 2024-02-19 13:20:51 -08:00
Marco Cawthorne ea0b365037
SurfaceProperties: Insist on having a 'default' stage defined. Use that to initialize the various surface properties. 2024-02-19 13:20:08 -08:00
Marco Cawthorne f950dcaabb
func_pushable: Respect 'size' and improve movement direction math a little. 2024-02-15 14:49:44 -08:00
Marco Cawthorne 9e68e24d2e
trigger_teleport: Add filter for func_pushable entities. Test chamber can now be triggered. 2024-02-15 13:35:42 -08:00
Marco Cawthorne 99f513efdb
func_pushable: Remove hitcontentsmaski override, else the cart won't move up in the test chamber. 2024-02-15 13:35:13 -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 7e8d1aacdb
Fix various warnings. 2024-01-30 00:42:10 -08:00
Marco Cawthorne 31b88f63f2
Fixes for DAMAGE_AIM, so we can respect the `sv_aim` cvar. 2024-01-29 23:47:36 -08:00
Marco Cawthorne 08cac51d5f
NSClient: add `void SetInfoKeyFloat(string, float)` and `float GetInfoKeyFloat(string)` methods 2024-01-29 16:10:16 -08:00