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);
113 super.OnStoreSave(ctx);
120 if ( !super.OnStoreLoad(ctx, version) )
124 if ( !ctx.
Read(state) )
236 override void OnWork(
float consumed_energy)
240 float burning_time = GetCompEM().GetEnergyMax() - GetCompEM().GetEnergy();
288 if (
GetGame().IsMissionMainMenu() )
329 if (
GetGame().IsDedicatedServer() )
418 super.OnInventoryExit(player);
427 vector ori_rotate = player.GetOrientation();
428 ori_rotate = ori_rotate +
Vector(180, 32, 0);
429 SetOrientation(ori_rotate);
436 if ( !super.CanPutInCargo(parent) )
450 super.OnInventoryEnter(player);
460 GetCompEM().SwitchOn();
466 return GetCompEM().IsWorking();
471 super.OnVariablesSynchronized();
AttachActionData ActionData ActionAttach()
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 Stop()
Legacy function for backwards compatibility with 1.14 and below.
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
static const string STANDS_UNFOLDED
override void OnInventoryExit(Man player)
ref Timer m_FinalSmokeTimer
protected EffectSound m_IgniteSound
static const int SELECTION_Burning
static protected const int INITIAL_BURNING_STATE_TIME
static protected int PARTICLE_INIT_FIRE
override void OnStoreSave(ParamsWriteContext ctx)
void DestroyParticle(Particle p)
void SetModelState(int enum_state)
protected Particle m_ParInitialFire
static const string BURNING_TEXTURE
static const string FLARE_CAP
static protected const string IGNITE_SOUND
ref NoiseParams m_NoisePar
override bool CanPutInCargo(EntityAI parent)
override void OnWorkStop()
static protected const int FINAL_BURNING_STATE_TIME
static const string EXTINGUISHED_TIP
void DestroyAllParticles()
protected EffectSound m_BurningSound
override void EEDelete(EntityAI parent)
static protected const string BURNING_SOUND
protected Particle m_ParJustSmoke
override void OnWork(float consumed_energy)
override bool CanIgniteItem(EntityAI ignite_target=NULL)
protected Particle m_ParMainFire
private int m_BurningState
static const string BURNING_MATERIAL
static const int SELECTION_Burned_out
static protected int PARTICLE_FINAL_SMOKE
void SetBurningStateSynchronized(int state_number)
static protected const int BURNING_NOISE_RANGE
void UpdateActiveParticles()
private float m_NoiseTimer
static const string IGNITED_TIP
static protected vector m_FlameLocalPos
static const int SELECTION_Pristine
override bool OnStoreLoad(ParamsReadContext ctx, int version)
override void OnWorkStart()
override void OnActivatedByItem(notnull ItemBase item)
static const string DEFAULT_MATERIAL
override void OnInventoryEnter(Man player)
override void OnVariablesSynchronized()
static protected int PARTICLE_MAIN_FIRE
static protected int PARTICLE_FINAL_FIRE
static const string UNIGNITED_TIP
void UpdateModelSelections()
static const string STANDS_FOLDED
static const string DEFAULT_TEXTURE
void SetBurningState(int state_number)
static const int SELECTION_All
void DestroyParticleEx(out Particle p)
protected Particle m_ParFinalFire
override void SetActions()
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 bool Write(void value_out)
proto bool Read(void value_in)
proto native CGame GetGame()
proto native vector Vector(float x, float y, float z)
Vector constructor from components.