CNPC_FloorTurret
Jump to navigation
Jump to search
Code classes:
CNPC_FloorTurret
CAI_BaseNPC
(NPCs)CBaseCombatCharacter
CBaseFlex
CBaseAnimatingOverlay
CBaseAnimating
(models)CBaseEntity
(all ents)
CNPC_FloorTurret
is a code class in .
Classnames:
npc_turret_floor
- Combine turret.
Flags[edit | edit source]
- 32: Autostart To do: No effect?
- 64: Start Inactive - Turret doesn't search for enemies or shoot until told to.
- 128: Fast Retire - Turret gives up on searching faster.
- 256: Out of Ammo - Turret never fires.
- 512: Citizen modified (Friendly)
Keyvalues[edit | edit source]
- Skin Number
(SkinNumber)
<integer>
- If Citizen modified is checked, which of the 3 skins to use. If 0, the skin is randomly chosen.
Inputs[edit | edit source]
- SelfDestruct
- Turret catches on fire and explodes.
- DepleteAmmo
- Destroys the turret's ammo. Does not work in .
- RestoreAmmo
- Gives ammo to the turret. Does not work in .
InteractivePowerDown (Not in FGD)- Does nothing.
- Enable
- Makes the entity active.
- Disable
- Makes the entity inactive.
- Toggle
- If on, turn off. If off, turn on.
Outputs[edit | edit source]
- OnDeploy
- Fires when the turret is put back to a standing angle or the Enable input is sent while not tipped over.
- OnRetire
- Fires when the turret gives up on searching.
- OnTipped
- Fires when the turret powers down after being tipped.
- OnPhysGunPickup
- Fires when picked up by the player in any way.
- OnPhysGunDrop
- Fires when dropped by the player in any way.
OnAlyxStartedInteraction (Not in FGD)- Never fires because Alyx does not have any special interactions with turrets.
OnAlyxFinishedInteraction (Not in FGD)- Never fires because Alyx does not have any special interactions with turrets.