17 SetAmmoTypes({
"ClaymoreMine_Ammo",
"ClaymoreMine_Secondary_Ammo"});
21 RegisterNetSyncVariableInt(
"m_RAIB.m_PairDeviceNetIdLow");
22 RegisterNetSyncVariableInt(
"m_RAIB.m_PairDeviceNetIdHigh");
33 super.EEKilled(killer);
43 super.EEDelete(parent);
59 super.InitiateExplosion();
64 super.AfterStoreLoad();
75 super.OnVariablesSynchronized();
79 m_RAIB.OnVariableSynchronized();
87 super.EEItemLocationChanged(oldLoc, newLoc);
109 return m_RAIB.GetPairDevice();
125 SetHealth(
"",
"", 0.0);
148 super.OnDisarmed(pWithTool);
151 RemoveDebugVisuals();
159 SetHealth(
"",
"", 0.0);
187 if (GetOnViewIndexChanged())
189 GetOnViewIndexChanged().Invoke();
196 if (GetOnViewIndexChanged())
198 GetOnViewIndexChanged().Invoke();
212 SetObjectTexture(selectionIdx, RemoteDetonator.COLOR_LED_LIT);
215 SetObjectTexture(selectionIdx, RemoteDetonator.COLOR_LED_OFF);
225 return !
GetArmed() && super.IsTakeable();
277 if (MemoryPointExists(
"invView2"))
290 return "placeClaymore_SoundSet";
295 return "claymore_deploy_Soundset";
300 return "claymore_disarm_SoundSet";
305 return "claymore_disarm_SoundSet";
310 return "claymore_disarm_long_SoundSet";
330 debug_output +=
string.
Format(
"low net id: %1\n",
m_RAIB.GetPairDeviceNetIdLow());
331 debug_output +=
string.
Format(
"high net id: %1\n",
m_RAIB.GetPairDeviceNetIdHigh());
332 debug_output +=
string.
Format(
"pair device: %1\n",
m_RAIB.GetPairDevice());
337 protected void DrawDamageZone()
339 if (!DiagMenu.GetBool(
DiagMenuIDs.WEAPON_CLAYMORE_DEBUG))
345 float hitRange =
g_Game.ConfigGetFloat(cfgPath +
" indirectHitRange");
346 float hitRangeMultiplier =
g_Game.ConfigGetFloat(cfgPath +
" indirectHitRangeMultiplier");
347 float verticalAngle =
g_Game.ConfigGetFloat(cfgPath +
" indirectHitAngle1");
348 float horizontalAngle =
g_Game.ConfigGetFloat(cfgPath +
" indirectHitAngle2");
349 float range = hitRange * hitRangeMultiplier;
350 vector selfMatrix[4];
352 RemoveDebugVisuals();
354 GetTransform(selfMatrix);
359 void RemoveDebugVisuals()
ActionArmExplosiveCB ActionContinuousBaseCB ActionArmExplosive()
PlaceObjectActionReciveData ActionReciveData ActionDeployObject()
RepairTentActionReciveData m_DamageZone
void AddAction(typename actionName)
ref array< string > m_AmmoTypes
void SetDefused(bool state)
void SetAmmoTypes(array< string > pAmmoTypes)
override void UnpairRemote()
void SetParticleOrientation(vector local_ori)
bool PairWithDevice(notnull ItemBase otherDevice)
ref RemotelyActivatedItemBehaviour m_RAIB
override EntityAI GetPairDevice()
override void PairRemote(notnull EntityAI trigger)
override void OnDebugSpawn()
override void OnVariablesSynchronized()
override bool IsTakeable()
override void EEDelete(EntityAI parent)
override void OnDisarmed(bool pWithTool)
override void EEItemLocationChanged(notnull InventoryLocation oldLoc, notnull InventoryLocation newLoc)
void UpdateLED(ERemoteDetonatorLEDState pState, bool pForced=false)
override string GetDisarmSoundset()
void OnTriggeredByFall(Contact extra)
SERVER: decide what "triggered by falling" means for this mine.
override string GetArmSoundset()
const string ANIM_PHASE_DEPLOYED
override string GetLoopDeploySoundset()
const string SELECTION_NAME_LED
override void EEKilled(Object killer)
override string GetDisarmSoundsetUnpaired()
override int GetViewIndex()
override string GetDeploySoundset()
override void EOnContact(IEntity other, Contact extra)
Fires when the (now dynamic) trap actually hits something - the real "it fell" moment.
override RemotelyActivatedItemBehaviour GetRemotelyActivatedItemBehaviour()
override void OnPlacementComplete(Man player, vector position="0 0 0", vector orientation="0 0 0")
ref RemotelyActivatedItemBehaviour m_RAIB
override void AfterStoreLoad()
override bool CanBeDisarmed()
override bool IsDeployable()
override void SetActions()
override void OnActivatedByItem(notnull ItemBase item)
override void EOnInit(IEntity other, int extra)
override void OnItemFallRebuilding()
ERemoteDetonatorLEDState m_LastLEDState
const string ANIM_PHASE_PACKED
static RemoteDetonatorTrigger SpawnInPlayerHands(notnull EntityAI pEntity, EntityAI deviceToPair=null)
vector GetPosition()
Get the world position of the Effect.
static proto string Format(string fmt, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
Gets n-th character from string.