28 RegisterNetSyncVariableInt(
"m_OilPitState", 0, 1);
37 if (!
g_Game.IsHeadlessOrDedicatedServer())
50 super.EEDelete(parent);
84 super.OnVariablesSynchronized();
131 pos[1] =
g_Game.SurfaceRoadY(pos[0], pos[2], RoadSurfaceDetection.UNDER) + height;
188 super.EOnFrame(other, timeSlice);
190 if (!
g_Game.IsHeadlessOrDedicatedServer())
override bool IsInitialized()
DamageType
exposed from C++ (do not change)
void ParticleManager(ParticleManagerSettings settings)
Constructor (ctor)
Wrapper class for managing sound through SEffectManager.
const string SOUND_BURNING
const float SOUND_CHECK_RATE
bool CheckState(EOilPitState state)
override void OnVariablesSynchronized()
override void EOnFrame(IEntity other, float timeSlice)
override void OnStayFinishServerEvent()
override string GetDisplayName()
const float DAMAGE_TICK_RATE
override void OnStayServerEvent(TriggerInsider insider, float deltaTime)
ParticleSource m_SmokeParticle
EffectSound m_SoundBurning
void RemoveState(EOilPitState state)
void AddState(EOilPitState state)
const float DAMAGE_MULTIPLIER
override void OnStayStartServerEvent(int nrOfInsiders)
override void EEDelete(EntityAI parent)
EOilPitState m_OilPitState
const float SOUND_AUDIBLE_RANGE
vector GetAdjustedPosition(float height=0)
ParticleSource m_FireParticle
override void DeferredInit()
static const int OIL_FIRE1
static const int OIL_FIRE2
static const int SMOKE_GENERIC_WRECK
static const int BONFIRE_SMOKE
Entity which has the particle instance as an ObjectComponent.
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.
static void DestroyEffect(Effect effect)
Unregisters, stops and frees the Effect.
Manager class for managing Effect (EffectParticle, EffectSound)
The object which is in a trigger and its metadata.
static proto native float DistanceSq(vector v1, vector v2)
Returns the square distance between tips of two 3D vectors.
static proto int Randomize(int seed)
Sets the seed for the random number generator.
static int RandomIntInclusive(int min, int max)
Returns a random int number between and min [inclusive] and max [inclusive].
vector GetPosition()
Get the world position of the Effect.