General > Developers Corner

Disable Decals

<< < (2/2)

MrPresident:
Yes, but this method is a weapon hook. I don't think you can use those outside the weapon files.

IE: He'd have to only be using custom SWEPs and no default weapons and he'd have to add that to every one of them or to the base SWEP if the others are using one.

Mr582:
I would be fine with no decals at all. No blood at all.

Mr582:
Is there a way to check if he has the weapon weapon_hidden and then do what MrPresident did

MrPresident:

--- Code: ---function NoBloodHiddenPlayer( ply, atkr )
if ply:GetActiveWeapon():GetClass() == "weapon_hidden" then
for k, v in pairs( player.GetAll() ) do
v:ConCommand( "r_cleardecals" )
end
end
end
hook.Add( "PlayerHurt", "NoBloodHiddenPlayer", NoBloodHiddenPlayer )

--- End code ---

Navigation

[0] Message Index

[*] Previous page

Go to full version