You are viewing a potentially older version of this package. View all versions.
FFstudios-Execution_State-0.6.2 icon

Execution State

Turn a would-be knockout into a brief, unblockable finishing window in offline fights.

Date uploaded 18 hours ago
Version 0.6.2
Download link FFstudios-Execution_State-0.6.2.zip
Downloads 588
Dependency string FFstudios-Execution_State-0.6.2

README

Execution State

The finishing window

A lethal hit leaves an opponent on a sliver of health instead of ending them. Their AI stops, a prompt appears, and the next strike bypasses block and finishes them.

The prompt clears the moment the finishing blow lands, and also if the round ends on the timer while they are still held.

The shatter

The finishing blow breaks the prompt itself. The box comes apart into 36 pieces — jittered cuts, a hairline of light on every cut edge — which fly outward and down, turn as they go, and fade out over four tenths of a second. Underneath it the picture flashes, the colour fringing snaps, a zoom blur pulls, the screen shakes, and a crack of breaking glass plays. 0.50 by default, 0.80 on Fuller.

The break is twelve pre-rendered frames rather than a UI animation, because the UI API has no per-node position, rotation or opacity — a widget cannot come apart. The frames are one texture cut into twelve sprites (tools/make_shatter.py regenerates them), and they are played by swapping the sprite of a single image node thirty times a second. Frame 1 is the intact box at the same coordinates as the live view, so the swap is invisible: the box the player is already looking at is the first thing that breaks.

The frames are drawn from the banner, so the over the health bar prompt keeps the screen flash and the shards on the enemy rather than showing a banner-shaped break in the wrong place.

The sound is 0.78 s, stereo 16-bit 44.1 kHz, and was synthesised for this mod rather than taken from a library. No leading silence, because silence at the start of a file delays the sound behind the blow.

The screen flash fires on the engine's finisher trigger — the blow that wins the fight — rather than being started by script on the killing frame. A scripted grade started on that frame runs underneath the game's own knockout grade, and when two grades are active the stronger value wins field by field, so a modest flash simply lost. It is switched on when an execution window opens and off again the moment a fight is won without one, so an ordinary knockout does not get the shatter.

The prompt

Two styles, switchable in the settings:

  • Banner (default) — a centred panel below the top HUD band: gold EXECUTION, a line reading one hit finishes them, and a crimson rule underneath.
  • Over the health bar — a plate sized to cover the opponent's health bar completely, rather than trying to match its exact shape. The health bar is about 22 units tall and ends in an angled cap, so a plate that tries to line up with it leaves the bar's orange edge showing at the top and bottom.

If the running build does not expose custom HUD views, the mod falls back to a labelled red meter.

Opening the window also washes the picture crimson for about half a second, with the edges darkening. That grade is always-on and held at neutral values until the frame handler writes its numbers — it is not started by sf2.fx.play, which reported success on every attempt while showing nothing.

Settings

All under Options > Mod settings > Execution State.

Combat

Setting Default What it does
Execution State On Master switch for the whole mod.
Who can be executed Everyone Everyone, bosses only, or regular opponents only.
Available from round Round 1 Hold executions back until the fight has run this many rounds.

Presentation

Setting Default What it does
Prompt style Banner Banner, or a plate over the health bar.
Flash when the window opens On The crimson flash at the moment an opponent is held.
Shatter on the finishing blow On Shards, flare and the crack sound.
Shatter volume Subtle Subtle or Fuller.

On "bosses only"

fighter:snapshot() cannot answer this. It returns health, max health, health bars, position, animation and the fight clock — no name, no template, no id, no boss marker — and the health numbers turn out to be useless as a substitute: a boss and an ordinary opponent both report max_health = 1 and health_bars = 1. Four boss attempts in v0.5.1 were blocked by exactly that.

What does know is the fight. sf2.battles.on_prepare runs just before a fight starts and hands over the fight's id and its mode, and the game's modes include boss, final and raid. The mod remembers the prepared fight, promotes it when the fight actually begins, and clears it when it ends. A fight id that names a boss battle (core:fights/zone_1/boss_lynx/6) counts as well.

The gate logs what it saw on every lethal hit:

Execution State: gate mode=bosses fight=core:fights/... fight_mode=boss boss=true allowed=true

so the classification can be checked from Player.log rather than guessed at.

On "last round only"

The game does not report how many rounds a fight has, and does not even expose the current round number. The mod counts rounds itself from on_round_begin, so it can tell you that the fight has reached round 2 or 3 — but it cannot know that a given round is the final one. Hence available from round N instead of an exact last-round gate.

Scope

The mod applies to offline fights, not Versus or dojo sparring.

Credits

FFstudios / ChatGPT / DeepSeek V4.1 Flash / WorkBuddy AI

CHANGELOG

Changelog

0.7.2

The stun update. A held opponent no longer stands in their fighting stance waiting to be finished.

  • A held opponent now plays the game's own stun animation, looped, for as long as the window is open — caught mid-stagger until the finishing blow lands.
  • If a fighter cannot take the pose, they get the Stun enchantment's own icon and a small tremble instead, shown once and refreshed rarely, so it no longer pulses several times a second.
  • Nothing is left behind: the stun clears when the finishing blow lands, when the round ends and when the fight ends.
  • The pose is marked uninterruptible, so the fight's own stage changes cannot break the hold, and a pose knocked off the fighter mid-window is put back.

0.6.2

  • The crimson flash when an execution window opens now actually appears. It is driven frame by frame instead of being started by script, which reported success and drew nothing.

0.6.1

  • Fixed the glass shatter not appearing: the sprite files had an unquoted setting, and the game only reads a sprite the first time it draws it, so the failure landed on the killing blow.
  • Nothing that draws now runs inside damage resolution, so a presentation problem can never interfere with a hit landing.

0.6.0

  • The prompt itself breaks. On the finishing blow the box comes apart into 36 glass pieces that fly outward, fall, turn and fade over four tenths of a second, with a crack of breaking glass underneath.
  • The screen flash is softer, so the break reads instead of competing with it.

0.5.3

  • The shatter now fires on the engine's own finisher trigger. A scripted grade started on the killing frame was being drawn underneath the game's knockout grade and lost.
  • Bigger, slower shards, sized against shipped mods rather than guessed.
  • The shatter is armed only while an execution window is open, so an ordinary knockout does not get it.

0.5.2

  • Fixed "Bosses only" and "Regular opponents only". Bosses are now read from the fight the game reports rather than from the fighter's health fields, which are identical for a boss and an ordinary opponent.

0.5.1

  • Shatter calibrated against a shipped reference; the first version fired correctly and was far too quiet and too small to notice.
  • Gate logging added, which is what found the boss bug.

0.5.0

  • Adds the glass shatter: shards, a flare, a screen shake and a synthesised crack.
  • Adds mod settings: master switch, who can be executed, available from round, prompt style, opening flash, shatter on/off and shatter volume.
  • New mod icon.

0.4.0

  • The prompt clears the moment the finishing blow lands, and also when a round ends on the timer with the opponent still held.

0.1.0

  • Initial public package.
  • Adds a lethal-hit execution window, AI hold, and unblockable finishing strike.
  • Adds the red execution HUD, brief visual cue, and in-game toggle.