I'm trying to spray decals/decalgraffiti024a, but I don't know how to spray it as a decal. This is not working for some reason.
[CODE]
function SWEP:PrimaryAttack()
if ( self.Weapon:Clip1() == 0 ) then
self.Owner:StripWeapon( "joyofpainting")
else
// local decals = { "decals/decalgraffiti023a", "decals/decalgraffiti023a", "decals/decalgraffiti023a" } (no longer used w/e)
local tr = self.Owner:GetEyeTrace()
local Pos1 = tr.HitPos + tr.HitNormal
local Pos2 = tr.HitPos - tr.HitNormal
game.AddDecal("Grafitti", "decals/decalgraffiti024a" )
util.Decal("Grafitti", Pos1, Pos2)
end
[/CODE]
Assigned decals like "Scorch" work, but game.AddDecal doesn't do anything, I can't do
[CODE]
util.Decal("decals/decalgraffiti024a", Pos1, Pos2)
[/CODE]
either...
What do? :ohno: :ohno: :ohno: :ohno: :ohno: :ohno:
bumped by self
and if that doesn't work, use more bump
come on guys
3 bumps
and no one has a solution
[highlight](User was banned for this post ("Dumb bumps" - Novangel))[/highlight]
Take a look at how the [URL="https://github.com/garrynewman/garrysmod/blob/master/garrysmod/gamemodes/sandbox/entities/weapons/gmod_tool/stools/paint.lua#L16-L21"]paint tool does it[/URL]. I think you need to use LocalToWorld.
[QUOTE=MPan1;50693682]Take a look at how the [URL="https://github.com/garrynewman/garrysmod/blob/master/garrysmod/gamemodes/sandbox/entities/weapons/gmod_tool/stools/paint.lua#L16-L21"]paint tool does it[/URL]. I think you need to use LocalToWorld.[/QUOTE]
no dude
it paints all the decals that paint tool has but it doesnt paint custom decals like decalgrafitti
[QUOTE=Aarone2004;50695780]no dude
it paints all the decals that paint tool has but it doesnt paint custom decals like decalgrafitti[/QUOTE]
I'm not talking about what it's able to paint, I just mean how it places the decals.
[QUOTE=MPan1;50698917]I'm not talking about what it's able to paint, I just mean how it places the decals.[/QUOTE]
yeah but the util decal is good i just need to convert decalgrafitti to adecal or something :\
Sorry, you need to Log In to post a reply to this thread.