Garry's Mod
127 人が評価
! Customizable Weaponry 2.0 - Bullet Penetration/Richochet Lua Interface
   
アワード
お気に入り
お気に入り
お気に入りから削除
Content Type: Addon
Addon Type: Tool
Addon Tags: Roleplay, Realism
ファイルサイズ
投稿日
1.768 KB
2019年6月16日 8時17分
1 項目の変更履歴 ( 表示 )

サブスクライブしてダウンロード
! Customizable Weaponry 2.0 - Bullet Penetration/Richochet Lua Interface

infanticide gaming 作成の 1 件のコレクション
dev
28 アイテム
解説
What?
This addon overrides Customizable Weaponry 2.0's bullet code to allow for developers to programmatically enable/disable bullet penetration and/or bullet ricochet on a per entity basis.

Developers

Overriding bullet penetration
hook.Add("CW_canPenetrate", "riot_shield_canPenetrate", function(ent, traceData, direction) if (ent:GetModel() == "models/arleitiss/riotshield/shield.mdl") then return false -- Suppress bullet penetration end end)

Overriding bullet richochet
hook.Add("CW_canRicochet", "riot_shield_canRicochet", function(ent, traceData, penetrativeRange) if (ent:GetModel() == "models/arleitiss/riotshield/shield.mdl") then return false -- Suppress bullet ricochet end end)

It's not working!
CW 2.0 may be loading after this mod. This mod must load after CW 2.0 for it to work. You can try installing this addon in your server's addons folder instead of using the Workshop. Addons are also loaded in alphabetical order, but I don't know if it's ascending or descending order.
3 件のコメント
Rooki 2022年3月22日 8時29分 
About the not working its depending if linux or windows if windows i think alphabetic and linux reverse
Rooki 2022年3月22日 8時29分 
No its for developers
xLeviathan1922 2021年11月9日 18時15分 
Does it appear in the CW Admin settings under "Utilities" in the Q menu? Or is it just a command that is added?