mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-09 23:02:53 -05:00
Grief: steal points on stun
This commit is contained in:
@ -236,8 +236,8 @@
|
||||
* Unlimited barrier rebuild points
|
||||
* Decreased stun time by enemy players from 0.75 seconds to 0.5 seconds
|
||||
* Players can be stunned from melee by enemy players while already stunned
|
||||
* Points awarded for stunning enemy players that are damaged
|
||||
* Points awarded for downing enemy players
|
||||
* Stunning enemy players steals 10 points from them
|
||||
* Downing enemy players awards 5% of their current points
|
||||
* Landing on top of an enemy player downs them
|
||||
* Added player kill feed
|
||||
* Added player kills on scoreboard
|
||||
|
@ -647,7 +647,7 @@ game_module_player_damage_callback( einflictor, eattacker, idamage, idflags, sme
|
||||
self thread do_game_mode_shellshock();
|
||||
self playsound( "zmb_player_hit_ding" );
|
||||
|
||||
self thread add_grief_stun_score(eattacker);
|
||||
self thread stun_score_steal(eattacker, 10);
|
||||
self thread [[level.store_player_damage_info_func]](eattacker, sweapon, smeansofdeath);
|
||||
}
|
||||
}
|
||||
@ -664,11 +664,20 @@ do_game_mode_shellshock()
|
||||
self._being_shellshocked = 0;
|
||||
}
|
||||
|
||||
add_grief_stun_score(attacker)
|
||||
stun_score_steal(attacker, score)
|
||||
{
|
||||
if(is_player_valid(attacker) && self.health < self.maxhealth)
|
||||
{
|
||||
attacker maps/mp/zombies/_zm_score::add_to_player_score(10);
|
||||
attacker maps/mp/zombies/_zm_score::add_to_player_score(score);
|
||||
}
|
||||
|
||||
if(self.score < score)
|
||||
{
|
||||
self maps/mp/zombies/_zm_score::minus_to_player_score(self.score);
|
||||
}
|
||||
else
|
||||
{
|
||||
self maps/mp/zombies/_zm_score::minus_to_player_score(score);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user