1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-07 21:59:49 -05:00
BO2-Reimagined/scripts/zm/replaced/_zm_perk_electric_cherry.gsc
2023-12-16 20:01:17 -08:00

42 lines
1.1 KiB
Plaintext

#include maps\mp\zombies\_zm_perk_electric_cherry;
#include maps\mp\_utility;
#include common_scripts\utility;
#include maps\mp\zombies\_zm_utility;
#include maps\mp\zombies\_zm_net;
#include maps\mp\zombies\_zm_perks;
#include maps\mp\zombies\_zm_score;
#include maps\mp\animscripts\shared;
#include maps\mp\zombies\_zm_ai_basic;
electric_cherry_laststand()
{
visionsetlaststand("zombie_last_stand", 1);
if (isdefined(self))
{
playfx(level._effect["electric_cherry_explode"], self.origin);
self playsound("zmb_cherry_explode");
self notify("electric_cherry_start");
wait 0.05;
a_zombies = get_round_enemy_array();
a_zombies = get_array_of_closest(self.origin, a_zombies, undefined, undefined, 500);
for (i = 0; i < a_zombies.size; i++)
{
if (isalive(self))
{
a_zombies[i] thread electric_cherry_death_fx();
if (isdefined(self.cherry_kills))
self.cherry_kills++;
self maps\mp\zombies\_zm_score::add_to_player_score(40);
wait 0.1;
a_zombies[i] dodamage(a_zombies[i].health + 1000, self.origin, self, self, "none");
}
}
self notify("electric_cherry_end");
}
}