Prop minigun: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(modifier depracated template to warning, explaining exactly why L4D2 uses a different entity name for the minigun.)
(-concise)
Line 1: Line 1:
__NOTOC__
{{CD|CPropMinigun}}
{{CD|CPropMinigun}}
{{Entity|prop_minigun|Type=e0|series=l4d}} It is a usable mounted minigun that is normally used in the rescue point finale to support the survivors.
{{Entity|prop_minigun|type=e0|series=l4d}} It is a usable mounted minigun that is normally used in the rescue point finale to support the survivors.
{{ModernWarning|{{l4d2|4}} must use [[Prop_minigun_l4d1]] instead! Using this entity in {{l4d2|4}} spawns a [[Prop_mounted_machine_gun]].<br>
{{Important|Don't use this entity in {{l4d2|4}} as it spawns [[prop_mounted_machine_gun]]. To spawn {{l4d|4}} style minigun use [[prop_minigun_l4d1]].}}
This is because the class name for the Prop_mounted_machine_gun in {{l4d2|4}} is <code>prop_minigun</code>. While the actual minigun uses classname <code>Prop_minigun_l4d1</code>.<br>
{{Note|Louis spawned from [[info_l4d1_survivor_spawn]] won't use this entity}}
This most likely happened because Valve didn't intend to copying over the minigun at release of {{l4d2|4}} and decided to just re-use the classname instead of properly renaming it.}}
 
[[File:l4d1_minigun.png|thumb]]
[[Image:l4d1_minigun.png|thumb|right|200px|caption|prop_minigun in L4D1]]


== Keyvalues ==
== Keyvalues ==

Revision as of 12:03, 3 August 2023

C++ Class hierarchy
CPropMinigun
CBaseMountedWeapon
CDynamicProp
CBreakableProp
CBaseProp
CBaseAnimating
CBaseEntity

Template:Entity It is a usable mounted minigun that is normally used in the rescue point finale to support the survivors.

Icon-Important.pngImportant:Don't use this entity in Left 4 Dead 2 Left 4 Dead 2 as it spawns prop_mounted_machine_gun. To spawn Left 4 Dead Left 4 Dead style minigun use prop_minigun_l4d1.
Note.pngNote:Louis spawned from info_l4d1_survivor_spawn won't use this entity
prop_minigun in L4D1

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

Cvar/Command Parameters or default value Descriptor Effect
z_minigun_atomize 0 minigun should atomize zombies
z_minigun_cooldown_time 3 Minigun cooldown time
z_minigun_damage_rate 48000 Minigun damage rate, in health/minute
z_minigun_debug 0
z_minigun_fire_anim 0 survivors use a separate anim when firing miniguns
z_minigun_fire_anim_speed 1 cycle rate for main sequence when firing miniguns
z_minigun_fire_think_interval 0.2
z_minigun_firing_speed 15
z_minigun_overheat_time 20 Minigun overheat time
z_minigun_particles 1 1=attachment, 2=control points (like smoker_tongue drip)
z_minigun_rate_of_fire 1500 Minigun rate of fire, in bullets/minute
z_minigun_spin_down_speed 4
z_minigun_spin_up_speed 15
z_minigun_spread 7 Minigun spray in degrees from forward
z_minigun_stand_distance 36

See also