Garry's Mod

Garry's Mod

138 个评价
! Customizable Weaponry 2.0 - Bullet Penetration/Richochet Lua Interface
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 工具
插件标签: 角色扮演, 写实
文件大小
发表于
1.768 KB
2019 年 6 月 16 日 上午 8:17
1 项改动说明 ( 查看 )

订阅以下载
! Customizable Weaponry 2.0 - Bullet Penetration/Richochet Lua Interface

在 Methylenedioxymethamphetamine 的 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.
4 条留言
juicydrucey 2024 年 9 月 21 日 上午 12:32 
How do you actually disable bullet penetration for all props though?
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 日 下午 6:15 
Does it appear in the CW Admin settings under "Utilities" in the Q menu? Or is it just a command that is added?