Prop minigun: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
m (Classifying as model entity)
 
(20 intermediate revisions by 11 users not shown)
Line 1: Line 1:
{{DISPLAYTITLE:prop_minigun}}
__NOTOC__
{{l4d point|prop_minigun}}<br>
{{LanguageBar}}
{{l4d2 point|prop_minigun}}<br><br>
{{TabsBar}}
{{CD|CPropMinigun}}
{{this is a|model entity|name=prop_minigun|game=Left 4 Dead}} It is a usable mounted minigun that is normally used in the rescue point finale to support the survivors.
{{important|In {{l4d2|4}} this entity is {{ent|prop_minigun_l4d1}}}}


== Entity description ==
[[File:l4d1_minigun.png|thumb|right|200px]]
A mounted gun players can +USE. The entity is available in both [[Left 4 Dead]] and [[Left 4 Dead 2]].


== Keyvalues ==
== Keyvalues ==
{{KV PropDynamicBase}}
{{KV|Max yaw|intn=MaxYaw|float|Max yaw the gun can be turned.}}
*{{KV Parentname}}
{{KV|Max pitch|intn=MaxPitch|float|Max pitch the gun can be depressed.}}
*{{KV Global}}
{{KV|Min pitch|intn=MinPitch|float|Min pitch the gun can be raised.}}
*{{KV EnableDisable}}
*'''solid'''
:<choices> Collisions.
:{| class=standard-table
! Literal value || Description
|-
| 0 || Not Solid
|-
| 2 || Use Bounding Box
|-
| 6 || Use VPhysics
|}


== Flags ==
== Outputs ==
* {{fl PropDynamicBase}}
{{O|OnFireStart|Fired when the minigun has spun up and is starting firing.}}
{{O|OnFireStop|Fired when the minigun has stopped firing.}}


== Inputs ==
== ConVars ==
* {{I Targetname}}
{{varcom|start}}
{{I PropDynamicBase}}
{{varcom|z_minigun_atomize|0||minigun should atomize zombies}}
 
{{varcom|z_minigun_cooldown_time|3||Minigun cooldown time}}
== Outputs ==
{{varcom|z_minigun_damage_rate|48000||Minigun damage rate, in health/minute}}
* '''OnFireStart'''
{{varcom|z_minigun_debug|0||}}
: Fired when the minigun has spun up and is starting firing.
{{varcom|z_minigun_fire_anim|0||survivors use a separate anim when firing miniguns}}
* '''OnFireStop'''
{{varcom|z_minigun_fire_anim_speed|1||cycle rate for main sequence when firing miniguns}}
: Fired when the minigun has stopped firing.
{{varcom|z_minigun_fire_think_interval|0.2||}}
{{O PropDynamicBase}}
{{varcom|z_minigun_firing_speed|15||}}
{{varcom|z_minigun_overheat_time|20||Minigun overheat time}}
{{varcom|z_minigun_particles|1||1{{=}}attachment, 2{{=}}control points (like smoker_tongue drip)}}
{{varcom|z_minigun_rate_of_fire|1500||Minigun rate of fire, in bullets/minute}}
{{varcom|z_minigun_spin_down_speed|4||}}
{{varcom|z_minigun_spin_up_speed|15||}}
{{varcom|z_minigun_spread|7||Minigun spray in degrees from forward}}
{{varcom|z_minigun_stand_distance|36||}}
{{varcom|end}}


== See also ==
==See also==
* [[prop_mounted_machine_gun]]
*{{ent|prop_mounted_machine_gun}}
*{{l4d2}}{{ent|prop_minigun_l4d1}}


[[Category:Left 4 Dead Entities]]
[[Category:Prop entities|minigun]]
[[Category:Left 4 Dead 2 Entities]]

Latest revision as of 04:34, 19 May 2025

English (en)Translate (Translate)
edit
C++ Class hierarchy
CPropMinigun
CBaseMountedWeapon
CDynamicProp
CBreakableProp
CBaseProp
CBaseAnimating
CBaseEntity

prop_minigun is a model entity available in Left 4 Dead Left 4 Dead. It is a usable mounted minigun that is normally used in the rescue point finale to support the survivors.

Icon-Important.pngImportant:In Left 4 Dead 2 Left 4 Dead 2 this entity is prop_minigun_l4d1
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

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