Enumerations | |
| enum | SoundTypeMine { DISARMING = 0 } |
Functions | |
| void | LandMineTrap () |
| void | ~LandMineTrap () |
| override void | StartActivate (PlayerBase player) |
| override void | OnActivatedByItem (notnull ItemBase item) |
| Called when this item is activated by other. | |
| override void | OnActivate () |
| override bool | CanExplodeInFire () |
| override void | OnUpdate (EntityAI victim) |
| override void | OnSteppedOn (EntityAI victim) |
| override void | OnSteppedOut (EntityAI victim) |
| protected void | OnServerSteppedOn (Object obj, string damageZone) |
| void | DeleteThis () |
| override void | OnItemLocationChanged (EntityAI old_owner, EntityAI new_owner) |
| override void | EEKilled (Object killer) |
| void | PlaySoundActivate () |
| override void | Explode (int damageType, string ammoType="") |
| override bool | CanBeDisarmed () |
| override void | OnRPC (PlayerIdentity sender, int rpc_type, ParamsReadContext ctx) |
| void | PlayDisarmingLoopSound () |
| void | StopDisarmingLoopSound () |
| override void | OnPlacementComplete (Man player, vector position="0 0 0", vector orientation="0 0 0") |
| override bool | IsDeployable () |
| override string | GetLoopDeploySoundset () |
| override void | SetActions () |
Variables | |
| enum SoundTypeMine | m_TimerLoopSound |
| protected ref EffectSound | m_SafetyPinSound |
| protected ref EffectSound | m_DisarmingLoopSound |
| protected ref Timer | m_DeleteTimer |
| private const int | BROKEN_LEG_PROB = 90 |
| private const int | BLEED_SOURCE_PROB = 50 |
| private const int | MAX_BLEED_SOURCE = 1 |
| enum SoundTypeMine |
| override bool CanBeDisarmed | ( | ) |
| override bool CanExplodeInFire | ( | ) |
| void DeleteThis | ( | ) |
References CALL_CATEGORY_SYSTEM, and m_DeleteTimer.
Referenced by Explode(), OnActivatedByItem(), and OnSteppedOn().
References DeleteThis(), GetGame(), GetPosition, and Vector().
Referenced by FuelStation::EEKilled(), InventoryItem::EEKilled(), EEKilled(), ExplodeNow(), InitiateExplosion(), Grenade_Base::InitiateExplosion(), OnServerSteppedOn(), and OnSteppedOn().
| override string GetLoopDeploySoundset | ( | ) |
| override bool IsDeployable | ( | ) |
| void LandMineTrap | ( | ) |
References string::Format(), m_AddDeactivationDefect, m_ClothingDmg, m_DamagePlayers, m_DefectRate, m_InfoActivationTime, m_InitWaitTime, and float::ToString().
Referenced by ActionCondition(), OnEndAnimationLoop(), OnExecute(), OnFinishProgressServer(), and OnStartAnimationLoop().
| override void OnActivate | ( | ) |
References GetGame(), GetPlayer(), m_TimerLoopSound, and PlaySoundActivate().
Referenced by Activate(), AntibioticsMdfr::OnReconnect(), CharcoalMdfr::OnReconnect(), ChelationMdfr::OnReconnect(), FatigueMdfr::OnReconnect(), FeverMdfr::OnReconnect(), HemolyticReactionMdfr::OnReconnect(), PoisoningMdfr::OnReconnect(), WetMdfr::OnReconnect(), DisinfectionMdfr::OnReconnect(), DrowningMdfr::OnReconnect(), EpinephrineMdfr::OnReconnect(), FliesMdfr::OnReconnect(), ImmunityBoost::OnReconnect(), MaskMdfr::OnReconnect(), MorphineMdfr::OnReconnect(), PainKillersMdfr::OnReconnect(), and SalineMdfr::OnReconnect().
| override void OnActivatedByItem | ( | notnull ItemBase | item | ) |
Called when this item is activated by other.
References DeleteThis().
| override void OnPlacementComplete | ( | Man | player, |
| vector | position = "0 0 0", |
||
| vector | orientation = "0 0 0" |
||
| ) |
References GetGame(), and StartActivate().
| override void OnRPC | ( | PlayerIdentity | sender, |
| int | rpc_type, | ||
| ParamsReadContext | ctx | ||
| ) |
References PlayDisarmingLoopSound(), Serializer::Read(), and StopDisarmingLoopSound().
References Explode(), m_UpdateTimer, SetInactive(), Timer::Stop(), and Synch().
| override void OnSteppedOn | ( | EntityAI | victim | ) |
CarScript specific reaction on LandMineTrap
References BLEED_SOURCE_PROB, BROKEN_LEG_PROB, DAMAGE_TRIGGER_MINE, DamageClothing(), DeleteThis(), Explode(), GetGame(), m_UpdateTimer, MAX_BLEED_SOURCE, Math::RandomInt(), Math::RandomIntInclusive(), and UPDATE_TIMER_INTERVAL.
| override void OnSteppedOut | ( | EntityAI | victim | ) |
References m_UpdateTimer, and Timer::Stop().
| override void OnUpdate | ( | EntityAI | victim | ) |
References GetClosestCarWheel(), and TrapBase::OnServerSteppedOn().
| void PlayDisarmingLoopSound | ( | ) |
References GetPosition, EffectSound::IsSoundPlaying(), m_DisarmingLoopSound, and SEffectManager::PlaySound().
Referenced by OnRPC().
| void PlaySoundActivate | ( | ) |
References GetGame(), GetPosition, SEffectManager::PlaySound(), and EffectSound::SetAutodestroy().
Referenced by OnActivate().
| override void SetActions | ( | ) |
References ActionAttach(), ActionDeployObject(), ActionDetach(), and AddAction().
| override void StartActivate | ( | PlayerBase | player | ) |
| void StopDisarmingLoopSound | ( | ) |
References m_DisarmingLoopSound, and EffectSound::SoundStop().
Referenced by OnRPC().
| void ~LandMineTrap | ( | ) |
References SEffectManager::DestroyEffect(), m_DisarmingLoopSound, and m_TimerLoopSound.
| private const int BLEED_SOURCE_PROB = 50 |
Referenced by OnSteppedOn().
| private const int BROKEN_LEG_PROB = 90 |
Referenced by OnSteppedOn().
| protected ref Timer m_DeleteTimer |
| protected ref EffectSound m_DisarmingLoopSound |
Referenced by PlayDisarmingLoopSound(), StopDisarmingLoopSound(), and ~LandMineTrap().
| protected ref EffectSound m_SafetyPinSound |
Referenced by StartActivate().
| enum SoundTypeMine m_TimerLoopSound |
Referenced by OnActivate(), StartActivate(), and ~LandMineTrap().
| private const int MAX_BLEED_SOURCE = 1 |
Referenced by OnSteppedOn().