Garry's Mod

Garry's Mod

132 평점
! 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

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?