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

Function CreateItem

TombEngine/Game/items.cpp:723–735  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

721}
722
723short CreateItem()
724{
725 if (NextItemFree == NO_VALUE)
726 return NO_VALUE;
727
728 short itemNumber = NextItemFree;
729 g_Level.Items[NextItemFree].Flags = 0;
730 NextItemFree = g_Level.Items[NextItemFree].NextItem;
731
732 g_Level.Items[itemNumber].DisableInterpolation = true;
733
734 return itemNumber;
735}
736
737void InitializeItemArray(int totalItem)
738{

Callers 15

SpawnItemFunction · 0.70
CreateSkidooGunFunction · 0.50
TribesmanShotDartFunction · 0.50
BigGunFireFunction · 0.50
SpawnSkateboardFunction · 0.50
ControlDartEmitterFunction · 0.50
SubmarineAttackFunction · 0.50
SpawnShieldFunction · 0.50
SpawnShockwaveExplosionFunction · 0.50
EnemyJeepLaunchGrenadeFunction · 0.50
SasFireGrenadeFunction · 0.50
UseClockworkBeetleFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected