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

◆ SpawnDecal()

void SpawnDecal ( )
private

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

38 {
39 if (m_Decal)
40 return;
41
42 #ifndef SERVER
43 #ifndef NO_GUI
44 m_Decal = g_Game.CreateObjectEx(
46 m_Parent.GetPosition() + m_Settings.m_PositionOffset,
48 );
49
50 if (m_Decal)
51 {
52 if (m_Settings.m_RandomizeRotation)
53 {
54 vector v;
55 v[0] = Math.RandomFloat(-Math.PI, Math.PI);
56 m_Decal.SetOrientation(v * Math.RAD2DEG);
57 }
58
59 m_Decal.SetScale(m_Settings.m_ScaleMin);
60 }
61 #endif
62 #endif
63 }
Entity m_Parent
Определения CachedEquipmentStorageBase.c:17
const int ECE_LOCAL
Определения CentralEconomy.c:25
const int ECE_PLACE_ON_SURFACE
Определения CentralEconomy.c:38
DayZGame g_Game
Определения DayZGame.c:4074
Object m_Decal
string GetObjectNameFromSurfaceConfig(string surfaceParamName=SURFACE_PARAM_DECAL_NAME)
ref UnderObjectDecalSpawnSettings m_Settings
Определения EnMath.c:7
Определения EnConvert.c:119
static proto float RandomFloat(float min, float max)
Returns a random float number between and min[inclusive] and max[exclusive].
static const float RAD2DEG
Определения EnMath.c:16
static const float PI
Определения EnMath.c:12

Перекрестные ссылки ECE_LOCAL, ECE_PLACE_ON_SURFACE, g_Game, GetObjectNameFromSurfaceConfig(), m_Decal, m_Parent, m_Settings, Math::PI, Math::RAD2DEG и Math::RandomFloat().