Commit graph

19721 commits

Author SHA1 Message Date
Sal
dc84a294cb Merge branch 'find-musicdef' into 'master'
Add S_FindMusicDef, function to find musicdef by name

See merge request KartKrew/Kart!860
2024-09-07 00:14:58 -04:00
Oni
110c9e2dc7 Merge branch 'musicdef-update' into 'master'
First Musicdef changes in preparation for music test

See merge request KartKrew/Kart!812
2024-09-07 00:14:41 -04:00
toaster
372e655d70 Merge branch 'fix-addfile-double-error' into 'master'
Fix networked addfile command erroring twice for already added files

See merge request KartKrew/Kart!1100
2024-09-07 00:10:33 -04:00
James R
038c401d8b line 448: fix skybox mobj reference leak
Calling P_SetTarget on the temporary skybox_t is
pointless. P_SwitchSkybox calls P_SetTarget when copying
to the player struct.
2024-09-06 22:16:36 -04:00
NepDisk
b65c9fd33d Additional P_SetTarget mobj_t pointer fixes on player struct
2a87cfcdf1
2024-09-06 22:15:18 -04:00
James R
dc25bafd27 Add RF_HIDEINSKYBOX, stop rendering object in skybox 2024-09-06 20:31:18 -04:00
James R
ff07fcf232 line 448: do not change skybox after player finishes the race 2024-09-06 20:26:39 -04:00
NepDisk
27235e2241 Add PogoSpring Minimum and Maxium speed to terrain 2024-09-06 19:35:45 -04:00
NepDisk
097d1c09db Give waterpanels a different sound 2024-09-06 18:49:08 -04:00
NepDisk
ee60073749 Fix and Tweak waterrun panels
These now last 2 seconds which is slighty longer then a  sneaker, to allow for easier water traversal without stacking
2024-09-06 18:37:42 -04:00
NepDisk
0cb1a8b21c Acutally Allow the use of spring strength with pogospring
The previous commit did make this work oops...
2024-09-06 18:18:47 -04:00
NepDisk
1da4a9b4b6 Allow the use of spring strength with pogospring
There may be no trick panels but this will do hopefully....
2024-09-06 17:16:16 -04:00
NepDisk
443737fc9d Implement Outrun terrain type with a twist!
Since I want to keep the v1 style speed cap, I am going to use a timer set alongside the outrun to enable/disable the ground speed cap so the speed boost doesn\'t get neuterd hard
2024-09-06 17:08:19 -04:00
NepDisk
1182b037b7 Fix offroad terrain particles appearing for spectators 2024-09-06 13:21:53 -04:00
NepDisk
b10b78b1a4 Add waterrun to lua 2024-09-06 04:13:07 -04:00
NepDisk
9f937cc4ae Recreate old water skipping 2024-09-06 04:08:03 -04:00
NepDisk
4fd41ab4d5 Revert gravity changes 2024-09-06 02:58:28 -04:00
NepDisk
f1a63eaf8c remove unused spring star code 2024-09-06 02:42:20 -04:00
toaster
0a233f2959 Merge branch 'fix-fof-spring-terrain' into 'master'
K_ProcessTerrainEffect: fix spring crash on top of FOF

See merge request KartKrew/Kart!1162
2024-09-06 02:26:31 -04:00
TehRealSalt
f801bdf799 Remove R_DoorClosed
This function has caused me, so much unexpected pain because of just how out of the way it is, and NOTHING else uses it
2024-09-06 01:25:53 -04:00
NepDisk
973760e60d opengl directional lighting and gl brightmaps 2024-09-05 22:17:22 -04:00
NepDisk
4395d26168 TERRAIN: add 'remap' boolean, toggles ENCOREMAP/TWEAKMAP
Nep Note: I dont know where dc_copy or dc->lightmap are from once I find out Ill uncomment that code....
2024-09-05 22:12:44 -04:00
James R
ed8b681949 Add lightlevel field to mobj_t
Adds r_spritefx.cpp

lightlevel should be -255 to 255, relative offset to
normal sector lightlevel.

If RF_ABSOLUTELIGHTLEVEL, mobj_t.lightlevel becomes an
absolute lightlevel in the range 0 to 255.
2024-09-05 21:39:06 -04:00
James R.
19a9639add Add R_GetBrightmapColumn, convert brightmaps to associated texture's column layout
- Ensures that column drawer doesn't read out of bounds
  the brightmap column.
- Refactored code in r_segs.cpp, so it checks
  R_TextureHasBrightmap.
- Added comments for plane brightmaps and sprite
  brightmaps, that these are still error-prone.
2024-09-05 21:26:18 -04:00
NepDisk
6342354014 Fix positioning 2024-09-05 20:45:53 -04:00
NepDisk
7226ad5430 Use smaller caption font 2024-09-05 20:12:24 -04:00
Eidolon
e6d7cdf689 Only interpolate shadowcasters if they exist 2024-09-05 20:10:07 -04:00
James R
865140b9f4 Use interpolated mobj x/y/z/angle for splats 2024-09-05 20:05:40 -04:00
Zwip-Zwap Zapony
9090568eab Interpolate captions 2024-09-05 19:57:55 -04:00
Zwip-Zwap Zapony
2f20b9d9c9 Fix captions being over-affected by GUI scale
Captions' pop-in animation now starts 8 GUI pixels above the resting position, instead of (2 x GUI scale) GUI above it
2024-09-05 19:57:48 -04:00
Zwip-Zwap Zapony
21476ce8a9 Tiny caption loop optimisation 2024-09-05 19:55:16 -04:00
LJ Sonic
19bc956d1a Fix archiving with tables that contain tables as keys 2024-09-05 19:50:06 -04:00
Zwip-Zwap Zapony
01166ba050 Draw the input prompt while the console is moving 2024-09-05 19:45:13 -04:00
Zwip-Zwap Zapony
34034b9054 Uncap console opening/closing animation 2024-09-05 19:45:07 -04:00
Zwip-Zwap Zapony
75e012c021 Make con_height adjustable on the fly 2024-09-05 19:41:36 -04:00
toaster
5ade15cdc5 I_ShowErrorMessageBox for SDL interface
Handles showing the error message box on quit.
- Polite communication that the game fell over and that you (probably) didn't do anything wrong
- Accomodates pointing you to UNIXBACKTRACE and _WIN32 exchndl crash logs if relevant
- Points you to the specific dated and timed log file that contains the error
- Tells you that the vague and often confusing error message (like I_Error) is for a programmer, server host, or add-on creator
- Hee Ho!
2024-09-05 19:27:55 -04:00
toaster
216eddacd3 P_SetupSpawnedMapThing: Catch more P_MobjWasRemoved 2024-09-05 19:14:51 -04:00
NepDisk
ae0c0c3ca8 safe guard these functions
This should fix the brightmaps crash
2024-09-05 18:27:12 -04:00
NepDisk
12a8d5b709 Whoops removed these by accident
software still crashes due to brightmaps, this will need to be fixed
2024-09-05 17:40:25 -04:00
James R
72bd4a11a0 Lua spriteinfo brightmap support 2024-09-05 17:15:41 -04:00
James R
2d5f90f0d1 Fix R_CacheSpriteBrightMap trying to cache out of range lump 2024-09-05 17:15:31 -04:00
James R
962d90c7b9 Guard against out of bounds sprite brightmap 2024-09-05 17:14:44 -04:00
James R
e93de906e0 Add BrightMap support to SPRTINFO 2024-09-05 17:14:10 -04:00
James R.
b0f67f150e Add R_AllocateDummyTextureBlock, set texture->holes so empty column is always rendered correctly 2024-09-05 16:50:38 -04:00
NepDisk
0d62fe65bc Fix map load crash 2024-09-05 16:04:24 -04:00
Oni
089fd65f37 Merge branch 'encore-directional-lighting' into 'master'
Add encore variants of LightContrast, LightAngle and SpriteBacklight to level header

Closes #593

See merge request KartKrew/Kart!1388
2024-09-05 15:51:01 -04:00
James R
b9c3a7e852 Add MSF_DIRECTIONLIGHTING, forces directional lighting on, even indoors
UDMF flag: forcedirectionallighting
2024-09-05 15:34:14 -04:00
James R
4a2dac8b02 Automatically disable directional lighting if the sector has no sky 2024-09-05 15:34:07 -04:00
Sal
0d70d4da5b Merge branch 'directional-lighting-flag' into 'master'
Directional lighting flag

See merge request KartKrew/Kart!1356
2024-09-05 15:33:48 -04:00
James R
99c05156f6 Sprite directional lighting, add SpriteBacklight option to level header
- Sprites have directional lighting, like walls
- For normal sprites: contrast is much stronger than walls
- Papersprites look the same as walls

- SpriteBacklight option in level header weakens the contrast for sprites only
  - SpriteBacklight subtracts from LightContrast
  - E.g. SpriteBacklight = 0 would let it match LightContrast
  - E.g. SpriteBacklight = 60 would make the contrast much weaker
  - Negative values make the contrast stronger
2024-09-05 15:18:50 -04:00