237{
243
248
249
256
259
261 {
264 }
265
267 {
269 {
273
276
280
282
283 flare.PlaySoundSetLoop(
m_BurningSound,
"roadflareLoop_SoundSet", 0, 0 );
284 }
285
287 {
288
290 m_NoisePar.LoadFromPath(
"cfgWeapons Flaregun_Base NoiseFlare");
291 }
292 }
293
295 {
296
297 }
298
300 {
301
302
303 }
304
306 {
308 if ( player )
309 vector playerPos = player.GetPosition();
310
312
315
318
319
321 }
322
323
325 {
329
331 float sin =
Math.
Sin(angleRad);
332 float cos =
Math.
Cos(angleRad);
333
336
337 if (newFlarePos[1] - surfacePos < 1)
338 {
339 if (
m_Flare.GetOrigin()[1] <= surfacePos)
341 else
343
344 return;
345 }
346
347
350
351 newFlarePos[0] = xRotated;
352 newFlarePos[1] =
m_Flare.GetOrigin()[1];
353 newFlarePos[2] = yRotated;
354
356
357 }
358
360 {
363
366
368
370 {
372
374 }
375 }
376
378 {
380 {
385 }
386 }
387
389 {
392
395
398 }
399}
400
402{
404 {
407 }
408}
409
411{
413 {
416 }
417}
418
420{
422 {
425 }
426}
ref NoiseParams m_NoisePar
class FlareLightGreen extends FlareLight FlareLightBlue()
class FlareLight extends PointLightBase FlareLightRed()
static const float MIN_FARLIGHT_DIST
void TurnOffDistantLight()
void OnActivation(Entity flare)
EffectSound m_BurningSound
const float FLARE_SPIN_RADIUS
void OnTermination(Entity flare)
void OnFire(Entity flare)
FlareSimulation_Green FlareSimulation FlareSimulation_Blue()
FlareSimulation Managed FlareSimulation_Red()
void FlareParticleUpdate()
void CastFlareAINoise(vector position)
const float FLARE_SPIN_RATE
void Simulate(Entity flare)
static const float MAX_FARLIGHT_DIST
class NoiseSystem NoiseParams()
void ParticleManager(ParticleManagerSettings settings)
Constructor (ctor)
proto native float SurfaceY(float x, float z)
proto native DayZPlayer GetPlayer()
proto int GetTime()
returns mission time in milliseconds
Wrapper class for managing sound through SEffectManager.
void FlareSimulation_Green()
Legacy way of using particles in the game.
static const int FLAREPROJ_ACTIVATE
static proto native float DistanceSq(vector v1, vector v2)
Returns the square distance between tips of two 3D vectors.
proto native CGame GetGame()
proto native vector Vector(float x, float y, float z)
Vector constructor from components.
static proto float Cos(float angle)
Returns cosinus of angle in radians.
static proto float Sin(float angle)
Returns sinus of angle in radians.
static const float DEG2RAD