prop_mounted_machine_gun

From Valve Developer Community
Jump to: navigation, search
English (en)中文 (zh)

This page was translated by DaKang233. Anyone is welcome to add new content or fix errors.


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

prop_mounted_machine_gun是一个点实体,可在Left 4 Dead series 求生之路系列中使用。它是一种可使用的 .50 口径机枪。

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

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

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

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

Heavy machine gun.png

键值

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

输出

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

另见