Commit graph

171 commits

Author SHA1 Message Date
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
James R
e4226c9ff9 Fix crash from trying to remove the 17th player when removing bots 2021-02-22 18:17:50 -08:00
Sally Coolatta
1849f70359 Merge branch 'master' into waypoints-disable 2021-02-12 20:28:16 -05:00
Sally Coolatta
8734db6cfd Remove prints 2021-02-12 11:21:35 -05:00
Sally Coolatta
f134c07c00 Severely decrease spindash threshold 2021-02-12 03:20:43 -05:00
Sally Coolatta
f236fcc5e2 Decrease max top speed rubberband 2021-02-12 02:08:10 -05:00
Sally Coolatta
9bf2293481 Increase rubberband range 2021-02-12 02:07:47 -05:00
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
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
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
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
Sally Coolatta
9d4afb9aec Players/bots ignore disabled waypoints 2021-02-01 19:58:15 -05:00
Sally Coolatta
71d8ffb493 Reduce max rubberband top speed from +100% to +25% 2021-01-31 20:11:44 -05:00
Sally Coolatta
aefff1c943 Fix bots + friction 2021-01-31 17:58:18 -05:00
Sally Coolatta
6eb7c6a9a9 +10% more effective top speed stat for all players, instead of just bots 2021-01-30 20:46:34 -05:00
Sally Coolatta
062ea7e430 Use scale 1 instead of 0 for player oblivion shrink 2020-09-27 10:36:44 -04:00
Sally Coolatta
17b8a5d603 Shrink when dying post-finish
I started this in another commit and forgot to fully finish it. Also allows attacking bot-controlled players who won
2020-09-26 05:40:01 -04:00
Sally Coolatta
e19cffa819 Quitting players act like bots 2020-09-25 02:27:11 -04:00
Sally Coolatta
99a1bacb81 Turning code overhaul
Packet drops are still broken, but at least netgames are playable now.
2020-09-22 00:35:44 -04:00
Sally Coolatta
fc663d4d86 Bots work again 2020-08-18 05:40:21 -04:00
Sally Coolatta
f9ca40e673 Merge branch 'master' into the-scary-22-merge 2020-08-12 20:59:09 -04:00
Sally Coolatta
8731c6b7a4 Another round of fixing up
- gametyperules are now fitting for kart, not applied to the whole codebase though
- a few more files compile
2020-08-11 16:13:17 -04:00
Sally Coolatta
69b6ba2f18 I tore apart the entire code to try and fix braking friction and gave up, so now it's back to v1
My rewrites clean up a LOT of weird/misleading behavior anyway, so I'm gonna push this regardless. Someone else will have to figure out another way to reimplement braking friction though -- we can't use it as is because it prevents being able to bump people.
2020-07-28 03:34:39 -04:00
Sally Coolatta
fc89f2cc47 Remove start boosts, let you roam, kill you for crossing the line before the start 2020-07-24 02:59:47 -04:00
Sally Coolatta
559b879a28 move bot ticcmd to SV_Maketic 2020-06-07 03:41:56 -04:00
Sally Coolatta
42419f7bc6 Add comments for functions 2020-06-04 17:14:14 -04:00
Sally Coolatta
9603c5fea7 Revise rival score system, so that it's much more likely to make the rival status switch places 2020-06-04 16:52:24 -04:00