SWAT 3: Close Quarters Battle — Native 64-Bit SDL2 Port (v0.1.0)
Downloads — Native 64-Bit Tactical CQB Engine Port (v0.1.0)
SWAT 3: Close Quarters Battle — Tactical Game of the Year Edition (Sierra Studios, 1999–2001) is one of the defining tactical police simulators of the PC era, pairing authentic LAPD D-Platoon room-clearing doctrine and Rules of Engagement (RoE) scoring with dynamic suspect/hostage morale and cell-and-portal room acoustics. swat3port v0.1.0 is released and playable for Linux x86_64 (desktop PC, laptop, MSI Claw, Steam Deck) and Linux ARM64 (aarch64) (Khadas VIM1S, Raspberry Pi, ARM boards) — engineered from scratch in clean-room ISO C11 & SDL2 (GPL-3.0-or-later) to replace the legacy 32-bit DirectDraw/Direct3D7 swat.exe engine with perspective-correct Z-buffered 3D .scn/.gsm rendering, all 28 Tactical GOTY & Elite missions, Spatial Awareness (SA-P01..SA-P10), 4-officer LAPD Element AI, gamepad + toggleable mapping-layer Aim Assist, menus-only touch, and self-hosted 1–5 player Co-op (up to 10 LAN slots).
| Package & Target Architecture | Size | Direct Download |
|---|---|---|
Linux x86_64 — Portable Release Bundle (.tar.gz) · Prebuilt stripped bin/swat3port (x86_64 SDL2/GLES2 + software rasterizer), tools/install.sh, SHA-256 GOG manifests (2,090 files), full GPL-3.0-or-later C11 source, and SHA256SUMS (Desktop, Laptop, MSI Claw, Steam Deck, ROG Ally) | 365 KiB | Download x86_64 (.tar.gz) |
Linux ARM64 (aarch64) — Portable & Khadas VIM1S Bundle (.tar.gz) · Prebuilt stripped bin/swat3port (GLES2 / Wayland / KMSDRM), fully static bin/swat3port-static (musl, zero shared-lib dependencies), bin/swat3port-vim1s launcher, tools/install.sh, SHA-256 manifests, full C11 source, and SHA256SUMS (Khadas VIM1S, Raspberry Pi 4/5, RK3588) | 1.2 MiB | Download ARM64 (.tar.gz) |
Buy the Original Game on GOG.com (Required for Game Data):swat3port v0.1.0contains ZERO copyrighted game data. No.res,.scn,.gsm,.cmp,.bmp,.tga, or.aviassets are distributed. Purchase your own legal copy of SWAT 3: Tactical Game of the Year Edition (setup_swat3_tgoty_2.0.0.32.exe), andtools/install.shverifies all2,090files against SHA-256 manifests before copying them read-only into$XDG_DATA_HOME/swat3port/gamedata:
- Buy SWAT 3: Tactical Game of the Year Edition on GOG.com
Enjoying our free native ports? You can voluntarily support development via Hedgehog Studios on our Donate and Support Page — either with a one-time donation or our 4,99 € / month Supporter Membership (purely to support the project, with zero paywalls or exclusive advantages).
SHA-256 Checksums (v0.1.0)
Download the full checksum manifest: swat3-port-0.1.0-SHA256SUMS.txt
swat3-port-0.1.0-x86_64.tar.gz:987860403e6563496bdd2c0ef0f6b7bc2c22839ea3c0883933bfbed70f85cff9swat3-port-0.1.0-arm64.tar.gz:83c2f5493839c0964a529d7a6c390403a23119b14243ca9138d4586cf8f0e398
Install in Three Steps (Against Your Own GOG Copy)
Every release archive carries prebuilt binaries for its target architecture — no compiler is required:
- Download, unpack, and verify the bundle:
tar -xzf swat3-port-0.1.0-x86_64.tar.gz
cd swat3-port-0.1.0-x86_64
sha256sum -c SHA256SUMS
(On ARM64 boards / Khadas VIM1S, replace x86_64 with arm64.)
- Verify and install your GOG game data:
sh tools/install.sh --prebuilt --source /path/to/setup_swat3_tgoty_2.0.0.32.exe
(Or pass --source /path/to/SWAT3/app for an already unpacked GOG folder; unpacking the .exe directly uses innoextract.) Every file is checked against manifests/gog-2.0.0.32-en-installed.sha256 before being copied into ~/.local/share/swat3port/gamedata, and swat3port is installed to ~/.local/bin/swat3port. Your original GOG files are never modified.
- Launch
swat3port:
- Desktop / MSI Claw / Steam Deck: run
~/.local/bin/swat3port(auto-detects SDL2 GameController and OpenGL ES 2.0). - Khadas VIM1S: place the verified
game-xdg/swat3port/gamedatafolder alongsidebin/swat3port,bin/swat3port-static, andlaunch.shunder/mnt/games/games/SWAT3/on your SD card (runs over OverlayFS in RAM while keeping the SD card locked read-only). - Later,
sh tools/install.sh --uninstallremoves the marker-guardedgamedata/tree while preserving yoursettings.ini.
Screenshots — Real In-Engine GLES2 Captures (800×600, Verified GOG Data)
Every screenshot below is rendered directly by swat3port v0.1.0 (--render gles2) booted against a SHA-256 verified GOG install of SWAT 3: Tactical Game of the Year Edition — no Windows binaries, Wine, or original-game captures:
Clean-Room Architecture and Legacy swat.exe Replacement (v0.1.0)
All 11 engine components (core, vfs, fmt, render, sim, ai, sa, ui, input, net, platform) are written from scratch in strict portable ISO C11 (-Wall -Wextra -Wpedantic, zero C++ or Python, verified clean under ASan + UBSan + LSan):
| Subsystem | Original 1999–2001 Win32 Component | swat3port v0.1.0 Native 64-Bit C11 & SDL2 Replacement (Status) |
|---|---|---|
Archive & Mission VFS (vfs) | 32-bit PKZIP .res (Swatdata.res, Scenes.res, Sound.res) & Missions/*.zip | Case-insensitive priority VFS + pure-C11 RFC 1951 Deflate unpacker auto-mounting all 28 base & Elite GOTY missions — Implemented |
Asset Readers (fmt) | Proprietary NCSM v0x10d .scn, .gsm v0x0405, DNSE .cmp DPCM, .dat/.sse, .bmp/.tga | Documented clean-room parsers for BSP world + rotating door submodels, per-corner lightmaps, weighted skeletal .gsm character meshes, & DPCM/PCM audio — Implemented |
3D CQB Renderer (render) | Win32 Direct3D7 / Glide 3D rasterizer | Dual GLES2 (SDL_Renderer streaming) & headless software backends with 16-pixel perspective-correct Z-buffered rasterization, 3D viewmodels, & dynamic flashlight cone — Implemented |
Spatial Awareness (sa) | cell / portal room acoustics & AI dark-room perception | Cell-and-portal Dijkstra sound propagation (SA-P01..SA-P10), live door occlusion, suppressed vs unsuppressed gunfire dB falloff, closed-door & flashlight sight checks, squad radio, & 16-voice stereo low-pass/reverb mixer — Implemented |
Tactical Sim, AI & RoE (sim, ai) | 4-officer Element AI, suspect morale, cuffing & Leadership scoring | Deterministic 30 Hz tick, 6-order Element command tree (Fall In, Move & Clear, Open & Clear, Bang & Clear, Cover & Hold, Restrain & Secure), NFDD flashbang + compliance surrender, weapon securing, & RoE scoring — Implemented |
Shell, HUD & Handheld UX (ui, input) | Keyboard/mouse Win32 Shell & tactical HUD | Authentic Shellart menus, Tactical Command Menu, SDL2 GameController, toggleable mapping-layer Aim Assist (off/on/auto), & Menus-only Touch — Implemented |
Self-Hosted Co-op (net) | Legacy WON.net / DirectPlay master-server multiplayer | Purely self-hosted 1–5P Co-op (up to 10 LAN slots) via TCP lockstep (--host / --join IP:port), late-join snapshot sync, 64-bit per-tick state hashes, & UDP LAN discovery (27963/udp) — Implemented |
Spatial Awareness, Handheld Controls & Self-Hosted 1–5P Co-op
- Authentic Cell-and-Portal Spatial Awareness: Sound travels along actual open doorways and corridors rather than Euclidean straight lines. Closing a door muffles footsteps and gunfire (
lowpass_cutoff+ dB drop), suppressedHK MP5SD5shots avoid alerting suspects two rooms away, dark closets require your tactical flashlight (F), and squad radio (Element/TOC) bypasses room occlusion cleanly. - Strict Additions Discipline for Handhelds (
MSI Claw&Khadas VIM1S):
- SDL2 Controller Support: Full dual-stick look/move, shoulder lean/fire, and D-pad Element command shortcuts — auto-detected on MSI Claw and Khadas VIM1S.
- Mapping-Layer Aim Assist (
off | on | auto): Applies gentle analog-stick friction near visible threats strictly insidesrc/input/;swat3_sim_raycast_posedepends solely on player camera pose and never reads Aim Assist state, guaranteeing bit-identical replay & multiplayer determinism (59a87e3fafa9c4b1verified acrossx86_64andaarch64). - Menus-Only Touch: Touch taps navigate the Main Menu, Mission Briefing, Armory, Options, Multiplayer, and Debrief screens, and are strictly inert during
IN_GAMECQB play.
- Zero-Backend Self-Hosted Co-op (
1–5 Players, up to10P LAN): Host a 5-officer Element session directly from the Multiplayer screen or CLI (swat3port --host 27960 --mission MissionA), discover sessions automatically over LAN (27963/udp), or connect directly by IP (swat3port --join <host-ip>:27960). Late-joining officers receive a validated simulation snapshot on join and stay verified every tick via 64-bit state digests — with zero external master servers, accounts, or telemetry.








