mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-12 08:08:00 -05:00
EMP Grenade: sprinting no longer wakes up EMP'd zombies
This commit is contained in:
@ -69,6 +69,7 @@
|
|||||||
### EMP Grenade
|
### EMP Grenade
|
||||||
* Decreased perk EMP time from 90 seconds to 60 seconds
|
* Decreased perk EMP time from 90 seconds to 60 seconds
|
||||||
* Decreased zombie EMP radius by 30% (same radius as perk EMP)
|
* Decreased zombie EMP radius by 30% (same radius as perk EMP)
|
||||||
|
* Sprinting no longer wakes up EMP'd zombies
|
||||||
* No longer effects players
|
* No longer effects players
|
||||||
|
|
||||||
### Jet Gun
|
### Jet Gun
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
#include scripts/zm/replaced/_zm_utility;
|
#include scripts/zm/replaced/_zm_utility;
|
||||||
#include scripts/zm/replaced/_zm_powerups;
|
#include scripts/zm/replaced/_zm_powerups;
|
||||||
#include scripts/zm/replaced/_zm_equipment;
|
#include scripts/zm/replaced/_zm_equipment;
|
||||||
|
#include scripts/zm/replaced/_zm_ai_basic;
|
||||||
|
|
||||||
main()
|
main()
|
||||||
{
|
{
|
||||||
@ -16,6 +17,7 @@ main()
|
|||||||
replaceFunc(maps/mp/zombies/_zm_utility::track_players_intersection_tracker, scripts/zm/replaced/_zm_utility::track_players_intersection_tracker);
|
replaceFunc(maps/mp/zombies/_zm_utility::track_players_intersection_tracker, scripts/zm/replaced/_zm_utility::track_players_intersection_tracker);
|
||||||
replaceFunc(maps/mp/zombies/_zm_powerups::nuke_powerup, scripts/zm/replaced/_zm_powerups::nuke_powerup);
|
replaceFunc(maps/mp/zombies/_zm_powerups::nuke_powerup, scripts/zm/replaced/_zm_powerups::nuke_powerup);
|
||||||
replaceFunc(maps/mp/zombies/_zm_equipment::placed_equipment_think, scripts/zm/replaced/_zm_equipment::placed_equipment_think);
|
replaceFunc(maps/mp/zombies/_zm_equipment::placed_equipment_think, scripts/zm/replaced/_zm_equipment::placed_equipment_think);
|
||||||
|
replaceFunc(maps/mp/zombies/_zm_ai_basic::inert_wakeup, scripts/zm/replaced/_zm_ai_basic::inert_wakeup);
|
||||||
}
|
}
|
||||||
|
|
||||||
init()
|
init()
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
}
|
@ -3,6 +3,7 @@
|
|||||||
#include maps\mp\zombies\_zm_utility;
|
#include maps\mp\zombies\_zm_utility;
|
||||||
|
|
||||||
#include scripts/zm/replaced/zm_transit;
|
#include scripts/zm/replaced/zm_transit;
|
||||||
|
#include scripts/zm/replaced/_zm_weap_emp_bomb;
|
||||||
#include scripts/zm/replaced/_zm_equip_electrictrap;
|
#include scripts/zm/replaced/_zm_equip_electrictrap;
|
||||||
#include scripts/zm/replaced/_zm_equip_turret;
|
#include scripts/zm/replaced/_zm_equip_turret;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user