INNER CODE UNIT · C++
index
TombEngine/TombEngine · TombEngine/Game/Setup.cpp:124
int index = boneIndex + (boneID * 4);
if (index < 0 || index >= g_Level.Bones.size())
{
TENLog(fmt::format("Failed to set rotation flag for bone ID {}.", boneID), LogLevel::Warning);
return;
}
g_Level.Bones[index] |= flags;
}
void ObjectInfo::SetHitEffect(HitEffect hitEffect)
{
this->hitEffect = hitEffect;
}
// NOTE: Use if object is alive, but not intelligent, to set up blood effects.
void ObjectInfo::SetHitEffect(bool isSolid, bool isAlive)
{