Informations
Jump to content

Lorem Ipsum...

Click to Dismiss this Notification
Ładowanie danych...

Recommended Posts

In this guide, I will explain how to disable auto-attack functionality specifically on certain maps to enhance gameplay balance in PVP scenarios. By making these changes, you can prevent unwanted automatic attacks when players are in designated areas.

Code Modifications

Step 1: Update PythonPlayerInput.cpp

  1. Open the File
    Navigate to the binsrc/UserInterface/PythonPlayerInput.cpp file, which handles player input and actions.

  2. Find the Auto-Attack Code
    Look for the following block of code:

     
  • This is the hidden content, please

     

  • Replace it with Enhanced Code
    Update this section with the following code to introduce map-specific restrictions on auto-attacks:

     
  1. This is the hidden content, please

     

Explanation of the Changes

  • Defining the Macro: The macro ENABLE_BLOCK_AUTO_IN_MAP1 allows you to toggle the auto-attack blocking feature.

  • Checking the Current Map: The code retrieves the current map name where the player is located and checks it against a predefined list of maps where auto-attacks should be disabled.

  • Boolean Logic: If the player is not on any of the specified maps, the auto-attack functionality is allowed to proceed as normal.

 

By implementing these changes, you can effectively block auto-attacks in sensitive areas like PVP zones, fostering a fairer gaming environment. This adjustment enhances gameplay strategy and encourages more thoughtful player interactions.

Link to comment
Share on other sites


Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

spacer.png

Disable AdBlock
The popup will be closed in 5 seconds...