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 (
g_Game.IsMissionMainMenu() )
329 if (
g_Game.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)
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
const int BURNING_NOISE_RANGE
override void OnInventoryExit(Man player)
ref Timer m_FinalSmokeTimer
static const int SELECTION_Burning
override void OnStoreSave(ParamsWriteContext ctx)
void DestroyParticle(Particle p)
const int FINAL_BURNING_STATE_TIME
const int INITIAL_BURNING_STATE_TIME
void SetModelState(int enum_state)
EffectSound m_BurningSound
static const string BURNING_TEXTURE
static const string FLARE_CAP
ref NoiseParams m_NoisePar
override bool CanPutInCargo(EntityAI parent)
override void OnWorkStop()
EffectSound m_IgniteSound
static const string EXTINGUISHED_TIP
void DestroyAllParticles()
const string BURNING_SOUND
Particle m_ParInitialFire
override void EEDelete(EntityAI parent)
override void OnWork(float consumed_energy)
override bool CanIgniteItem(EntityAI ignite_target=NULL)
static const string BURNING_MATERIAL
static const int SELECTION_Burned_out
void SetBurningStateSynchronized(int state_number)
void UpdateActiveParticles()
static const string IGNITED_TIP
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 const string UNIGNITED_TIP
void UpdateModelSelections()
static const string STANDS_FOLDED
static const string DEFAULT_TEXTURE
void SetBurningState(int state_number)
const string IGNITE_SOUND
static const int SELECTION_All
void DestroyParticleEx(out Particle p)
override void SetActions()
Manager class for managing Effect (EffectParticle, EffectSound).
static void DestroyEffect(Effect effect)
Unregisters, stops and frees the Effect.
proto bool Write(void value_out)
proto bool Read(void value_in)
Serializer ParamsReadContext
Serializer ParamsWriteContext
proto native vector Vector(float x, float y, float z)
Vector constructor from components.
class NoiseSystem NoiseParams()
void ParticleManager(ParticleManagerSettings settings)
Constructor (ctor).