Private War is a Garry's Mod gamemode for casual, Call of Duty style matches: you alone, or you and a few friends, against bots that move, take cover, flank and play the objective. Matches run on a player-hosted listen server, so no dedicated machine is needed.
The gamemode is designed to be playable on the Steam Deck. Optimisation first: every costly option defaults to performance, and visual or simulation quality is opt-in through a host setting.
- Bots that are real players. Bots are created with
player.CreateNextBotand play through the same input as humans, so they use the same weapons, movement, teams and scoreboard. Difficulty tiers change reaction, aim and decisions, never health or damage. - Modes: Team Deathmatch, Free-for-all, Domination, Kill Confirmed, Search and Destroy and Hardpoint; Infection is a separate optional addon. Implemented features still have pending human checkpoints in TASKS.md.
- An in-game lobby: party list, playlist or custom game, Game Setup, bot fill and difficulty, START, then a vote for the next map and mode after each match.
- Loadouts: classes with a Pick-X style budget, perks, wildcards, equipment (frag and flash grenades) and killstreaks.
- Progression and store: player and weapon levels, unlocks, medals, a match currency and a daily store rotation. Progression is stored on each player's computer and sent to the host on join.
- Gamepad-friendly front end: PLAY, LOADOUT, PROGRESS and STORE tabs, usable with a keyboard or the Steam Deck controls.
- Extensible: modes, perks, killstreaks, HUD elements, bot behaviours and weapon base adapters are files in
SWEP-style folders under
lua/privatewar/; your own addon can add or replace them. Everything public is typed with LuaLS annotations.
The repository holds the addons under addons/:
| Folder | What it is | Needed |
|---|---|---|
addons/privatewar/ |
The gamemode | Yes |
addons/privatewar-arc9/ |
ARC9 integration: catalogue, attachments and the performance profile for ARC9 weapons | Only with ARC9 |
addons/privatewar-tfa/ |
TFA integration: catalogue, attachments and the performance profile for TFA weapons | Only with TFA Base |
addons/privatewar-mwbase/ |
MW Base integration: catalogue, attachments and the performance profile for MW Base weapons | Only with MW Base |
addons/privatewar-infection/ |
Optional Infection mode | No |
addons/privatewar-dev/ |
Development bridge for the test loop | No, never install it on a server you play on |
- Copy
addons/privatewar/intogarrysmod/addons/of your Garry's Mod install. - Optional: if you use the ARC9 weapon base, also copy
addons/privatewar-arc9/; if you use TFA Base, also copyaddons/privatewar-tfa/; if you use MW Base, also copyaddons/privatewar-mwbase/. - Restart Garry's Mod (addon folders are mounted at startup).
- New Game → gamemode Private War → Max Players above 1 (12 is recommended) → Start. Bots cannot be created in Singleplayer.
The game also works without any weapon base: plain SWEPs are supported by a built-in fallback adapter. Playing, hosting for friends and the controls are described in docs/guide/playing.md.
- docs/guide/playing.md: solo with bots, hosting for friends, the match flow, controls.
- docs/guide/extending.md: the extension cookbook: your own content addon, modes, perks,
killstreaks, wildcards, equipment, bot behaviours, weapon-base adapters, modules and settings, HUD and UI, map
data, playlists, progression and
PW_*hooks. - docs/api/: the API contracts (hooks, class tables, settings).
- DESIGN.md and design/: the design decisions per subsystem.
- docs/packaging.md: building the Workshop addons.
- TASKS.md: the implementation plan.
- changes/INDEX.md: the change queue and links to remaining plan entries.
- AGENTS.md: coding-agent entry point and four implementation skills.
Tools come from the Nix flake; nothing else needs to be installed by hand.
nix develop # toolchain and git hooks
nix develop --command make check # glualint, lua-language-server --check, markdownlint, rule gate, self-tests
nix develop --command make package # stage the Workshop addons into dist/ (never uploads)Tests use GLuaTest and run inside a real Garry's Mod server.
make test runs the suite on a Steam Deck over SSH (see TASKS.md, "Dev loop on the Steam Deck"); the connection
comes from the environment (DECK_HOST, DECK_USER) or a git-ignored .deck.env.
Agents require explicit permission and confirmation that the Deck is free before accessing it; game tests reload
the map. See agent workflow for TDD, static guidance checks and incomplete-gate reporting.
Repository layout:
| Path | Content |
|---|---|
addons/ |
The addons (gamemode, integrations, dev bridge) |
design/, DESIGN.md |
Design decisions |
docs/ |
Guides, API contracts, packaging, manual test list |
notes/ |
Research notes behind the design |
scripts/ |
Quality gates, Steam Deck dev loop, packaging |
tests/gates/ |
Fixtures that prove the gates reject bad input |
cfg/ |
Recommended server config |
Copyright (C) 2026 Maxim Belyy (kitsunoff)
Private War is free software, licensed under the GNU General Public License, version 3 or (at your option) any later
version (GPL-3.0-or-later). The full text is in LICENSE.
You may use, change, share and sell the gamemode. If you distribute a modified version or a work based on it, that work
must also be released as open source under the GPL, with its source code available. Third-party code included in the
repository and its licences are listed in THIRD_PARTY_NOTICES.md.