What's new
What's new
Metin2Resources

👋 Welcome to Metin2Resources — your hub for professional Metin2 server development.

🚀 Join today and start building better.

[C++] FIX Protectie HitLimiter

EleMenT

Discord: element962
Staff member
Admin
Premium
📜 Messages 247
👍 Reactions 3,120
🏆 Points 425
This protection helps prevent certain hacks by adding a limit to actions, in order to stop spam/hack attempts.


  • The system configuration can be found in the constants.cpp file.
  • It is already configured, so you can leave it as is.

Here is a simple description of all the constants:


  • wHitLimiterBow: the time (in milliseconds) until the next bow attack (used to prevent BowHack).
  • wHitLimiterPoly: the time (in milliseconds) until the next attack when the player is transformed (poly).
  • lMaxDistanceDiff: the maximum distance allowed between two creatures that the player can attack. If the player attacks monster #1, and monster #2 is too far from #1, the player is using a distance hack (WH), and the hit will be blocked.
  • dwMinBlockedHitsToLog: if the number of blocked hits for a player in the current session reaches this value, they will be logged in the log.bright_protect_log file. Usually, if someone exceeds this limit, you can be 99% sure they are using a WH cheat.
 

Attachments

Latest posts

Back
Top Bottom