mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-11 23:57:59 -05:00
Grief: melee prone enemy player sets to crouch
This commit is contained in:
@ -241,7 +241,8 @@
|
|||||||
* Players start each round with at least 10000 points
|
* Players start each round with at least 10000 points
|
||||||
* 2 lethal grenades and mines awarded each round
|
* 2 lethal grenades and mines awarded each round
|
||||||
* Unlimited barrier rebuild points
|
* 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
|
* Stunning enemy players steals 10 points from them
|
||||||
* Downing enemy players awards 5% of their current points
|
* Downing enemy players awards 5% of their current points
|
||||||
* Bleeding out enemy players awards 10% of your current points to all teammates
|
* Bleeding out enemy players awards 10% of your current points to all teammates
|
||||||
|
@ -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" )
|
if ( isDefined( eattacker ) && isplayer( eattacker ) && eattacker != self && eattacker.team != self.team && smeansofdeath == "MOD_MELEE" )
|
||||||
{
|
{
|
||||||
shellshock_override = true;
|
is_melee = true;
|
||||||
self applyknockback( idamage, vdir );
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user