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

Function ShootFireball

TombEngine/Objects/TR4/Entity/tr4_mutant.cpp:142–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140 }
141
142 void ShootFireball(Pose* src, MissileRotationType rotationType, short roomNumber, int timer)
143 {
144 switch (rotationType)
145 {
146 case MissileRotationType::Left:
147 src->Orientation.y -= GetRandomControl() % 0x2000;
148 break;
149
150 case MissileRotationType::Right:
151 src->Orientation.y += GetRandomControl() % 0x2000;
152 break;
153 }
154
155 TriggerCrocgodMissile(src, roomNumber, timer);
156 }
157
158 bool ShootFrame(ItemInfo* item)
159 {

Callers 1

CrocgodControlFunction · 0.85

Calls 2

GetRandomControlFunction · 0.85
TriggerCrocgodMissileFunction · 0.85

Tested by

no test coverage detected