AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   [TF2][HELP] Equipwearable Gamedata (https://forums.alliedmods.net/showthread.php?t=332256)

J0BL3SS 05-02-2021 04:13

[TF2][HELP] Equipwearable Gamedata
 
ive seen so many equipwearable gamedata files, but i still don't sure which one is most latest

example1:
Code:

"Games"
{
        "tf"
        {
                "Signatures"
                {
                        "CBasePlayer::EquipWearable"
                        {
                                "library"        "server"
                                "linux"                "@_ZN11CBasePlayer13EquipWearableEP13CEconWearable"
                                "windows"        "\x55\x8B\x2A\x51\x53\x8B\x2A\x2A\x57\x8B\x2A\x89\x2A\x2A\x85"
                                "mac"                "@_ZN11CBasePlayer13EquipWearableEP13CEconWearable"
                        }
                }
        }
}

example2:
Code:

"Games"
{
        /* Team Fortress 2 */
        "tf"
        {
                "Offsets"
                {
                        "EquipWearable"
                        {
                                "windows"        "430"
                                "linux"                "431"
                                "mac"                "431"
                        }
                }
        }
}

example3:
Code:

"Games"
{
        "tf"
        {
                "Offsets"
                {
                        "CBasePlayer::EquipWearable"
                        {
                                "linux"                "431"
                                "windows"        "430"
                        }
                }
        }
}

Spoiler

PC Gamer 05-02-2021 14:02

Re: [TF2][HELP] Equipwearable Gamedata
 
3 Attachment(s)
Example 2 is the one I use.

Making zombies is hard to do since it requires more than just equipping an item. See attached plugin for example. I should probably post this in the plugins section.

nosoop 05-02-2021 14:18

Re: [TF2][HELP] Equipwearable Gamedata
 
2 is the current version.

However, I'd recommend using TF2Util_EquipPlayerWearable from TF2 Utils so you don't have to maintain the offsets / SDKCall declarations yourself.

(Disclosure: I made this.)


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

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