util/Decal

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
m (Adjusted the list of decals)
 
(5 intermediate revisions by 5 users not shown)
Line 3: Line 3:
 
|Realm=Shared
 
|Realm=Shared
 
|IsClass=No
 
|IsClass=No
|Name=Decal
 
|Parent=util
 
 
}}
 
}}
 
{{Arg
 
{{Arg
 
|type=string
 
|type=string
|name=decalName
+
|name=name
 
|desc=The name of the decal to paint.
 
|desc=The name of the decal to paint.
 
}}
 
}}
 
{{Arg
 
{{Arg
 
|type=Vector
 
|type=Vector
|name=traceStart
+
|name=start
 
|desc=The start of the trace.
 
|desc=The start of the trace.
 
}}
 
}}
 
{{Arg
 
{{Arg
 
|type=Vector
 
|type=Vector
|name=traceEnd
+
|name=end
 
|desc=The end of the trace.
 
|desc=The end of the trace.
 
}}
 
}}
 
{{Arg
 
{{Arg
|type=boolean
+
|type=Entity
|name=dontSendToPredictedPlayer
+
|name=filter
|desc={{NextUpdate}}
+
|desc=If set, the decal will not be able to be placed on given entity. Can also be a table of entities.
 
+
|default=NULL
Don't network this decal to the player currently set for use by {{GlobalFunction|SuppressHostEvents}}.
+
 
+
Set this to true if you are using this function in a predicted context such as a weapon.
+
|default=false
+
 
}}
 
}}
 +
== Built in Decals ==
 +
Here's a list of all the decal names that should be possible to use by default.
 +
* BeerSplash
 +
* BirdPoop
 +
* Blood
 +
* BulletProof
 +
* Cross
 +
* Dark
 +
* ExplosiveGunshot
 +
* Eye
 +
* FadingScorch
 +
* GlassBreak
 +
* Impact.Antlion
 +
* Impact.BloodyFlesh
 +
* Impact.Concrete
 +
* Impact.Glass
 +
* Impact.Metal
 +
* Impact.Sand
 +
* Impact.Wood
 +
* Light
 +
* ManhackCut
 +
* Nought
 +
* Noughtsncrosses
 +
* PaintSplatBlue
 +
* PaintSplatGreen
 +
* PaintSplatPink
 +
* Scorch
 +
* SmallScorch
 +
* Smile
 +
* Splash.Large
 +
* YellowBlood

Latest revision as of 03:17, 27 November 2017

 util.Decal( )

Contents

Description

Performs a trace and paints a decal to the surface hit.

Arguments

string name

The name of the decal to paint.

Arguments

Vector start

The start of the trace.

Arguments

Vector end

The end of the trace.

Arguments

Entity filter=NULL

If set, the decal will not be able to be placed on given entity. Can also be a table of entities.

Built in Decals

Here's a list of all the decal names that should be possible to use by default.

  • BeerSplash
  • BirdPoop
  • Blood
  • BulletProof
  • Cross
  • Dark
  • ExplosiveGunshot
  • Eye
  • FadingScorch
  • GlassBreak
  • Impact.Antlion
  • Impact.BloodyFlesh
  • Impact.Concrete
  • Impact.Glass
  • Impact.Metal
  • Impact.Sand
  • Impact.Wood
  • Light
  • ManhackCut
  • Nought
  • Noughtsncrosses
  • PaintSplatBlue
  • PaintSplatGreen
  • PaintSplatPink
  • Scorch
  • SmallScorch
  • Smile
  • Splash.Large
  • YellowBlood
Personal tools
Navigation