1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-22 13:10:28 -05:00

Trample Steam and Head Chopper: remove wait before attack

This commit is contained in:
Jbleezy
2023-04-02 17:33:07 -07:00
parent 759c20e0b2
commit ac2d546387
2 changed files with 30 additions and 0 deletions

View File

@ -94,6 +94,21 @@ headchopperthink( weapon, electricradius, armed )
}
}
wait_for_targets( weapon )
{
weapon endon( "hi_priority_target" );
while ( isdefined( weapon ) )
{
if ( isdefined( weapon.chop_targets ) && weapon.chop_targets.size > 0 )
{
return;
}
wait 0.05;
}
}
headchopperattack( weapon, ent )
{
self endon( "death" );

View File

@ -100,4 +100,19 @@ springpadthink( weapon, electricradius, armed )
else
wait 0.1;
}
}
wait_for_targets( weapon )
{
weapon endon( "hi_priority_target" );
while ( isdefined( weapon ) )
{
if ( isdefined( weapon.fling_targets ) && weapon.fling_targets.size > 0 )
{
return;
}
wait 0.05;
}
}