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

Function SwapShivaMeshToNormal

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

Source from the content-addressed store, hash-verified

194 }
195
196 static void SwapShivaMeshToNormal(ItemInfo& item, int jointIndex, bool spawnSmoke = true)
197 {
198 if (spawnSmoke)
199 SpawnShivaSmoke(GetJointPosition(&item, jointIndex).ToVector3(), item.RoomNumber);
200
201 item.Model.MeshIndex[jointIndex] = Objects[ID_SHIVA].meshIndex + jointIndex;
202 }
203
204 static bool DoShivaMeshSwap(ItemInfo& item, bool isDead)
205 {

Callers 1

DoShivaMeshSwapFunction · 0.85

Calls 3

SpawnShivaSmokeFunction · 0.85
GetJointPositionFunction · 0.85
ToVector3Method · 0.45

Tested by

no test coverage detected