33 RegisterNetSyncVariableInt(
"m_GeyserState", 0, 32);
45 if (!
g_Game.IsDedicatedServer())
58 super.EEDelete(parent);
63 super.OnEnterServerEvent(insider);
69 entity.ProcessDirectDamage(
DamageType.CUSTOM,
this,
"",
"HeatDamage",
"0 0 0", 1000);
75 super.OnLeaveServerEvent(insider);
80 super.OnEnterClientEvent(insider);
85 super.OnLeaveClientEvent(insider);
90 super.OnVariablesSynchronized();
189 pos[1] =
g_Game.SurfaceRoadY(pos[0], pos[2], RoadSurfaceDetection.UNDER) + height;
Wrapper class for managing sound through SEffectManager.
const float MOUTH_ADJUST_RADIUS
EGeyserState m_GeyserState
EGeyserState GetGeyserState()
const string SOUND_ERUPTION_TALL_END
override void DeferredInit()
EffectSound m_SoundEruptionSecondary
EffectSound m_SoundEruptionStart
const string SOUND_ERUPTION
bool CheckGeyserState(EGeyserState state)
ParticleSource m_GeyserTallParticle
override void OnLeaveClientEvent(TriggerInsider insider)
EffectSound m_SoundEruptionSecondaryStart
override void EEDelete(EntityAI parent)
ParticleSource m_GeyserSplashParticle
const string SOUND_ERUPTION_TALL_START
override string GetDisplayName()
const string SOUND_ERUPTION_START
void RemoveGeyserState(EGeyserState state)
EffectSound m_SoundBubbling
ParticleSource m_GeyserParticle
const string SOUND_BUBBLING
const string SOUND_ERUPTION_TALL
vector GetAdjustedPosition(float height=0)
EffectSound m_SoundEruptionSecondaryEnd
override void OnEnterServerEvent(TriggerInsider insider)
override void OnVariablesSynchronized()
ParticleSource m_GeyserBubblesParticle
EffectSound m_SoundEruption
override void OnLeaveServerEvent(TriggerInsider insider)
override void OnEnterClientEvent(TriggerInsider insider)
void AddGeyserState(EGeyserState state)
static const int GEYSER_BUBBLES
static const int GEYSER_SPLASH
static const int GEYSER_STRONG
static const int GEYSER_NORMAL
Entity which has the particle instance as an ObjectComponent.
Manager class for managing Effect (EffectParticle, EffectSound).
static void DestroyEffect(Effect effect)
Unregisters, stops and frees the Effect.
static EffectSound PlaySound(string sound_set, vector position, float play_fade_in=0, float stop_fade_out=0, bool loop=false)
Create and play an EffectSound.
The object which is in a trigger and its metadata.
override bool IsInitialized()
DamageType
exposed from C++ (do not change)
static proto float RandomFloat(float min, float max)
Returns a random float number between and min[inclusive] and max[exclusive].
vector GetPosition()
Get the world position of the Effect.
void ParticleManager(ParticleManagerSettings settings)
Constructor (ctor).