DIFF

class VehicleVFXData

Constructors 1

Members 8

int m_ParticleId = -1
protected int m_LastPlayedTime = -1

g_Game.GetTime() (ms) when this effect last started; -1 = never played

Referenced by CanPlay(), GetRemainingCooldown(), MarkPlayed()
Show 1 more, ResetCooldown()
protected float m_CooldownSec = 0

minimum seconds required between playbacks (0 = no guard)

Referenced by CanPlay(), GetCooldown(), GetRemainingCooldown()
Show 1 more, SetCooldown()

Methods 7

void SetPosition(vector position)
References m_Position
void SetCooldown(float seconds)

set the cooldown window (in seconds); 0 disables the guard

References m_CooldownSec
float GetCooldown()
References m_CooldownSec
bool CanPlay()

true if enough time has elapsed since the last playback (or it never played / no cooldown set)

void MarkPlayed()

g_Game.GetTime() is in milliseconds -> compare against cooldown converted to ms