Commit graph

149 commits

Author SHA1 Message Date
Sally Coolatta
8035f7afaf Merge branch 'master' into di 2022-05-21 03:46:22 -04:00
James R
1835605619 Merge branch 'yeaaaa-bots-lets-go' into 'master'
More Bot Improvements (Again (Again))

See merge request KartKrew/Kart!570
2022-05-20 23:32:01 +00:00
Sally Coolatta
56c23339be Directional Influence
Pretty much just copy+pasted from Snap the Sentinel!!
- Hold left/right to adjust the momentum angle after hitlag, up to 22.5 degrees. (Only angle can be adjusted, so you can't adjust your speed, only your direction.)
- It's relative to your angle, so sometimes you need to use forward/back, or even diagonals (forward/back throws now store full analog data for this to work)
- Bananas flip DI direction, to make them not baby easy mode
- Tumble has x3 DI (so angle adjustments of 67.5!!), and hitlag on each bounce to allow even more control.
2022-05-20 01:45:16 -04:00
Sally Coolatta
9ab0e028d4 Tripwire leniency
1 full second after entering a tripwire state, you can still go through tripwires
2022-05-08 01:03:11 -04:00
Sally Coolatta
5ffba0a678 review 2022-04-02 15:24:18 -04:00
Sally Coolatta
59cd9e6157 Harder rubberbanding
The old one is too difficult, the new one is too easy ... let's get an inbetween.
2022-04-01 21:47:50 -04:00
Sally Coolatta
0eb5c29448 Don't do for tire grease again, but for the opposite reason. 2022-04-01 17:33:41 -04:00
Sally Coolatta
18dc75e6ca Make more accurate to how it used to work 2022-04-01 17:23:27 -04:00
Sally Coolatta
56875c59e9 Improve bot friction rubberbanding 2022-04-01 16:39:24 -04:00
Sally Coolatta
1a25fcee4e Improve spindash conditions 2022-04-01 16:05:49 -04:00
Sally Coolatta
3fb1ebbbb0 Fix Sub Zero Peak opening
Bots adjust their speed caluclations with slopes, so they anticipate moving faster going downhill and will stop sooner. They also EBrake instead reversing when trying to reverse up a hill.
2022-04-01 16:00:28 -04:00
Sally Coolatta
76bb14bd3e Scale some bot speed calculations with friction
Makes them handle better on ice.

Also includes some code to do the same with slopes, but it didn't work for subzero, so I gave up on it.
2022-03-31 17:02:12 -04:00
Sally Coolatta
d9b1bdb851 Remove bots without GTR_BOTS 2022-03-31 15:45:50 -04:00
Sally Coolatta
9475c80b9a Fix typo preventing reversing from working 2022-03-31 15:45:18 -04:00
Sally Coolatta
46dad4b7dd Start on better bot position 2022-03-30 20:28:08 -04:00
Sally Coolatta
b9f91cb7ec Increase bot difficulty range to 13
While I finally pushed to do this because of the epic Blue Sphere reference, I was kinda thinking about doing this for a while, because it gives more room for bots to level up during Hard GP.

I thought about just making the new level cap go up normally, but I decided on keeping the bots' passive buffs (like top speed & ring boosts) go up linearly, while rubberbanding range is kept the same.

I don't think I can properly explain it, but this basically means level 13s are a touch harder than old level 9s before, and new level 9s are touch easier than old level 9s. Basically think of it as more level range than actually making the bots harder.

The expanded range means that Hard GP can start off easier, but end harder. (And of course, Master is even more ridiculous c:)
2022-03-30 15:25:55 -04:00
toaster
8de92e8dca Merge branch 'master' into boss
# Conflicts:
#	src/k_bot.c
2022-03-17 16:58:42 +00:00
toaster
fcb6a4e1ab Disable the vanilla-sourced "keepbody" (rejointimeout) feature. 2022-03-14 16:33:03 +00:00
toaster
c1f3237157 Boss API + assorted relevant bugfixes, will go over the featureset of this branch with a fine toothed comb when it's time to write the merge request description so this is all you're getting right now 2022-02-24 21:19:03 +00:00
Sally Coolatta
a6d1043d17 Reduce turning for bots when they stair jank 2021-12-17 18:29:35 -05:00
Sally Coolatta
cec8137864 Require Effect 1 for using bot controller angle. 2021-12-12 04:07:32 -05:00
Sally Coolatta
cd0a259bbe Code cleanup
- K_FindBotController returns the line_t directly, instead of a linedef index.
- Trick panel code is in its own function.
- Try to fix infinite bot heat death
2021-12-12 02:32:03 -05:00
Sally Coolatta
0e43a04dee Try adding tripwire support
Kind of lazy. When checking bot traversal, it considers tripwires as walls. K_BotCanTakeCut now is limited to whatever can take tripwires (no more hyudoro invisibility).

Probably should have something more foolproof, but it's annoying to test any changes to this. The only maps I can think of with really easy tripwires clearly don't have their waypoints with bots in mind, the rest are very optional or out of the way or otherwise the bots don't want to even touch them at all.
2021-12-12 02:07:21 -05:00
Sally Coolatta
bfdae28409 Not Climable flag on a bot controller disables rubberbanding 2021-12-11 04:18:09 -05:00
Sally Coolatta
ba26a3a223 Require bots to be much slower to consider spindash 2021-12-11 02:22:33 -05:00
Sally Coolatta
08bfd6e881 Improve the new wall detection further
They didn't fall off on Hardhat, I'm so proud of my sons
2021-12-11 01:51:40 -05:00
Sally Coolatta
19463d6b20 New bot prediction wall detection
Instead of searching for walls around the player, and then deciding to make the radius tighter if it found anyway, it instead checks if the waypoint it's trying to predict towards was blocked by any walls / hazards.

Needs adjusted some, I think its being pulled back too hard sometimes, but I am optimistic about some of the improvements I already saw.
2021-12-10 17:42:00 -05:00
Sally Coolatta
07d5691b73 Make them commit harder to turning
- Removed the "minor adjustment" threshold, since that was done before global easing
- Removed the "accel + brake to slowdown and reorient yourself if you're facing too far away from the track" bit, because 1.) it was done before accel + brake was turned into EBrake (so it now often makes them come to a STOP instead of simply slowing down) and 2.) turning harshly will slow them down anyway, so maybe isn't necessary
2021-12-10 16:23:41 -05:00
Sally Coolatta
e4b27933f2 Comment the tire grease change 2021-11-28 15:13:54 -05:00
Sally Coolatta
40958073e3 Increase bot max top speed now that everything around it is fixed lol 2021-11-28 14:42:44 -05:00
Sally Coolatta
c7caf7ab44 Pull the prediction a lot more forward by default 2021-11-28 14:37:21 -05:00
Sally Coolatta
dca887e23e Do not adjust friction on bots for tire grease 2021-11-28 14:36:58 -05:00
toaster
d9c9456798 Merge branch 'master' of https://git.do.srb2.org/KartKrew/Kart.git into structgunch
# Conflicts:
#	src/k_bot.c
2021-04-17 12:51:25 +01:00
toaster
00972a83d2 remove the prefix since everything seems to function 2021-04-17 11:30:08 +01:00
toaster
b3d006b093 structs gunched 2021-04-17 00:27:13 +01:00
Sally Coolatta
e006cfa287 Make spindashing bots work better
They will no longer do it on a whim after getting bumped out of position of hitting walls, instead checks if they're trying to accelerate and they physically can't.
2021-04-11 04:54:27 -04:00
Sally Coolatta
8bb1fa57d4 Merge branch 'master' into 22-merge-again 2021-04-05 01:11:26 -04:00
Sally Coolatta
1619efec82 Make it past kart & mixer files 2021-03-01 01:13:03 -05:00
Sally Coolatta
b7f8278252 Some asserts in K_DrawPredictionDebug 2021-02-26 22:15:43 -05:00
Sally Coolatta
78592de14f Since this gets definitely freed by us later, this should probably be PU_STATIC 2021-02-26 22:13:21 -05:00
Sally Coolatta
17de1d5ff3 Don't modify the states table for kartdebugwaypoints or kartdebugbotpredict
Also makes debugwaypoints fullbright so it's a little easier to see in dark levels.
2021-02-26 21:55:20 -05:00
Sally Coolatta
d2dd562919 Bots shouldn't try to do anything during the camera spin-around intro. 2021-02-26 21:37:14 -05:00
Sally Coolatta
bbfad3a544 Adjust wall detection
Wall detection range was doubled, how much the prediction is adjusted was halved. This is a much nicer middle-ground compared to what it was doing before.
2021-02-26 19:04:24 -05:00
Sally Coolatta
59fa615cc8 Update comment 2021-02-26 06:12:19 -05:00
Sally Coolatta
df13b9fcfa Show prediction's radius on the prediction debugger 2021-02-26 05:58:33 -05:00
Sally Coolatta
6142963ff9 Add minimum distance to prediction 2021-02-26 03:30:52 -05:00
Sally Coolatta
4b158c44cd Add debug command to show the bot's prediction 2021-02-26 02:41:41 -05:00
Sally Coolatta
43a92892e9 New turning towards objects style 2021-02-26 01:58:13 -05:00
Sally Coolatta
a4b673705a Merge branch 'master' into bots-brake-earlier 2021-02-26 00:29:48 -05:00
Sally Coolatta
317dfe5ae0 Bots brake earlier 2021-02-26 00:24:29 -05:00