Commit graph

19587 commits

Author SHA1 Message Date
NepDisk
be5d651d1e Don't tie restoring mobj/waypoint pointers on player struct to existence of player object
b573b6efbc
2024-09-02 05:45:06 -04:00
Sally Coolatta
ddc3ee5595 Prevent finishline ever being your prevwaypoint 2024-09-02 05:35:11 -04:00
Sally Coolatta
d3d3e1991e Fix missing currentwaypoint in saveg 2024-09-02 05:34:53 -04:00
Sally Coolatta
fd4348f5be Don't allow nextwaypoint to be past finish linedef 2024-09-02 05:34:45 -04:00
Sally Coolatta
1a1f0ef792 Change distance to finish calculation
It now calculates it from a position clamped inbetween lines formed by the waypoints.
2024-09-02 05:34:36 -04:00
Sally Coolatta
3c274581c7 Add currentwaypoint 2024-09-02 05:34:29 -04:00
Sally Coolatta
a66402a3ba Save waypoint riser / anchor data into spawnpoint
Allows -writetextmap to write the changes from these binary-only things.
2024-09-02 05:27:22 -04:00
Sally Coolatta
14ea4495e1 Egg Capsules use args + optimized tube waypoints 2024-09-02 05:26:21 -04:00
Sally Coolatta
c5f8eb94a6 Make MT_WAYPOINT fully use args
All of its special flags are contained on args[2] now.
2024-09-02 05:24:58 -04:00
Sally Coolatta
7edc6df916 Circuit pathfinding
An alternative to the standard pathfind function. Instead of pathfinding to a specific waypoint, it always goes towards the finish line waypoint, but also won't stop when it reaches it. It only stops when it travels a far enough distance.

This is basically a cleaner, less hacky, and optimized version of the pathfinding I gave to the bots; instead of doing 1-2 full pathfinds to do this (depending on if they are near the finish line or not), it will instead always do a single small pathfind. I also need it for shrink laser behavior.
2024-09-02 05:23:41 -04:00
Eidolon
5c1b15aeb6 Don't initialize waypoints in GS_TITLESCREEN
Fixes error logs when titlemap loads
2024-09-02 05:15:58 -04:00
NepDisk
39185c1c7c Looking backwards no longer makes the player seasick (fixed camera distance)
c62dfa20d2
2024-09-02 05:00:17 -04:00
NepDisk
372310d0df a 2024-09-02 04:54:13 -04:00
NepDisk
5cf0292bb2 Revert "Add BrightMap support to SPRTINFO"
This reverts commit 1a8c093b23.
2024-09-02 04:49:10 -04:00
NepDisk
be09e70a99 Revert "Lua spriteinfo brightmap support"
This reverts commit f7def8d787.
2024-09-02 04:48:50 -04:00
NepDisk
38a52b0052 Revert "Guard against out of bounds sprite brightmap"
This reverts commit 8901725645.
2024-09-02 04:48:36 -04:00
NepDisk
78df4edfce Revert "Fix R_CacheSpriteBrightMap trying to cache out of range lump"
This reverts commit cc94145e19.
2024-09-02 04:48:25 -04:00
James R
cc94145e19 Fix R_CacheSpriteBrightMap trying to cache out of range lump 2024-09-02 04:33:09 -04:00
James R
8901725645 Guard against out of bounds sprite brightmap 2024-09-02 04:32:09 -04:00
James R
f7def8d787 Lua spriteinfo brightmap support 2024-09-02 04:31:54 -04:00
James R
1a8c093b23 Add BrightMap support to SPRTINFO 2024-09-02 04:31:26 -04:00
NepDisk
57a165ad84 Adjust SSF dehacked 2024-09-02 01:50:53 -04:00
NepDisk
6abb102c61 Merge branch 'v2dev3' into udmf-cherrypick-cherrypick 2024-09-01 21:10:36 -04:00
Sally Coolatta
5c6e894ee3 Add FOF behavior switch to P_LineOpening
Finally fixes the very specific issue on Endless Mine ( https://cdn.discordapp.com/attachments/1006454720686202951/1106749881663631420/image.png )
2024-09-01 20:39:53 -04:00
Sally Coolatta
6bcca94805 Local P_LineOpening result
P_LineOpening results are stored in a locally made struct instead of being a bunch of disorganized globals.
2024-09-01 20:33:16 -04:00
NepDisk
f3d563898e Port this 2024-09-01 19:46:56 -04:00
NepDisk
87bf09c82f Revert Merge pull request #8 from WumboSpasm/slopeslop
This reverts commit d516801bb5, reversing
changes made to 6491960430.
2024-09-01 19:16:31 -04:00
NepDisk
f6dd00f3f1 Revert "Fix code here and make tripwires work again"
This reverts commit 84a9a6fbcc.
2024-09-01 19:16:16 -04:00
NepDisk
84a9a6fbcc Fix code here and make tripwires work again 2024-08-29 19:53:06 -04:00
NepDisk
d516801bb5
Merge pull request #8 from WumboSpasm/slopeslop
Fix the Hill Top ramps without breaking everything else this time. Thanks Wumbo!
2024-08-25 01:04:34 -04:00
NepDisk
6491960430 Revert "Mostly revert "Revert Revert the-big-step-up since it has regressions""
This reverts commit 8e61036c9e.
2024-08-25 01:03:24 -04:00
Wumbo
8e83dfb934 Fix the Hill Top ramps without breaking everything else this time 2024-08-25 00:53:28 -04:00
NepDisk
30c5a5f1a9
Merge pull request #7 from WumboSpasm/revertception
Mostly revert "Revert Revert the-big-step-up since it has regressions". Thanks Wumbo!
2024-08-24 17:11:22 -04:00
Wumbo
8e61036c9e Mostly revert "Revert Revert the-big-step-up since it has regressions"
This reverts everything except P_TryMove, which fixes the Hill Top ramp without breaking the Opulence shortcut.
2024-08-24 17:07:48 -04:00
NepDisk
46c015d317 Revert Revert the-big-step-up since it has regressions
This revert causes issues on some slope types for whatever reason so back it comes for now

This reverts commit 515c531d51.
2024-08-24 15:36:23 -04:00
NepDisk
f1d7d5f763 Revert Merge branch sprite-brightmaps into master
This reverts commit ce47997a10.
2024-08-24 15:29:45 -04:00
NepDisk
70d900264e Revert Merge branch sprite-brightmaps into master
This reverts commit ce47997a10.
2024-08-24 15:25:46 -04:00
NepDisk
1264a4c1bc Revert "Revert the-big-step-up since it has regressions"
This reverts commit 515c531d51.
2024-08-24 15:24:40 -04:00
Eidolon
84ede3188e Only render HWR player view if literally in opengl 2024-08-22 19:12:28 -04:00
James R
d439ce2966 R_RasterizeFloorSplat: set ds_brightmap to NULL
Previously did not set ds_brightmap, so it could sneak in
from a previous span renderer.
2024-08-22 19:12:28 -04:00
James R
a13913bebd Fix R_CacheSpriteBrightMap trying to cache out of range lump 2024-08-22 19:12:28 -04:00
Oni
ce47997a10 Merge branch 'sprite-brightmaps' into 'master'
Rudimentary sprite brightmap support

See merge request KartKrew/Kart!801
2024-08-22 19:12:28 -04:00
JugadorXEI
72354be22d Fix off-by-one error in BRIGHT and TERRAIN lump parsing 2024-08-22 19:12:28 -04:00
James R
4d5ba6affb Cache TERRAIN on texture_t
- K_GetTerrainForTextureNum no longer performs a string
  lookup
2024-08-22 19:12:28 -04:00
Oni
a3f643bfd7 Merge branch 'boostpower-terrain-particles' into 'master'
Slowdown Terrain Particle repair

See merge request KartKrew/Kart!1166
2024-08-22 19:12:28 -04:00
James R
6b087c3078 Reset TERRAIN when respawning
Fixes damage floor TERRAIN applying for the entire
duration of lightsnake.
2024-08-22 19:12:28 -04:00
James R
c234c6d093 Remove non TERRAIN offroad particles
Fixes spectators generating offroad particles when
touching the ground.
2024-08-22 19:12:28 -04:00
toaster
0009497274 K_InitBrightmapsPwad: Also use guaranteed null-terminated data copy ala K_InitTerrain 2024-08-22 19:12:28 -04:00
toaster
73db1e0fa0 K_InitTerrain: Do what ANIMDEFs parsing does and create a copy of the TERRAIN lump with a guaranteed null terminator 2024-08-22 19:12:28 -04:00
James R
0ea698d662 Merge branch 'fix-terrain-saveg' into 'master'
Save terrainOverlay in gamestate

See merge request KartKrew/Kart!735
2024-08-22 19:11:24 -04:00