]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commit
Improve ka/tka/kh bot key/ball chasing logic 1429/head
authorotta8634 <k9wolf@pm.me>
Sun, 9 Mar 2025 08:36:40 +0000 (16:36 +0800)
committerotta8634 <k9wolf@pm.me>
Sun, 9 Mar 2025 08:49:31 +0000 (16:49 +0800)
commit859d3e08fc22a06a07a5e846148cdeba9ae00dc9
treedd27c1f92dac1066c879ee42de6bbc46d3d4d5ec
parentecf72dab2f936077c14fb9d8e9f2a79897b7f64e
Improve ka/tka/kh bot key/ball chasing logic

Made them only chase a key/ball they can see.
- First check if a waypoint exists and is visible.
- If not, use checkpvs.
Made the tka bots "chase" their own ball, so they can protect their team's ball carrier.
- Uses a lower rating scale (half) than chasing a ball the other team has.
qcsrc/common/gamemodes/gamemode/keepaway/sv_keepaway.qc
qcsrc/common/gamemodes/gamemode/keyhunt/sv_keyhunt.qc
qcsrc/common/gamemodes/gamemode/tka/sv_tka.qc