Garry's Mod

Garry's Mod

Damage Based Disarm
Cubic_llama  [developer] 3 May, 2021 @ 7:15pm
Adding Compatibility For Damage Based Disarm
DBD now has an override hook, which it calls whenever it thinks it should disarm something. Hooking into it and returning false will prevent it from doing so. The hook is:

DBD_DisarmCheck( victim, dmginfo, hitLeft, hitRight )

where:
>victim is the entity being disarmed.
>dmginfo is the damage that caused the disarm.
>hitLeft/Right are Boolean values representing whether the respective hand was hit.

Also potentially useful for development are the following convars:
>dbd_usehitpos - Whether DBD is doing 'expensive' checking, ergo making sure that the damage was done to the victim's hand.
>dbd_disarmforce - The force needed to disarm someone (two-handed weapons need twice the force).
< >
Showing 1-2 of 2 comments
Drputtyboss 5 May, 2021 @ 6:41am 
gibsplat 2 support
Originally posted by TrollFace:
gibsplat 2 support
le gibsplat 2 support
< >
Showing 1-2 of 2 comments
Per page: 1530 50