Garry's Mod

Garry's Mod

Damage Based Disarm
Cubic_llama  [开发者] 2021 年 5 月 3 日 下午 7:15
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).
< >
正在显示第 1 - 2 条,共 2 条留言
Drputtyboss 2021 年 5 月 5 日 上午 6:41 
gibsplat 2 support
引用自 TrollFace
gibsplat 2 support
le gibsplat 2 support
< >
正在显示第 1 - 2 条,共 2 条留言
每页显示数: 1530 50