npc_portal_turret_floor
Jump to navigation
Jump to search
Code classes:
CNPC_Portal_FloorTurret
CNPC_FloorTurret
CAI_BaseNPC
(NPCs)CBaseCombatCharacter
CBaseFlex
CBaseAnimatingOverlay
CBaseAnimating
(models)CBaseEntity
(all ents)
npc_portal_turret_floor
is a point entity present in both Portal games. Turret.
Keyvalues[edit | edit source]
- Damage pushes player
(DamageForce)
<boolean>
- Bullets will nudge player away from turret.
- Model
(ModelIndex)
<choices>
(only available in ) - 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 ) - Custom model to use. Model must be set to Unused.
- Load Defective Models
(LoadAlternativeModels)
<boolean>
(only available in ) - 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 ) - Turret will not speak any lines.
- Used As Actor
(UsedAsActor)
<boolean>
(only available in ) - Suspends the normal turret AI For scripted parts of the game.
- Turret can be picked up by player
(PickupEnabled)
<boolean>
(only available in ) - Allows pickup by player.
- Disable Motion
(DisableMotion)
<boolean>
(only available in ) - Does not allow the turret to move. Cannot be picked up.
- Maximum Range
(TurretRange)
<float>
(only available in ) - How far away the turret can see in units.
- Collision Type
(CollisionType)
<choices>
(only available in ) - Turns off collisions with the player.
- 0: Normal
- 1: Debris
- Use Super Damage
(UseSuperDamageScale)
<boolean>
(only available in ) - Makes bullets far more damaging.
Allow Shooting through portals(AllowShootThroughPortals)
<boolean>
(only available in )- No effect. Turrets will always shoot through portals.
Default gel(PaintPower)
<choices>
(only available in )- 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 )
- Sets Turret is Gagged to Yes.
- DisableGagging (only available in )
- Sets Turret is Gagged to No.
- EnablePickup (only available in )
- Sets Turret can be picked to Yes.
- DisablePickup (only available in )
- Sets Turret can be picked to No.
- SelfDestructImmediately (only available in )
- Makes the turret explode.
- SetAsBouncePainted (only available in )
- Covers the turret in repulsion gel.
- SetModel (Not in FGD)
<integer>
(only available in ) - Sets Model.