npc_portal_turret_floor

From Valve Developer Community
< Zh
Jump to navigation Jump to search
English (en)中文 (zh)Translate (Translate)
Portal 2关卡设计介绍
Turretsicon.png
C++ 类层级
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.
Damage pushes player (DamageForce) <布尔值(en)>
伤害推动玩家,被这个炮塔击中时会将玩家向后推。
Turret is Gagged (Gagged) <布尔值(en)> (存在于自 传送门2 以来)
该炮塔不会再有语音
Used As Actor (UsedAsActor) <布尔值(en)> (存在于自 传送门2 以来)
用作于演员,该炮塔不会运行标准的地面炮塔代码,因此它可以用作 actor.
Turret can be picked up by player (PickupEnabled) <布尔值(en)> (存在于自 传送门2 以来)
启用或禁用拾取功能
Disable Motion (DisableMotion) <布尔值(en)> (存在于自 传送门2 以来)
让炮塔无法被移动
Allow Shooting through portals (AllowShootThroughPortals) <布尔值(en)> (存在于自 传送门2 以来)
允许从传送门射击,如未开启,则炮塔不会试图攻击传送门另一侧的目标
Maximum Range (TurretRange) <浮点型(en)> (存在于自 传送门2 以来)
炮塔能看到的最大距离
Load Defective Models (LoadAlternativeModels) <布尔值(en)> (存在于自 传送门2 以来)
加载有缺陷的模型,如果问是否要预缓存缺陷模型吗?如果后期要切换模型则需要。
Use Super Damage (UseSuperDamageScale) <布尔值(en)> (存在于自 传送门2 以来)
将此项设置为 true 将使炮塔的伤害变得非常大。
Collision Type (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) <QAngle(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.


参见