Development

Bots, classes and killstreaks

The Create a class view: the Assault class with the RK-26 Rynkky, Pikkuveli, Munakello, Salamavalo and three perks, 1 of 10 points left.

The test range now has someone who shoots back, and Varikko is the first real map where you can play a full match against bots.

Bots use the same character and the same controls as a player. A bot cannot do anything a player cannot do: it only presses the buttons differently. Decisions come from a behaviour tree in the Beehave library, which decides whether a bot looks for a target or fights. A bot sees ahead of it and hears gunfire, and when its health drops below 35 it backs off. Paths come from a navigation mesh the game builds from the map when it loads.

Bot aim turns at a limited rate, and the error shrinks the longer a bot tracks its target. I measured hits with a test where a bot fires one aimed shot at the chest of a target standing still 20 metres away. A normal bot hit 47 % of shots and an easy one 18 %. Hard hit 90 % at first, which was too much, so I raised its smallest aim error from 0.8 to 1.1 degrees, and now it hits 66 %. Against a running target a normal bot hits 8 %.

Bots also play whole matches with no screen. In this test 12 bots play a match to the end, and it fails if a single error reaches the log. The first run found two real bugs. The kill feed timer pointed at rows that were gone, so every kill logged an error, and bullet penetration crashed on Varikko's soft cover. Neither showed up on the test range.

You build your own class with ten points. Every gun, attachment, piece of equipment and perk costs a point, and a wildcard lets you break one rule, for example two perks from the same row. The local models could not pass this rule at any tier, so Claude wrote it. Equipment includes the Munakello grenade and Tahmapulla, which sticks to a wall or a player.

Killstreaks include the Kuikka drone, which shows enemies on the minimap, and the Vahtikoira turret. Vahtikoira fires for 45 seconds and leaves players with the Kylmäverinen perk alone. Uunipelti marks up to three enemies and drops shells on them.

The killstreak rewards view: the Kuikka drone, Vahtikoira and Uunipelti picked, Kahvitauko as the deathstreak, and the Kuikka drone description on the right.
You pick three killstreaks and one deathstreak.

There are two new modes: zone capture, now called Kahvipisteet, and tag collecting, now called Pullakuitti. The bots' Kahvipisteet match ended 200-18. In Pullakuitti the bots picked up tags so slowly that the match ran to the time limit at 11-9.

I built the lobby and the map vote too, so you get into a match the way you would in a real game. Next, bots and players share a server. Is the normal bot hard enough, or should it miss more? Tell me in the comments.

All devlog posts

Reactions

Comments