Garry's Mod
138 คะแนน
! Customizable Weaponry 2.0 - Bullet Penetration/Richochet Lua Interface
   
รางวัล
ชื่นชอบ
ชื่นชอบแล้ว
เลิกชื่นชอบ
Content Type: Addon
Addon Type: Tool
Addon Tags: Roleplay, Realism
ขนาดไฟล์
โพสต์
1.768 KB
16 มิ.ย. 2019 @ 8: 17am
1 หมายเหตุการเปลี่ยนแปลง ( ดู )

สมัครสมาชิกเพื่อดาวน์โหลด
! Customizable Weaponry 2.0 - Bullet Penetration/Richochet Lua Interface

อยู่ใน 1 ชุดสะสม โดย Methylenedioxymethamphetamine
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 21 ก.ย. 2024 @ 12: 32am 
How do you actually disable bullet penetration for all props though?
Rooki 22 มี.ค. 2022 @ 8: 29am 
About the not working its depending if linux or windows if windows i think alphabetic and linux reverse
Rooki 22 มี.ค. 2022 @ 8: 29am 
No its for developers
xLeviathan1922 9 พ.ย. 2021 @ 6: 15pm 
Does it appear in the CW Admin settings under "Utilities" in the Q menu? Or is it just a command that is added?