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

Function IsLizardTargetBlocked

TombEngine/Objects/TR3/Entity/Lizard.cpp:67–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65 };
66
67 static bool IsLizardTargetBlocked(ItemInfo& item)
68 {
69 auto& creature = *GetCreatureInfo(&item);
70
71 return (creature.Enemy && creature.Enemy->BoxNumber != NO_VALUE &&
72 (g_Level.PathfindingBoxes[creature.Enemy->BoxNumber].flags & BLOCKABLE));
73 }
74
75 static void SpawnLizardGas(const ItemInfo& item, const CreatureBiteInfo& bite, float vel)
76 {

Callers 1

LizardControlFunction · 0.85

Calls 1

GetCreatureInfoFunction · 0.85

Tested by

no test coverage detected