8 SetVisibleDuringDaylight(
false);
11 SetFlareVisible(
false);
12 SetAmbientColor(1.0, 1.0, 0.3);
13 SetDiffuseColor(1.0, 1.0, 0.3);
15 SetDisableShadowsWithinRadius(-1);
40 [
Obsolete(
"1.30: Handled in AmmoTypes instead")]
42 [
Obsolete(
"1.30: Handled in AmmoTypes instead")]
54 RegisterNetSyncVariableBool(
"m_Armed");
55 RegisterNetSyncVariableBool(
"m_Defused");
68 super.OnExplosionEffects(source, directHit, componentIndex, surface, pos, surfNormal, energyFactor, explosionFactor, isWater,
ammoType);
74 super.EEKilled(killer);
82 override void OnCEIterate(
float currentTime,
float elapsedTime)
84 super.OnCEIterate(currentTime, elapsedTime);
86 if (!IsRuined() &&
GetArmed() && GetPairDevice())
105 GetPairDevice().UnpairRemote();
141 super.InitItemSounds();
146 handler.AddSound(SoundConstants.ITEM_EXPLOSIVE_ARM,
GetArmSoundset());
175 for (
int i = 0; i < count; i++)
201 if (!super.IsInventoryVisible())
206 return GetAnimationPhase(
"Visibility") == 0;
211 return super.IsTakeable() && GetAnimationPhase(
"Visibility") == 0;
261 if (!super.CanPutInCargo(parent))
271 if (!super.CanPutIntoHands(parent))
306 [
Obsolete(
"1.30: Handled in AmmoTypes instead")]
317 if (GetHierarchyParent())
327 if (GetHierarchyParent())
335 super.OnStoreSave(ctx);
342 if (!super.OnStoreLoad(ctx, version))
348 if (!ctx.
Read(armed))
380 [
Obsolete(
"1.30: Handled in AmmoTypes instead")]
386 [
Obsolete(
"1.30: Handled in AmmoTypes instead")]
394 [
Obsolete(
"1.30: Handled in AmmoTypes instead")]
403 if (extraSurfaceEffect)
405 if (extraSurfaceEffect.Find(surface, particleID))
412 if (explosionEffectData)
419 [
Obsolete(
"1.30: Handled in AmmoTypes instead")]
425 if (explosionEffectData)
432 [
Obsolete(
"1.30: Handled in AmmoTypes instead")]
437 extraSurfaceEffect.Insert(surface, effectID);
override void InitItemSounds()
AttachActionData ActionData ActionAttach()
void AddAction(typename actionName)
class PASBroadcaster extends AdvancedCommunication IsInventoryVisible
class ExplosiveEffectData m_TypeToSurfaceParticleIDMap
bool OnStoreLoad(ParamsReadContext ctx, int version)
void OnStoreSave(ParamsWriteContext ctx)
DamageType
exposed from C++ (do not change)
override void OnExplosionEffects(Object source, Object directHit, int componentIndex, string surface, vector pos, vector surfNormal, float energyFactor, float explosionFactor, bool isWater, string ammoType)
void UnlockExplosivesSlots()
string GetDisarmSoundset()
ExplosiveLight DEFAULT_AMMO_TYPE
override void OnCEIterate(float currentTime, float elapsedTime)
void SetArmed(bool state)
void InitSpecificsExplosionEffectForSurface()
void DestroyParticle(Particle p)
ref array< string > m_AmmoTypes
override void EEKilled(Object killer)
override bool CanPutInCargo(EntityAI parent)
Particle m_ParticleExplosion
particle
void SetDefused(bool state)
override void OnPlacementComplete(Man player, vector position="0 0 0", vector orientation="0 0 0")
void SetAmmoTypes(array< string > pAmmoTypes)
override bool IsExplosive()
void SetParticleExplosion(int particle)
void SetParticlePosition(vector local_pos)
set position for smoke particle - needs to be in Local Space
void UnlockTriggerSlots()
void OnDisarmed(bool pWithTool)
ref map< string, ref ExplosionEffectsData > m_SurfaceToExplosionEffectsData
void LockExplosivesSlots()
override bool CanPutIntoHands(EntityAI parent)
ref array< ParticleSource > m_ParticleExplosionArr
const string ANIM_PHASE_VISIBILITY
override void UnpairRemote()
string GetExplosionSoundSetName(string surface)
override bool IsTakeable()
int m_ParticleExplosionId
vector m_ParticleOrientation
void SetAmmoType(string pAmmoType)
bool HasLockedTriggerSlots()
string GetDisarmSoundsetUnpaired()
void SetParticleOrientation(vector local_ori)
void AddExplosionEffectForSurface(ExplosionEffectsData data)
override bool CanRemoveFromHands(EntityAI parent)
vector m_ParticlePosition
int GetParticleExplosionID(string surface)
ItemSoundHandler GetItemSoundHandler()
void ItemSoundHandler(ItemBase parent)
class Land_Buoy extends House m_Light
void UpdateLED(string selection, string color)
override RemotelyActivatedItemBehaviour GetRemotelyActivatedItemBehaviour()
override void Explode(int damageType, string ammoType="")
void ExplosionEffectsData(string surface, int particleId, string soundSetName="")
static float m_DefaultBrightness
static float m_DefaultRadius
void Stop()
Legacy function for backwards compatibility with 1.14 and below.
Legacy way of using particles in the game.
proto bool Write(void value_out)
proto bool Read(void value_in)
const float EXPLOSIVE_REMOTE_ACTIVATION
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
static proto native float DistanceSq(vector v1, vector v2)
Returns the square distance between tips of two 3D vectors.
Keffiyeh_LightBlue SetActions
Serializer ParamsReadContext
Serializer ParamsWriteContext
proto native void SetPosition(vector position)
Set the world position of the Effect.
void Obsolete(string msg="")
static proto float SqrFloat(float f)
Returns squared value.
vector GetPosition()
Get the world position of the Effect.
static const string Empty