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

Grief: adjust player push amounts

This commit is contained in:
Jbleezy
2022-01-08 08:14:17 -08:00
parent 62fb2893c8
commit 68e4467ebd
2 changed files with 6 additions and 7 deletions

View File

@ -332,8 +332,8 @@
* Decreased stun time of unupgraded weapons from 0.75 seconds to 0.5 seconds
* Decreased stun time of upgraded weapons rom 0.75 seconds to 0.625 seconds
* Meleeing enemy players pushes 16.67% farther for every 500 damage that melee weapon deals
* Meleeing enemy players that are crouched pushes 37.5% of the amount when standing
* Meleeing enemy players that are prone pushes 18.75% of the amount when standing
* Meleeing enemy players that are crouched pushes 33.33% of the amount when standing
* Meleeing enemy players that are prone pushes 16.67% of the amount when standing
* Meleeing enemy players that are already stunned will push them
* Ballistic knife projectile pushes enemy players
* Stun fx is linked to the player

View File

@ -1330,8 +1330,8 @@ game_module_player_damage_callback( einflictor, eattacker, idamage, idflags, sme
{
is_melee = true;
dir = vdir;
amount = 425; // 48 units
amount += (amount / 7) * int(idamage / 500); // 16.67% increase every 500 damage
amount = 420; // 48 units
amount += (amount / 6.875) * int(idamage / 500); // 16.67% increase every 500 damage
if(self isOnGround())
{
@ -1340,16 +1340,15 @@ game_module_player_damage_callback( einflictor, eattacker, idamage, idflags, sme
if(self getStance() == "crouch")
{
amount /= 2.25; // 37.5%
amount /= 2.4; // 33.33%
}
else if(self getStance() == "prone")
{
amount /= 3.5; // 18.75%
amount /= 3.75; // 16.67%
}
}
dir = vectorNormalize(dir);
self setVelocity(amount * dir);
self store_player_damage_info(eattacker, sweapon, smeansofdeath);