prop_paint_bomb
Jump to navigation
Jump to search
Code classes:
CPropPaintBomb
CPhysicsProp
CBreakableProp
CBaseProp
(props)CBaseAnimating
(models)CBaseEntity
(all ents)
prop_paint_bomb
is a point entity present in Portal 2. It's a bomb of gel, as opposed to a stream.
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.
Note: Paint bombs use the model seen in Hammer (props/futbol.mdl
) for their collisions.
Keyvalues[edit | edit source]
- Paint Type
(PaintType)
<choices>
- Which type of gel to use.
- 0: Bounce
- 1:
Stick- Reflect - 2: Speed
- 3: Portal
- 4: Erase
- Allow SilentDissolve input
(AllowSilentDissolve)
<boolean>
- Allows the SilentDissolve input to work. No reason to not allow this.
Play Spawn Sound(Play Spawn Sound)
<boolean>
- Plays a "bloob" sound when the paint bomb spawns. The value given in the FGD is wrong.
Play Spawn Sound
needs to be added as if it were a missing keyvalue, but having spaces in a keyvalue name breaks the FGD parser, so this keyvalue is completely unusable. On by default. Bomb Type(BombType)
<choices>
- Not in code.
Inputs[edit | edit source]
- SilentDissolve
- Removes the bomb and fires the OnFizzled output.
- EnablePortalFunnel
- Sets Allow Portal Funneling
(allowfunnel)
to Yes. - DisablePortalFunnel
- Sets Allow Portal Funneling
(allowfunnel)
to No. Dissolve- Does nothing.
Outputs[edit | edit source]
- OnFizzled
- Fires when the SilentDissolve input is sent.
- OnExploded
- Fires when the bomb explodes.