MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / SwapShivaMeshToStone

Function SwapShivaMeshToStone

TombEngine/Objects/TR3/Entity/Shiva.cpp:188–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186 }
187
188 static void SwapShivaMeshToStone(ItemInfo& item, int jointIndex, bool spawnSmoke = true)
189 {
190 if (spawnSmoke)
191 SpawnShivaSmoke(GetJointPosition(&item, jointIndex).ToVector3(), item.RoomNumber);
192
193 item.Model.MeshIndex[jointIndex] = Objects[ID_SHIVA_STATUE].meshIndex + jointIndex;
194 }
195
196 static void SwapShivaMeshToNormal(ItemInfo& item, int jointIndex, bool spawnSmoke = true)
197 {

Callers 2

DoShivaMeshSwapFunction · 0.85
InitializeShivaFunction · 0.85

Calls 3

SpawnShivaSmokeFunction · 0.85
GetJointPositionFunction · 0.85
ToVector3Method · 0.45

Tested by

no test coverage detected