Damage Based Disarm

If you liked this item, please rate it up on Steam Workshop page.

Author: Cubic_llama

Last revision: 4 May, 2021 at 03:03 UTC

File size: 10.24 KB

On Steam Workshop

Description:

Damage based disarm allows you to shoot weapons right out of people’s hands! Pacify someone with careful aiming! Settle a duel with style!

Any shot that hits your hand (assuming it’s involved in holding the weapon) with enough force will cause the weapon to be knocked out of your hand. The shot’s damage will also be reduced by a configurable amount.

By default, the addon performs a small calculation on every damage event to determine if they struck the victim’s hand. Optionally, the addon can use a cheaper checking mode, where it simply checks where on the victim’s body the shot reported it hit. This is a little faster, but can only detect whether the entire arm was shot, and NPCs won’t be able to be disarmed.

The addon’s settings can be found in Utilities -> Damage-Based Disarm. Key settings include:
>Changing who can be disarmed by what.
>The force required for a shot to disarm.
>How much shots hitting hands should reduce their damage by.

Compatibility:
In theory, this should work with all playermodels, NPCs, and weapons. However, sometimes developers can forget to add information to models and weapons that will stop the addon being able to detect when to disarm someone.

Addons used in screenshots/videos:
Maps:
>rp_city8 https://steamcommunity.com/sharedfiles/filedetails/?id=132913036
>ttt_deadwood_a2 https://steamcommunity.com/sharedfiles/filedetails/?id=348877807
Playermodels:
>Western Folk (PMs+NPC’s) https://steamcommunity.com/sharedfiles/filedetails/?id=2424138501

Usage and Modifications:
Feel free to incorporate any and all of this addon into your own project. If you use a large amount of the code, an attribution or link to the original would be much obliged!