Commit graph

17070 commits

Author SHA1 Message Date
Sally Coolatta
1f7fd96e32 Bot controller linedef
Controls bot behavior while they're touching a tagged sector.

X texture offset is angle to force the bot in (0 is east, 90 is north, 180 is west, 270 is south)

Y texture offset is trick type -- if a bot enters the sector while in trick panel state, then they'll do the input for the trick. Without the effect present, they'll do nothing and eventually tumble.
Y offset 1 does a left trick, 2 is right, 3 is forward, 4 is back/up.
2021-02-11 19:08:44 -05:00
Sally Coolatta
fd0c3283a8 Merge branch 'master' into bot-updates 2021-02-11 17:23:56 -05:00
Sally Coolatta
c58b5e92a1 Fixed weird issues with finish beam dist, properly use old behavior without beam, make bots get way closer 2021-02-11 16:25:35 -05:00
Sally Coolatta
6e75b29431 Replace the tracking function with Nev3r's version
Was a long time coming :V

Nev3r's supported different FOV. I also expanded it to let it support splitscreen's different screen sizes in a better fashion than the old method of just dividing the final coordinates.

The results are also stored in a struct, instead of modifying passed in variables, so it's also less dunderheaded than what I was doing before overall.
2021-02-11 15:40:03 -05:00
Sally Coolatta
1c7f6e9c09 Hyudoro does not count as flashing 2021-02-11 13:12:15 -05:00
Sally Coolatta
346b69e312 Not in respawn 2021-02-11 13:05:40 -05:00
James R
e49d4a4cee Use fabs 2021-02-10 23:47:09 -08:00
SteelT
8f220382f6 Merge branch 'add-sub-colormaps' into 'master'
Additive/subtractive colormaps

See merge request KartKrew/Kart!370
2021-02-11 00:33:38 -05:00
Sally Coolatta
e250c35489 Remove ground scaling
I dun like it, it makes the gameplay purpose of shadows harder to discern
2021-02-10 20:03:29 -05:00
Sally Coolatta
4c26c4fd81 Shadows use additive/subtractive 2021-02-10 19:23:07 -05:00
Sally Coolatta
d5d8697efa Fix bug causing fog to be dull in some maps 2021-02-10 18:10:12 -05:00
Sally Coolatta
c3c9025b27 Minor cleanup 2021-02-10 17:20:16 -05:00
Sally Coolatta
c95684198d Add/sub fog
Makes it consistent with the subtractive lighting I was working on... the big benefit is that no saturation is lost when blending to white or black.
Has a few maps this looks worse on, though.
2021-02-10 15:43:58 -05:00
Sally Coolatta
0d1e98c7b9 Merge branch 'master' into bot-updates 2021-02-07 15:49:28 -05:00
Sally Coolatta
038dd17de3 Debt spikes set their fuse when they land
Another request from oni
2021-02-07 15:44:43 -05:00
Sally Coolatta
233d257791 Give fling rings shadows, remove afterimages
Both oni requests
2021-02-07 15:30:45 -05:00
Sally Coolatta
f4e23bc4e2 Allow spindash while flashing, but you lose rings while doing so.
I really hated that one of your controls would just... turn off while you were flashing. Even if there was a very good reason to not allow it (Funky Kong's Ring Racers™️).

So instead, you CAN spindash in flashing ticks... but you're punished so harshly for it that it's not worth it. Which will actually teach people to not do it more than just the input arbitrarily not working :p
2021-02-07 15:25:09 -05:00
Sally Coolatta
93c5942ceb Air failsafe boost
While in the air: release accelerate while at nearly-still speeds, and you'll preform a minisucle air drift boost. This mechanic is meant to fix the long-standing issue where you can get stuck in 0 speed in the air and not be able to do anything.
2021-02-07 14:07:27 -05:00
James R
c7783945ca Merge branch 'funny-spikes' into 'master'
Funny Debt Spikes

See merge request KartKrew/Kart!366
2021-02-07 05:51:57 -05:00
James R
e603c4d48d Merge branch 'spindash-rebalance' into 'master'
Spindash rebalance

See merge request KartKrew/Kart!365
2021-02-07 05:51:44 -05:00
Sally Coolatta
4535a642d6 Merge branch 'master' into spindash-rebalance 2021-02-07 02:35:55 -05:00
James R
e9572232de Fine, int32 2021-02-06 20:24:39 -08:00
James R
75ee9b465b Drop spikes once ring burst puts you into debt 2021-02-06 20:22:15 -08:00
James R
44ec94f287 Merge remote-tracking branch 'origin/master' into funny-spikes 2021-02-06 03:00:50 -08:00
James R
caa7fe1b47 Merge branch 'player-new-frames' into 'master'
New player frames: Glancing and death

See merge request KartKrew/Kart!362
2021-02-06 05:57:11 -05:00
Sally Coolatta
0a950df133 Reset k_spindash when hurt 2021-02-06 05:46:53 -05:00
James R
45b98298d9 Ring burst adjustment
Explosions and Tumble - 10 rings
SPB - 20 rings
2021-02-06 02:45:23 -08:00
James R
f9c6a5e8b5 Drop Funny Spikes when getting stung
DEBTA0-DEBTH0

Instead of dropping rings, drop non collectable spikes!
2021-02-06 02:31:24 -08:00
Sally Coolatta
5e098cddcd This comment is extremely funny 2021-02-06 05:22:30 -05:00
Sally Coolatta
e0f931072c Leftover from old comment 2021-02-06 05:14:54 -05:00
Sally Coolatta
efb636aebe Bots do things during POSITION 2021-02-06 05:14:15 -05:00
Sally Coolatta
2344d94a6e Minor adjustments to starting difficulty calculations for big GPs 2021-02-06 01:40:58 -05:00
Sally Coolatta
fb1d495b5c Bots can recover from dying
Rogue code that came back from vanilla
2021-02-06 01:40:39 -05:00
Sally Coolatta
ee68862d1f Drift protection
Before, doing a spindash input while turning, but not being at a low enough speed, would make you start drifting.

Now, it checks if you're trying to E-Brake first before interpreting it as a drift input.

If you were already drifting, then attempting accel+brake will still be brake-drift, so that technique is unaffected.
2021-02-06 00:08:28 -05:00
Sally Coolatta
fea9cd2ad0 Make spindash strength curve exponential instead of linear
Heavily encourages full charge instead of tapping
2021-02-05 23:29:51 -05:00
Sally Coolatta
af7adf76c4 Make spindash speed differences x2 stronger 2021-02-05 23:28:47 -05:00
Sally Coolatta
7584274636 Spring/spindash grease & invincibility gives you slope resistence 2021-02-05 23:28:22 -05:00
Sally Coolatta
e8774cf7b2 Charging nothing for no time now actually gives you nothing 2021-02-05 22:50:33 -05:00
Sally Coolatta
8ca13e3388 Merge branch 'master' into bot-updates 2021-02-05 22:44:53 -05:00
Sally Coolatta
79d5867c5e Add spindashing logic for bots
They will charge a spindash when they're moving too slow, don't have another boost, and aren't flashing.
2021-02-05 22:44:31 -05:00
Sally Coolatta
b5d7434caa Turn confirm goes back to neutral when they aren't trying to turn. 2021-02-05 21:34:16 -05:00
Sal
053ecf203f Merge branch 'pos-hud-tweaks' into 'master'
Position number uses additive/subtractive

See merge request KartKrew/Kart!361
2021-02-05 17:53:11 -05:00
Sally Coolatta
8e041e7d0b Re-add const 2021-02-05 17:51:23 -05:00
Sal
64d6453331 Merge branch 'respawn-line' into 'master'
Respawn when crossing a line

See merge request KartKrew/Kart!363
2021-02-05 17:49:50 -05:00
Sal
6a2c5368ee Merge branch 'finish-beam-in-sprints' into 'master'
Finish line beam for sprint maps

See merge request KartKrew/Kart!364
2021-02-05 17:48:37 -05:00
Sally Coolatta
75dd970adc Beam objects
Place 2 to arbritrarily place the line anywhere. For sprint maps.
2021-02-05 01:58:34 -05:00
Sally Coolatta
90ca38acb0 Store where the finish line beam should be displayed
Instead of figuring out where it should be every tick while it's visible, store where it'll be at the start of the map.

Also moved finish line beam into a new file, k_race.c/h, for any Race-specific code.

A few unused variables for sprint map support later too
2021-02-05 01:24:23 -05:00
James R
eabb97ea93 Line special 2003: No Climb - only respawn when crossing front side 2021-02-04 18:51:32 -08:00
James R
8c047372a6 Line special 2003: respawn player if crossing this line 2021-02-04 18:40:50 -08:00
Sally Coolatta
efeab5e80e Allow lookback/glancing in the air, glance back while braking 2021-02-04 21:11:27 -05:00