Commit graph

17964 commits

Author SHA1 Message Date
NepDisk
7277fe1dbf remove mom from lua funcs 2024-09-13 12:12:29 -04:00
Sally Coolatta
b21352d8ac Evict the wall gremlin
Gremlins happened whenever P_TryMove and P_SlideMove/P_BounceMove disagreed on what an object collided with. When TryMove said you collided with a line, but P_BounceMove said that you didn't, then you'd get gremlin'd.

To fix this, P_TryMove now can edit a struct to contain information on what it collides with. P_SlideMove and P_BounceMove no longer try to detect walls on their own and now requires this result from P_TryMove. If a slide/bounce is needed without moving the object, then you'd want to use P_CheckMove to get the result.

Nep Note: I tried implementing lua support, its probably shit lmao
2024-09-13 11:49:12 -04:00
Sally Coolatta
e4534dcf50 P_RestoreTMStruct 2024-09-13 11:32:41 -04:00
Sally Coolatta
97dc236522 Reference count tm.floorthing and tm.hitthing 2024-09-13 11:31:31 -04:00
Sally Coolatta
55a8643dd3 Put tm* variables into a struct
This makes it significantly easier to save/restore the state of these variables, whenever we need to do so for calling movement functions in the middle of other movement functions. This will also make it easier to move it out of global variable hell if desired later.
2024-09-13 11:29:30 -04:00
NepDisk
a95b4cc902 Forgot thing for sonic loops 2024-09-13 00:17:47 -04:00
NepDisk
4d2e611765 Fix the flip/step up fix 2024-09-13 00:16:02 -04:00
NepDisk
6816173d98
Merge pull request #19 from WumboSpasm/followers
Follower improvements. Thanks Wumbo!
2024-09-12 23:17:27 -04:00
Wumbo
0dbecfdcf3 Improve presentation of followers on player setup screen
- Animation speed is now framerate-independent
- Render height is no longer all over the place
- Ground followers now bounce
2024-09-12 22:37:28 -04:00
NepDisk
3a1633e02a Experimental fix to fix flipping 2024-09-12 22:24:12 -04:00
NepDisk
696d9a0d4e Revert Use all your momentum to push back the camera
This reverts commit e52d569c58.
2024-09-12 18:28:13 -04:00
NepDisk
922ea1235e Revert "Merge branch 'natural-camera-outrun' into 'master'"
This reverts commit 57e69603a4, reversing
changes made to 542e0b88df.
2024-09-12 18:25:38 -04:00
NepDisk
03ba9629bc
Merge pull request #18 from alufolie91/fixmidnightcaves
fix issues with R_PointOnSide on kart maps + big optimization. Thanks Alug
2024-09-12 17:28:42 -04:00
NepDisk
a5844b36cb Disable camera lookback during loops.
c4154470b9
2024-09-12 16:23:55 -04:00
Alug
ddc4356fd7 fix issues with R_PointOnSide on kart maps + big optimization 2024-09-12 22:18:39 +02:00
NepDisk
ca8062edec fix loopcam jerk 2024-09-12 16:18:16 -04:00
NepDisk
0f9c385697
Merge pull request #17 from alufolie91/fixcullcrap
Fix some Rendering issues + slight cleanup. Thanks Alug!
2024-09-12 16:08:59 -04:00
Alug
e76852e932 fix fof renderflags on kart maps in software 2024-09-12 21:54:55 +02:00
Alug
ac7ca78e25 fix issues with fofflags on kart maps in ogl 2024-09-12 21:47:07 +02:00
Alug
71772fcef1 smal cleanup + refactor HWR_RenderBSPNode
og code was pain
2024-09-12 21:41:41 +02:00
Alug
97f9426a7a fix ogl culling stuff on polyobjects 2024-09-12 21:32:27 +02:00
James R
410419c852 Add player_t.cameraOffset, offset chasecam Z position 2024-09-12 15:11:19 -04:00
Alug
52e3a399ee fix ogl water shader ripple
is a float, and also gets divided by ticrate earlier
2024-09-12 21:00:22 +02:00
Wumbo
b4ec4ef691 Make first follower selectable again 2024-09-12 13:38:31 -04:00
James R
5290e3fcd8 Loop camera: do not pan with drifts
This would offset the camera in loops. Bad since they
sometimes have very specific parameters.
2024-09-12 13:07:02 -04:00
James R
1189720220 Loop camera: do not reverse panning direction based on player camera 2024-09-12 13:06:55 -04:00
James R
0d9ea51279 Default loop camera settings if camera distance is not set 2024-09-12 13:05:41 -04:00
James R
dd7e3e4c26 Loop camera
It zooms out, pans to the side and toward the player.

Loop Center thing:

- arg2: zoom-out speed in tics (zooms out when entering the loop)
- arg3: zoom-in speed in tics (zooms in when exiting the loop)
- arg4: zoom-out distance in fracunits (multiply by 65536)
- arg5: angle to pan to the side of the loop in degrees fracunits (multiply by 65536)
  - This will be flipped depending on where the camera was
    facing before entering the loop.
- arg6: panning speed in degrees fracunits (multiply by 65536)
- arg7: panning acceleration in tics (camera gradually pans to side of loop)
- arg8: panning deceleration in tics (camera gradually pans back to normal)
2024-09-12 13:04:37 -04:00
James R
7dfa273dde Loops: lag camera correctly 2024-09-12 13:01:41 -04:00
Oni
4c994de722 Merge branch 'loops' into 'master'
Sonic Loops

See merge request KartKrew/Kart!991
2024-09-12 12:10:40 -04:00
toaster
6927191a24 Merge branch 'loops-prep' into 'master'
Prep for Sonic Loops

See merge request KartKrew/Kart!990
2024-09-12 11:48:08 -04:00
NepDisk
e2e81d1c27 Run old function ceiling and floor move regardless when in binary 2024-09-12 01:38:50 -04:00
Wumbo
45304f5c3d Handle follower colors better
- Default color definitions are now parsed properly
- Fallback color value is now default color instead of player color
- Player setup now renders follower with right color

Selecting the first follower in the list is currently broken, will
fix later
2024-09-12 01:34:56 -04:00
NepDisk
5733b3b14b resync sourceline 2024-09-12 00:29:35 -04:00
NepDisk
84f4ce5510 Fix crushers on anicent tomb in the uglyist way possible
yes duplicate code but can't be arsed to fix new code for now
2024-09-12 00:19:39 -04:00
NepDisk
ed68557f6f
Merge pull request #15 from alufolie91/fixfogcrap
Restore karts fog brightness behaviour for binary kart maps. Thanks Alug!
2024-09-11 12:08:41 -04:00
Alug
736b1bda04 did not mean to revert this 2024-09-11 18:01:59 +02:00
Alug
a1e4b5d6ba fix software skywalls
this is a fucking mess thx
2024-09-11 17:58:15 +02:00
Alug
435b8337f3 Merge branch 'v2dev23' into fixfogcrap 2024-09-11 17:20:45 +02:00
Alug
d7447dbfc1 no fog fullbright in binary maps 2024-09-11 17:19:18 +02:00
NepDisk
8c459ed0e7 windows buildtest3 2024-09-11 11:15:25 -04:00
NepDisk
1c336c204d windows buildtest2 2024-09-11 11:09:50 -04:00
Alug
737173c382 always use planelightlevel for translucent planes when in binary maps
since kart did not draw every fogplane at fullbright
2024-09-11 16:23:41 +02:00
NepDisk
2ba9ebdce4
Merge pull request #13 from alufolie91/removeunusedhwcode
Remove a bunch of unused clutter in hw_main.c. Thanks Alug!
2024-09-11 10:23:31 -04:00
NepDisk
dd8f5c3da9
Merge pull request #14 from alufolie91/fixbinaryclipping
Fix issues with Clipping and Skywalls in kart binary maps in Opengl. Thanks Alug!
2024-09-11 10:23:08 -04:00
NepDisk
2c8b0150ff test this 2024-09-11 10:15:10 -04:00
Alug
7c8d9ddaf5 need to draw skywalls first here 2024-09-11 16:05:29 +02:00
Alug
b45158995c properly take player fov into account for frustumangle clipping 2024-09-11 15:54:19 +02:00
Alug
adcb7b4f63 fix skywall issues on binary kart maps
for the most part
fixes performance issues and other things
still some issues that i need to look into
2024-09-11 15:48:31 +02:00
Alug
6477695e92 remove old broken and unused clipping code from hw_main.c 2024-09-11 14:53:51 +02:00