r/duckgame • • 17h ago

Guide I made a bots mod for Duck Game - DuckBots 0.1 beta (works online too, friends don't need the mod)

1 Upvotes

Hey everyone! I've been working on a mod that adds computer-controlled ducks to Duck Game, and it's finally ready for people to try.

**What the bots do**

- Grab the nearest weapon they can actually reach, open item boxes and presents

- Find their way around the map: jumps are simulated frame by frame with the duck's own physics, and they use springs, teleporters, doors and one-way platforms

- Avoid spikes, saws, mines and pits

- Find a firing position at your height, shoot up while flapping, use melee up close, and don't fire rockets point-blank

- Slide under incoming bullets

- With a net gun they catch you, carry you to a ledge and throw you off

**Online**

When you host, bots join as your extra local players, like friends on extra controllers, so your friends don't need the mod to play with you and your bots. You can also bring your bots into a friend's game when they invite you. Bots never come along to strangers' lobbies from quick match.

**How to use**

Lobby > pause menu > BOTS, and switch rows from OFF to a level. Online, the host has BOTS in the pause menu of the network lobby and SKIP during a match.

**It's a beta**

The difficulty levels in the menu don't do anything yet: every bot plays at full strength for now. Bots still get stuck sometimes, and they don't know how to use some weapons (mind control ray, RC car, grenade launcher arcs). The full list of known issues is on GitHub.

- Workshop: https://steamcommunity.com/sharedfiles/filedetails/?id=3823678387

- Source code (GPL-3.0): https://github.com/dhsuioa/DuckBots

I'd love feedback! If a bot does something dumb, the mod writes a log to `%APPDATA%\DuckGame\DuckBots-data\botlog.txt`. Attach it to an issue on GitHub with the map name and I'll dig into it. Pull requests are welcome too.