James R
fa8999c0df
Add a comment by Sryder's request
2019-06-20 15:24:50 -07:00
James R
b5aff9f6e7
Also count terminating byte in fileneeded filename
2019-06-20 15:16:23 -07:00
James R
a6b7c0a996
Don't get stuck in room menu in a modified game
2019-06-19 14:32:11 -07:00
Sryder
a80bfe4f41
Merge branch 'print-correct-view' into 'master'
...
Print the correct player for the view command
See merge request KartKrew/Kart-Public!141
2019-06-19 16:58:11 -04:00
Sryder
b595cd4c22
Merge branch 'nomoreendlessclouds' into 'master'
...
Stop OpenGL having infinite precipitation draw distance
See merge request KartKrew/Kart-Public!143
2019-06-19 16:56:26 -04:00
Sryder
3ee34f7518
Integer comparison warning
2019-06-19 21:54:11 +01:00
Sryder
636724aeb6
Stop OpenGL having infinite precipitation draw distance
2019-06-19 20:05:20 +01:00
Sryder
3c64cdc6ed
Merge branch 'playerinfo_mscompat' into 'master'
...
Fix compatibility with the MS (Specifically Doomseeker)
See merge request KartKrew/Kart-Public!142
2019-06-19 14:57:41 -04:00
Sryder
3d6161c7ca
Fix compatibility with the MS (Specifically Doomseeker)
...
Send back 32 players worth of playerinfo regardless of MAXPLAYERS. Fill the extra with unconnected nodes.
2019-06-17 21:04:48 +01:00
Sryder
b2d5521d34
Finish Line linedef needs condition flipped for correct crossing of it.
2019-06-16 23:30:39 +01:00
Sryder
d96c90acc8
Actually revert the checkpoints properly
2019-06-16 22:43:20 +01:00
Sryder
fbd72c149b
Use correct formatting for size_t in Printf
2019-06-16 22:25:58 +01:00
Sryder
991cef9163
Get distance to first by using the distanceofinish variable for roulette
2019-06-16 22:15:36 +01:00
Sryder
6bcc283d3b
Reimplement system for specials that activate when crossing a linedef from DOOM
...
Used for the finish line, crossing it the correct way increments the lap count, the wrong way decrements it
Remove usability of the sector special for the finish line
Undo another check of numstarposts to force all of them to need passing to complete the stage
player laps start from 0 now, it goes to lap 1 when you initially cross the start line.
2019-06-16 22:03:57 +01:00
Sryder
49a8b0ac38
Add player's nextwaypoint to the player struct
...
Network synchronised(?) nextwaypoint in player struct
Make the waypointheap actually a heap and not allocate memory for every individual waypoint.
No need to store id in the waypoint struct, since it can be gotten from the waypointheap now.
2019-06-16 17:58:28 +01:00
Sryder
530214aa87
Remove now unused waypoint player variables.
2019-06-15 17:04:16 +01:00
Sryder
5ad7db9d64
Revert to needing to touch every checkpoint to complete a lap.
2019-06-15 15:50:04 +01:00
Sryder
d8f81ab4b9
Add function header comments to my new functions.
2019-06-15 15:47:23 +01:00
Sryder
7f48bfc19a
Slight refactor of getting distance to finish line for players.
2019-06-15 13:11:45 +01:00
Sryder
4dfd81568d
Get distance to finish line using waypoints/pathfinding.
...
Update player position using distance from finish line.
Minor Bug: At the start of a race for a split second the leading players will be last.
Proposed Fix: Start on lap 0 and Force a lap count update when crossing the finish line
2019-06-14 23:55:10 +01:00
Sryder
e937e35a78
Split pathfinding itself into its own module.
2019-06-12 23:43:55 +01:00
James R
8faff03f31
Index displayplayers correctly
2019-06-10 14:24:11 -07:00
Sryder
4c26589d5c
Add support for Finishline, shortcut, and disabled waypoints.
...
Remove warning that should be impossible to trip, and doesn't describe problem anymore.
2019-06-10 00:02:48 +01:00
James R
6bee5435d2
Merge remote-tracking branch 'james/ms-connectionfail-fix' into HEAD
2019-06-09 14:22:32 -07:00
James R
62b957d348
Revert "Unfuck MS connecting and error reporting"
...
This reverts commit 50ae248b84 .
2019-06-09 14:21:04 -07:00
James R
a8d1ddd1c2
Revert "Check error on select"
...
This reverts commit 1d77716d7e .
2019-06-09 14:20:33 -07:00
James R
154ce80a9b
Revert "Force of habit"
...
This reverts commit 9f0887fafc .
2019-06-09 14:20:32 -07:00
Sryder
7efe868c99
Loop through all the waypoint mobjs when setting up waypoints always
...
This means all the mobjs have waypoints setup and debugvisualise can work better.
2019-06-09 21:49:48 +01:00
Sryder
379ef52c25
Correct no next waypoint warning message.
2019-06-09 20:37:47 +01:00
Sryder
e9786fa956
Waypoint pathfinding exists!
...
Includes some small refactoring of older functions - single return is a bit safer and easier to debug.
Still needs doing are: Finish Line Waypoint, Shortcut waypoints, disabled waypoints.
The actual A* method itself is a bit of a monster, but I can't figure out how to refactor it too much more.
2019-06-09 19:49:21 +01:00
Sryder
128d970bad
Turn CONS_Printf to CONS_Alert in waypoint initialisation.
2019-06-09 19:37:24 +01:00
Sryder
773ddd98a8
Add function for freeing binary heap.
2019-06-09 19:36:36 +01:00
Sryder
b1fa5f6d34
Correct compiler issues.
2019-06-08 22:59:13 +01:00
Sryder
3a25bb38fe
Add callback to heapitem to alert data when the heap index is changed.
...
Add K_BHeapContains to give an easy way to find if the heap contains data.
2019-06-08 22:55:02 +01:00
Sryder
31d76596c0
Binary Heap Implementation
...
Currently untested.
2019-06-08 21:46:23 +01:00
Sryder
c38be00196
Calculate euclidean distances between each waypoint on map load.
...
Change some Debug prints to Alert prints for easier debugging for mappers.
2019-06-02 21:44:07 +01:00
Sryder
622c2eac07
Merge branch 'master' of git@git.magicalgirl.moe:KartKrew/Kart.git into waypoints
...
# Conflicts:
# src/k_kart.c
2019-06-02 18:15:30 +01:00
Sryder
96f92f8183
Merge branch 'master' of git@git.magicalgirl.moe:KartKrew/Kart.git into rings_slopechange
...
# Conflicts:
# src/k_kart.c
2019-05-31 22:29:32 +01:00
TehRealSalt
24feb81671
Improve shadow code yet again by testing highest value of slopes
...
This makes it follow the sprites a bit better on slopes. Also split into a sub-function so that Banana doesn't need the duplicated code anymore.
The accuracy can be further improved on by doing the calculation 3 extra times for every surface, for each corner of the hitbox -- it wouldn't be THAT much more expensive, but it would only make subtle differences on sector boundaries that we usually zoom past anyway, so I figured it wasn't worth it. (It'll be easy enough to do so if we decide that we want the uber-accuracy)
2019-05-31 01:08:04 -04:00
TehRealSalt
f3f0b5edda
Fix FOF shadows again
2019-05-30 03:07:31 -04:00
TehRealSalt
9a24f65cb8
Merge branch 'master' into model-gradients
2019-05-30 02:00:06 -04:00
Sal
2ce77fdce9
Merge branch 'rings' into 'master'
...
Rings
See merge request KartKrew/Kart!128
2019-05-30 01:58:34 -04:00
TehRealSalt
3967a5d409
Reduce angle offset back down again
2019-05-30 01:46:25 -04:00
TehRealSalt
ccdcb1dbd4
Minor change
2019-05-29 23:31:33 -04:00
TehRealSalt
dfe197b380
Double ring rotate speed, base it off current angle, slightly offset it
2019-05-29 23:21:58 -04:00
TehRealSalt
8ca96168b9
enable patch file
2019-05-29 23:19:52 -04:00
TehRealSalt
cba86ee6ea
Unused i
2019-05-29 22:55:59 -04:00
TehRealSalt
d7374d33d6
missed a parathesis
2019-05-29 22:53:31 -04:00
TehRealSalt
4e24831e33
Reduce kartspeed increase to draftpower
2019-05-29 22:38:08 -04:00
TehRealSalt
4f13f8b98e
Change version num to v2, disable 1.0.x demo compatiblity
2019-05-29 22:29:06 -04:00