Thread: [Solved] Skip an instruction?
View Single Post
nosoop
Veteran Member
Join Date: Aug 2014
Old 09-09-2018 , 21:57   Re: Skip an instruction?
Reply With Quote #9

Quote:
Originally Posted by Spirit_12 View Post
All I'm doing to NOP is changing the first byte of the instruction to 90. Am I supposed to change all the bytes?
Thank you for the explanation.
Yes; NOP consumes no other bytes, so it reads the next byte as an instruction.

Also, since I cracked open IDA to see what you're actually looking at, patch 007F39F8 to use an unconditional jump and skip all three event calls. Pretty sure you can do one of the following:
  • NOP the first byte then JMP on second
  • Patch the near jump to use JNO so it always jumps (only requires modification of the second byte)
Spoke too soon; didn't see the entity check after the second branch. Unless you want to do a jump straight to that branch, just NOP the jumps.
__________________
I do TF2, TF2 servers, and TF2 plugins.
I don't do DMs over Discord -- PM me on the forums regarding inquiries.
AlliedModders Releases / Github / TF2 Server / Donate (BTC / BCH / coffee)

Last edited by nosoop; 09-09-2018 at 23:11. Reason: tone
nosoop is offline