[IXModel] Don't load physpreset for ak74u

This commit is contained in:
momo5502 2017-01-18 14:55:02 +01:00
parent a24e68a83b
commit 4a4e938b00
11 changed files with 750 additions and 742 deletions

View File

@ -202,8 +202,16 @@ namespace Assets
asset->physPreset->sndAliasPrefix = reader.readCString(); asset->physPreset->sndAliasPrefix = reader.readCString();
} }
// This is an experiment, ak74 fails though
if (asset->name == "weapon_ak74u"s)
{
asset->physPreset = nullptr;
}
else
{
Components::AssetHandler::StoreTemporaryAsset(Game::XAssetType::ASSET_TYPE_PHYSPRESET, { asset->physPreset }); Components::AssetHandler::StoreTemporaryAsset(Game::XAssetType::ASSET_TYPE_PHYSPRESET, { asset->physPreset });
} }
}
if (asset->physCollmap) if (asset->physCollmap)
{ {