Increasing Max Melee Range

This forum is for discussions on how to edit what can not be edited through the txt files, needless to say this isn't about battle net hacking.

Moderators: Nefarius, Havvoric

Post Reply
User avatar
zjat
Junior Member
Champion of the Light
Posts: 306
Joined: Tue Jan 18, 2011 10:59 pm
Location: Citadel of Tartarus

Increasing Max Melee Range

Post by zjat » Wed Mar 24, 2021 7:33 pm

I'm looking to enhance the max range that players can have with weapons. As I understand it the melee range adder in weapons.txt has a limit of plus 4.
I'm using 1.13c. I believe I have found the function via: viewtopic.php?f=8&t=55531 at 22F20.

Code: Select all

00022F20   8B4424 04        MOV EAX,DWORD PTR SS:[ESP+4]
00022F24   85C0             TEST EAX,EAX
00022F26   74 17            JE SHORT 00022F3F
00022F28   8338 08          CMP DWORD PTR DS:[EAX],4
00022F2B   75 12            JNZ SHORT 00022F3F
00022F2D   8B40 04          MOV EAX,DWORD PTR DS:[EAX+4]
00022F30   50               PUSH EAX
00022F31   E8 6AEA0400      CALL 000719A0
00022F36   8A80 04010000    MOV AL,BYTE PTR DS:[EAX+104]
00022F3C   C2 0400          RETN 4
00022F3F   32C0             XOR AL,AL
00022F41   C2 0400          RETN 4
Anyone willing and able to point me in the right direction for increasing max melee range?

Edit:
For the time being, it seems this works

Code: Select all

00022F20   8B4424 04        MOV EAX,DWORD PTR SS:[ESP+4]
00022F24   85C0             TEST EAX,EAX
00022F26   74 17            JE SHORT 00022F3F
00022F28   90               NOP
00022F29   90               NOP
00022F2A   90               NOP
00022F2B   90               NOP
00022F2C   90               NOP
00022F2D   8B40 04          MOV EAX,DWORD PTR DS:[EAX+4]
00022F30   50               PUSH EAX
00022F31   E8 6AEA0400      CALL 000719A0
00022F36   8A80 04010000    MOV AL,BYTE PTR DS:[EAX+104]
00022F3C   C2 0400          RETN 4
00022F3F   32C0             XOR AL,AL
00022F41   C2 0400          RETN 4

Post Reply

Return to “Code Editing”