1
0
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:
Jbleezy
2023-12-15 17:09:30 -08:00
parent ac6d7a8634
commit 9bcd638681
5 changed files with 28 additions and 68 deletions

View File

@ -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 ) )