8 {
11 return;
12
13 int particleID;
14 string particleName;
15 string configPath = "CfgNonAIVehicles " + object.GetType() + " collisionParticle";
17 if (particleName ==
string.
Empty)
18 return;
19
20 particleID = ParticleList.GetParticleIDByName(particleName);
21 vector playerPos = player.GetPosition();
22 vector ptcPos = playerPos - object.GetPosition();
23
24 ptcPos[0] = ptcPos[0] * Math.RandomFloat(0, 0.5);
25 ptcPos[2] = ptcPos[2] * Math.RandomFloat(0, 0.5);
26
27 ptcPos = playerPos - ptcPos;
28 ptcPos[1] = playerPos[1] + Math.RandomFloat(0.5, 1.5);
29
31
33 }
void ParticleManager(ParticleManagerSettings settings)
Constructor (ctor)
proto bool ConfigGetText(string path, out string value)
Get string value from config on path.
static void UpdateVegeCollisionCooldowns()
static ref map< Object, float > m_VegeCollideColldowns
proto native CGame GetGame()
proto native float GetWorldTime()