Commit graph

19390 commits

Author SHA1 Message Date
Sally Coolatta
7c7e1206c8 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-08-05 00:17:16 -04:00
NepDisk
aa9ca96f86 PATCH:Fix sprite rollangle
Thanks Wumbo
2024-08-04 14:48:43 -04:00
NepDisk
dea5d0c897 remove more spindash leftovers 2024-08-04 13:47:37 -04:00
NepDisk
47cda284e6 Remove steering, use v1 turnvalue calcs, remove handleboost 2024-08-04 10:16:51 -04:00
NepDisk
dec535e42e Assorted fixes
adds back stuff that was removed that is needed. Also brings tries fixing percentage
2024-08-03 22:45:35 -04:00
NepDisk
473917e572 remove unneeded loops from bot turning 2024-08-03 03:24:10 -04:00
NepDisk
23ca6b1326 Give bots thier own non localangle dependent turning code 2024-08-03 02:58:02 -04:00
NepDisk
90481e0167 P_CheckSolidFFloorSurface 2024-08-02 22:37:59 -04:00
NepDisk
515c531d51 Revert the-big-step-up since it has regressions 2024-08-02 20:53:52 -04:00
NepDisk
0b5587cee6 Remove the use of v2 spring sprites, use sprite names of srb2/kartv1 2024-08-02 10:24:05 -04:00
NepDisk
45fe2754e6 P_AddWadFile partial stages 2024-08-02 03:00:51 -04:00
NepDisk
7721a104d8 Fix spring strentghs and doomednums 2024-08-02 01:14:19 -04:00
NepDisk
4417a9e5c2 fix Join freeze
whoops
2024-08-01 21:25:46 -04:00
Ashnal
2dcf8c103a Attempt to fix use after free bug
with precipitation mobjs on netgame load
2024-08-01 19:24:10 -04:00
Ashnal
8fe92701ef Should fix the dedicated server player node takeover
that completely destroys servers
2024-08-01 19:12:43 -04:00
NepDisk
c1fb02bcc8 Fix up remaining actnums 2024-08-01 18:01:21 -04:00
NepDisk
5f7609563c Lock more stuff behind ringtoggle 2024-08-01 17:44:18 -04:00
NepDisk
7613250aec remove brakedust 2024-08-01 17:38:46 -04:00
JugadorXEI
9baae4cecb Store terrain ID instead of terrain pointer, add new helpers and accomodate for this 2024-08-01 17:29:36 -04:00
NepDisk
1c16abadf6 implement water panels and add pogo springs to terrain 2024-08-01 17:25:46 -04:00
NepDisk
3aabe3ea31 Fix speedo ring offset, add old speedometer back and introduced speedo style 2024-08-01 16:42:49 -04:00
James R
8e6e122c05 R_AddPrecipitationSprites: fix use of th after freed
R_ProjectPrecipitationSprite may free th
2024-08-01 16:01:20 -04:00
James R
b0425f14ed Merge branch 'precip-height-random-crash' into 'master'
Conditionally randomize precip height

Closes #528

See merge request KartKrew/Kart!1536
2024-08-01 16:00:56 -04:00
toaster
772626593b P_SwitchWeather: Fix potential infinite loop if non-NullPrecipThinker thinker existed in THINK_PRECIP 2024-08-01 16:00:44 -04:00
NepDisk
2ace452df6 Stop calling P_NullPrecipThinker
9eab5317f3
2024-08-01 16:00:12 -04:00
NepDisk
dd4b0426ca Unlink non-mobj and non-precip thinkers when loading and freeing 2024-08-01 15:47:28 -04:00
NepDisk
fde5108e0f Revert "Attempt to fix use after free bug"
This reverts commit 94ac52641f.
2024-08-01 15:45:34 -04:00
Ashnal
94ac52641f Attempt to fix use after free bug
with precipitation mobjs on netgame load

# Conflicts:
#	src/p_saveg.c
2024-08-01 15:41:33 -04:00
Eidolon
d718ccb4ba Use precip interp if gl sprite is for precip 2024-08-01 15:40:44 -04:00
James R
ed75d3946d Render precip through blockmap instead of during BSP
There can be very many precipmobjs in a sector. During BSP
rendering, for each sector reached by BSP (the entire
visible level at least), all the precipmobjs would be
iterated and their distance from the camera calculated, to
determine whether they are within draw distance.

The issue with the old approach is that there really are
too many precipmobjs in each sector. By iterating the
blockmap within a certain range instead, precipmobjs
out of view are not iterated at all, saving some time.

Caveat: drawdist_precip is no longer respected as an
exact value, since it must round to the precision of the
blockmap.

List of potentially scary changes:

- Removes snext/sprev for precipmobj_t
- Removes preciplist for sector_t

- Adds bnext/bprev for precipmobj_t
  - mobj_t and precipmobj_t field offsets are symmetrical

- Modified P_SetPrecipitationThingPosition and P_SetThingPosition
  - The syntax in these functions is kind of wacky
2024-08-01 14:56:36 -04:00
Gustaf Alhäll
a047144c4d Cache and reuse removed mobjs when spawning mobjs 2024-08-01 14:21:41 -04:00
NepDisk
94eb798ae7 Fix compile, add kate-swp to gitignore 2024-08-01 14:14:27 -04:00
NepDisk
d7dd4f68e2 rings disable toggle, rebalance rings 2024-08-01 14:06:24 -04:00
toaster
e832cf5963 p_enemy.c: All object gravity arc calculations now collaborate with mapobjectscale again. 2024-08-01 14:05:13 -04:00
NepDisk
608e2b6844 flipcam and encore flipcam 2024-08-01 11:46:59 -04:00
Oni
7a4055732d Merge branch 'less-signal-handling-stuff' into 'master'
Do less in NEWSIGNALHANDLER handler

See merge request KartKrew/Kart!2372
2024-08-01 10:57:31 -04:00
NepDisk
68482b4216 Add evil mutex bypass hack in console
a68c863087
2024-08-01 10:56:41 -04:00
James R
a29ade4440 I_ReportSignal: fix -Wformat-overflow 2024-08-01 10:52:40 -04:00
NepDisk
70a8b66af2 Fix compile 2024-08-01 10:52:36 -04:00
AJ Martinez
5246659f8c Merge branch 'remove-malloc-in-signal-handler' into 'master'
Remove malloc from I_ReportSignal

See merge request KartKrew/Kart!1650
2024-08-01 10:48:57 -04:00
NepDisk
43c3f58f1b Revert "signal_handler_child: call G_DirtyGameData for NEWSIGNALHANDLER too"
This reverts commit 6186d2304b.
2024-08-01 10:46:25 -04:00
James R
6186d2304b signal_handler_child: call G_DirtyGameData for NEWSIGNALHANDLER too 2024-08-01 10:44:09 -04:00
James R
32fa676f5b sdl/i_system.c: add -nofork option to disable forking signal handler 2024-08-01 10:43:29 -04:00
Eidolon
603be1dcaa Merge branch 'gl-encoremap-leak-fix' into 'master'
Fix GLENCORE memory leak, re-enable

See merge request KartKrew/Kart!1688
2024-08-01 03:44:32 -04:00
NepDisk
00889e7001 Revert "Merge branch 'lua-action-profile' into 'master'"
This reverts commit e1c010c8ed.
2024-08-01 03:34:53 -04:00
James R.
e1c010c8ed Merge branch 'lua-action-profile' into 'master'
lua_profile: measure lua actions

See merge request KartKrew/Kart!2219
2024-08-01 03:26:46 -04:00
Hannu Hanhi
32a66b1585 Fix Lua stack overflow in LUA_UpdateSprName 2024-08-01 03:11:33 -04:00
Hannu Hanhi
6367af6cd7 LUA_EnumLib optimizations for constant value access
- constants are stored into _G after first use

- made LUA_EvalMath's dedicated Lua state permanent so it can also benefit from these optimizations
2024-08-01 03:11:20 -04:00
NepDisk
eb93c8df5b Fix possible crashes in the Lua API when accessing invalid fields
https://git.do.srb2.org/STJr/SRB2/-/merge_requests/2128\?commit_id\=6414e9db79771494f87662f902999a028aa385cd
2024-08-01 02:54:12 -04:00
Hanicef
091f781b49 Add tofixed lua function 2024-08-01 02:20:47 -04:00