You are viewing a potentially older version of this package. View all versions.
wnunnuns-VelosityGivesPower-1.0.0 icon

VelosityGivesPower

Damage scales with relative speed. Melee uses sqrt curve; projectiles use squared curve. Mult=1 at baseline speed.

Date uploaded 2 days ago
Version 1.0.0
Download link wnunnuns-VelosityGivesPower-1.0.0.zip
Downloads 187
Dependency string wnunnuns-VelosityGivesPower-1.0.0

This mod requires the following mods to function

BepInEx-BepInExPack_TABS-5.4.16 icon
BepInEx-BepInExPack_TABS

BepInEx pack for TABS. Preconfigured and ready to use.

Preferred version: 5.4.16

README

VelosityGivesPower

Damage scales with relative speed between the attacker and the hit target.

Formula

ratio = relativeSpeed / baselineSpeed
Type Multiplier Baseline
Melee √ratio Configurable (default 10 m/s)
Projectiles ratio² Launch speed of the projectile

When relative speed equals baseline, multiplier = 1.

Relative speed = |velocity_attacker − velocity_hit_part|.

Install

  1. Install BepInExPack_TABS
  2. Install this mod with a mod manager, or drop the dll into BepInEx/plugins/
  3. Launch the game

Config

After first launch: BepInEx/config/local.velocitydamage.cfg

Key Default Description
Enabled true Enable the mod
AffectMelee true Scale melee hits
AffectProjectiles true Scale projectile hits
MeleeBaselineSpeed 10 Relative speed (m/s) where melee mult = 1
ProjectileFallbackBaseline 40 Used if launch speed was not recorded
MinMultiplier 0.15 Floor clamp
MaxMultiplier 3 Ceiling clamp
DebugLog false Log each calculation

Notes

  • Projectile baseline is captured when MoveTransform.InitializeVelocity runs (launch speed).
  • Multipliers are applied only for the hit frame; base weapon/projectile damage is restored afterward.
  • Works alongside other damage mods (e.g. GaussianProcess / UnitRng) when both are installed.

Changelog

1.0.0

  • Initial release
  • Melee: sqrt curve
  • Projectiles: squared curve

CHANGELOG

1.0.0

  • Initial release
  • Melee damage multiplier = sqrt(relative / baseline)
  • Projectile damage multiplier = (relative / baseline)^2
  • Projectile baseline = launch speed; melee baseline configurable (default 10 m/s)