prop_minigun_l4d1

From Valve Developer Community
Jump to: navigation, search
class hierarchy
CPropMinigun
CBaseMountedWeapon
CDynamicProp
CBreakableProp
CBaseProp
CBaseAnimating
CBaseEntity

prop_minigun_l4d1 is a point entity available in Left 4 Dead 2 Left 4 Dead 2. It is the mounted minigun from Left 4 Dead Left 4 Dead, which players can use.
When firing nonstop, the minigun overheats after 20 seconds, needing 3 seconds to cool down.

L4d1 minigun.png

Keyvalues

Max yaw (MaxYaw) <float>
Max yaw the gun can be turned.
Max pitch (MaxPitch) <float>
Max pitch the gun can be depressed.
Min pitch (MinPitch) <float>
Min pitch the gun can be raised.

Outputs

OnFireStart
Fired when the minigun has spun up and is starting firing.
OnFireStop
Fired when the minigun has stopped firing.

ConVars

The following Cvars are related to the minigun, which can change how it functions.
These should not be modified because players are used to the default, but if an extra challenge like longer cooldown is required, it would be possible to do so.

Cvar/CommandParameters or default valueDescriptorEffect
z_minigun_atomize0minigun should atomize zombies
z_minigun_cooldown_time3Minigun cooldown time
z_minigun_damage_rate48000Minigun damage rate, in health/minute
z_minigun_debug0
z_minigun_fire_anim_speed1cycle rate for main sequence when firing miniguns
z_minigun_fire_think_interval0.2
z_minigun_firing_speed15
z_minigun_overheat_time20Minigun overheat time
z_minigun_particles11=attachment, 2=control points (like smoker_tongue drip)
z_minigun_rate_of_fire1500Minigun rate of fire, in bullets/minute
z_minigun_spin_down_speed4
z_minigun_spin_up_speed15
z_minigun_spread7Minigun spray in degrees from forward
z_minigun_stand_distance36

See also