DayZ 1.30
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ CanReachSeatFromSeat()

override bool OffroadHatchback::CanReachSeatFromSeat ( int currentSeat,
int nextSeat )
inlineprotected

См. определение в файле Vehicles/InheritedCars/OffroadHatchback.c строка 399

400 {
401 if (nextSeat == 0 && GetAnimationPhase("SeatDriver") > 0.5)
402 return false;
403
404 if (nextSeat == 1 && GetAnimationPhase("SeatCoDriver") > 0.5)
405 return false;
406
407 switch (currentSeat)
408 {
409 case 0:
410 return nextSeat == 1;
411
412 case 1:
413 return nextSeat == 0;
414
415 case 2:
416 return nextSeat == 3;
417
418 case 3:
419 return nextSeat == 2;
420 }
421
422 return false;
423 }