Commit graph

19631 commits

Author SHA1 Message Date
Sally Coolatta
420e25eba0 Update executors 400, 403, 405, and 429 for ACS 2024-09-03 15:27:17 -04:00
Sally Coolatta
106fc14e25 Split EV_DoFloor, EV_DoCeiling, and EV_DoCrush
And remove their dependency on a line_t existing.

One step towards implementing linedef executor functions into ACS.
2024-09-03 15:13:34 -04:00
NepDisk
3a5f8bf0e7 Move these to the right spots 2024-09-03 14:29:25 -04:00
NepDisk
7af4076320 Fix args reading 2024-09-03 14:25:00 -04:00
NepDisk
559a5c0a20 Update waypoint.c code to be close to final 2024-09-03 13:33:34 -04:00
NepDisk
972b98cc90 Merge branch 'v2dev3' into udmf-cherrypick-cherrypick 2024-09-03 12:07:46 -04:00
NepDisk
077835e4ae Update New springs doomed nums
this is to prevent conflict with kart mods
2024-09-03 11:50:47 -04:00
NepDisk
84b7d363be Make low friciton how it is in kart 2024-09-02 23:25:05 -04:00
NepDisk
24e2e06b1f use og fraction value 2024-09-02 22:57:11 -04:00
NepDisk
c6d57ac423 use og fraction value 2024-09-02 22:56:54 -04:00
NepDisk
02189eb55f Make UDMF scale compatible with ZDoom's spec
eb72019426
2024-09-02 22:05:05 -04:00
James R
c27cdb8244 writetextmap: save waypoints correctly, account for risers and anchors 2024-09-02 21:53:54 -04:00
James R
200bd6c8e4 M_TokenizerOpen: pass size in as argument instead of calling strlen implicitly
This function is used for parsing TEXTMAP and the data is
not NUL-terminated.
2024-09-02 21:53:34 -04:00
Sally Coolatta
f06a17c467 Fix TextmapUnfixFlatOffsets
It had the right idea, it just literally did it wrong :P
2024-09-02 21:51:56 -04:00
toaster
e9e20b6652 ParseTextmapThingParameter: Tidier, more explicit guarantees for null-terminated stringarg handling 2024-09-02 21:49:44 -04:00
James R
83068074ae UDMF: add foflayer field to things TEXTMAP 2024-09-02 21:49:06 -04:00
NepDisk
ea5dfb0d87 Revert "Add activation flags to -writetextmap"
This reverts commit 87cb9f1170.
2024-09-02 21:47:00 -04:00
toaster
04566c358f Add ML_BLOCKMONSTERS to P_WriteTextmap 2024-09-02 21:26:39 -04:00
Sally Coolatta
87cb9f1170 Add activation flags to -writetextmap 2024-09-02 21:24:23 -04:00
Sally Coolatta
8a216fb801 Save waypoint riser / anchor data into spawnpoint
Allows -writetextmap to write the changes from these binary-only things.
2024-09-02 21:24:10 -04:00
MascaraSnake
e3042ce4c0 Fix size_t compiler warnings in P_WriteTextmap 2024-09-02 21:21:15 -04:00
James R
d3053c2bb0 writetextmap: save waypoints correctly, account for risers and anchors 2024-09-02 21:18:44 -04:00
James R
32fb3a3200 Split apart some of P_WriteTextmap 2024-09-02 21:14:58 -04:00
NepDisk
d7fc57a119 Fix up some stuff in P_ConvertBinaryThingTypes 2024-09-02 20:38:07 -04:00
James R
f3efe4a1fe Update waypoints on same tic as crossing finish line
Fix 1 tic delay between crossing finish line and next
waypoint updating. May influence respawn behavior.
2024-09-02 20:15:03 -04:00
NepDisk
da626c4ab4 fix cmake build 2024-09-02 18:02:36 -04:00
NepDisk
262c73ba7f fix cmake build 2024-09-02 18:01:03 -04:00
NepDisk
8de69a20c7 distancetofinishprev related stuff 2024-09-02 07:42:33 -04:00
James R
fa09c1beea Do not let distancetofinish change too drastically
- When updating nextwaypoint, check if distancetofinish
  jumps more than 32768 units (8192 in 1/4 scale maps)
- If it jumps this much, do not update the waypoints
- This prevents nextwaypoint from skipping ahead in a map
  where waypoints from later in the course overlap
  waypoints from earlier
2024-09-02 07:21:46 -04:00
NepDisk
82a636e0e8 Port P_CompareMobjsAcrossLines from release RR 2024-09-02 07:21:24 -04:00
James R
049c03456a Refactor player waypoint code
- Condense K_GetPlayerNextWaypoint and
  K_UpdateDistanceFromFinishLine into slightly smaller
  functions
- Rename K_GetPlayerNextWaypoint to
  K_SetPlayerNextWaypoint
- Add K_UpdatePlayerWaypoints
2024-09-02 07:08:44 -04:00
NepDisk
c4363e8ff9 raise maxtrevertse 2024-09-02 06:41:30 -04:00
Sally Coolatta
5f91353d6d Fix logic bug with bot shortcut waypoints 2024-09-02 06:30:52 -04:00
Sally Coolatta
1265db712f Ignore z height for connected waypoints on jumps
Resolves #780
2024-09-02 06:30:46 -04:00
Sally Coolatta
469630d429 Waypoints: If a normal & shortcut paths overlap, use the normal path 2024-09-02 06:28:42 -04:00
Sally Coolatta
ab3904dbb4 Bot traversal wall detection improved, and waypoints do it too 2024-09-02 06:27:19 -04:00
Sal
2217815eac Merge branch 'fix-block-players' into 'master'
Fix Block Players for waypoint detection

Closes #546

See merge request KartKrew/Kart!1228
2024-09-02 06:21:22 -04:00
James R
2dd6fe5fd9 K_GetPlayerNextWaypoint: use player's current waypoint as a hint
Improves best waypoint search time on huge maps with many
waypoints, such as City Escape.
2024-09-02 06:14:26 -04:00
James R
5901776146 K_GetBestWaypointForMobj: add a hint argument
The hint argument is a known nearby waypoint that can be
used to optimize the waypoint search.
2024-09-02 06:14:14 -04:00
Sally Coolatta
c0ec18b240 Write textmap after conversion like vanilla
Unfortunately this means that K_AdjustWaypointsParameters no longer saves to UDMF converted maps, because it requires sector thinglists, FOFs, and spawned mobjs.
2024-09-02 06:03:55 -04:00
Sally Coolatta
4fce6cd99a Reduce waypoint radius for bots on turns 2024-09-02 06:03:09 -04:00
toaster
6d799bab67 Consistency for mobjnum 0 meaning NULL
Moves `P_Net(Un)ArchiveTubeWaypoints` down the file to take advantage of `SaveMobjnum` inline.
2024-09-02 06:00:04 -04:00
toaster
3422236b8e Cleaner reference handling for the following extern-scope netsynced mobj_t*.
- `skyboxcenterpnts` and `skyboxviewpnts`
    - P_InitSkyboxPoint`, which calls `P_SetTarget`
- `waypoint->mobj`
    - Make sure NULL before using `P_SetTarget` on
- `tubewaypoints`
    - Use `P_SetTarget`
    - Use `UINT32_MAX` for the invalid mobjnum, since 0 is a valid one.
- `waypointcap` and `kitemcap`
    - NULL before reset

Our international nightmare is over.
2024-09-02 05:52:27 -04:00
Sally Coolatta
38ba298e43 Condense all of the P_CheckSight copy-paste
For something for my next commit
2024-09-02 05:50:23 -04:00
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