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

◆ StandUp()

bool FlammableBase::StandUp ( )
inlineprotected

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

403 {
404 string surface_type;
405 vector position = GetPosition();
406 g_Game.SurfaceGetType ( position[0], position[2], surface_type );
407 bool is_surface_soft = g_Game.IsSurfaceDigable(surface_type);
408
409 if ( is_surface_soft && !IsRuined() )
410 {
411 vector ori_rotate = "0 0 0";
412 ori_rotate[0] = Math.RandomFloat(0, 360);
413 ori_rotate[1] = Math.RandomFloat(0, 10);
414 SetOrientation(ori_rotate);
415
416 return true; // I am standing up
417 }
418
419 return false; // I am NOT standing up
420 }
DayZGame g_Game
Определения DayZGame.c:3942
vector GetPosition()
Get the world position of the Effect.
Определения Effect.c:473

Перекрестные ссылки g_Game, GetPosition() и Math::RandomFloat().

Используется в OnInventoryExit().