Garry's Mod

Garry's Mod

607 értékelés
Damage Based Disarm
3
2
2
   
Díjazás
Kedvenc
Kedvenc
Törlés
Content Type: Addon
Addon Type: Effects
Addon Tags: Realism
Fájlméret:
Közzétéve:
Frissítve:
10.138 KB
2021. ápr. 29., 11:09
2021. máj. 3., 19:03
2 változásjegyzék ( megnézés )

Feliratkozás a letöltéshez
Damage Based Disarm

Leírás
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!
Népszerű témák Összes megnézése (1)
2
2021. máj. 10., 13:54
Adding Compatibility For Damage Based Disarm
Cubic_llama
83 megjegyzés
RadRick márc. 24., 17:22 
oh thank you bro
Cubic_llama  [készítő] márc. 24., 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 márc. 24., 16:06 
revolver and a ar2
Cubic_llama  [készítő] márc. 24., 6:02 
As in what weapon are they holding, and what weapon are you trying to disarm them with?
RadRick márc. 23., 23:57 
the original weapon?
Cubic_llama  [készítő] márc. 23., 7:11 
what weapon are you trying with? are you sure you're hitting their hand?
RadRick márc. 22., 18:33 
it's not working for me?
Connor jan. 22., 7:50 
well
Infamous Booty Tickler 2024. ápr. 2., 14:13 
those pesky lawmen are NOT gonna see this one comin.
Firebowl 2024. febr. 1., 11:11 
does this cooperate with lambda players?