Difference between revisions of "Weapon portalgun"

From Valve Developer Community
Jump to: navigation, search
m
m (FGD value)
Line 12: Line 12:
 
* {{kv newfade}}
 
* {{kv newfade}}
 
* '''CanFirePortal1'''
 
* '''CanFirePortal1'''
:{{boolean}} Allow the portalgun to open the primary portal type
+
:{{boolean}} Can this portalgun create blue portals?
 
* '''CanFirePortal2'''
 
* '''CanFirePortal2'''
:{{boolean}} Allow the portalgun to open the secondary portal type
+
:{{boolean}} Can this portalgun create red portals?
  
 
==Flags==
 
==Flags==
Line 24: Line 24:
 
==Inputs==
 
==Inputs==
 
* {{i targetname}}
 
* {{i targetname}}
 +
* '''ChargePortal1'''
 +
:{{void}} Does charge up effect for mounted portalgun.
 +
* '''ChargePortal2'''
 +
:{{void}} Does charge up effect for mounted portalgun.
 +
* '''FirePortal1'''
 +
:{{void}} Projects portal 1 onto a wall in the facing direction of the gun.
 +
* '''FirePortal2'''
 +
:{{void}} Projects portal 2 onto a wall in the facing direction of the gun.
 +
* '''FirePortalDirection1'''
 +
:{{void}} Fires portal 1 in the specified direction.
 +
* '''FirePortalDirection2'''
 +
:{{void}} Fires portal 2 in the specified direction.
 +
* '''OnFiredPortal1'''
 +
:{{void}} Fires when the first (blue) portal is fired.
 +
* '''OnFiredPortal2'''
 +
:{{void}} Fires when the first (red) portal is fired.
  
 
==Outputs==
 
==Outputs==
Line 30: Line 46:
 
*'''OnNPCPickup'''
 
*'''OnNPCPickup'''
 
: Fires when an [[NPC]] picks up this weapon. {{activator|NPC}}
 
: Fires when an [[NPC]] picks up this weapon. {{activator|NPC}}
 
+
*'''OnFiredPortal1'''
 +
:{{void}} Fires when the first (blue) portal is fired.
 +
*'''OnFiredPortal2'''
 +
:{{void}} Fires when the first (red) portal is fired.
  
 
[[Category:Entities]]
 
[[Category:Entities]]
 
[[Category:Weapons]]
 
[[Category:Weapons]]

Revision as of 11:25, 11 October 2007

Template:Wrongtitle

Entity Description

This entity places a portalgun in a map that can be picked up and used as a weapon. It's used to open one or two portal in the Portal game.

Keyvalues

<boolean> Can this portalgun create blue portals?
  • CanFirePortal2
<boolean> Can this portalgun create red portals?

Flags

  • 1 : Start Constrained
Prevents the model from moving.

Inputs

Template:Void Does charge up effect for mounted portalgun.
  • ChargePortal2
Template:Void Does charge up effect for mounted portalgun.
  • FirePortal1
Template:Void Projects portal 1 onto a wall in the facing direction of the gun.
  • FirePortal2
Template:Void Projects portal 2 onto a wall in the facing direction of the gun.
  • FirePortalDirection1
Template:Void Fires portal 1 in the specified direction.
  • FirePortalDirection2
Template:Void Fires portal 2 in the specified direction.
  • OnFiredPortal1
Template:Void Fires when the first (blue) portal is fired.
  • OnFiredPortal2
Template:Void Fires when the first (red) portal is fired.

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.

Base:

OnUser1 to OnUser4
These outputs each fire in response to the firing of the like-numbered FireUser1 to FireUser4 Input; see User Inputs and Outputs.
  • OnNPCPickup
Fires when an NPC picks up this weapon. (activator is the NPC)
  • OnFiredPortal1
Template:Void Fires when the first (blue) portal is fired.
  • OnFiredPortal2
Template:Void Fires when the first (red) portal is fired.