Example #1
0
//------------------------------------------------------------------------
void CItem::CreateAttachmentHelpers(int slot)
{
	for(THelperVector::iterator it = m_sharedparams->helpers.begin(); it != m_sharedparams->helpers.end(); it++)
	{
		if(it->slot != slot)
			continue;

		CreateCharacterAttachment(slot, it->name.c_str(), CA_BONE, it->bone.c_str());
	}

	if(slot == eIGS_FirstPerson)
		CreateCharacterAttachment(slot, ITEM_ARMS_ATTACHMENT_NAME, CA_SKIN, 0);
}
Example #2
0
//------------------------------------------------------------------------
void CItem::CreateAttachmentHelpers(int slot)
{
    for (THelperVector::const_iterator it = m_sharedparams->helpers.begin(); it != m_sharedparams->helpers.end(); ++it)
        {
            if (it->slot != slot)
                continue;

            CreateCharacterAttachment(slot, it->name.c_str(), CA_BONE, it->bone.c_str());
        }
}