Raised This Month: $32 Target: $400
 8% 

[L4D2] Gascan Announcer


Post New Thread Reply   
 
Thread Tools Display Modes
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 10-04-2020 , 20:13   Re: [L4D2] Gascan Announcer
Reply With Quote #11

This is why byte matching should be used before overwriting some unknown/unverified location just because the signature is still valid.

New gamedata offsets:

Code:
				"windows"		"729"
				"linux"		"1089"
Untested.
__________________
Silvers is offline
BHaType
Great Tester of Whatever
Join Date: Jun 2018
Old 10-20-2020 , 03:10   Re: [L4D2] Gascan Announcer
Reply With Quote #12

- Updated GameData offsets ( Thanks to Silvers )
__________________
cry
BHaType is offline
Send a message via AIM to BHaType
vikingo12
Member
Join Date: Nov 2018
Old 12-30-2020 , 17:45   Re: [L4D2] Gascan Announcer
Reply With Quote #13

Is it possible to make spitter explode gas cans in coop like in scavenge?
vikingo12 is offline
rtokuda
Senior Member
Join Date: Dec 2019
Old 01-12-2021 , 12:25   Re: [L4D2] Gascan Announcer
Reply With Quote #14

It doesn't work anymore
rtokuda is offline
cravenge
Veteran Member
Join Date: Nov 2015
Location: Chocolate Factory
Old 03-13-2021 , 03:31   Re: [L4D2] Gascan Announcer
Reply With Quote #15

Quote:
Originally Posted by rtokuda View Post
It doesn't work anymore
Windows still works fine so must be a Linux issue.

Last edited by cravenge; 03-13-2021 at 03:31.
cravenge is offline
BHaType
Great Tester of Whatever
Join Date: Jun 2018
Old 06-23-2021 , 02:20   Re: [L4D2] Gascan Announcer
Reply With Quote #16

Updated
PHP Code:
Fixed offsets 
__________________
cry
BHaType is offline
Send a message via AIM to BHaType
cravenge
Veteran Member
Join Date: Nov 2015
Location: Chocolate Factory
Old 06-24-2021 , 03:06   Re: [L4D2] Gascan Announcer
Reply With Quote #17

Quote:
Originally Posted by BHaType View Post
Updated
PHP Code:
Fixed offsets 
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.

Last edited by cravenge; 06-24-2021 at 03:08.
cravenge is offline
BHaType
Great Tester of Whatever
Join Date: Jun 2018
Old 06-24-2021 , 07:29   Re: [L4D2] Gascan Announcer
Reply With Quote #18

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
cravenge
Veteran Member
Join Date: Nov 2015
Location: Chocolate Factory
Old 07-08-2021 , 20:11   Re: [L4D2] Gascan Announcer
Reply With Quote #19

After 2.2.2.0 update:
PHP Code:
"Offsets"
{
    
"iOffset"
    
{
        
"windows"    "756"
        "linux"        "1413"
    
}


Last edited by cravenge; 07-08-2021 at 21:49. Reason: Got the offset for Linux wrong
cravenge is offline
BHaType
Great Tester of Whatever
Join Date: Jun 2018
Old 07-08-2021 , 21:01   Re: [L4D2] Gascan Announcer
Reply With Quote #20

Updated
PHP Code:
Fixed offsets (thanks to cravenge
__________________
cry
BHaType is offline
Send a message via AIM to BHaType
Reply



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 13:07.


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