Skip to content

Commit

Permalink
Adjust diawalk threshold and movement history amount
Browse files Browse the repository at this point in the history
  • Loading branch information
kphoenix137 committed Feb 25, 2024
1 parent 91276f0 commit 5823a54
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Source/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ bool DoWalk(Player &player, int variant)
if (player.isOnArenaLevel()) {
if (player.calculateDiagonalMovementPercentage() > DiawalkDamageThreshold && player.isMyPlayer())
// Deal 5 HP worth of damage each diagonal movement multiplied by the amount of percent they are above the threshold.
NetSendCmdDamage(true, player, (player.calculateDiagonalMovementPercentage() - DiawalkDamageThreshold) * 5 * 64, DamageType::Physical);
NetSendCmdDamage(true, player, (player.calculateDiagonalMovementPercentage() - DiawalkDamageThreshold) * 1 * 64, DamageType::Physical);
}
break;
}
Expand Down
4 changes: 2 additions & 2 deletions Source/player.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ constexpr int PlayerNameLength = 32;
constexpr size_t NumHotkeys = 12;

// PVP REBALANCE: The percentage of diagonal movements that _pMovements reaches to take punitive action against that player in the arena.
constexpr int16_t DiawalkDamageThreshold = 60;
constexpr int8_t MaxMovementHistory = 30;
constexpr int16_t DiawalkDamageThreshold = 80;
constexpr int8_t MaxMovementHistory = 32;

/** Walking directions */
enum {
Expand Down

0 comments on commit 5823a54

Please sign in to comment.