Fethi Polat 1
Fethi Polat
xranzei 1
xranzei
Bvural41 1
Bvural41
kralhakan2009 1
kralhakan2009
noisiv 1
noisiv
Manwe Work 1
Manwe Work
Vahsi Uzman 1
Vahsi Uzman
Cannn6161 1
Cannn6161
B 1
berione65
sen272 1
sen272
Mt2Hizmet 1
Mt2Hizmet
Hikaye Ekle
Reklam vermek için turkmmo@gmail.com

C++ Texture Fix ℅100

Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

ROHAN2 WORLD 1-120 TR TİPİ OFFICIAL YOHARA, BALATHOR VE AMON! 80. GÜNÜNDE! +10.000 ONLİNE! HİLE VE BOT %100 ENGELLİ HEMEN TIKLA!

eyw eyw
 
Paylaşım için teşekkürler.
 
paylaşım için teşekkürler
 
konudaki kodlar


Kod:
Hello, 100% you saw this shit visual bug from some angle are white (npc)
 

Thing.cpp
Find ->

CGrannyMotion * CGraphicThing::GetMotionPointer(int iMotion)
After this function add this

int CGraphicThing::GetTextureCount() const
{
    if (!m_pgrnFileInfo)
        return 0;

    if (m_pgrnFileInfo->TextureCount <= 0)
        return 0;

    return (m_pgrnFileInfo->TextureCount);
}

const char * CGraphicThing::GetTexturePath(int iTexture)
{
    if(iTexture >= GetTextureCount())
        return "";

    return m_pgrnFileInfo->Textures[iTexture]->FromFileName;
}
Thing.h
Find ->

int GetMotionCount() const;
adD UNDER

        int                        GetTextureCount() const;
        const char *            GetTexturePath(int iTexture);
Open and find -> ActorInstanceData

Replace this
 

             CGraphicThing* pLODModelThing = pRaceData->GetLODModelThing();
             RegisterLODThing(0, pLODModelThing);
with this
 

            CGraphicThing* pLODModelThing = pRaceData->GetLODModelThing();

            bool canLOD = true;
            if (pModelThing && pLODModelThing) {
                if (pModelThing->GetTextureCount() == pLODModelThing->GetTextureCount()) {
                    for (int i = 0; i < pModelThing->GetTextureCount(); i++) {
                        if (strcmp(pModelThing->GetTexturePath(i), pLODModelThing->GetTexturePath(i)) != 0)
                            canLOD = false;
                    }
                } else {
                    canLOD = false;
                }
            }

            if(canLOD)
                RegisterLODThing(0, pLODModelThing);
 
56972032_836767023334596_8256243541798289408_n.png



Kod Blog Sırası
image.thumb.png.a800aadb467140ee4ffd1317a29fa450.png


Kanıtlar

Nu3fHUeSR26ZvihMBqi9_Q.png


neTIoUjmTwe9E0Y-b8ARjg.png
24 saat icerisinde link yenileyiniz
 
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

Şu an konuyu görüntüleyenler (Toplam : 0, Üye: 0, Misafir: 0)

Geri
Üst