Commit graph

7630 commits

Author SHA1 Message Date
Sally Coolatta
e1d3111113 Remove &&
Not even sure how this compiled before :V
2020-06-02 13:32:51 -04:00
Sally Coolatta
ac1283bc9d Outdated comment 2020-06-02 13:30:36 -04:00
Sally Coolatta
d336f24860 Move kart .o 2020-06-01 15:49:51 -04:00
Sally Coolatta
086ea73c2f Merge branch 'master' into respawn-updates 2020-06-01 15:49:30 -04:00
Sal
a21b235034 Merge branch 'remove-b_bot' into 'master'
Remove b_bot.c and b_bot.h from CMakeLists

See merge request KartKrew/Kart!271
2020-05-31 15:37:07 -04:00
lachwright
08a87d7e7e Remove b_bot.c and b_bot.h from CMakeLists 2020-05-31 18:31:33 +08:00
Sal
dcd2f790ba Merge branch 'pet-robo' into 'master'
This is my PET ROBO!

See merge request KartKrew/Kart!257
2020-05-29 13:27:28 -04:00
Sally Coolatta
285de3357d Add back to resynch & savegame, shorten names of a few variables 2020-05-29 13:12:07 -04:00
Sally Coolatta
cf1c7f9f10 FULLY fix the respawn finish line exploit, by adding a "P_HitSpecialLines" function 2020-05-29 11:49:32 -04:00
Sally Coolatta
2bfe5c9dd2 Noclip properly 2020-05-29 11:41:39 -04:00
Sally Coolatta
0879459142 Add distance based on air time
Using the respawn command gives you barely any distance, while flying off huge  MGZ pits gives you a bunch.
2020-05-29 10:37:34 -04:00
Sally Coolatta
d062a35a3a Huge respawn overhaul
- Moved respawn code to its own file
- Reorganized a lot of the code related to respawning
- As a result of the massive reorganization, I squashed several bugs. Most notably: mid-game joiners having weird spawns, being able to skip laps by respawning.
- Respawn lightsnake no longer takes you straight to your nextwaypoint -- it now has a minimum distance forward that it tries to put you at when you respawn.
2020-05-29 01:04:51 -04:00
Sally Coolatta
990733a5cc Minimum prediction distance
Lets them properly steer while respawning
2020-05-28 18:46:33 -04:00
Sally Coolatta
d2aa03b44e Change 3*rad/4 to rad
Should let them use slightly more of the track
2020-05-28 18:45:14 -04:00
Sally Coolatta
5f97070a47 FixedDiv should be here instead of FixedMul 2020-05-28 18:29:00 -04:00
Sally Coolatta
896c6b3952 Rewrite K_BotHatesThisSector slightly
Fixed a lot of its false positives, as well as some copy-paste errors
2020-05-28 17:58:35 -04:00
Sally Coolatta
fdb13b76d1 Make K_BotTopSpeedRubberband a function 2020-05-28 16:46:21 -04:00
Sally Coolatta
08198ef1b4 Don't display ping for bots 2020-05-28 13:50:47 -04:00
Sally Coolatta
b8b4d913a8 Reverse order bots are removed 2020-05-28 13:44:53 -04:00
Sally Coolatta
5ad6812f17 No modify power level for beating/losing to players with no power level set
This mainly is intended for bots, but also applies to splitscreen guests who also probably shouldn't have any power level
2020-05-28 13:42:11 -04:00
Sally Coolatta
9933687c6e Merge branch 'master' into pet-robo 2020-05-24 17:18:02 -04:00
Sally Coolatta
4916516e2e Prevent duplicate skins, fix bots not being able to be disabled, change default to "off" 2020-05-24 17:12:58 -04:00
Sally Coolatta
5d77807a78 const radreduce, removed unused "dir" property 2020-05-24 16:16:01 -04:00
Sally Coolatta
597baf212b Allow rubberbanding up to exiting players 2020-05-24 15:55:26 -04:00
Sally Coolatta
dbc30da69f Dial back the bot steering changes a bit 2020-05-24 15:55:10 -04:00
Sally Coolatta
02605a5ace Split bot code into multiple files & clean up 2020-05-24 15:08:10 -04:00
Sal
e18d71d562 Merge branch 'flame-shield-adjust' into 'master'
Flame shield adjust

See merge request KartKrew/Kart!270
2020-05-24 11:20:30 -04:00
Sally Coolatta
5e11068328 Merge branch 'pet-robo' of https://git.magicalgirl.moe/KartKrew/Kart into pet-robo 2020-05-24 11:13:26 -04:00
Sally Coolatta
56867fb203 Going above top speed makes radius smaller 2020-05-24 11:13:20 -04:00
Sally Coolatta
edfc14c506 Better steering
- If they're already turning in one direction, they are more likely to steer in that direction for objects
- Bots have to want to turn in 1 direction for a few frames in a row before it'll let them

Prevents twitching & makes them less indecisive in general
2020-05-24 11:12:38 -04:00
Sal
a31ac14e61 Merge branch 'pet-robo-toast' into 'pet-robo'
toast robo

See merge request KartKrew/Kart!268
2020-05-24 01:08:45 -04:00
Sally Coolatta
7cb574351d Merge branch 'master' into flame-shield-adjust 2020-05-23 21:51:03 -04:00
Sally Coolatta
12be3ea882 Increase handling with flame shield dash 2020-05-23 21:50:52 -04:00
Sally Coolatta
b1ec2d8f74 Scale with mapobjectscale 2020-05-23 21:34:30 -04:00
Sal
5d923226aa Merge branch 'let-spec-have-fun' into 'master'
Allow spectators through Block Players lines

See merge request KartKrew/Kart!266
2020-05-23 21:29:59 -04:00
Sal
f0ed1a58ce Merge branch 'demoman-tf2' into 'master'
Additional local explosion effects.

See merge request KartKrew/Kart!263
2020-05-23 21:29:38 -04:00
Sal
0524def20b Merge branch 'flameshield-spectate-fix' into 'master'
Fix Spectating With a flameshield on Crashing

See merge request KartKrew/Kart!269
2020-05-23 21:29:24 -04:00
Sryder
f5b570da39 Set this variable after making sure the target and player exist. 2020-05-23 16:08:51 +01:00
Sally Coolatta
ca7154f521 Make rubberband air speed cap even harsher 2020-05-22 21:19:50 -04:00
Sally Coolatta
38ec153e90 A bit redundant 2020-05-22 20:49:33 -04:00
Sally Coolatta
f442b934cc Adjust wall steer radius with speed 2020-05-22 20:20:17 -04:00
Sally Coolatta
19f352e4a4 Commentate K_BotReducePrediction better, use angle rather than distance for path split picking 2020-05-22 20:19:58 -04:00
toaster
6d7dad12f0 Merge branch 'pet-robo' of https://git.magicalgirl.moe/KartKrew/Kart.git into pet-robo-toast
# Conflicts:
#	src/k_bot.c
2020-05-22 21:59:57 +01:00
toaster
56226fae45 Only iterate blockmap once for Random Items and Eggboxes. 2020-05-22 21:51:05 +01:00
toaster
84f277c323 Adjust the finish line detection to exclude a handful of circumstances I've tripped before. 2020-05-22 21:34:05 +01:00
toaster
97e261f443 Fix some issues with the tab rankings and end screen that bots exposed.
* Laps now have an initial zero instead of being directly indexed from 1, so start counting from there.
* Clean up the circumstances under which LAGLESS! is shown next to a name - specifically removing it from both non-netgames in general, and bots in netgames.
* Fix `(powertype == -1)` being broken on the intermission drawer, which was especially obvious with bots outside of netgames.
2020-05-22 21:27:55 +01:00
Sryder
7132eeab48 Merge branch 'fake-contrast-2-electric-boogaloo' into 'master'
Fake contrast 2: Electric Boogaloo

See merge request KartKrew/Kart!267
2020-05-21 19:08:30 -04:00
Sryder
ad51b791d5 Fix software not contrasting properly to +-2 2020-05-21 18:11:38 +01:00
Sryder
8d34ca0533 Use a const for the contrast, and double it for extra impact. 2020-05-21 17:55:33 +01:00
Sryder
195920acdc Update light offset on polyobjects when they rotate 2020-05-21 17:15:50 +01:00