Merge pull request #27 from ThatKakiGuy/tp_to_obj

feat(Teleport): Teleport to objective
This commit is contained in:
Yimura 2021-12-29 15:11:31 +01:00 committed by GitHub
commit 9a6326fb49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,6 +16,20 @@ namespace big
}QUEUE_JOB_END_CLAUSE
}
if (ImGui::Button("Objective"))
{
QUEUE_JOB_BEGIN_CLAUSE()
{
static const int blips[] = {1, 57, 128, 129, 130, 143, 144, 145, 146, 271, 286, 287, 288};
for (int i = 0; i < (sizeof(blips)/sizeof(*blips)); i++) {
if (teleport::to_blip(blips[i], 5)) {
break;
}
}
}QUEUE_JOB_END_CLAUSE
}
ImGui::EndTabItem();
}
}