Raised This Month: $ Target: $400
 0% 

[L4D2] Gascan Announcer


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
BHaType
Great Tester of Whatever
Join Date: Jun 2018
Old 06-24-2021 , 07:29   Re: [L4D2] Gascan Announcer
Reply With Quote #20

Quote:
Originally Posted by cravenge View Post
I'm kinda confused why the conditional jump is being patched now instead of the flag on the next byte. Both offsets should be +1 to be correct.
These are just two ways to implement

the screenshot shows that after calling IsScavenge a conditional jump occurs 31 bytes ahead
This jump skips the SendGasCanDestroyMessage(void) call

so actual destination is = source address + number of bytes to jump + sizeof jmp
526368 = 526335 + 31 + 2

In first version I decided to replace 0x31 with 00 so that the jump does not skip the SendGasCanDestroyMessage call
In second version I decided to replace the jump with a NOP as it seemed to me a more accurate solution

But anyway is not much difference here both ways will work the same
__________________
cry
BHaType is offline
Send a message via AIM to BHaType
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:44.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode