Welcome to Ramleague,

Ramleague - the best site for pinoy chat, games chat and mobiles chat,

Sign Up
  1. Hello guest Guest , Are you tired from Ads? to remove some ads you need to register and be active. :D

[Source Code] WeaponSlot

Discussion in 'CrossFire Source Code & Tutorials' started by ACEOFEAGLE, Jul 27, 2020.

  1. ACEOFEAGLE RAML Expert
    Contributor Member Lvl2

    Joined:
    Dec 25, 2016
    Gender:
    Female
    Posts:
    1,310
    Reputation:
    743
    Thanks:
    994
    Bored

    WeaponSlot

    Code:
    void WeaponSlot1(int TargetSlot, int oldClip, int oldWeaponSlot, int old37064, int currentSelectAnimLength)
    {
       
    //    if ((*(int(__thiscall**)(void*))(*(DWORD*)this + 0x4C))(this) == 40)
    //    {
    //        if (*(DWORD*)(this + 0x650) == 83     // WeaponState
    //            && !(*(unsigned __int8(__thiscall**)(void*, signed int))(*(DWORD*)this + 332))(this, 83))
    //        {
    //            if (!(*(unsigned __int8(__thiscall**)(void*))(*(DWORD*)this + 2176))(this))
    //            {
    //                (*(void(__thiscall**)(void*, DWORD, signed int, signed int, signed int, DWORD))(*(DWORD*)this + 0x138))(
    //                    this,
    //                    0,
    //                    1,
    //                    1,
    //                    1,
    //                    0);
    //                (*(void(__thiscall**)(void*, signed int, signed int, signed int, DWORD, DWORD, DWORD))(*(DWORD*)this
    //                    + 0x148))(
    //                        this,
    //                        2,
    //                        1,
    //                        1065353216,
    //                        0,
    //                        0,
    //                        0);
    //            }
    //            goto LABEL_35;
    //        }
    //        if (*(BYTE*)(this + 0x1698))
    //        {
    //            *(BYTE*)(this + 0x1698) = 0;
    //            typedef int(__thiscall* sub_78FB5050Fn)(void*, char);
    //            reinterpret_cast<sub_78FB5050Fn>(CUtils::get()->GetCShell() + 0x2B5050)(this, 0);
    //        LABEL_35:
    //            (*(void(__thiscall**)(void*, signed int))(*(DWORD*)this + 0x48))(this, 1);
    //            goto LABEL_36;
    //        }
    //    }
    //LABEL_36:
    //    if ((*(unsigned __int8(__thiscall**)(void*))(*(DWORD*)this + 0x870))(this))
    //    {
    //        (*(void(__thiscall**)(void*))(*(DWORD*)this + 0x878))(this);
    //        //v10 = GetGUI_sub_795FAC40((int)&ADDR_ClientShell);
    //        //sub_7948CCA0(*(DWORD*)(v10 + 0x4E4));
    //        typedef int(__thiscall* GetGUI_sub_795FAC40)(void*);
    //        auto v10 = reinterpret_cast<GetGUI_sub_795FAC40>(CUtils::get()->GetCShell() + 0x8FAC40)(P::get()->g_pLTClientShell);
    //        typedef void(__thiscall* sub_7948CCA0Fn)(int);
    //        reinterpret_cast<sub_7948CCA0Fn>(CUtils::get()->GetCShell() + 0x78CCA0)(*(DWORD*)(v10 + 0x4E4));
    //    }
    //    if ((*(int(__thiscall**)(void*))(*(DWORD*)this + 0x4C))(this) == 51)
    //        (*(void(__thiscall**)(void*))(*(DWORD*)this + 0x924))(this);
    //
    //    if ((*(int(__thiscall**)(void*))(*(DWORD*)this + 0x4C))(this) == 6
    //        || (*(int(__thiscall**)(void*))(*(DWORD*)this + 0x4C))(this) == 38
    //        || (*(int(__thiscall**)(void*))(*(DWORD*)this + 0x4C))(this) == 40)
    //    {
    //        auto v17 = *(DWORD*)this;
    //        auto v18 = (*(int(__thiscall**)(void*))(*(DWORD*)this + 0x128))(this);
    //        (*(void(__thiscall**)(void*, int))(v17 + 0x358))(this, v18);
    //    }
    //
    //    vMSG_CS_REQ_CHANGEWEAPON(TargetSlot, oldClip, oldWeaponSlot, old37064, currentSelectAnimLength);
    //    (*(void(__thiscall**)(void*))(*(DWORD*)this + 0xB40))(this);
    //    //sub_78EFC2D0();
    //    /*result = */(*(int(__thiscall**)(void*, DWORD))(*(DWORD*)this + 0x6B8))(this, 0);
    //
    //    *(BYTE*)(this + 0x1624) = 0;
    //    *(BYTE*)(this + 0x162C) = 0;
    //    *(DWORD*)(this + 0x1628) = 0;
    
        (*(void(__thiscall**)(void*, DWORD, DWORD, DWORD, DWORD, DWORD))(*(DWORD*)this + 0x28))(
            this,
            TargetSlot,
            0,
            0,
            0,
            0);
    
        // Change Weapon
        (*(int(__thiscall**)(void*, DWORD, signed int, DWORD, signed int, DWORD))(*(DWORD*)this
            + 0x38))(
                this,
                TargetSlot,
                1,
                0,
                1,
                0);
    }
     
    FTL, zhyfrint and Jaymike Mods thanks this.
    • BE A GAMER - RAMLeague
  2. rusel bio True God Gamer
    Staff Member Level 1 Moderator Member Lvl2

    Joined:
    Feb 21, 2016
    Gender:
    Male
    Posts:
    807
    Reputation:
    104
    Thanks:
    244
    Location:
    @ Games\Crossfire 2.0\rez
    Curious
    cejas02nd

    bag slot? or weapon slot (main,sub,melee,throws)?​
     
  3. FTL Newbie Member

    FTL
    Joined:
    Aug 6, 2020
    Gender:
    Male
    Posts:
    2
    Reputation:
    0
    Thanks:
    0
    Angelic
    Nice ! /gewd2/gewd3
     

Tags for this Thread

:

Share This Page