1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-07-05 03:19:06 -05:00

Trample Steam and Head Chopper: destroy after armed

This commit is contained in:
Jbleezy
2023-04-02 17:38:11 -07:00
parent ac2d546387
commit aac5c504d5
2 changed files with 15 additions and 9 deletions

View File

@ -67,9 +67,6 @@ headchopperthink( weapon, electricradius, armed )
weapon.headchopper_kills++;
if ( weapon.headchopper_kills >= 10 )
self thread headchopper_expired( weapon );
while ( isdefined( is_slicing ) && is_slicing )
{
weapon notify( "chop", 1 );
@ -87,7 +84,13 @@ headchopperthink( weapon, electricradius, armed )
}
while ( !( isdefined( weapon.is_armed ) && weapon.is_armed ) )
wait 0.5;
wait 0.05;
if ( weapon.headchopper_kills >= 10 )
{
self thread headchopper_expired( weapon );
return;
}
}
else
wait 0.1;

View File

@ -47,6 +47,8 @@ springpadthink( weapon, electricradius, armed )
weapon.is_armed = 0;
weapon.zombies_only = 1;
weapon.springpad_kills++;
foreach ( ent in weapon.fling_targets )
{
if ( isplayer( ent ) )
@ -86,16 +88,17 @@ springpadthink( weapon, electricradius, armed )
}
}
weapon.springpad_kills++;
if ( weapon.springpad_kills >= 15 )
self thread springpad_expired( weapon );
weapon.fling_targets = [];
weapon waittill( "armed" );
weapon.is_armed = 1;
if ( weapon.springpad_kills >= 15 )
{
self thread springpad_expired( weapon );
return;
}
}
else
wait 0.1;