Jump to content

[HELP] with the sash system


catiswater77

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Similar Content

  • Activity

    1. 0

      Connection problem

    2. 0

      Sanii Switchbot problem

    3. 4

      In game Shop ProfEnte V2

    4. 1268

      [40250] Reference Serverfile + Client + Src [15 Available Languages]

    5. 5
    6. 1268

      [40250] Reference Serverfile + Client + Src [15 Available Languages]

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • 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.