1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-04-01 15:06:43 +00:00

Load extra animations for NPCs

This commit is contained in:
Chris Robinson 2013-02-05 18:09:43 -08:00
parent 8b1e7b95ba
commit 535cd8360f

View file

@ -120,6 +120,14 @@ NpcAnimation::NpcAnimation(const MWWorld::Ptr& ptr, Ogre::SceneNode* node, MWWor
base->setRenderQueueGroup(transparent ? RQG_Alpha : RQG_Main); base->setRenderQueueGroup(transparent ? RQG_Alpha : RQG_Main);
} }
if(!mNpc->isMale() && !isBeast)
insertSkeletonSource("meshes\\base_anim_female.nif");
else if(mBodyPrefix.find("argonian") != std::string::npos)
insertSkeletonSource("meshes\\argonian_swimkna.nif");
if(mNpc->mModel.length() > 0)
insertSkeletonSource("meshes\\"+Misc::StringUtils::lowerCase(mNpc->mModel));
float scale = race->mData.mHeight.mMale; float scale = race->mData.mHeight.mMale;
if (!mNpc->isMale()) { if (!mNpc->isMale()) {
scale = race->mData.mHeight.mFemale; scale = race->mData.mHeight.mFemale;