npc_portal_turret_floor
< Zh
Jump to navigation
Jump to search
![]() |
---|
CNPC_Portal_FloorTurret |
npc_portal_turret_floor
是一个点实体 ,可在 传送门(系列)中使用。 它当然是一个独立的 Aperture Science 炮塔.
键值

Aperture Science floor turret as seen in Portal.
- 伤害推动玩家 (DamageForce) <布尔值 >
- 被这个炮塔击中时会将玩家向后推。
- 哑巴炮塔 (Gagged) <布尔值 > (存在于自
以来)
- 该炮塔不会再有语音
- 用作 Actor (UsedAsActor) <布尔值 > (存在于自
以来)
- 该炮塔不会运行标准的地面炮塔代码,因此它可以用作 actor.
- 炮塔可以被玩家捡起 (PickupEnabled) <布尔值 > (存在于自
以来)
- 禁用拾取功能
- 禁用运动 (DisableMotion) <布尔值 > (存在于自
以来)
- 让炮塔无法被移动
- 允许穿过传送门射击 (AllowShootThroughPortals) <布尔值 > (存在于自
以来)
- 如未开启,则炮塔不会试图攻击传送门另一侧的目标
- 最大射程 (TurretRange) <浮点型 > (存在于自
以来)
- 炮塔能看到的距离
- 加载有缺陷的模型 (LoadAlternativeModels) <布尔值 > (存在于自
以来)
- 这个炮塔应该预缓存有缺陷的模型吗?如果后期有切换需要。
- 使用超级伤害 (UseSuperDamageScale) <布尔值 > (存在于自
以来)
- 将此项设置为 true 将使炮塔的伤害变得非常大。
- 碰撞类型 (CollisionType) <choices> (存在于自
以来)
- 允许在非常特殊的情况下关闭与玩家的碰撞。
- 0 : 正常
- 1 : 碎片
- SkinNumber ([todo internal name (i)]) <整数 > (存在于自
以来) 不存在于FGD!
- 设置贴图,仅对正常模型有效。
- model ([todo internal name (i)]) <模型文件路径 > 不存在于FGD!
- 要使用的自定义模型。必须将 Model value 值设置为 Unused 。默认为 “models/combine_turrets/floor_turret.mdl”
- Model (ModelIndex) <choices> (存在于自
以来)
- 决定炮塔要使用哪个模型。骨架炮塔仍然有效。
- 0 : 正常
- 1 : 未使用 (自定义 - 参阅上文)
- 2 : 盒式
- 3 : 向后移动 ("Load Defective Models" 必须激活)
- 4 : 骨架
- Skin Number (SkinNumber) <整数 >
- Which skin to use for this turret. Set to 0 to select randomly.
- Pitch Yaw Roll (Y Z X) (angles) <angle >
- This entity's orientation in the world. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, roll is the rotation around the X axis.
Flags
- Autostart : [32]
- Unknown. Possibly deprecated.
- Start Inactive : [64]
- Causes this turret to start deactivated
- Fast Retire : [128]
- Makes this turret return to its dormant state faster after losing a target
- Out of Ammo : [256]
- Makes this turret unable to shoot at acquired targets
- Citizen modified (Friendly) : [512] (存在于自
以来)
- This turret will be allied with the player and use a special skin
输入
- FireBullet <目标名 >
- 使炮塔立即向指定的实体开火。
- EnableGagging <字符串 > (存在于自
以来)
- 让它闭嘴
- DisableGagging <字符串 > (存在于自
以来)
- 让它张嘴
- EnablePickup <字符串 > (存在于自
以来)
- 允许玩家拾取炮塔。
- DisablePickup <字符串 > (存在于自
以来)
- 禁止玩家拾取炮塔。
- Enable
- Disable
- Toggle
- Active/deactivate the turret's mechanisms.

- DepleteAmmo
- RestoreAmmo
- Depletes ammo from a turret, causing it to dry-fire, or restores ammo. Turrets never run out on their own.

输出
- OnPainted (存在于自
以来)
- 当炮塔使用凝胶上色时触发。
- OnDeploy
- OnRetire
- Turret has become active and dangerous or inactive and harmless.
- OnTipped
- Turret has been tipped over and is inactive.
- OnPhysGunPickup
- OnPhysGunDrop
- Picked up/released by Gravity Gun or +use.
参见
- npc_rocket_turret
- npc_turret_floor (相当于HL2)