DamageSparks
Floating damage numbers with weakpoint colors for SULFUR.
| Date uploaded | 2 weeks ago |
| Version | 1.2.0 |
| Download link | ryuka_labs-DamageSparks-1.2.0.zip |
| Downloads | 357 |
| Dependency string | ryuka_labs-DamageSparks-1.2.0 |
This mod requires the following mods to function
BepInEx-BepInExPack
BepInEx pack for Mono Unity games. Preconfigured and ready to use.
Preferred version: 5.4.2305README
Damage Sparks
Floating damage numbers for SULFUR.
Damage Sparks shows damage numbers when the player damages enemies with guns, shotguns, thrown weapons, melee weapons, or other player-driven attacks.
Numbers are colored by the body part you hit: eyes red, heads orange, the thorax yellow, the body and limbs white. The optional vanilla renderer uses the game's damage-type colors instead, unless you turn that off.
This mod does not change damage, weapon balance, enemy stats, loot, or progression. It only adds visual combat feedback.
Features
- Floating damage numbers for player-caused damage
- Supports guns, shotguns, melee weapons, thrown weapons, and player-owned attack effects
- Hits the game cancels, like shooting a trader, show nothing
- Damage over time from player-applied burning, poison and electrocution
- Body-part color feedback
- Two damage display modes
- Optional vanilla renderer that uses SULFUR's own target-dummy damage text
- Configurable number spread
- Numbers stay out of the way of the pause menu, the inventory and level loads
- SULFUR Config support with localized settings
Damage Display Modes
Damage Sparks has two display modes.
You can change the mode in:
BepInEx/config/ryuka.sulfur.damagenumbers.cfg
or through SULFUR Config if installed.
Per Target Total
This mode combines damage dealt to the same enemy within the same attack frame.
Shotgun example:
If one shotgun blast fires multiple pellets and 10 pellets hit the same enemy, the mod shows one damage number with the total damage dealt to that enemy.
If the same shotgun blast hits two enemies, the mod shows two damage numbers:
- one total number above the first enemy
- one total number above the second enemy
This mode is cleaner and easier to read, especially for shotguns and other multi-hit weapons.
There's no long delay window (like 200 ms), so separate hits from fast-firing weapons don't get merged.
Each damage type gets its own number. If a hit also deals a second type, like the Holy damage from Scroll of Crusader, that number goes one line above the weapon hit. A second weapon hitting in the same frame stacks the same way.
Per Hit
This mode shows one number for each hit.
Shotgun example:
If 15 pellets from one shotgun blast hit enemies, the mod shows 15 damage numbers.
This mode gives more detailed feedback, but it can be visually busy with shotguns or high pellet-count weapons. Per Hit mode has extra number spread so shotgun pellet numbers do not overlap too tightly.
Renderers
Renderer decides how a damage number is drawn. The display mode and the filters work the same way in
every renderer.
Renderer = ScreenSpace
ScreenSpace- the default look of this mod: pooled screen-space text with a black outline.WorldTextMeshPro- the same numbers as 3D world-space text.Both- both of the above at once, mainly for testing.Vanilla- SULFUR's own damage text, the one the target dummies use.
Vanilla renderer
Renderer = Vanilla does not imitate the game's damage text. It uses the game's actual damage text
prefab, so the animation, font, fly-out direction and the critical-hit variant are exactly what you
see when you shoot a target dummy.
Renderer = Vanilla
VanillaUseDamageTypeColors = true
VanillaScale = 1.0
VanillaUseDamageTypeColors = trueuses the game's damage-type colors, like the target dummies.VanillaUseDamageTypeColors = falsekeeps this mod's weakpoint colors on the vanilla animation.VanillaScaleresizes the text.1.0is the size the target dummies use.
The game's animation decides how long a number stays and how it moves, so Lifetime and the font
size, float speed and screen jitter settings of the other renderers have no effect here. In Per Hit
mode, RandomJitter and PerHitStackWorldSpread still move the starting point. The game's damage text
shows whole numbers only, so ShowDecimals has no effect either. At most 64 vanilla numbers are on
screen at once, whatever MaxActiveNumbers says.
If the game does not provide the prefab, this renderer falls back to ScreenSpace and writes a
warning to the log.
Weakpoint Colors
Damage number color is based on the multiplier of the body part you hit.
- Eyes (1.5x): red
- Heads (1.0x): orange
- Thorax (0.75x): yellow
- Body and limbs (0.5x and less): white
- Damage with no body part, such as status effects and explosions: white
TreatOneMultiplierAsNormal = true turns head hits white as well.
In Per Target Total mode, combined damage uses the highest multiplier color by default. This makes it easier to notice when a shotgun blast includes a weakpoint hit.
Configuration
Config file:
BepInEx/config/ryuka.sulfur.damagenumbers.cfg
Important options:
DamageDisplayMode = PerTargetTotal
Renderer = ScreenSpace
MaxActiveNumbers = 160
Available renderers:
Renderer = ScreenSpace
Renderer = WorldTextMeshPro
Renderer = Both
Renderer = Vanilla
Available display modes:
DamageDisplayMode = PerTargetTotal
DamageDisplayMode = PerHit
Recommended setting for normal gameplay:
DamageDisplayMode = PerTargetTotal
Renderer = ScreenSpace
Recommended setting for detailed hit testing:
DamageDisplayMode = PerHit
ScreenJitter = 26
PerHitStackScreenSpread = 12.8
ScreenJitter, RandomJitter and the two PerHitStack spreads only apply in Per Hit mode.
Installation
Install with a mod manager, or manually place both DLLs and the lang folder here:
SULFUR/BepInEx/plugins/DamageSparks/
The lang folder holds the translated setting names that SULFUR Config shows.
Start the game once to generate the config file.
Requirements
- BepInEx 5.4.2305 or compatible BepInEx 5 version
- SULFUR
Compatibility
Damage Sparks reads the final damage SULFUR applies to a unit and displays it as a number.
Target dummies already show the game's own damage text, so Damage Sparks draws nothing on them.
The mod should be compatible with most gameplay mods unless another mod heavily changes how enemies receive damage.
If a future SULFUR update changes the internal damage methods, this mod may need an update.
SULFUR Together
In co-op, each player sees numbers for their own hits. If you're the client, the amounts come from the host, so they show up a moment after the hit. You won't get numbers for damage over time, since the host runs those ticks. This needs SULFUR Together 1.7.0 or newer.
With SULFUR Together 1.8.0 or newer, a hit that gets the team mark bonus shows a small x1.5 or x1.75 after its number. It's only a label: the number is already the damage you dealt. SULFUR Together hides its own multiplier next to the crosshair while Damage Sparks is showing it. Renderer = Vanilla is the exception: the game's own damage text only shows a plain number, so the multiplier stays next to the crosshair.
The adapter that connects the two mods is included. If you don't have SULFUR Together, BepInEx skips the adapter and logs this, which you can ignore:
[Error : BepInEx] Could not load [Damage Sparks - SULFUR Together Adapter 1.2.0] because it has missing dependencies: com.ryuka.sulfur.together
Source Code
The source code for this mod is available in my GitHub repository.
The repository only contains my original mod source code and packaging text. It does not include SULFUR game files, Unity assemblies, BepInEx binaries, paid assets, or decompiled game source.
If you are another modder, feel free to study how the mod works or use it as a reference for your own implementation.
GitHub repository:
https://github.com/ryuka-dev/Damage-Sparks
Feedback
Thunderstore does not provide a convenient feedback channel.
For bug reports or suggestions, please use NexusMods or GitHub.
CHANGELOG
Changelog
1.2.0
Co-op (SULFUR Together)
- A hit that gets SULFUR Together's team mark bonus now shows a small
x1.5orx1.75after its number. It's only a label: the number is already the damage you dealt. This needs SULFUR Together 1.8.0 or newer, with team marks on in the host's settings. - SULFUR Together hides its own multiplier next to the crosshair while Damage Sparks is showing it.
Renderer = Vanillauses the game's own damage text, which only shows a plain number, so with that renderer the multiplier stays where it was. - If a merged number (shotgun pellets, for example) mixes hits with and without the bonus, it shows the highest multiplier.
- Everything else still works with SULFUR Together 1.7.0, just without the multiplier.
Compatibility
- Verified against SULFUR 1.0.6.
1.1.1
Stacked numbers
- Fixed numbers drawn exactly on top of each other in
PerTargetTotalmode when one hit deals more than one damage type to the same enemy. Scroll of Crusader was the usual cause: its Holy damage lands in the same frame as the weapon hit. - The weapon hit stays where it was. Anything else on that enemy in the same frame (another damage type, a second weapon) goes one line higher. This works in every renderer.
- Shotgun pellets of one damage type still add up to a single number, and colors and
PerHitmode haven't changed.
Cancelled damage
- Hits the game cancels no longer show a number. That covers protected NPCs such as traders, healing ally bullets, same-faction hits and damage turned off in the game settings.
Pause and level loading
- Fixed screen-space numbers freezing on top of the pause menu. They now hide while the game is paused or the inventory or a dialogue is open, and carry on when you get back.
WorldTextMeshProandVanillanumbers are part of the 3D scene, so they stay behind the menu as before. - Numbers on screen when a level starts loading are cleared instead of carrying over into the next level.
Vanilla renderer
- Fixed
Renderer = Vanillanot working if it was already set when the game started. You gotScreenSpacefor the whole session instead, so once it was saved in the config it never showed up again. - Vanilla numbers now turn off when their animation ends, and crowding protection goes by where the text is on screen.
Target dummies
- Target dummies already show the game's own damage text, so Damage Sparks no longer adds a second set of numbers on them.
Co-op (SULFUR Together)
- Clients now see numbers for their own hits on enemies. The amounts come from the host, crits and Crusader's Holy damage included, and the colors work as usual. This needs SULFUR Together 1.7.0 or newer. The adapter that connects the two mods is in this package and only loads if you have SULFUR Together.
- The host no longer sees another player's weapon hits as its own numbers.
- Clients don't get numbers for damage over time, because the host runs those ticks and doesn't report them.
Settings
- Player-owned damage without a weapon, such as reflected thorns, now follows
ShowPlayerOwnedSecondaryEffectsinstead ofShowStatusEffectDamage. Both are on by default, so nothing changes unless you turned one off. - Setting descriptions now say which renderer and mode each one applies to, and list the limits that weren't documented.
TreatOneMultiplierAsNormalwas described wrongly: head hits are 1.0x, so it turns them white. - Added Traditional Chinese (zh-TW) setting names for SULFUR Config.
Compatibility
- Verified against SULFUR 1.0.5.
1.1.0
Vanilla renderer
- Added
Renderer = Vanilla, which draws damage numbers with SULFUR's own damage text, the one the target dummies use, including its original animation, font, fly-out direction and critical-hit variant. - The vanilla renderer reuses the game's prefab instead of imitating it, so nothing extra ships with this mod.
- Added
VanillaUseDamageTypeColors(defaulttrue).trueuses the game's damage-type colors exactly like the target dummies;falsekeeps this mod's weakpoint colors on the vanilla animation. - Added
VanillaScale(default1.0) to resize the vanilla damage text. - The vanilla renderer keeps every existing filter, display mode, per-frame spawn budget and crowding limit. It shows whole numbers only, because the game's damage text does, so
ShowDecimalshas no effect there. - If the game's damage text cannot be loaded,
Renderer = Vanillafalls back toScreenSpaceand writes a warning to the log instead of showing nothing. - The renderer default is unchanged.
Renderer = ScreenSpacestill produces the previous look.
Status effect damage
- Fixed damage over time from status effects the player applied, such as burning, poison and electrocution, never being shown. These are exactly the colored numbers the target dummies display.
- This is an intentional behavior change. With the default configuration you will now see extra numbers for burning, poison and electrocution ticks in every renderer, not only in
Vanilla. SetShowStatusEffectDamage = falseunder[Filter]to restore the previous behavior.
Weakpoint colors
- Fixed damage that carries no hitbox information being colored as a weakpoint hit. Status damage over time and explosion damage used the head shot color and are now white.
- Weapon hits are unaffected. The game always resolves a real body part for them.
Compatibility
- Verified against SULFUR 0.18.5.
1.0.12
- Corrected the fallback TextMeshPro outline introduced in 1.0.11.
- Removed the enlarged black backing glyph, which changed glyph size and character spacing instead of creating a real border.
- Screen-space numbers now use four same-size black copies with small diagonal pixel offsets behind one colored face.
- World-space numbers use the same same-size offset approach in local billboard space.
- All outline copies remain pooled and reuse the renderer's shared font material.
- Keeps the renderer-change optimization and all 1.0.9 performance limits.