npc_portal_turret_floor

From Source Entities
Jump to navigation Jump to search
Npc portal turret floor.png

npc_portal_turret_floor is a point entity present in both P1.pngP2.pngPortal games. Turret.

Keyvalues[edit | edit source]

Damage pushes player (DamageForce) <boolean>
Bullets will nudge player away from turret.
Model (ModelIndex) <choices> (only available in P2.png)
Which model to use. Load Defective Models must be set to Yes to load non-normal models.
  • 0: Normal
  • 1: Unused (custom, see below)
  • 2: Box
  • 3: Backwards (body sideways, collisions inaccurate)
  • 4: Skeleton
Custom model (Not in FGD) (model) <studio> (only available in P2.png)
Custom model to use. Model must be set to Unused.
Load Defective Models (LoadAlternativeModels) <boolean> (only available in P2.png)
If set, the game will load all turret models instead of just the regular one. If not set when it should be set, the game will crash.
Turret is Gagged (Gagged) <boolean> (only available in P2.png)
Turret will not speak any lines.
Used As Actor (UsedAsActor) <boolean> (only available in P2.png)
Suspends the normal turret AI For scripted parts of the game.
Turret can be picked up by player (PickupEnabled) <boolean> (only available in P2.png)
Allows pickup by player.
Disable Motion (DisableMotion) <boolean> (only available in P2.png)
Does not allow the turret to move. Cannot be picked up.
Maximum Range (TurretRange) <float> (only available in P2.png)
How far away the turret can see in units.
Collision Type (CollisionType) <choices> (only available in P2.png)
Turns off collisions with the player.
  • 0: Normal
  • 1: Debris
Use Super Damage (UseSuperDamageScale) <boolean> (only available in P2.png)
Makes bullets far more damaging.
Allow Shooting through portals (AllowShootThroughPortals) <boolean> (only available in P2.png)
No effect. Turrets will always shoot through portals.
Default gel (PaintPower) <choices> (only available in P2.png)
Covers the turret in a specified type of gel by default. Does not update visual appearance.

Inputs[edit | edit source]

FireBullet <target_destination>
Makes the turret fire a single shot at the specified entity.
EnableGagging  (only available in P2.png)
Sets Turret is Gagged to Yes.
DisableGagging  (only available in P2.png)
Sets Turret is Gagged to No.
EnablePickup  (only available in P2.png)
Sets Turret can be picked to Yes.
DisablePickup  (only available in P2.png)
Sets Turret can be picked to No.
SelfDestructImmediately  (only available in P2.png)
Makes the turret explode.
SetAsBouncePainted  (only available in P2.png)
Covers the turret in repulsion gel.
SetModel (Not in FGD) <integer> (only available in P2.png)
Sets Model.

Outputs[edit | edit source]

OnPainted  (only available in P2.png)
Fires when the turret gets covered in gel for the first time, or gets covered in a new type.