mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-07-05 19:38:30 -05:00
Trample Steam and Head Chopper: destroy after armed
This commit is contained in:
@ -67,9 +67,6 @@ headchopperthink( weapon, electricradius, armed )
|
|||||||
|
|
||||||
weapon.headchopper_kills++;
|
weapon.headchopper_kills++;
|
||||||
|
|
||||||
if ( weapon.headchopper_kills >= 10 )
|
|
||||||
self thread headchopper_expired( weapon );
|
|
||||||
|
|
||||||
while ( isdefined( is_slicing ) && is_slicing )
|
while ( isdefined( is_slicing ) && is_slicing )
|
||||||
{
|
{
|
||||||
weapon notify( "chop", 1 );
|
weapon notify( "chop", 1 );
|
||||||
@ -87,7 +84,13 @@ headchopperthink( weapon, electricradius, armed )
|
|||||||
}
|
}
|
||||||
|
|
||||||
while ( !( isdefined( weapon.is_armed ) && weapon.is_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
|
else
|
||||||
wait 0.1;
|
wait 0.1;
|
||||||
|
@ -47,6 +47,8 @@ springpadthink( weapon, electricradius, armed )
|
|||||||
weapon.is_armed = 0;
|
weapon.is_armed = 0;
|
||||||
weapon.zombies_only = 1;
|
weapon.zombies_only = 1;
|
||||||
|
|
||||||
|
weapon.springpad_kills++;
|
||||||
|
|
||||||
foreach ( ent in weapon.fling_targets )
|
foreach ( ent in weapon.fling_targets )
|
||||||
{
|
{
|
||||||
if ( isplayer( ent ) )
|
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.fling_targets = [];
|
||||||
|
|
||||||
weapon waittill( "armed" );
|
weapon waittill( "armed" );
|
||||||
|
|
||||||
weapon.is_armed = 1;
|
weapon.is_armed = 1;
|
||||||
|
|
||||||
|
if ( weapon.springpad_kills >= 15 )
|
||||||
|
{
|
||||||
|
self thread springpad_expired( weapon );
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
wait 0.1;
|
wait 0.1;
|
||||||
|
Reference in New Issue
Block a user