Back to NxLabs

NxLabs / Vintage Story

A

Apply-On-Hit

CBy Cantos

A PVP mod that slows a player based on the weapon they were attacked with.

Description

A simple mod which adds a player behavior that checks the current weapon attributes and decreases player speed for an amount of time depending on the weapon they were attacked with.

Should be interoperable with any weapon mods, if the weapons include "SlowPercent" and "Slowduration" with associated values in the attributes of the weapon .json. (patch it)

Slowpercent is percentage in integers (1-100)
Slowduration is miliseconds in integers

In the case of multiple attacks, the weapon will prioritize the highest percent decrease, if another attack comes during an existing "slowed" duration that has a higher percentage than the previous attack, a new slow effect is applied. If it is lower percentage that the previous attack, it is ignored.

Ratings & reviews

No ratings yet

Sign in to leave a rating or comment.