Garry's Mod

Garry's Mod

132 évaluations
! Customizable Weaponry 2.0 - Bullet Penetration/Richochet Lua Interface
   
Récompenser
Ajouter aux favoris
Favoris
Retirer des favoris
Type de contenu: Addon
Type d'addon: Outil
Mots-clés d'addon: Jeu de rôle, Réalisme
Taille du fichier
Publié le
1.768 KB
16 juin 2019 à 8h17
1 note de changement ( voir )

S'abonner pour télécharger
! Customizable Weaponry 2.0 - Bullet Penetration/Richochet Lua Interface

Dans 1 collection faite par Methylenedioxymethamphetamine
dev
28 objets
Description
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 commentaires
juicydrucey 21 sept. 2024 à 0h32 
How do you actually disable bullet penetration for all props though?
Rooki 22 mars 2022 à 8h29 
About the not working its depending if linux or windows if windows i think alphabetic and linux reverse
Rooki 22 mars 2022 à 8h29 
No its for developers
xLeviathan1922 9 nov. 2021 à 18h15 
Does it appear in the CW Admin settings under "Utilities" in the Q menu? Or is it just a command that is added?