Moderator elections are being held. See Valve Developer Community:Moderator elections for more details.
Users who would like to run for moderator must be autoconfirmed and have at least 100 edits. Users can check their own edit count at Special:Preferences.

prop_mounted_machine_gun

From Valve Developer Community
Jump to: navigation, search
English (en)中文 (zh)
... Icon-Important.png

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 is a point entity available in Left 4 Dead series Left 4 Dead series.它是一种可使用的 .50 口径机枪。

Icon-Bug.pngBug:Left 4 Dead切换手电筒将导致切换噪音重复,直到你停止使用机枪。
Warning.png Risk of confusion: {l4d2

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

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

Left 4 Dead 20 秒后过热, 需要 20 秒冷却。
Left 4 Dead 2 15 秒后过热,需要 60 秒冷却。

Heavy machine gun.png

键值

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

输出

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

控制台变量

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

Cvar/CommandParameters or default valueDescriptorEffect
mounted_gun_fire_think_interval (in Left 4 Dead 2 has additional z_ prefix)0.05seconds
mounted_gun_cooldown_timeLeft 4 Dead 20 Left 4 Dead 2 60secondsMounted gun cooldown time
mounted_gun_mount_cooldown_time0.5
mounted_gun_overheat_penalty_timeLeft 4 Dead 20 Left 4 Dead 2 60seconds
mounted_gun_overheat_timeLeft 4 Dead 20 Left 4 Dead 2 15secondsMounted gun overheat time
mounted_gun_rate_of_fire8

以下的控制台变量仅 Left 4 Dead 存在

Cvar/CommandParameters or default valueDescriptorEffect
mounted_gun_damage50
mounted_gun_distance36.0

另见