mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-26 07:00:25 -05:00
Jet Gun: move overheat/cooldown rate changes to weapon file
Jet Gun: no longer heats up when firing while meleeing
This commit is contained in:
@ -3,6 +3,31 @@
|
||||
#include common_scripts\utility;
|
||||
#include maps\mp\zombies\_zm_utility;
|
||||
|
||||
watch_overheat()
|
||||
{
|
||||
self endon( "death_or_disconnect" );
|
||||
self endon( "weapon_change" );
|
||||
|
||||
while ( true )
|
||||
{
|
||||
if ( self getcurrentweapon() == "jetgun_zm" )
|
||||
{
|
||||
overheating = self isweaponoverheating( 0 );
|
||||
heat = self isweaponoverheating( 1 );
|
||||
self.jetgun_overheating = overheating;
|
||||
self.jetgun_heatval = heat;
|
||||
|
||||
if ( overheating )
|
||||
self notify( "jetgun_overheated" );
|
||||
|
||||
if ( heat > 75 )
|
||||
self thread play_overheat_fx();
|
||||
}
|
||||
|
||||
wait 0.05;
|
||||
}
|
||||
}
|
||||
|
||||
jetgun_firing()
|
||||
{
|
||||
if ( !isdefined( self.jetsound_ent ) )
|
||||
|
Reference in New Issue
Block a user