mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-10 23:27:57 -05:00
EMP Grenade: sprinting no longer wakes up EMP'd zombies
This commit is contained in:
40
scripts/zm/replaced/_zm_ai_basic.gsc
Normal file
40
scripts/zm/replaced/_zm_ai_basic.gsc
Normal file
@ -0,0 +1,40 @@
|
||||
#include maps\mp\_utility;
|
||||
#include common_scripts\utility;
|
||||
#include maps\mp\zombies\_zm_utility;
|
||||
|
||||
inert_wakeup()
|
||||
{
|
||||
self endon( "death" );
|
||||
self endon( "stop_zombie_inert" );
|
||||
|
||||
wait 0.1;
|
||||
|
||||
self thread maps/mp/zombies/_zm_ai_basic::inert_damage();
|
||||
self thread maps/mp/zombies/_zm_ai_basic::inert_bump();
|
||||
|
||||
while ( 1 )
|
||||
{
|
||||
current_time = getTime();
|
||||
players = get_players();
|
||||
foreach ( player in players )
|
||||
{
|
||||
dist_sq = distancesquared( self.origin, player.origin );
|
||||
if ( dist_sq < 4096 )
|
||||
{
|
||||
self maps/mp/zombies/_zm_ai_basic::stop_inert();
|
||||
return;
|
||||
}
|
||||
|
||||
if ( dist_sq < 5760000 )
|
||||
{
|
||||
if ( ( current_time - player.lastfiretime ) < 100 )
|
||||
{
|
||||
self maps/mp/zombies/_zm_ai_basic::stop_inert();
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
wait 0.1;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user