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

Function AddActiveItem

TombEngine/Game/items.cpp:394–411  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

392}
393
394void AddActiveItem(short itemNumber)
395{
396 auto* item = &g_Level.Items[itemNumber];
397 item->Flags |= IFLAG_TRIGGERED;
398
399 if (Objects[item->ObjectNumber].control == nullptr)
400 {
401 item->Status = ITEM_NOT_ACTIVE;
402 return;
403 }
404
405 if (!item->Active)
406 {
407 item->Active = true;
408 item->NextActive = NextItemActive;
409 NextItemActive = itemNumber;
410 }
411}
412
413void ItemNewRoom(short itemNumber, short roomNumber)
414{

Callers 15

InitializeSkidooFunction · 0.85
SpeedboatPlayerCollisionFunction · 0.85
SpawnLizardFunction · 0.85
TribesmanShotDartFunction · 0.85
BigGunFireFunction · 0.85
InitializeCorpseFunction · 0.85
ControlCorpseFunction · 0.85
SpawnSkateboardFunction · 0.85
PuzzleDoneFunction · 0.85
UnderwaterDoorCollisionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected