Weapon paintgun: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
 
(16 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{stub}}
{{ent not in game}}
{{cleanup}}
{{this is a|point entity|name=weapon_paintgun|game=The Stanley Parable|game1=Portal 2: Community Edition}} It is a gun that shoots [[Gel]]. By default, the paint gun only has the ability to fire Cleansing Gel. To enable other gel types, the player must pick up an {{ent|item_paint_power_pickup}} corresponding to that type. The player's gels will be removed on contact with a {{ent|trigger_paint_cleanser}}.


[[File:Portal_Gun_w.jpg|thumb|250px|The portal gun ingame.]]
{{note|The paint gun currently uses the [[weapon_portalgun|portal gun]] model by default. This will change in a future version of P2CE.}}
==Entity description==
{{note|This entity does not function in {{tsp|2}} as paint and paint powers do not exist in code.}}
This is an entity that is in [[Portal 2]]. However it is not functional, and when put in a map it does appear in-game. Discussed in the developer commentary, this would have been similar to the paint gun from Tag: The Power of Paint, which was cut due to the complexity of switching between weapons to use the gels.
{{note|The paint gun was originally planned to appear in {{portal2|4}}, but was cut due to the complexity of switching between weapons to use the gels. While leftover in the [[FGD]], it was removed from the game and was not usable in maps. It has been reimplemented in P2CE.}}
 
{{BasicWeapon}}
 
==See also==
* [[weapon_portalgun]]
* [[item_paint_power_pickup]]


[[Category: Portal 2 Entities]]
[[Category: Portal 2 Entities]]
[[Category: Cut Weapons]]

Latest revision as of 14:46, 1 September 2025

Info-red.png
This entity is not in the game by default, but got left over in the FGD.
This feature is not available anymore.

weapon_paintgun is a point entity available in The Stanley Parable The Stanley Parable and Portal 2: Community Edition Portal 2: Community Edition. It is a gun that shoots Gel. By default, the paint gun only has the ability to fire Cleansing Gel. To enable other gel types, the player must pick up an item_paint_power_pickup corresponding to that type. The player's gels will be removed on contact with a trigger_paint_cleanser.

Note.pngNote:The paint gun currently uses the portal gun model by default. This will change in a future version of P2CE.
Note.pngNote:This entity does not function in The Stanley Parable The Stanley Parable as paint and paint powers do not exist in code.
Note.pngNote:The paint gun was originally planned to appear in Portal 2 Portal 2, but was cut due to the complexity of switching between weapons to use the gels. While leftover in the FGD, it was removed from the game and was not usable in maps. It has been reimplemented in P2CE.

Flags

Start Constrained : [1]
Prevents the model from moving.
Deny player pickup (reserve for NPC) : [2]
Not puntable by Gravity Gun : [4]

Inputs

HideWeapon  !FGD
If this weapon is being held, hide the worldmodel and/or viewmodel via EF_NODRAW. Weapon will still be useable. The weapon will become visible again if the holder is to switch between weapons in their inventory.

Outputs

OnNPCPickup
Fires when an NPC picks up this weapon. (!activator is the NPC.)
OnPlayerUse
Fires when the player +uses this weapon. (!activator is the player.)
OnPlayerPickup
Fires when a player picks up this weapon. (!activator is the player.)
OnCacheInteraction
Fires when the player 'proves' they've found this weapon. Fires on: Player Touch, +USE pickup, Physcannon pickup, Physcannon punt.

See also