Jump to content

[HELP] with the sash system


Recommended Posts

tried to install this system 3 times but i keep getting the same errors

GameLib/ActorInstanceAttach.cpp

Error:

Spoiler

Error    C2039    'PART_SASH': is not a member of 'CRaceData'

Error    C2065    'PART_SASH': undeclared identifier 

Code:

Spoiler

#ifdef ENABLE_SASH_SYSTEM
void CActorInstance::AttachSash(CItemData * pItemData, float fSpecular)
{
    if (!pItemData)
    {
        RegisterModelThing(CRaceData::PART_SASH, NULL);
        SetModelInstance(CRaceData::PART_SASH, CRaceData::PART_SASH, 0);
        RefreshActorInstance();
        return;
    }
    
    RegisterModelThing(CRaceData::PART_SASH, pItemData->GetModelThing());
    SetModelInstance(CRaceData::PART_SASH, CRaceData::PART_SASH, 0);
    AttachModelInstance(CRaceData::PART_MAIN, "Bip01 Spine2", CRaceData::PART_SASH);
    
    if (fSpecular > 0.0f)
    {
        SMaterialData kMaterialData;
        kMaterialData.pImage = NULL;
        kMaterialData.isSpecularEnable = TRUE;
        kMaterialData.fSpecularPower = fSpecular;
        kMaterialData.bSphereMapIndex = 1;
        SetMaterialData(CRaceData::PART_SASH, NULL, kMaterialData);
    }
}
#endif

Image:

Spoiler

spacer.png

 

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.