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

◆ SpawnDecal()

void SpawnDecal ( )
private

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

38 {
39 if (m_Decal)
40 return;
41
42 #ifndef SERVER
43 m_Decal = g_Game.CreateObjectEx(
45 m_Parent.GetPosition() + m_Settings.m_PositionOffset,
47 );
48
49 if (m_Decal)
50 {
51 if (m_Settings.m_RandomizeRotation)
52 {
53 vector v;
54 v[0] = Math.RandomFloat(-Math.PI, Math.PI);
55 m_Decal.SetOrientation(v * Math.RAD2DEG);
56 }
57
58 m_Decal.SetScale(m_Settings.m_ScaleMin);
59 }
60 #endif
61 }
const int ECE_LOCAL
Определения CentralEconomy.c:24
const int ECE_PLACE_ON_SURFACE
Определения CentralEconomy.c:37
DayZGame g_Game
Определения DayZGame.c:3868
Widget m_Parent
Определения SizeToChild.c:92
Object m_Decal
string GetObjectNameFromSurfaceConfig(string surfaceParamName=SURFACE_PARAM_DECAL_NAME)
ref UnderObjectDecalSpawnSettings m_Settings
Определения EnMath.c:7
Определения EnConvert.c:106
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().