Frag Arena: First-Person Shooter Kit with Deathmatch, Bots and Scoreboards
README.md
Game
Runs a fragKit arena-shooter match. Put it on one synced entity (Frag.setup spawns FragGame); every machine runs it. The machine in charge (the entity's owner) keeps the K/D board in the synced state table, scores each SecondWind frag into the MatchFlow match (or the lobbyKit team), runs gun-game levels, kill-confirmed tags, hill bots and elimination knock-outs, spawns and directs the arenaBots bots, and switches the lobby between teams (lobbyKit) and free-for-all (MatchFlow's own lobby) between matches. Every machine looks after its own player: team and health for the mode, its weapons, spawning at the spawn farthest from living enemies, respawn placement, no damage outside a round, one-shot kills and grabbing tags. Needs a Match (MatchFlow) entity, SecondWind Rules, and the arena layout named by arena; Frag.setup makes all of them. Methods: getState(), getBoard(), myKey(), chooseTeams("on"|"off"|"auto"), teamsOn(), config(), ladder().