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] Mutant Check

Discussion in 'CrossFire Source Code & Tutorials' started by ACEOFEAGLE, Feb 23, 2019.

  1. ACEOFEAGLE RAML Expert
    Contributor Member Lvl2

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

    Mutant Check

    the correct way for Mutant Check

    Code:
    enum mSubType
    {
        SUBTYPE_MUTANT = 4
    };
    
    class CWeaponMgr
    {
    public:
        __int32 SubType() const
        {
            return (int)*(BYTE*)((uintptr_t)this + 0xE40);
        }
    }
    
    class CCharacFX
    {
    public:
        CWeaponMgr* GetWeapon() //credits: dreek
        {     
           return *reinterpret_cast<CWeaponMgr**>((uintptr_t)this + 0xEEF8);
        }
    
        bool IsMutant()
        {
            if (this) {
                if (this->GetWeapon()) {
                    if (this->GetWeapon()->SubType() == mSubType::SUBTYPE_MUTANT) {
                        return true;
                    }
                    else {
                        if (*(DWORD*)((uintptr_t)this + 0xEF14)) {
                            if (this->GetWeapon()->SubType() == mSubType::SUBTYPE_MUTANT) {
                                return true;
                            }
                        }
    
                    }
                }
            }
            return false;
        }
    }
    
     //reference
     (WeaponIndex 120 )
     (WeaponClass 7 )
     (ModeLimitedWeapon 1 )
     (PairWeapon 1 )
     (SubType 4 ) // Mutant Weapon
     (WeaponName "NANOKNIFE" )
     (ModelFileName "Models\Weapons\QV_Nano_knife_RE.ltb" )
     (LeftHandModelFileName "Models\Weapons\QV_Nano_knife_RE.ltb" )
     (SkinFileName "ModelTextures\Weapons\QV_Nano_knife.dtx" )
     (RenderStyleFileName "RS\\NinjaTranslucent.ltb" )
     (PViewModelFileName "Models\PlayerView\PV_Nano_knife" )
     (PViewSkinFileName "ModelTextures\PlayerView\PV_Nano_knife.dtx" )
     (PViewRenderStyleFileName "RS\\PVModelDefault.ltb" )
     (ShotSoundName "NanoKnifeShot" )
     (KnifeHitSoundName "KnifeHit" )
    
     
    • BE A GAMER - RAMLeague
  2. teng66 Newbie Member

    teng66
    Joined:
    Jan 27, 2020
    Posts:
    1
    Reputation:
    0
    Thanks:
    0
    Can you update the offset again for it?
     
Loading...

Advertisement

Similar Threads Forum Date
Biomutant v1 2a-GOG PC Games Jun 27, 2021
Biomutant v1 1-GOG PC Games Jun 6, 2021
BIOMUTANT (v1.3.0 + Mercenary Class DLC, MULTi14) [FitGirl Repackư PC Games May 29, 2021
Biomutant v1 0a-GOG PC Games May 29, 2021
BIOMUTANT GOG PC Games May 26, 2021
BIOMUTANT-CODEX PC Games May 26, 2021

Tags for this Thread

:

Share This Page