Commit graph

1120 commits

Author SHA1 Message Date
TehRealSalt
0fdcc22d93 - Only update to waypoints you're in the radius of (applies to players & spb)
- Player direction value uses momentum angle rather than facing angle (fixes weird nextwaypoint/position flickering while drifting)
- Raise default radius to 384
2019-10-22 16:44:56 -04:00
James R
07fac259e0 Not a pointer 2019-10-15 21:20:28 -07:00
TehRealSalt
857afbbb49 increase DISTVAR 2019-10-16 00:16:27 -04:00
TehRealSalt
a94601a793 fix SPB weirdo distances 2019-10-16 00:12:03 -04:00
TehRealSalt
c91986cc97 Fix end-of-race standings 2019-10-15 23:37:20 -04:00
TehRealSalt
52624cb6de Properly reset PF_HITFINISHLINE 2019-10-15 22:34:22 -04:00
TehRealSalt
e7d0fde5fd Merge branch 'master' into sal-waypoints 2019-10-15 21:34:41 -04:00
TehRealSalt
a5ea6a9799 Merge speed/encore scrambles into the normal cvars as an "auto" option 2019-10-03 01:48:16 -04:00
TehRealSalt
c6566ec31a Merge branch 'master' into versus-record 2019-10-03 01:32:59 -04:00
Sal
8338d3e71c Merge branch 'fortnite' into 'master'
Battle sudden death

See merge request KartKrew/Kart!166
2019-10-03 01:27:09 -04:00
TehRealSalt
8fa5ada23d Allow ring usage during Shrink 2019-09-28 15:16:08 -04:00
TehRealSalt
bc3f0568ee Merge master 2019-09-27 23:09:54 -04:00
TehRealSalt
2635d1b810 Fix SPB target not being merged 2019-09-27 06:46:10 -04:00
TehRealSalt
06d27ae36e Merge branch 'master' into fortnite 2019-09-27 06:36:11 -04:00
Sal
ed3ef6601e Merge branch 'abs' into 'master'
Remove unncessary operations

See merge request KartKrew/Kart!176
2019-09-27 03:10:59 -04:00
Sal
542c4a3306 Merge branch 'new-springs' into 'master'
New springs

See merge request KartKrew/Kart!171
2019-09-27 03:06:29 -04:00
James R
739d602c84 Addition unecessary as ruled out by if condition 2019-09-26 16:41:02 -07:00
James R
971eed8d97 abs is unnecessary on unsigned types 2019-09-26 16:35:41 -07:00
James R
7a6a2f248e Remove trailing whitespace 2019-09-26 14:32:25 -07:00
Sal
921409224c Merge branch 'model-gradients' into 'master'
Model gradients + model tilt adjustments

See merge request KartKrew/Kart!157
2019-09-25 21:53:21 -04:00
TehRealSalt
93e844ecd2 Merge master
(We're still being haunted by whatever happened to make the entire k_kart.c file conflict every single time...)
2019-09-25 10:04:27 -04:00
TehRealSalt
cb355e7e8f Merge branch 'master' into new-springs 2019-09-24 02:46:35 -04:00
TehRealSalt
3321b68fbb Merge branch 'master' into versus-record 2019-09-23 21:29:08 -04:00
Sal
3eef46b06c Merge branch 'showhud' into 'master'
Treat ping and FPS counters like HUD

See merge request KartKrew/Kart!168
2019-09-23 20:32:27 -04:00
TehRealSalt
38bb44e732 Separate into k_pwrlv.c, add defines to reduce amount of magic numbers 2019-09-23 08:26:42 -04:00
TehRealSalt
77aeb4663b Merge branch 'master' into versus-record 2019-09-23 07:03:56 -04:00
TehRealSalt
9d8cb5247a Special effects!
Tire grease waves, colored stars
2019-09-23 03:15:08 -04:00
TehRealSalt
54066cc9fc compile 2019-09-22 22:44:15 -04:00
TehRealSalt
b8a752e40a Merge master 2019-09-18 21:47:11 -04:00
TehRealSalt
16bd11f53f Wrong var name 2019-09-15 00:32:58 -04:00
TehRealSalt
004bae45c5 Buff drift-steering during the grease period 2019-09-15 00:27:28 -04:00
TehRealSalt
5fd6d86b41 Merge branch 'rings_slopechange' into greased-horizontals 2019-09-12 02:01:52 -04:00
TehRealSalt
d3f1b4f82c Greased horizontals 2019-09-12 02:01:30 -04:00
TehRealSalt
e0a177e612 Horizontal springs, bigger hitboxes, springs use the meatier Sonic 3 sound effect 2019-09-11 23:33:33 -04:00
James R
094c926fd0 Apply hud translucency to FREE PLAY 2019-08-11 13:09:03 -07:00
Sryder
19a2962413 Just remembered there's supposed to be a flag to determine if a waypoint can be spawned at 2019-06-30 22:14:20 +01:00
Sryder
20f8037351 Respawn at waypoints once first crossing the finish line. 2019-06-29 11:05:35 +01:00
Sryder
6eca35aae1 SPB Now follows the track.
You better watch out, You better watch out, You better watch out!
2019-06-28 22:43:34 +01:00
Sryder
10adecb4a6 Improvements to player finish distances
Figure out the circuit length on map load
player->distancetofinish is now a total distance on circuit maps
some hacky alterations around circuit finish lines to correctly calculate distancetofinish
2019-06-28 21:11:26 +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
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
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
9a24f65cb8 Merge branch 'master' into model-gradients 2019-05-30 02:00:06 -04:00