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

◆ DebugFreeAreaAtDoor()

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

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

141 {
142 int color = ARGB(20, 0, 255, 0);
143
144 vector transform[4];
145
146 vector extents;
147
148 extents[0] = horizontalExtents;
149 extents[1] = playerHeight;
150 extents[2] = horizontalExtents;
151
152 float speed = GetSpeedometerAbsolute();
153 if (speed > 8)
154 extents[2] = extents[2] * 6;
155 if (speed > 8)
156 extents[0] = 2;
157
158 if (!IsAreaAtDoorFree( currentSeat, maxAllowedObjHeight, extents, transform ))
159 {
160 color = ARGB(20, 255, 0, 0);
161 }
162
163 Shape shape = Debug.DrawBox(-extents * 0.5, extents * 0.5, color);
164 shape.SetMatrix(transform);
165 return shape;
166 }
string Debug()
Определения CachedEquipmentStorageBase.c:29
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
class DiagMenu Shape
don't call destructor directly. Use Destroy() instead
int ARGB(int a, int r, int g, int b)
Определения proto.c:322

Перекрестные ссылки ARGB(), Debug::DrawBox(), GetSpeedometerAbsolute(), IsAreaAtDoorFree() и Shape.