1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-10 15:17:57 -05:00

Grief: melee prone enemy player sets to crouch

This commit is contained in:
Jbleezy
2021-12-11 00:21:36 -08:00
parent 4ae2ee02d3
commit 13cd0b408c
2 changed files with 10 additions and 4 deletions

View File

@ -241,7 +241,8 @@
* Players start each round with at least 10000 points
* 2 lethal grenades and mines awarded each round
* Unlimited barrier rebuild points
* Players can be stunned from melee by enemy players while already stunned
* Meleeing enemy players that are already stunned will stun them again
* Meleeing enemy players that are prone will make them crouch
* Stunning enemy players steals 10 points from them
* Downing enemy players awards 5% of their current points
* Bleeding out enemy players awards 10% of your current points to all teammates

View File

@ -995,14 +995,19 @@ game_module_player_damage_callback( einflictor, eattacker, idamage, idflags, sme
}
}
shellshock_override = false;
is_melee = false;
if ( isDefined( eattacker ) && isplayer( eattacker ) && eattacker != self && eattacker.team != self.team && smeansofdeath == "MOD_MELEE" )
{
shellshock_override = true;
is_melee = true;
self applyknockback( idamage, vdir );
if(self getstance() == "prone")
{
self setStance("crouch");
}
}
if ( is_true( self._being_shellshocked ) && !shellshock_override )
if ( is_true( self._being_shellshocked ) && !is_melee )
{
return;
}