mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-12 08:08:00 -05:00
Grief: headstomp checks centroid of bottom player
This commit is contained in:
@ -296,8 +296,8 @@
|
|||||||
* Landing on top of an enemy player downs only the bottom player
|
* Landing on top of an enemy player downs only the bottom player
|
||||||
* Landing on top of an enemy player can be done at any stance
|
* Landing on top of an enemy player can be done at any stance
|
||||||
* Increased max radius for landing on top of an enemy player by 33%
|
* Increased max radius for landing on top of an enemy player by 33%
|
||||||
* Decreased max height for landing on top of an enemy player that is prone by 40%
|
|
||||||
* Decreased max height for landing on top of an enemy player that is crouched by 13%
|
* Decreased max height for landing on top of an enemy player that is crouched by 13%
|
||||||
|
* Decreased max height for landing on top of an enemy player that is prone by 47%
|
||||||
* Added kill feed (includes downs, revives, and bleed outs)
|
* Added kill feed (includes downs, revives, and bleed outs)
|
||||||
* Added player kills on scoreboard
|
* Added player kills on scoreboard
|
||||||
* Added player downed and bled out icons on scoreboard
|
* Added player downed and bled out icons on scoreboard
|
||||||
|
@ -371,21 +371,21 @@ headstomp_watcher()
|
|||||||
players = get_players();
|
players = get_players();
|
||||||
foreach(player in players)
|
foreach(player in players)
|
||||||
{
|
{
|
||||||
if(player != self && player.team != self.team && is_player_valid(player) && player isOnGround() && self.origin[2] > player.origin[2])
|
if(player != self && player.team != self.team && is_player_valid(player) && player isOnGround() && self.origin[2] > player getCentroid()[2])
|
||||||
{
|
{
|
||||||
max_horz_dist = 24;
|
max_horz_dist = 24;
|
||||||
max_vert_dist = 68;
|
max_vert_dist = 36;
|
||||||
|
|
||||||
if(player getStance() == "crouch")
|
if(player getStance() == "crouch")
|
||||||
{
|
{
|
||||||
max_vert_dist = 52;
|
max_vert_dist -= 10;
|
||||||
}
|
}
|
||||||
else if(player getStance() == "prone")
|
else if(player getStance() == "prone")
|
||||||
{
|
{
|
||||||
max_vert_dist = 36;
|
max_vert_dist -= 20;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(distance2d(self.origin, player.origin) <= max_horz_dist && (self.origin[2] - player.origin[2]) <= max_vert_dist)
|
if(distance2d(self.origin, player.origin) <= max_horz_dist && (self.origin[2] - player getCentroid()[2]) <= max_vert_dist)
|
||||||
{
|
{
|
||||||
player store_player_damage_info(self, "none", "MOD_FALLING");
|
player store_player_damage_info(self, "none", "MOD_FALLING");
|
||||||
player dodamage( 1000, (0, 0, 0) );
|
player dodamage( 1000, (0, 0, 0) );
|
||||||
|
Reference in New Issue
Block a user