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

◆ IsAreaAtDoorFree()

override bool Transport::IsAreaAtDoorFree ( int currentSeat,
float maxAllowedObjHeight = 0.5,
float horizontalExtents = 0.5,
float playerHeight = 1.7 )
inlineprotected

См. определение в файле Car.c строка 117

118 {
119 vector transform[4];
120
121 vector extents;
122
123 extents[0] = horizontalExtents;
124 extents[1] = playerHeight;
125 extents[2] = horizontalExtents;
126
127 float speed = GetSpeedometerAbsolute();
128 if (speed > 8)
129 extents[2] = extents[2] * 6;
130 if (speed > 8)
131 extents[0] = 2;
132
133 return IsAreaAtDoorFree( currentSeat, maxAllowedObjHeight, extents, transform );
134 }
float GetSpeedometerAbsolute()
Returns the current speed of the vehicle in km/h. Value is absolute.
Определения Car.c:112
override bool IsAreaAtDoorFree(int currentSeat, float maxAllowedObjHeight=0.5, float horizontalExtents=0.5, float playerHeight=1.7)
Определения Car.c:117

Перекрестные ссылки GetSpeedometerAbsolute() и IsAreaAtDoorFree().

Используется в ActionGetInTransport::ActionCondition(), ActionGetOutTransport::ActionCondition(), EntityAI::DebugFreeAreaAtDoor(), DebugFreeAreaAtDoor(), EntityAI::IsAreaAtDoorFree() и IsAreaAtDoorFree().