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

◆ StandUp()

bool FlammableBase::StandUp ( )
inlineprotected

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

396 {
397 string surface_type;
398 vector position = GetPosition();
399 GetGame().SurfaceGetType ( position[0], position[2], surface_type );
400 bool is_surface_soft = GetGame().IsSurfaceDigable(surface_type);
401
402 if ( is_surface_soft && !IsRuined() )
403 {
404 vector ori_rotate = "0 0 0";
405 ori_rotate[0] = Math.RandomFloat(0, 360);
406 ori_rotate[1] = Math.RandomFloat(0, 10);
407 SetOrientation(ori_rotate);
408
409 return true; // I am standing up
410 }
411
412 return false; // I am NOT standing up
413 }
bool IsSurfaceDigable(string surface)
Checks if the surface is digable.
Определения Game.c:1156
proto float SurfaceGetType(float x, float z, out string type)
Returns: Y position the surface was found.
proto native CGame GetGame()
class JsonUndergroundAreaTriggerData GetPosition
Определения UndergroundAreaLoader.c:9

Перекрестные ссылки GetGame(), GetPosition, CGame::IsSurfaceDigable(), Math::RandomFloat() и CGame::SurfaceGetType().

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