Garry's Mod

Garry's Mod

609 vurderinger
Damage Based Disarm
3
2
2
   
Pris
Føj til foretrukne
Gjort til foretrukken
Fjern som foretrukken
Content Type: Addon
Addon Type: Effects
Addon Tags: Realism
Filstørrelse:
Offentliggjort:
Opdateret:
10.138 KB
29. apr. 2021 kl. 11:09
3. maj 2021 kl. 19:03
2 ændringsbemærkninger ( vis )

Abonner for at downloade
Damage Based Disarm

Beskrivelse
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://gtm.steamproxy.vip/sharedfiles/filedetails/?id=132913036
>ttt_deadwood_a2 https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=348877807
Playermodels:
>Western Folk (PMs+NPC's) https://gtm.steamproxy.vip/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!
Populære diskussioner Vis alle (1)
2
10. maj 2021 kl. 13:54
Adding Compatibility For Damage Based Disarm
Cubic_llama
83 kommentarer
RadRick 24. mar. kl. 17:22 
oh thank you bro
Cubic_llama  [ophavsmand] 24. mar. kl. 16:42 
try the other way round? as I recall, the default settings make it hard to disarm with an AR2, especially something "2 handed" like the revolver. obviously you can change them if the isn't to your liking
RadRick 24. mar. kl. 16:06 
revolver and a ar2
Cubic_llama  [ophavsmand] 24. mar. kl. 6:02 
As in what weapon are they holding, and what weapon are you trying to disarm them with?
RadRick 23. mar. kl. 23:57 
the original weapon?
Cubic_llama  [ophavsmand] 23. mar. kl. 7:11 
what weapon are you trying with? are you sure you're hitting their hand?
RadRick 22. mar. kl. 18:33 
it's not working for me?
Connor 22. jan. kl. 7:50 
well
Infamous Booty Tickler 2. apr. 2024 kl. 14:13 
those pesky lawmen are NOT gonna see this one comin.
Firebowl 1. feb. 2024 kl. 11:11 
does this cooperate with lambda players?