1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-12 16:18:00 -05:00

Encounter: melee already stunned player change

This commit is contained in:
Jbleezy
2022-08-12 00:47:32 -07:00
parent 4de3bb7410
commit a907ad7dcb
2 changed files with 9 additions and 2 deletions

View File

@ -449,7 +449,7 @@
* Meleeing enemy players that are reviving pushes 25% of the amount when standing * Meleeing enemy players that are reviving pushes 25% of the amount when standing
* Meleeing enemy players that are crouched pushes 75% of the amount when standing * Meleeing enemy players that are crouched pushes 75% of the amount when standing
* Meleeing enemy players that are prone pushes 50% of the amount when standing * Meleeing enemy players that are prone pushes 50% of the amount when standing
* Meleeing enemy players that are already stunned will push them * Meleeing enemy players that are already stunned from weapons will push and restun them
* Ballistic knife projectile pushes enemy players * Ballistic knife projectile pushes enemy players
* Claymores are no longer triggered by enemy players * Claymores are no longer triggered by enemy players
* Stun fx is linked to the player * Stun fx is linked to the player

View File

@ -1664,6 +1664,11 @@ game_module_player_damage_callback( einflictor, eattacker, idamage, idflags, sme
} }
} }
if ( is_true( self._being_pushed ) )
{
return;
}
is_melee = false; is_melee = false;
if(isDefined(eattacker) && isplayer(eattacker) && eattacker != self && eattacker.team != self.team && (smeansofdeath == "MOD_MELEE" || issubstr(sweapon, "knife_ballistic"))) if(isDefined(eattacker) && isplayer(eattacker) && eattacker != self && eattacker.team != self.team && (smeansofdeath == "MOD_MELEE" || issubstr(sweapon, "knife_ballistic")))
{ {
@ -1700,7 +1705,7 @@ game_module_player_damage_callback( einflictor, eattacker, idamage, idflags, sme
self store_player_damage_info(eattacker, sweapon, smeansofdeath); self store_player_damage_info(eattacker, sweapon, smeansofdeath);
} }
if ( is_true( self._being_shellshocked ) ) if ( is_true( self._being_shellshocked ) && !is_melee )
{ {
return; return;
} }
@ -1774,9 +1779,11 @@ do_game_mode_shellshock(is_melee, is_upgraded)
} }
self._being_shellshocked = 1; self._being_shellshocked = 1;
self._being_pushed = is_melee;
self shellshock( "grief_stab_zm", time ); self shellshock( "grief_stab_zm", time );
wait 0.75; wait 0.75;
self._being_shellshocked = 0; self._being_shellshocked = 0;
self._being_pushed = 0;
} }
stun_score_steal(attacker, score) stun_score_steal(attacker, score)