Working built in reverse for movementAI

This commit is contained in:
David Markowitz
2023-08-06 23:40:30 -07:00
parent 3e12dd782b
commit 6a5ff30a32
4 changed files with 19 additions and 8 deletions

View File

@@ -301,7 +301,7 @@ void SGCannon::OnActivityTimerDone(Entity* self, const std::string& name) {
pathWaypoints.push_back(waypoint.position);
}
movementAI->SetPath(pathWaypoints, true);
movementAI->SetPath(pathWaypoints, GeneralUtils::GenerateRandomNumber<float>(0, 1) > 0.5f);
enemy->AddDieCallback([this, self, enemy, name]() {
RegisterHit(self, enemy, name);