Garry's Mod
Оценок: 138
! Customizable Weaponry 2.0 - Bullet Penetration/Richochet Lua Interface
   
Наградить
В избранное
В избранном
Удалить
Тип контента: Дополнение
Тип дополнения: Инструмент
Метки дополнений: Ролевая игра, Реализм
Размер файла
Добавлен
1.768 KB
16 июн. 2019 г. в 8:17
Обновлений: 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 г. в 0:32 
How do you actually disable bullet penetration for all props though?
Rooki 22 мар. 2022 г. в 8:29 
About the not working its depending if linux or windows if windows i think alphabetic and linux reverse
Rooki 22 мар. 2022 г. в 8:29 
No its for developers
xLeviathan1922 9 ноя. 2021 г. в 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?