paint_sphere

From Source Entities
Jump to navigation Jump to search

Code classes:

paint_sphere is a point entity present in P2.pngPortal 2. It places gel in a sphere around itself.

Note: To use gel, the map needs to have Paint in Map set to True in worldspawn. Maps that do not use gel can save significant resources by avoiding touching gel textures and code.

Keyvalues[edit | edit source]

Paint Type (paint_type) <choices>
Which kind of gel to place.
  • 0: Bounce
  • 1: Stick Reflect
  • 2: Speed
  • 3: Portal
  • 4: Erase
Radius (radius) <float>
Area around the entity to apply gel to.
Alpha Percent (alpha_percent) <float>
Controls how densely the gel is applied. Gel needs to have an alpha above 0.70 to be usable.

Inputs[edit | edit source]

Paint
Applies paint.