14 SetAmmoTypes({
"ClaymoreMine_Ammo",
"ClaymoreMine_Secondary_Ammo"});
18 RegisterNetSyncVariableInt(
"m_RAIB.m_PairDeviceNetIdLow");
19 RegisterNetSyncVariableInt(
"m_RAIB.m_PairDeviceNetIdHigh");
30 super.EEKilled(killer);
40 super.EEDelete(parent);
56 super.InitiateExplosion();
61 super.AfterStoreLoad();
72 super.OnVariablesSynchronized();
76 m_RAIB.OnVariableSynchronized();
84 super.EEItemLocationChanged(oldLoc, newLoc);
106 return m_RAIB.GetPairDevice();
122 SetHealth(
"",
"", 0.0);
145 super.OnDisarmed(pWithTool);
148 RemoveDebugVisuals();
156 SetHealth(
"",
"", 0.0);
165 super.OnPlacementComplete(player, position, orientation);
184 if (GetOnViewIndexChanged())
186 GetOnViewIndexChanged().Invoke();
193 if (GetOnViewIndexChanged())
195 GetOnViewIndexChanged().Invoke();
209 SetObjectTexture(selectionIdx, RemoteDetonator.COLOR_LED_LIT);
212 SetObjectTexture(selectionIdx, RemoteDetonator.COLOR_LED_OFF);
222 return !
GetArmed() && super.IsTakeable();
241 if (MemoryPointExists(
"invView2"))
254 return "placeClaymore_SoundSet";
259 return "claymore_deploy_Soundset";
264 return "claymore_disarm_SoundSet";
269 return "claymore_disarm_SoundSet";
274 return "claymore_disarm_long_SoundSet";
294 debug_output +=
string.
Format(
"low net id: %1\n",
m_RAIB.GetPairDeviceNetIdLow());
295 debug_output +=
string.
Format(
"high net id: %1\n",
m_RAIB.GetPairDeviceNetIdHigh());
296 debug_output +=
string.
Format(
"pair device: %1\n",
m_RAIB.GetPairDevice());
301 protected void DrawDamageZone()
303 if (!DiagMenu.GetBool(
DiagMenuIDs.WEAPON_CLAYMORE_DEBUG))
309 float hitRange =
g_Game.ConfigGetFloat(cfgPath +
" indirectHitRange");
310 float hitRangeMultiplier =
g_Game.ConfigGetFloat(cfgPath +
" indirectHitRangeMultiplier");
311 float verticalAngle =
g_Game.ConfigGetFloat(cfgPath +
" indirectHitAngle1");
312 float horizontalAngle =
g_Game.ConfigGetFloat(cfgPath +
" indirectHitAngle2");
313 float range = hitRange * hitRangeMultiplier;
314 vector selfMatrix[4];
316 RemoveDebugVisuals();
318 GetTransform(selfMatrix);
323 void RemoveDebugVisuals()
ActionArmExplosiveCB ActionContinuousBaseCB ActionArmExplosive()
PlaceObjectActionReciveData ActionReciveData ActionDeployObject()
RepairTentActionReciveData m_DamageZone
void AddAction(typename actionName)
override void OnDebugSpawn()
override string GetDeploySoundset()
override EntityAI GetPairDevice()
void UpdateLED(ERemoteDetonatorLEDState pState, bool pForced=false)
override bool CanBeDisarmed()
ERemoteDetonatorLEDState m_LastLEDState
override string GetLoopDeploySoundset()
override int GetViewIndex()
override void EEKilled(Object killer)
override void OnDisarmed(bool pWithTool)
override RemotelyActivatedItemBehaviour GetRemotelyActivatedItemBehaviour()
override void OnPlacementComplete(Man player, vector position="0 0 0", vector orientation="0 0 0")
override void EEDelete(EntityAI parent)
override void PairRemote(notnull EntityAI trigger)
override void AfterStoreLoad()
const string ANIM_PHASE_DEPLOYED
override string GetArmSoundset()
override void EEItemLocationChanged(notnull InventoryLocation oldLoc, notnull InventoryLocation newLoc)
override bool IsDeployable()
const string ANIM_PHASE_PACKED
override void EOnInit(IEntity other, int extra)
override void OnActivatedByItem(notnull ItemBase item)
override bool IsTakeable()
ref RemotelyActivatedItemBehaviour m_RAIB
override void OnVariablesSynchronized()
const string SELECTION_NAME_LED
override string GetDisarmSoundsetUnpaired()
override void SetActions()
override string GetDisarmSoundset()
Internal ancestor of all Entity implementations.
static const int CLAYMORE_EXPLOSION
static RemoteDetonatorTrigger SpawnInPlayerHands(notnull EntityAI pEntity, EntityAI deviceToPair=null)
ref array< string > m_AmmoTypes
void SetDefused(bool state)
void SetAmmoTypes(array< string > pAmmoTypes)
void SetParticleExplosion(int particle)
override void UnpairRemote()
void SetParticleOrientation(vector local_ori)
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.
bool PairWithDevice(notnull ItemBase otherDevice)
ref RemotelyActivatedItemBehaviour m_RAIB