mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-12 08:08:00 -05:00
EMP Grenade: add back player shellshock
This commit is contained in:
@ -51,6 +51,8 @@ emp_players(origin, radius, owner)
|
|||||||
{
|
{
|
||||||
if(distancesquared(origin, player.origin) < rsquared)
|
if(distancesquared(origin, player.origin) < rsquared)
|
||||||
{
|
{
|
||||||
|
player thread player_emp_on_and_off(2);
|
||||||
|
|
||||||
if(is_player_valid(player))
|
if(is_player_valid(player))
|
||||||
{
|
{
|
||||||
player thread player_perk_pause_and_unpause_all_perks(30);
|
player thread player_perk_pause_and_unpause_all_perks(30);
|
||||||
@ -63,6 +65,19 @@ emp_players(origin, radius, owner)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player_emp_on_and_off(time)
|
||||||
|
{
|
||||||
|
self notify("player_emp_on_and_off");
|
||||||
|
self endon("player_emp_on_and_off");
|
||||||
|
self endon("disconnect");
|
||||||
|
|
||||||
|
self maps/mp/zombies/_zm_weap_emp_bomb::player_emp_on();
|
||||||
|
|
||||||
|
wait time + 0.05; // stops shellshock too early
|
||||||
|
|
||||||
|
self maps/mp/zombies/_zm_weap_emp_bomb::player_emp_off();
|
||||||
|
}
|
||||||
|
|
||||||
player_perk_pause_and_unpause_all_perks(time)
|
player_perk_pause_and_unpause_all_perks(time)
|
||||||
{
|
{
|
||||||
self notify("player_perk_pause_and_unpause_all_perks");
|
self notify("player_perk_pause_and_unpause_all_perks");
|
||||||
|
Reference in New Issue
Block a user