Commit graph

7676 commits

Author SHA1 Message Date
Latapostrophe
1051b115b4 Merge branch 'v1-backwards-thrown-spikeballs' into awful-mix 2020-04-05 22:31:07 +02:00
Latapostrophe
297104f12d Merge branch 'fix-double-bombs' into awful-mix 2020-04-05 22:30:43 +02:00
Wolfy
e9bbdb8cc3 Reimplement the MusicChange hook
why the fuck was this removed
2020-04-05 12:09:44 -05:00
Wolfy
e0fec734f2 Record attack only linedef exec 2020-04-05 14:12:12 +02:00
Latapostrophe
51b1430dd6 Merge branch 'v1-backwards-thrown-spikeballs' into awful-mix 2020-04-05 14:10:00 +02:00
Sally Cochenour
9495832106 Slow down backwards spikeballs (again) 2020-04-05 14:09:04 +02:00
Wolfy
e2aeabec1b Record attack only linedef exec 2020-04-05 07:03:49 -05:00
Latapostrophe
29781688e8 Merge branch 'v1-ignore-posthumous-ackret' into awful-mix 2020-04-05 11:23:49 +02:00
Latapostrophe
dc00dbdeee Merge branch 'ignore-posthumous-ackret' of git.magicalgirl.moe:KartKrew/Kart-Public into v1-ignore-posthumous-ackret 2020-04-05 11:23:29 +02:00
Sally Cochenour
dbb52e4aa5 Use bananas, orbinauts, jawz, mines, and ballhog
Yaaay

Bananas and mines could definitely be improved, but works for now
2020-04-05 02:14:40 -04:00
Sally Cochenour
6ecad2e73a Reduce steering code duplication 2020-04-05 02:13:39 -04:00
James R
77e01f61e6 Waypoint Riser: Require Object Special for discrimination by tag
So the default is to affect all waypoints in the sector.
2020-04-04 01:28:53 -07:00
James R
89a2f8ec8d Thing type 2002, MT_WAYPOINT_RISER - Raise tagged waypoints in sector to FOF sorted by height
Thing height refers to the index of FOF. FOF are sorted by top height, lowest
to highest. Set Object Flip to sort highest to lowest.

If the waypoint thing set Object Flip, it will be placed on the bottom of the
FOF. The sorting remains the same though.

Set Ambush to raise the waypoint to the same z position.
2020-04-04 01:20:38 -07:00
Sally Cochenour
b983031587 Yet more misc polish since I can't focus on orbis
- Massive improvements to object steering -- they do it more often and more strongly
- Steering towards hurtable players is now weighted on acceleration, and steering away from painful players is weighted on handling
- Bots now can get & use Thunder Shield
- Bots now know how to detontate Eggman Item explosions early
- Top speed gets a buff to make up for them losing lots of speed without drifting, weighted more heavily towards low acceleration characters
2020-04-04 01:42:56 -04:00
James R
593003b0f7 Line special 80, raise tagged things by type to this FOF
Thing type is the front texture x offset.

Tag here refers to the thing's angle.

For example, you have two sectors tagged to one FOF. Put a ring in each sector,
give it angle 0. Then give a line in the FOF control sector special 80 front
texture x offset 300. Those rings will spawn on the FOF instead of on the
sector floor.

Also works for object flip and slopes.
2020-04-03 20:53:00 -07:00
Sally Cochenour
ccc7ac8cad More misc polish
- Steer against objects more often
- Reduce steering toward rings
- Only steer towards items/rings in front of them
- Be slightly less trigger happy with using rings/shoes while boosting
2020-04-03 16:39:43 -04:00
Sally Cochenour
578f4ae2c1 Slight tweaks to object dodging 2020-04-03 13:42:27 -04:00
Sally Cochenour
5dec13c848 Fix ring values being flipped 2020-04-03 13:36:33 -04:00
Sally Cochenour
b27f1d89c3 Merge branch 'pet-robo' of https://git.magicalgirl.moe/KartKrew/Kart into pet-robo 2020-04-03 00:38:27 -04:00
Sally Cochenour
ec9a023814 Object steering
Bots will steer *towards* rings, items, ring-stingable players, and players with lower weight. They will steer *away* from projectiles, traps, players using damaging items (such as invincibility), players with shields, and players with higher weight.
2020-04-03 00:38:24 -04:00
James R
2e963a46f5 For fun, let the bots vote 2020-04-02 14:16:29 -07:00
Sally Cochenour
fafdb257b8 Actually, this should be left alone too 2020-04-02 15:15:34 -04:00
Sally Cochenour
3ae0cd03fb Scale waypoint radius with mapobjectscale
Fixes Marble Garden's bots
2020-04-02 15:15:00 -04:00
Sally Cochenour
52960459a3 Minor variable changes 2020-04-02 15:08:48 -04:00
Sally Cochenour
ebbcf8d7fd Make bots slow down on turns less often 2020-04-02 14:54:00 -04:00
Sally Cochenour
425220a109 Remove print 2020-04-02 00:45:01 -04:00
Sally Cochenour
08fab7e274 Merge branch 'pet-robo' of https://git.magicalgirl.moe/KartKrew/Kart into pet-robo 2020-04-02 00:44:40 -04:00
Sally Cochenour
8f450f2128 Steer bots away from walls 2020-04-02 00:43:42 -04:00
James R
b83ce45941 Set angleturn from player angle instead of relying on the previous state 2020-04-01 20:11:00 -07:00
James R
0ee1628b51 Send bot status in servercfg 2020-04-01 20:10:50 -07:00
James R
e8ca96ceb4 Merge remote-tracking branch 'origin/master' into HEAD 2020-04-01 19:41:44 -07:00
Sally Cochenour
4380caf7dd All around polishing
- Make ring usage smarter
  - Ring usage threshold varies between characters (Tails will be more willing to dump rings, Metal will hold onto them)
  - Decrease ring use threshold when they have a speed boost (tethering)
  - Decrease ring use threshold when slowed down more than usual
- Properly implement Triple Sneaker & Rocket Sneaker usage
- Use smallest radius of all waypoints being predicted, to improve precision
- Bots never use prev waypoints
2020-04-01 21:16:26 -04:00
James R
9bdebe51bf Fix a dumb warning 2020-03-31 16:54:20 -07:00
James R
c5a5d95a24 Use KART_ITEM_ITERATOR for the lua constants 2020-03-31 16:52:41 -07:00
James R
6975de85b4 Call the substitution macro FOREACH 2020-03-31 16:45:36 -07:00
James R
1243d0940a Merge remote-tracking branch 'origin/master' into more-debug 2020-03-31 16:44:04 -07:00
James R
4a3a4c0801 This won't be needed 2020-03-31 15:50:39 -07:00
James R
e4094bc2a9 Remove some redundant code 2020-03-31 15:26:22 -07:00
James R
735dd26dc6 Put downloads in addons/downloads instead of DOWNLOAD 2020-03-31 15:23:24 -07:00
Sryder
f190e3bd9e Merge branch 'fix-waypoint-joins' into 'master'
Fix joining netgames not loading up waypoints correctly

See merge request KartKrew/Kart!230
2020-03-31 11:34:15 -04:00
Sryder
902bbb447f Missed a function header comment in k_waypoint.c 2020-03-31 16:31:01 +01:00
Sally Cochenour
29613dba90 Merge branch 'master' into pet-robo 2020-03-31 10:47:03 -04:00
James R
3fa22c508b Put screenshots, movies and replays under a "media" directory 2020-03-30 17:41:48 -07:00
Sally Cochenour
fb550f2868 Slightly smarter sneaker usage
- Use sneaker if held for too long without a proper use
- Use sneaker if losing too much speed
- Use sneaker if you have another boost (tether, boosters)
- Add triple sneaker & rocket sneaker support
- Don't go towards shortcut waypoints without a shortcut item
- Bots get naturally better handling
2020-03-30 17:17:20 -04:00
Sryder
956222ad86 Fix joining netgames not loading up waypoints correctly.
Mobjs get deleted and loaded from net save. The mobjs in the waypoints need to load into the correct waypoints again.
This doesn't save/load the entire waypoints, so they still cannot be edited/added/removed mid-game.
2020-03-30 20:43:01 +01:00
Sal
860885e2b9 Merge branch 'new-item-sprites' into 'master'
Add new item box sprites

See merge request KartKrew/Kart!229
2020-03-30 12:34:52 -04:00
Sally Cochenour
69a67376b3 Oni's suggestions
- Only look for players who can pick up the item. Serves as a subtle tell for other players holding onto items, and lets you see the canon color more often
- Held eggman item uses black instead of player color
- Fix karma items not animating
2020-03-30 07:43:22 -04:00
Sally Cochenour
266ad99374 Add new item sprites 2020-03-30 06:57:42 -04:00
Sally Cochenour
9e2c119b56 Merge branch 'master' into pet-robo 2020-03-29 20:44:13 -04:00
Sally Cochenour
774c85d660 Rudimentary item usage code 2020-03-29 19:56:05 -04:00