50 static protected const string IGNITE_SOUND =
"roadflareTurnOn_SoundSet";
72 static const string DEFAULT_TEXTURE =
"dz\\gear\\consumables\\data\\road_flare_co.paa";
73 static const string BURNING_TEXTURE =
"dz\\gear\\consumables\\data\\road_flare_e_co.paa";
75 static const string DEFAULT_MATERIAL =
"dz\\gear\\consumables\\data\\road_flare.rvmat";
76 static const string BURNING_MATERIAL =
"dz\\gear\\consumables\\data\\road_flare_on.rvmat";
84 RegisterNetSyncVariableInt(
"m_BurningState");
96 super.EEDelete(parent);
120 if (!
super.OnStoreLoad(
ctx, version))
240 float burning_time = GetCompEM().GetEnergyMax() - GetCompEM().GetEnergy();
284 if (
GetGame().IsMissionMainMenu())
302 SetHealth(
"",
"", 0);
323 if (
GetGame().IsDedicatedServer())
430 if (!
super.CanPutInCargo(parent))
452 if (
item.IsInherited(TripwireTrap))
453 GetCompEM().SwitchOn();
458 return GetCompEM().IsWorking();
463 super.OnVariablesSynchronized();
ActionLightItemOnFireCB ActionContinuousBaseCB ActionLightItemOnFire()
void AddAction(typename actionName)
class NoiseSystem NoiseParams()
void ParticleManager(ParticleManagerSettings settings)
Constructor (ctor)
Wrapper class for managing sound through SEffectManager.
Legacy way of using particles in the game.
void SetWiggle(float random_angle, float random_interval)
Makes the particle change direction by random_angle every random_interval seconds.
static const int ROADFLARE_BURNING_INIT
static const int ROADFLARE_BURNING_SMOKE
static const int ROADFLARE_BURNING_ENDING
static const int ROADFLARE_BURNING_MAIN
void DestroyParticle(Particle p)
override bool OnStoreLoad(ParamsReadContext ctx, int version)
const int FINAL_BURNING_STATE_TIME
override bool CanPutInCargo(EntityAI parent)
void DestroyAllParticles()
override void SetActions()
static const string EXTINGUISHED_TIP
static const int SELECTION_Pristine
void UpdateActiveParticles()
override void OnStoreSave(ParamsWriteContext ctx)
static const string DEFAULT_TEXTURE
void SetModelState(int enum_state)
EffectSound m_BurningSound
static const int SELECTION_Burned_out
static const string UNIGNITED_TIP
const int BURNING_NOISE_RANGE
static const int SELECTION_All
void SetBurningStateSynchronized(int state_number)
ref NoiseParams m_NoisePar
void UpdateModelSelections()
static const string IGNITED_TIP
override void OnWorkStart()
static const int SELECTION_Burning
override void OnVariablesSynchronized()
const string IGNITE_SOUND
static const string BURNING_TEXTURE
void DestroyParticleEx(out Particle p)
override bool CanIgniteItem(EntityAI ignite_target=NULL)
void SetBurningState(int state_number)
const int INITIAL_BURNING_STATE_TIME
override void EEDelete(EntityAI parent)
static const string BURNING_MATERIAL
const string BURNING_SOUND
override void OnInventoryEnter(Man player)
static const string DEFAULT_MATERIAL
override void OnInventoryExit(Man player)
static const string STANDS_FOLDED
static const string FLARE_CAP
override void OnActivatedByItem(notnull ItemBase item)
override void OnWorkStop()
EffectSound m_IgniteSound
override void OnWork(float consumed_energy)
ref Timer m_FinalSmokeTimer
Particle m_ParInitialFire
static const string STANDS_UNFOLDED
Manager class for managing Effect (EffectParticle, EffectSound)
static void DestroyEffect(Effect effect)
Unregisters, stops and frees the Effect.
Serialization general interface. Serializer API works with:
proto native CGame GetGame()
proto native vector Vector(float x, float y, float z)
Vector constructor from components.