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

Encounter: melee enemy player changes stance

Remove upgraded weapon longer stun
Remove upgraded meleee weapon farther push
This commit is contained in:
Jbleezy
2022-09-08 14:33:37 -07:00
parent eb885965b1
commit b76b2297f3
2 changed files with 11 additions and 19 deletions

View File

@ -1676,18 +1676,9 @@ game_module_player_damage_callback( einflictor, eattacker, idamage, idflags, sme
is_melee = true;
dir = vdir;
amount = 420; // 48 units
amount += (amount / 6.875) * int(idamage / 500); // 16.67% increase every 500 damage
if(self maps/mp/zombies/_zm_laststand::is_reviving_any())
{
amount /= 1.775; // 50%
}
if(self isOnGround())
{
// don't move vertically if on ground
dir = (dir[0], dir[1], 0);
if(self getStance() == "crouch")
{
amount /= 1.775; // 50%
@ -1697,6 +1688,13 @@ game_module_player_damage_callback( einflictor, eattacker, idamage, idflags, sme
amount /= 2.95; // 25%
}
}
else if(self isOnGround())
{
// don't move vertically if on ground
dir = (dir[0], dir[1], 0);
self setStance("stand");
}
//self thread origin_test();
@ -1780,10 +1778,6 @@ do_game_mode_shellshock(is_melee, is_upgraded)
{
time = 0.75;
}
else if(is_upgraded)
{
time = 0.5;
}
self._being_shellshocked = 1;
self._being_pushed = is_melee;