prop_mounted_machine_gun

来自Valve Developer Community
跳转至: 导航搜索
English (en)中文 (zh)
... Icon-Important.png

本页面由大康翻译。欢迎任何人补充新内容或者修改其中的错误。


类层级(Class Hierarchy)
CPropMountedGun
CBaseMountedWeapon
CDynamicProp
CBreakableProp
CBaseProp
CBaseAnimating
CBaseEntity

prop_mounted_machine_gun是一个point entity存在于 Left 4 Dead series 求生之路系列。它是一种可使用的 .50 口径机枪。

Icon-Bug.png错误:求生之路切换手电筒将导致切换噪音重复,直到你停止使用机枪。
Warning.png Risk of confusion: {l4d2

游戏中的实体类名是 prop_minigun。而真正的迷你机枪是 prop_minigun_l4d1.}}

Important template.gif 重要: 如果你希望从 Info l4d1 survivor spawn 生成路易斯以使用机枪,则需要使用此实体

求生之路 20 秒后过热, 需要 20 秒冷却。
求生之路2 15 秒后过热,需要 60 秒冷却。

Heavy machine gun.png

键值

Max yaw (MaxYaw) <float> | 浮点型
机枪可以转动的偏航角范围。
Max pitch (MaxPitch) <float> | 浮点型
机枪可以往下瞄准的最大角度。
Min pitch (MinPitch) <float> | 浮点型
机枪可以往上瞄准的最大角度。

输出

OnFireStart
当机枪旋转并开始射击时触发。
OnFireStop
当机枪停止射击时触发。

控制台变量

以下控制台变量与机枪有关,它可以改变其功能。
这些不应该修改,因为玩家习惯了默认设置,但如果需要额外的挑战,如更长的冷却时间,则可以这样做。

控制台变量/命令参数或默认值描述符效果
mounted_gun_fire_think_interval (in 求生之路2 has additional z_ prefix)0.05seconds
mounted_gun_cooldown_time求生之路 20 求生之路2 60secondsMounted gun cooldown time
mounted_gun_mount_cooldown_time0.5
mounted_gun_overheat_penalty_time求生之路 20 求生之路2 60seconds
mounted_gun_overheat_time求生之路 20 求生之路2 15secondsMounted gun overheat time
mounted_gun_rate_of_fire8

以下的控制台变量仅 求生之路 存在

控制台变量/命令参数或默认值描述符效果
mounted_gun_damage50
mounted_gun_distance36.0

另见