bool CWeaponAttachmentManager::Init() { if(gEnv->bMultiplayer) { CreatePlayerBoneAttachments(); //Only create the attachment, some are needed return false; } else if(m_pOwner->GetActorSpecies()!=eGCT_HUMAN) return false; m_pItemSystem = g_pGame->GetIGameFramework()->GetIItemSystem(); CreatePlayerBoneAttachments(); CreatePlayerProjectedAttachments(); return true; }
bool CWeaponAttachmentManager::Init() { if(gEnv->bMultiplayer || m_pOwner->GetActorSpecies() != eGCT_HUMAN) { return false; } m_pItemSystem = g_pGame->GetIGameFramework()->GetIItemSystem(); CreatePlayerBoneAttachments(); return true; }