DayZ 1.29
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 строка 121

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

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

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