Advertisement
Guest User

simple anticheat

a guest
Jun 4th, 2011
285
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 2.02 KB | None | 0 0
  1. Index: java/com/l2jserver/gameserver/network/clientpackets/MoveBackwardToLocation.java
  2. ===================================================================
  3. --- java/com/l2jserver/gameserver/network/clientpackets/MoveBackwardToLocation.java (revision 4652)
  4. +++ java/com/l2jserver/gameserver/network/clientpackets/MoveBackwardToLocation.java (working copy)
  5. @@ -112,10 +112,13 @@
  6.             return;
  7.         }
  8.        
  9. -       if (_moveMovement == 0 && Config.GEODATA < 1) // cursor movement without geodata is disabled
  10. +       if (_moveMovement == 0 && (Config.DISALLOW_KEYBOARD_MOVE || Config.GEODATA < 1) && !activeChar.isGM() && !activeChar.isFlyingMounted())
  11. +               /** Deedlit: the following check is commented out, to solve possibility to go through closed doors by players, by repeatedly trying to
  12. +                * move character using eg. arrow keys on the keyboard. Dont use that for flying transforms, as it will be hard to control char */
  13.         {
  14.             activeChar.sendPacket(ActionFailed.STATIC_PACKET);
  15. -       }
  16. +           return;
  17. +       }      
  18.         else
  19.         {
  20.             double dx = _targetX - _curX;
  21. Index: java/config/General.properties
  22. ===================================================================
  23. --- java/config/General.properties  (revision 4652)
  24. +++ java/config/General.properties  (working copy)
  25. @@ -869,6 +869,10 @@
  26.  # balanced in the teleport to the arena
  27.  HBCEFairPlay = True
  28.  
  29. +# Disallow movements using keyboard for players not being in flying transform state.
  30. +# Helps with few cheats like using oly doors for unfair fight, passing through closed doors,
  31. +# using mounts to go pass gates, wall etc...
  32. +DisableKeyboardMovement = True
  33.  # ---------------------------------------------------------------------------
  34.  # Developer Settings
  35.  # ---------------------------------------------------------------------------
  36. @@ -898,4 +902,7 @@
  37.  
  38.  # Don't load spawntable.
  39.  # Default: False
  40. -AltDevNoSpawns = False
  41. \ No newline at end of file
  42. +AltDevNoSpawns = False
  43. +
  44. +# Community Server communication debugging on or off
  45. +CSPacketHandlerDebug = False
  46. \ No newline at end of file
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement