added new signal

This commit is contained in:
2024-05-28 04:21:39 +02:00
parent 766d5e9ca8
commit eb5733da97
6 changed files with 29 additions and 4 deletions

View File

@@ -107,4 +107,26 @@ float Vehicle_Speed() {
int Vehicle_DirectionIsForward() {
return car_can_direction == 0;
}
static bool unlocked = false;
bool Vehicle_UnlockedSignal() {
if (unlocked) {
if(Vehicle_isK15On()) {
unlocked = false;
last_unlock_message_time = UINT64_MAX;
}
}
if (!unlocked) {
if (Vehicle_gotUnlockMessage()) {
unlocked = true;
}
}
return unlocked;
}