GunZRs

GunZRs is a clean-room port of GunZ: The Duel to Windows and Linux, rebuilt in Rust.

README

Captioned clips: a K-style double butterfly and slash shot, a wall cancel climb, a D-style yoyo step, a dagger E-lunge, a free-for-all deathmatch, a rocket on the ULTRA preset, quest monsters, the ELIMINATED screen and the main menu

GunZRs

GunZ: The Duel, rebuilt in Rust. A clean-room port on Bevy that plays the original maps, characters, weapons, monsters and sounds straight from your Steam install, with the butterflies, wall cancels and yoyo steps that made the game.

Release CI License

Quick start · Techniques · Game modes · Browser · How it works

Highlights

  • The real moves. Butterfly up to the quadruple BF, slash shot, half step, forbidden step, wall cancel, flash climb, dagger flash, yoyo steps, E-lunge: 38 techniques from the community K-style and D-style guides, each one played headless and checked in the log (the handful that are left out are listed under the techniques). Bots use them too, more often the better they are.
  • 18 game modes. The 15 retail modes with the original rules (deathmatch is everyone against everyone, the berserker is whoever kills first) plus Infected, Gun Game and Dynamic Duels.
  • The whole game world. All 30 maps, quest, challenge and survival scenarios, 76 monsters with their own AI, Blitzkrieg with radars, waves and classes, clans and a shop with 215 items.
  • Bots that play. Path-finding across stairs, drops and wall kicks, weapon choice by range, grenades, retreats, guarding and techniques scaled by skill.
  • Original look, or better. The ORIGINAL preset draws the image exactly as the game did; ENHANCED and ULTRA add HDR, bloom, lit characters, full explosions and simulated blood.
  • Plays where you are. Linux and Windows downloads, a WebGPU browser build with touch controls, and LAN multiplayer.
Main menu, MATCH page: map grid, Mansion hero panel, the 18 modesTraining in Mansion: a slash trail, the combo meter and the damage number on a dummyDagger dash afterimages down the Mansion corridor
Main menuK-style against the dummiesD-style dagger dashes
A rocket explosion on the ULTRA preset: fireball, sparks and smokeQuest monsters in Citadel fighting the playerBlitzkrieg: the lane over the rooftops with the minimap
ULTRA explosionsQuest monstersBlitzkrieg

No game files are included (the demo and screenshots are captures for illustration). You need your own copy of the game; the port only reads its .mrs archives and never runs Gunz.exe.

Quick start

Install GunZ: The Duel on Steam first (or paste steam://install/3139440 into your browser). GunZRs finds it through Steam's library folders, Flatpak Steam included; GUNZ_GAME=/path/to/GUNZ THE DUEL points it anywhere else.

# Arch: build and install the package (the gunzrs command and a menu entry)
git clone https://github.com/OpenRsG/GunZRs && cd GunZRs/packaging/arch && makepkg -si

# Ubuntu / Debian (22.04 or newer): download gunzrs_<version>_amd64.deb from the latest release, then
sudo apt install ./gunzrs_*_amd64.deb

# Any x86_64 Linux: the latest release into ~/.local, no root
curl -fsSL https://raw.githubusercontent.com/OpenRsG/GunZRs/main/install.sh | sh

Then run gunzrs (or GunZRs from the application menu). On Windows, unzip gunzrs-<version>-windows-x86_64.zip from the latest release and double-click start.bat.

You should see the main menu with a picture on every map tile. The retail data has no map pictures, so the first start renders them from your install (under a minute, 960x540 PNGs in previews/ beside your profile file); after that the game opens at once. The menu, the loading screen and the match share one window: START, MAIN MENU and PLAY AGAIN never reopen it.

Build from source

Install Rust and the system libraries:

sudo pacman -S --needed base-devel alsa-lib systemd-libs                    # Arch
sudo apt install build-essential pkg-config libasound2-dev libudev-dev \
    libwayland-dev libxkbcommon-dev libx11-dev                               # Ubuntu / Debian

On Windows, rustup and the Visual Studio C++ build tools are enough. Then:

git clone https://github.com/OpenRsG/GunZRs && cd GunZRs
./start.sh                                     # builds, renders the map pictures once, opens the menu
cargo run --release --bin gunz-play -- "/path/to/GUNZ THE DUEL" Mansion --bots 3   # straight into a match

Releases come from .github/workflows/release.yml when a v* tag is pushed: a portable Linux tarball (built on Ubuntu 22.04, so glibc 2.35 or newer), the .deb and the Windows zip.

Steam installGame folder
Linux (native)~/.steam/steam/steamapps/common/GUNZ THE DUEL
Linux (Flatpak)~/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/common/GUNZ THE DUEL
WindowsC:\Program Files (x86)\Steam\steamapps\common\GUNZ THE DUEL

The port is developed and played on Linux. CI builds and tests Linux, Windows and macOS, but nobody has played it on Windows or macOS yet.

Controls

Defaults follow the original game's config.xml; C, T, F5-F9, [ and ] are this port's extras.

KeyAction
MouseAim (cursor is grabbed)
W A S DRun (full speed at once, stops at once); double-tap a direction to dash
CDash: a 16 m/s burst in the held direction (forward if none)
SpaceJump; near a wall in the air: wall kick; jumping with W held right at a wall: wall run (up it when facing it, along it at a glancing angle)
Left mouse, left CtrlAttack (hold for automatic guns, chain slashes into a combo; with a blade, hold until the charge completes for a massive: the next slash throws it)
Right mouseAlternative fire: the sword's uppercut (flip), the dagger's lunge
Left ShiftGuard (melee); a slash you block gives you a massive charge
RReload
1-5, Q / E, wheelSwitch weapon (Q and wheel up: previous; E and wheel down: next)
TabScoreboard
EscPause menu (resume, controls, option toggles, main menu, quit)
Numpad 1-6, T, F5-F9Taunt, emotes (bow, wave, laugh, cry, dance)
[ / ]Mouse sensitivity down / up
FBlitzkrieg upgrade panel (Up/Down, Enter buys)
MBlitzkrieg minimap on / off
1-9, arrows, EnterBlitzkrieg class screen at the start of the match (30 s; click works too)

CONTROLS (a main-menu tab, and in the Esc menu) rebinds every action above except Esc and the Blitzkrieg keys, two bindings each: keys, mouse buttons 1-5 or the wheel. A key taken from another action says so. The mouse side has sensitivity (shown as cm per 360 at 800 and 1600 DPI), vertical ratio, invert, acceleration with its limit and a live speed curve, and, in the browser, raw input (unaccelerated pointer lock in Chromium browsers; the desktop build always reads raw mouse motion). Everything is saved in the profile.

GRAPHICS & SOUND (a main-menu tab, and in the Esc menu) has three presets and every setting by itself: ORIGINAL draws the image exactly as the game always did (no tonemapping, no effects, 4x MSAA); ENHANCED (the default) and ULTRA add HDR with tonemapping, bloom, SMAA, sharpening, anisotropic filtering, distance fog, vignette, film grain, chromatic aberration and camera-turn motion blur; every screen effect has its own strength (OFF costs nothing): speed effects (light rays and radial blur while dashing or falling, and a dash that widens the view for a moment), a hit flash, and a drained, throbbing screen at low health. Dust rings from the game's own effects mark ground dashes, wall kicks and hard landings. LIGHTING lights the characters from the map's own lightmap colours (with a rim light), lights up the walls, floor and characters around muzzle flashes and explosions, and puts a soft contact shadow under every character. WORLD EFFECTS has the Explosions slider: at 0 (ORIGINAL) rockets and grenades show the game's own fireball sprite; above it they become a full explosion (a blinding flash, a fireball that cools into a lingering smoke plume, bouncing sparks, debris, dust along the floor, a shock ring and a scorch mark, a strong light and a camera shake), richer at ULTRA. Also field of view, vsync and a frame limit (not in the browser). Changes show in the match at once and are saved in the profile; gunz-play --gfx original|enhanced|ultra picks a preset for one run.

PLAYER (a main-menu tab) shows your character idling in its lobby pose. Its EFFECTS panel has two tabs. DASH picks what a dash leaves behind (afterimages, glowing sparks, both, or nothing); SLASH picks the trail your sword swings leave (arc, energy, fire or none, plus sparks where a blow lands). Both choose a colour (team, cyan, gold, violet, ember, toxic or rainbow) and an amount; the character dashes or swings a katana in the preview to show each change, and DEMO replays it. Your colour is used for your own dashes and swings; other players keep team colours. None of the trails are in the original game, so the ORIGINAL graphics preset hides them.

Combo meter and killing sprees (not in the original game; the Combo option or --no-combo hides them): every hit you land within 2.5 s of the last grows a combo whose multiplier climbs from x1 to x8 (at 5, 10, 20, 35, 50, 70 and 100 hits), and damage and kills score points times it. Kills less than 4 s apart announce DOUBLE, TRIPLE, QUAD, MULTI and MONSTER KILL; kills without dying announce KILLING SPREE (3), RAMPAGE (5), DOMINATING (7), UNSTOPPABLE (10) and GODLIKE (15). Each banner slams in with a screen-edge flash, a shake and its own sound. The sounds are synthesized in code.

Dead in a round mode? Space or click cycles the player you spectate.

Your profile (level, XP, bounty, inventory, equipped items) is saved in $XDG_DATA_HOME/gunzrs/profile.txt (%APPDATA%\gunzrs\profile.txt on Windows). Kills and match results pay XP and bounty; spend the bounty in the SHOP tab and equip items in INVENTORY.

K-style and D-style techniques

The original game's bug-born movement tech works as ordinary features, always on, for you and the bots (timings are estimates, see docs/formats.md "K-style and D-style techniques"). With the default loadout (katana, revolver, rifle) and the keys above, every technique of the usual K-style guide works; with a dagger in a slot (--loadout 2000000,2050000,2100001, or the dagger from the shop) so does the D-style one. Each input sequence was played headless and its log checked:

TechniqueHow
Dash, air dashC or a double tap: a 16 m/s burst with the game's dash effect; one in the air per jump; a slash out of a dash, a wall kick or a jump gives it back; after falling for 1.5 s you can dash in the air without limit (super dash)
Dash cancelSlash during a dash, a wall kick or a wall run to cancel it: full control, switch, guard, jump or dash again
Flying / wall climbingWall kick, slash, jump off the wall again at any point of the slash (a jump pressed up to 0.15 s early counts); three kicks per jump, so mashing jump + attack no longer climbs a wall without end (flash climb: slash, switch to a gun and back, jump)
Switch cancelSwitch weapons during an air slash: slash shot (jump, slash, switch to a gun, shoot), flash step (slash, gun, back to the blade: no draw delay)
Reload shot, shimmer shotShoot, tap reload, switch weapon, shoot: the reload cancels the draw delay of the next weapon, a dagger or sword too
SwapshotShoot, switch to the other gun, shoot: each gun keeps its own fire delay
Gravity cancelAn air slash near the top of a jump (or falling) holds your height for a moment, once per jump; every air slash is the quick attack_Jump swing, rising or falling
MassiveHold attack with a sword until the charge completes (a chime, the blade glints), or block a slash: you hold a massive charge for 6 s and the next slash throws it, double damage and a knock-back; on the ground with a wind-up, in the air at once, locked in the throw until you land. A guard facing it stops it
Wall hangIn the air against a wall, or running up or along one, hold guard (Shift) with any weapon that allows wall moves: you cling for up to 1.2 s, once per jump; forward + jump climbs up to 2 m, jump alone kicks off the wall, letting go drops
ButterflySlash, then guard before the recovery ends: the guard cancels the recovery (it roots you like any guard); jump or dash out of it
Air butterfly (BF, double / triple BF)The same guard cancels an air slash in the air: jump, dash, slash, block; jump, slash, block, dash, slash, block; or jump, slash, block three times (a jump pressed just before landing is kept)
Block cancel (quadruple BF)Guard during a slash lands the hit at once and goes straight to the guard; press guard with the next direction for the glitch rhythm
Quick launch, juggleUppercut (right mouse), guard to cancel its recovery; an uppercut on an airborne launched enemy keeps them up; flip, block, jump, dash, slash, block
Extended flipDash right out of the uppercut
Half step, reload half step, forbidden stepA shot during a dash fires and the dash goes on (it gives the air dash back); reload out of it, mix with slashes and switches
Wall cancel, advanced wall cancelDash back into a wall and kick off it again (with a switch cancel in between for the advanced one)
Multi wall runDash at a wall at about 45 degrees and jump twice: a second kick off another wall
Wall hang cancelGuard against a wall ends a wall run or a kick's flight in a hang
Wall springJump out of a wall run: a plain kick off the wall
Insta-killUppercut, then switch to a gun right after it hits and shoot the airborne enemy
Light stepA dash right after a slash makes no dash sound

D-style (dagger; it has no guard, its alternative fire on the right mouse is the lunge):

TechniqueHow
StabClick, on the ground and in the air; it cancels dashes, wall runs and hangs like a slash does
Dagger train, hop, flashDash + stab; jump + dash + stab; then a second dash to the other side + stab in the same jump
Float step, gear tap, triple stabDash, stab, jump; dash, jump; float step then two more dash + stab
Wall cancel, hells climb, wall raidKick, stab, dash back at the wall, kick again; hang, forward + jump, stab, jump; wall run, stab, jump at once
Shimmer shot, jump shot dashGun, shot, reload, dagger, dash; the same after a jump
Yoyo step, yoyo half and quarter, blink stepJump with the gun, dash at the top, shot, reload; then dagger, dash to the other side, stab, dash (a shot in a dash gives the air dash back); blink step: jump with the dagger, dash, switch to the gun, shot
Lunge, extended lungeAlternative fire on the ground lunges and launches. Start it in a dash, or on the press of a direction's second tap (or Dash): the lunge slides about 5 m in the dash's direction (forward, sideways, backwards) before it strikes, with twice the reach (a target 8 m away is hit; a plain lunge reaches 2.25 m)
Dagger machine, dagger juggleStab every 0.33 s and the target stays flinched; stab a launched target to keep it up
Block tapA guarded stab recoils you; look all the way up or down while stabbing and it does not
PhantomA dash or a lunge halves your hitbox for its duration

Not in: Walk Charge (needs the chat box) and macros, Ghost Evade, Magic Switch, Massive Tap.

Bots use the techniques by skill: at skill 0 none, from 0.2 the butterfly (dagger carriers: the dagger train), up to the quadruple butterfly and forbidden step (yoyo half) from 0.85; the better the bot, the more often it tries them. They also climb a wall with a hang to reach an enemy on a ledge. Bots react like people: a NORMAL bot needs about 0.35 s to guard against a swing it sees coming (0.15 s at skill 1), aims guns with a visible error and saves launches and juggles for the higher skills.

Game modes

Bots fill the seats (--bots N, skill 0-1). Limits come from the retail gametypecfg.xml; rules the data does not hold follow public descriptions of the original and are marked inferred in docs/formats.md.

ModeRules
DeathmatchFree for all: everyone against everyone, bots included; respawn after 5 s
Team DMRed against Blue with respawns; team kills count
Gladiator, Team GladiatorThe same with melee weapons only
EliminationTeam rounds; nobody respawns until the round is decided
AssassinateTeam rounds; each side has a VIP, the round ends when one dies
DuelOne on one; the winner stays, the loser goes to the back of the queue, the rest watch
Duel tournamentA knockout bracket of duels; on time-out the one who dealt more damage wins
BerserkerDeathmatch where the first killer becomes the berserker: a blue aura, 150 % damage, armour and then health draining (never below 1), a refill per kill; whoever kills it takes over
GunmanDeathmatch with a random melee weapon and gun every life
SpyRounds: hidden spies with the spy items (spymode.xml) against trackers who get pings
BlitzkriegTwo bases whose radars send soldier waves down the lanes; barricades, honor upgrades, nine classes, minimap, announcer and rewards
Clan WarYour clan against a rival clan, 4 against 4, elimination rounds, both emblems shown
QuestQuest, challenge quest and survival scenarios with bot allies: sectors, waves, bosses, portals, drops
TrainingDummies to slash and shoot; no XP
Infected (port extra)Rounds: one random player turns zombie (blade only, faster, tougher, knockback hits); whoever a zombie kills joins them; survivors win at the timer
Gun Game (port extra)Free for all up a 12-step weapon ladder; a kill upgrades your weapon, a melee kill demotes the victim, a kill from the last step wins
Dynamic Duels (port extra)Several duels at once on one map, each in its own arena phase; winners stay, losers queue and watch, Space switches the watched arena

Status

Working
AreaWhat you get
MapsAll 30 RS v7 maps plus quest maps, with lightmaps, skies and every prop (fires, light shafts, water, fans, waving flags and curtains)
CollisionRetail .RS.col BSP: stairs, slopes, walls, ceilings
CharactersMan and woman models; every clothing piece of the item data (102 chests, 50 legs, 33 hair/hats... for the man) chosen per slot with optional dyes on the PLAYER page, live preview (drag to turn, zoom, framing per body part); bots wear random clothes; skinned animation with cross-fades, upper-body layer and aim pitch; 63 of the 71 character cl