npc_portal_turret_floor

From Valve Developer Community
< Zh
Jump to navigation Jump to search
English (en)中文 (zh)Translate (Translate)
Portal 2关卡设计介绍
Turretsicon.png
类层级
CNPC_Portal_FloorTurret
CNPC_FloorTurret
CNPCBaseInteractive
CAI_BaseNPC
CBaseCombatCharacter
CBaseFlex
CBaseAnimatingOverlay
CBaseAnimating
CBaseEntity

npc_portal_turret_floor是一个点实体(en),可在传送门(系列) 传送门(系列)中使用。 它当然是一个独立的 Aperture Science 炮塔.

键值

Aperture Science floor turret as seen in Portal.
伤害推动玩家 (DamageForce) <布尔值(en)>
被这个炮塔击中时会将玩家向后推。
哑巴炮塔 (Gagged) <布尔值(en)> (存在于自 传送门2 以来)
该炮塔不会再有语音
用作 Actor (UsedAsActor) <布尔值(en)> (存在于自 传送门2 以来)
该炮塔不会运行标准的地面炮塔代码,因此它可以用作 actor.
炮塔可以被玩家捡起 (PickupEnabled) <布尔值(en)> (存在于自 传送门2 以来)
禁用拾取功能
禁用运动 (DisableMotion) <布尔值(en)> (存在于自 传送门2 以来)
让炮塔无法被移动
允许穿过传送门射击 (AllowShootThroughPortals) <布尔值(en)> (存在于自 传送门2 以来)
如未开启,则炮塔不会试图攻击传送门另一侧的目标
最大射程 (TurretRange) <浮点型(en)> (存在于自 传送门2 以来)
炮塔能看到的距离
加载有缺陷的模型 (LoadAlternativeModels) <布尔值(en)> (存在于自 传送门2 以来)
这个炮塔应该预缓存有缺陷的模型吗?如果后期有切换需要。
使用超级伤害 (UseSuperDamageScale) <布尔值(en)> (存在于自 传送门2 以来)
将此项设置为 true 将使炮塔的伤害变得非常大。
碰撞类型 (CollisionType) <choices> (存在于自 传送门2 以来)
允许在非常特殊的情况下关闭与玩家的碰撞。
  • 0 : 正常
  • 1 : 碎片
SkinNumber ([todo internal name (i)]) <整数(en)> (存在于自 传送门2 以来) 不存在于FGD!
设置贴图,仅对正常模型有效。
model ([todo internal name (i)]) <模型文件路径(en)> 不存在于FGD!
要使用的自定义模型。必须将 Model value 值设置为 Unused 。默认为 “models/combine_turrets/floor_turret.mdl”
Model (ModelIndex) <choices> (存在于自 传送门2 以来)
决定炮塔要使用哪个模型。骨架炮塔仍然有效。
  • 0 : 正常
  • 1 : 未使用 (自定义 - 参阅上文)
  • 2 : 盒式
  • 3 : 向后移动 ("Load Defective Models" 必须激活)
  • 4 : 骨架
Skin Number (SkinNumber) <整数(en)>
Which skin to use for this turret. Set to 0 to select randomly.
Pitch Yaw Roll (Y Z X) (angles) <angle(en)>
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] (存在于自 起源2007 以来)
This turret will be allied with the player and use a special skin


输入

FireBullet <目标名(en)>
使炮塔立即向指定的实体开火。
EnableGagging <字符串(en)> (存在于自 传送门2 以来)
让它闭嘴
DisableGagging <字符串(en)> (存在于自 传送门2 以来)
让它张嘴
EnablePickup <字符串(en)> (存在于自 传送门2 以来)
允许玩家拾取炮塔。
DisablePickup <字符串(en)> (存在于自 传送门2 以来)
禁止玩家拾取炮塔。
SelfDestructImmediately  (存在于自 传送门2 以来)
爆爆乐
SetAsBouncePainted  (存在于自 传送门2 以来)
强制用 Bounce 凝胶绘制此炮塔。
Ignite  不存在于FGD!
点燃炮塔。炮塔的行为就像被激光击中一样,除非启用了 Used As Actor 键值,否则它将正常燃烧。
Enable
Disable
Toggle
Active/deactivate the turret's mechanisms.
Icon-Bug.png错误:The Enable/Disable inputs have no effect while the turret is knocked over.  [todo tested in ?]
DepleteAmmo
RestoreAmmo
Depletes ammo from a turret, causing it to dry-fire, or restores ammo. Turrets never run out on their own.
Icon-Bug.png错误:The DepleteAmmo/RestoreAmmo inputs have no effect on Portal turrets.  [todo tested in ?]
SelfDestruct  (存在于自 半衰期2:第二章 以来)
Emit a warning then self-destruct in a small explosion.


输出

OnPainted  (存在于自 传送门2 以来)
当炮塔使用凝胶上色时触发。
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.


参见