Prop minigun l4d1: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(-added internal names and missing outputs)
(-used varcom template)
Line 16: Line 16:
The following Cvars are related to the minigun, which can change how it functions.<br>
The following Cvars are related to the minigun, which can change how it functions.<br>
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.
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.
<pre>
== ConVars ==
z_minigun_atomize                       : 0       : , "sv", "launcher" : minigun should atomize zombies
{{varcom|start}}
z_minigun_cooldown_time                 : 3       : , "sv", "cheat"  : Minigun cooldown time
{{varcom|z_minigun_atomize|0||minigun should atomize zombies}}
z_minigun_damage_rate                   : 48000   : , "sv", "cheat"  : Minigun damage rate, in health/minute
{{varcom|z_minigun_cooldown_time|3||Minigun cooldown time}}
z_minigun_debug                         : 0       : , "rep", "cl", "launcher" :
{{varcom|z_minigun_damage_rate|48000||Minigun damage rate, in health/minute}}
z_minigun_fire_anim_speed               : 1       : , "rep", "cl", "launcher" : cycle rate for main sequence when firing miniguns
{{varcom|z_minigun_debug|0||}}
z_minigun_fire_think_interval           : 0.2     : , "sv", "cheat"  :
{{varcom|z_minigun_fire_anim_speed|1||cycle rate for main sequence when firing miniguns}}
z_minigun_firing_speed                   : 15       : , "rep", "cl", "launcher" :
{{varcom|z_minigun_fire_think_interval|0.2||}}
z_minigun_overheat_time                 : 20       : , "sv", "cheat"  : Minigun overheat time
{{varcom|z_minigun_firing_speed|15||}}
z_minigun_particles                     : 1       : , "cl", "launcher" : 1=attachment, 2=control points (like smoker_tongue drip)
{{varcom|z_minigun_overheat_time|20||Minigun overheat time}}
z_minigun_rate_of_fire                   : 1500     : , "sv", "cheat"  : Minigun rate of fire, in bullets/minute
{{varcom|z_minigun_particles|1||1{{=}}attachment, 2{{=}}control points (like smoker_tongue drip)}}
z_minigun_spin_down_speed               : 4       : , "rep", "cl", "launcher" :
{{varcom|z_minigun_rate_of_fire|1500||Minigun rate of fire, in bullets/minute}}
z_minigun_spin_up_speed                 : 15       : , "rep", "cl", "launcher" :
{{varcom|z_minigun_spin_down_speed|4||}}
z_minigun_spread                         : 7       : , "rep", "cl", "launcher" : Minigun spray in degrees from forward
{{varcom|z_minigun_spin_up_speed|15||}}
z_minigun_stand_distance                 : 36       : , "rep", "cl", "launcher" :
{{varcom|z_minigun_spread|7||Minigun spray in degrees from forward}}
</pre>
{{varcom|z_minigun_stand_distance|36||}}
{{varcom|end}}


==See also==
==See also==
*{{ent|prop_minigun}}
*{{ent|prop_minigun}}
*{{ent|prop_mounted_machine_gun}}
*{{ent|prop_mounted_machine_gun}}

Revision as of 07:04, 13 November 2022

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

Template:L4d2 point Is the mounted minigun from L4D1, 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.

Related Cvars

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.

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_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