info_paint_sprayer
info_paint_sprayer
is a point entity available in Portal 2.
Entity description
It generates a flow of paint or paint cleanser. There are several paint spawner instances that you should consider using instead of creating this entity directly.
Note:Gel needs to have Paint in Map set to True in
worldspawn
before applying on surfaces. Maps that do not use gel can save significant resources by avoiding gel code.Keyvalues
- Max number of blobs
(maxblobcount)
<integer> - Max number of blobs that sprayer can spawn in the world (1-250).
- Light Position Name
(light_position_name)
<string> - Name of the entity we want to use as blobs light position.
- Start Active?
(start_active)
<boolean> - Start spraying paint when the map spawns.
- Silent?
(silent)
<boolean> - If this flag is true, blobs will only paint (no render, effect, or sound)
- DrawOnly?
(DrawOnly)
<boolean> - If this flag is true, blobs will only render (no paint, effect, or sound)
- Paint Type
(PaintType)
<choices> - The type of paint sprayed.
- 0 : Bounce
- 1 : Stick (scrapped wall walking paint; no effect in the released game; retconned into laser-reflection gel in dlc1)
- 2 : Speed
- 3 : Portal
- 4 : Erase
- Render Mode
(RenderMode)
<choices> - The mode to render blobs.
- 0 : Blobulator
- 1 : Fast Sphere
- Ambient Sound
(AmbientSound)
<choices> - The sound to play when paint is flowing.
- 0 : None (silent)
- 1 : Drip
- 2 : Medium Flow
- 3 : Heavy Flow
- Blobs per second
(blobs_per_second)
<float> - The number of paint blobs sprayed per second.
- Min blob speed
(min_speed)
<float> - The minimum speed of the sprayed blobs.
- Max blob speed
(max_speed)
<float> - The maximum speed of the sprayed blobs.
- Blob spread radius
(blob_spread_radius)
<float> - The starting radius of the spread of the blobs.
- Blob spread angle
(blob_spread_angle)
<float> - The spread of the blobs along its direction vector (in degrees).
- Blob streak percentage
(blob_spread_percentage)
<float> - The percentage of blobs that will streak (0 - 100).
- Blob min streak time
(min_streak_time)
<float> - The minimum time that the blobs will streak for.
- Blob max streak time
(max_streak_time)
<float> - The maximum time that the blobs will streak for.
- Blob min streak speed dampen
(min_streak_speed_dampen)
<float> - The minimum speed dampening while streaking.
- Blob max streak speed dampen
(max_streak_speed_dampen)
<float> - The maximum speed dampening while streaking.
- Name
(targetname)
<string> - The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
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)
<angle> - 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.
Inputs
Start
- Tell the paint sprayer to start spraying.
Stop
- Tell the paint sprayer to stop spraying.
ChangePaintType
<integer>- Change the type of paint being sprayed.
Parentname:
SetParent
<string>- Move with this entity. See Entity Hierarchy (parenting).
SetParentAttachment
<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
<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.