Info paint sprayer: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
(Updated with data from the official portal2.fgd)
Line 4: Line 4:


==Entity description==
==Entity description==
Paint Sprayer.
An entity that sprays paint.


==Keyvalues==
==Keyvalues==
Line 10: Line 10:
{{KV Parentname}}
{{KV Parentname}}
{{KV Angles}}
{{KV Angles}}
{{KV|Blob Spread Angle|integer}}
{{KV|Max number of blobs|integer|Max number of blobs that sprayer can spawn in the world (1-250).}}
{{KV|Blob Spread Radius|integer}}
{{KV|Start Active?|boolean}}
{{KV|Blob Streak Percentage|integer}}
{{KV|Silent?|boolean|If this flag is true, blobs will only paint (no render, effect, or sound)}}
{{KV|Blobs per Second|integer}}
{{KV|DrawOnly?|boolean|If this flag is true, blobs will only render (no paint, effect, or sound)}}
{{KV|Min End Radius|float}}
{{KV|Paint Type|choices|The type of paint sprayed.}}
{{KV|Max End Radius|float}}
:* 0 : Bounce
{{KV|Light Position Name|string}}
:* 2 : Speed
{{KV|Min Speed|integer}}
:* 3 : Portal
{{KV|Max Speed|integer}}
:* 4 : Erase
{{KV|Min Streak Speed Dampening|integer}}
{{KV|Render Mode|choices|The mode to render blobs.}}
{{KV|Max Streak Speed Dampening|integer}}
:* 0 : Blobulator
{{KV|Min Streak Time|float}}
:* 1 : Fast Sphere
{{KV|Max Streak Time|float}}
{{KV|Ambient Sound|choices|The sound to play when paint is flowing.}}
{{KV|Max Blob Count|integer}}
:* 0 : None (silent)
{{KV|Gel Type|choices}}
:* 1 : Drip
:* 0 : Repulsion
:* 2 : Medium Flow
:* 1 : Unknown
:* 3 : Heavy Flow
:* 2 : Propulsion
{{KV|Blobs per second|float|The number of paint blobs sprayed per second.}}
:* 3 : Conversion
{{KV|Min blob speed|float|The minimum speed of the sprayed blobs.}}
:* 4 : Water
{{KV|Max blob speed|float|The maximum speed of the sprayed blobs.}}
{{KV|Min Radius Growth over Time|float}}
{{KV|Blob spread radius|float|The starting radius of the spread of the blobs.}}
{{KV|Max Radius Growth over Time|float}}
{{KV|Blob spread angle|float|The spread of the blobs along its direction vector (in degrees).}}
{{KV|Min Start Radius|float}}
{{KV|Blob streak percentage|float|The percentage of blobs that will streak (0 - 100).}}
{{KV|Max Start Radius|float}}
{{KV|Blob min streak time|float|The minimum time that the blobs will streak for.}}
{{KV|Silent|boolean}}
{{KV|Blob max streak time|float|The maximum time that the blobs will streak for.}}
{{KV|Start Active|boolean}}
{{KV|Blob min streak speed dampen|float|The minimum speed dampening while streaking.}}
{{KV|Render Mode|integer}}
{{KV|Blob max streak speed dampen|float|The maximum speed dampening while streaking.}}


==Inputs==
==Inputs==
{{I Targetname}}
{{I Targetname}}
{{I Parentname}}
{{I Parentname}}
{{I Angles}}
{{IO|Start|Tell the paint sprayer to start spraying.}}
{{IO|Start}}
{{IO|Stop|Tell the paint sprayer to stop spraying.}}
{{IO|Stop}}
{{IO|ChangePaintType|Change the type of paint being sprayed.|param=integer}}


==Outputs==
==Outputs==

Revision as of 01:15, 11 May 2011

Template:Portal2 point

Nuvola apps ksnapshot.png
This article or section needs a screenshot to help visually convey the subject.
You can upload screenshots at Special:Upload. For help, see Help:Images.

Entity description

An entity that sprays paint.

Keyvalues

Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Parentname:
Parent (parentname) <targetname>
Specifies a movement parent. An entity will maintain its initial offset from its parent. An attachment point can be added to the end of the name, separated by a comma.
Pitch Yaw Roll (Y Z X) (angles) <QAngle>
This entity's orientation in the world. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, roll is the rotation around the X axis.
Max number of blobs ([todo internal name (i)]) <integer>
Max number of blobs that sprayer can spawn in the world (1-250).
Start Active? ([todo internal name (i)]) <boolean>
Silent? ([todo internal name (i)]) <boolean>
If this flag is true, blobs will only paint (no render, effect, or sound)
DrawOnly? ([todo internal name (i)]) <boolean>
If this flag is true, blobs will only render (no paint, effect, or sound)
Paint Type ([todo internal name (i)]) <choices>
The type of paint sprayed.
  • 0 : Bounce
  • 2 : Speed
  • 3 : Portal
  • 4 : Erase
Render Mode ([todo internal name (i)]) <choices>
The mode to render blobs.
  • 0 : Blobulator
  • 1 : Fast Sphere
Ambient Sound ([todo internal name (i)]) <choices>
The sound to play when paint is flowing.
  • 0 : None (silent)
  • 1 : Drip
  • 2 : Medium Flow
  • 3 : Heavy Flow
Blobs per second ([todo internal name (i)]) <float>
The number of paint blobs sprayed per second.
Min blob speed ([todo internal name (i)]) <float>
The minimum speed of the sprayed blobs.
Max blob speed ([todo internal name (i)]) <float>
The maximum speed of the sprayed blobs.
Blob spread radius ([todo internal name (i)]) <float>
The starting radius of the spread of the blobs.
Blob spread angle ([todo internal name (i)]) <float>
The spread of the blobs along its direction vector (in degrees).
Blob streak percentage ([todo internal name (i)]) <float>
The percentage of blobs that will streak (0 - 100).
Blob min streak time ([todo internal name (i)]) <float>
The minimum time that the blobs will streak for.
Blob max streak time ([todo internal name (i)]) <float>
The maximum time that the blobs will streak for.
Blob min streak speed dampen ([todo internal name (i)]) <float>
The minimum speed dampening while streaking.
Blob max streak speed dampen ([todo internal name (i)]) <float>
The maximum speed dampening while streaking.

Inputs

Parentname:
SetParent <stringRedirectInput/string>
Move with this entity. See Entity Hierarchy (parenting).
SetParentAttachment <stringRedirectInput/string>
Change this entity to attach to a specific attachment point on its parent. The entity will teleport so that the position of its root bone matches that of the attachment. Entities must be parented before being sent this input.
SetParentAttachmentMaintainOffset <stringRedirectInput/string>
As above, but without teleporting. The entity retains its position relative to the attachment at the time of the input being received.
ClearParent
Removes this entity from the the movement hierarchy, leaving it free to move independently.
Start
Tell the paint sprayer to start spraying.
Stop
Tell the paint sprayer to stop spraying.
ChangePaintType <integerRedirectInput/integer>
Change the type of paint being sprayed.

Outputs

See also