4 XmasSleighLight m_SleighLight;
6 int m_MaxDeersAmount = 4;
7 int m_MinDeersAmount = 2;
8 int m_MaxDeersSpawnRange = 25;
9 int m_MinDeersSpawnRange = 5;
11 void Wreck_SantasSleigh()
13 if ( !
GetGame().IsDedicatedServer() )
20 m_SleighLight.AttachOnMemoryPoint(
this,
"light" );
25 override string GetSoundSet()
27 return "SledgeCrash_Distant_SoundSet";
33 SpawnRandomDeerLater();
38 super.EEDelete(parent);
40 if ( !
GetGame().IsDedicatedServer() )
43 m_SleighLight.Destroy();
47 void SpawnRandomDeerLater()
54 void SpawnRandomDeers()
59 int deersAmount =
Math.RandomIntInclusive(m_MinDeersAmount,m_MaxDeersAmount);
61 for (
int i = 0; i < m_MaxDeersAmount; i++)
64 deer =
EntityAI.Cast(
GetGame().CreateObject(
"Animal_CervusElaphus", deer_pos,
false,
true));
65 deer.SetHealth01(
"",
"", 0);
66 vector orientation = deer.GetOrientation();
67 deer.SetOrientation(
Vector(
Math.RandomIntInclusive(0,360),orientation[1],orientation[2]));
77 randX =
Math.RandomIntInclusive(m_MinDeersSpawnRange, m_MaxDeersSpawnRange);
78 if (
Math.RandomIntInclusive(0,1) < 1)
81 randZ =
Math.RandomIntInclusive(m_MinDeersSpawnRange, m_MaxDeersSpawnRange);
82 if (
Math.RandomIntInclusive(0,1) < 1)
85 origin[0] = origin[0] + randX;
86 origin[2] = origin[2] + randZ;