Prop paint bomb: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
 
(11 intermediate revisions by 10 users not shown)
Line 1: Line 1:
{{portal2 point|prop_paint_bomb}} It is a paint bomb that explodes on impact.
{{LanguageBar}}
{{this is a|point entity|game=Portal 2|name=prop_paint_bomb}} It is a paint bomb that explodes on impact.
 
{{paintinmap}}
{{bug|hidetested=1|Paint bombs that do not have a <code>model</code> keyvalue set will display a warning message in the console each time they spawn. This [[Non-FGD features#Keyvalues|can be set]] to any valid model (such as <code>error.mdl</code>, which would already be loaded), and is not actually rendered or used in any way.}}
{{note|Paint bombs use the [[prop_glass_futbol|futbol]] model (<code>props/futbol.mdl</code>) for their collisions. Standalone mods that use paint bombs must include this model in order for them to work correctly. The materials are not needed.}}


==Keyvalues==
==Keyvalues==
{{KV|Paint Type|choices|The type of paint to explode.}}
{{KV|Paint Type|intn=PaintType|choices|The type of paint to explode.}}
:* 0 : Bounce
:* 0 : Bounce
:* 2 : Speed
:* 2 : Speed
:* 3 : Portal
:* 3 : Portal
:* 4 : Erase
:* 4 : Erase
{{KV|Bomb Type|choices|The type of explosion.}}
{{KV|Bomb Type|intn=BombType|choices|The type of explosion.}}
:* 0 : Dry Bomb
:* 0 : Dry Bomb
:* 1 : Wet Bomb
:* 1 : Wet Bomb
{{KV|Allow Portal Funneling|boolean|Whether or not this object should auto-funnel into a portal.}}
{{KV|Allow Portal Funneling|intn=allowfunnel|boolean|Whether or not this object should auto-funnel into a portal.}}
{{KV|Play Spawn Sound|boolean|Whether or not this bomb should play a sound on spawn.}}
{{KV|Allow Silent Dissolve input|intn=AllowSilentDissolve|boolean|Allow the SilentDissolve input to dissolve this bomb.}}
{{KV|Allow SilentDissolve input|boolean|Allow the SilentDissolve input to dissolve this bomb.}}
{{KV|Play Spawn Sound|intn=playspawnsound|boolean|Whether or not this bomb should play a sound on spawn.}}
{{KV Targetname}}
{{KV Targetname}}
{{KV Angles}}
{{KV Angles}}


==Inputs==
==Inputs==
{{I|Dissolve|Dissolves the paint bomb.}}
{{I|SilentDissolve|Kills the paint bomb and fires its OnFizzled output.}}
{{I|EnablePortalFunnel|Enable portal funneling behavior.}}
{{I|DisablePortalFunnel|Disable portal funneling behavior.}}
{{I Targetname}}
{{I Targetname}}


==Outputs==
==Outputs==
{{IO|OnFizzled|Fired when a paint bomb is fizzled.}}
{{O|OnFizzled|Fired when a paint bomb is fizzled.}}
{{IO|OnExploded|Fired when a paint bomb explodes.}}
{{O|OnExploded|Fired when a paint bomb explodes.}}
{{O Targetname}}
{{O Targetname}}
[[Category:Prop entities|paint bomb]]

Latest revision as of 15:45, 1 September 2025

English (en)中文 (zh)Translate (Translate)

prop_paint_bomb is a point entity available in Portal 2 Portal 2. It is a paint bomb that explodes on impact.

Note.pngNote: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.
Icon-Bug.pngBug:Paint bombs that do not have a model keyvalue set will display a warning message in the console each time they spawn. This can be set to any valid model (such as error.mdl, which would already be loaded), and is not actually rendered or used in any way.
Note.pngNote:Paint bombs use the futbol model (props/futbol.mdl) for their collisions. Standalone mods that use paint bombs must include this model in order for them to work correctly. The materials are not needed.

Keyvalues

Paint Type (PaintType) <choices>
The type of paint to explode.
  • 0 : Bounce
  • 2 : Speed
  • 3 : Portal
  • 4 : Erase
Bomb Type (BombType) <choices>
The type of explosion.
  • 0 : Dry Bomb
  • 1 : Wet Bomb
Allow Portal Funneling (allowfunnel) <boolean>
Whether or not this object should auto-funnel into a portal.
Allow Silent Dissolve input (AllowSilentDissolve) <boolean>
Allow the SilentDissolve input to dissolve this bomb.
Play Spawn Sound (playspawnsound) <boolean>
Whether or not this bomb should play a sound on spawn.
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

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.

Inputs

Dissolve
Dissolves the paint bomb.
SilentDissolve
Kills the paint bomb and fires its OnFizzled output.
EnablePortalFunnel
Enable portal funneling behavior.
DisablePortalFunnel
Disable portal funneling behavior.


Outputs

OnFizzled
Fired when a paint bomb is fizzled.
OnExploded
Fired when a paint bomb explodes.