AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   Solved [TF2] Signature for CTFPlayer::RemoveObject (https://forums.alliedmods.net/showthread.php?t=325553)

PC Gamer 06-27-2020 00:53

[TF2] Signature for CTFPlayer::RemoveObject
 
2 Attachment(s)
Team,

Does anyone have the latest Windows signature for CTFPlayer::RemoveObject?

Since the last TF2 update the signature for it is no longer valid.

The signature is used by the Building Ownage plugin created by the talented Pelipoika. The plugin allows you to look at a Sentry, type !ownit, and the sentry will now belong to you.

Gamedata:
PHP Code:

            "CTFPlayer::RemoveObject" //"mvm_mission_update"
            
{
                
"library"    "server"
                "windows"    "\x55\x8B\xEC\x8B\xD1\x56\x8B\xB2\x7C\x21\x00\x00"
                "linux"        "@_ZN9CTFPlayer12RemoveObjectEP11CBaseObject"
            



Shadowysn 07-17-2020 02:39

Re: [TF2] Signature for CTFPlayer::RemoveObject
 
Oddly enough, I just had to shorten the signature by a few bytes to get a function that is structured and called the same as the function on the Linux binary.

PHP Code:

    "CTFPlayer::RemoveObject"
    
{
        
"library"    "server"
        "windows"    "\x55\x8B\x2A\x8B\xD1\x56\x8B\xB2"
        "linux"        "@_ZN9CTFPlayer12RemoveObjectEP11CBaseObject"
    


Haven't tried it out in-game, but it should hopefully work.

PC Gamer 07-17-2020 11:53

Re: [TF2] Signature for CTFPlayer::RemoveObject
 
Testing and confirmed working. Thanks Shadowysn!
:bacon!:


All times are GMT -4. The time now is 23:51.

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