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_deploy_Soundset";
269 return "claymore_disarm_SoundSet";
289 debug_output +=
string.
Format(
"low net id: %1\n",
m_RAIB.GetPairDeviceNetIdLow());
290 debug_output +=
string.
Format(
"high net id: %1\n",
m_RAIB.GetPairDeviceNetIdHigh());
291 debug_output +=
string.
Format(
"pair device: %1\n",
m_RAIB.GetPairDevice());
296 protected void DrawDamageZone()
298 if (!DiagMenu.GetBool(
DiagMenuIDs.WEAPON_CLAYMORE_DEBUG))
305 float hitRange = game.ConfigGetFloat(cfgPath +
" indirectHitRange");
306 float hitRangeMultiplier = game.ConfigGetFloat(cfgPath +
" indirectHitRangeMultiplier");
307 float verticalAngle = game.ConfigGetFloat(cfgPath +
" indirectHitAngle1");
308 float horizontalAngle = game.ConfigGetFloat(cfgPath +
" indirectHitAngle2");
309 float range = hitRange * hitRangeMultiplier;
310 vector selfMatrix[4];
312 RemoveDebugVisuals();
314 GetTransform(selfMatrix);
319 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)
void SetParticleExplosion(int particle)
override void UnpairRemote()
void SetParticleOrientation(vector local_ori)
bool PairWithDevice(notnull ItemBase otherDevice)
ref RemotelyActivatedItemBehaviour m_RAIB
override ScriptCallQueue GetCallQueue(int call_category)
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()
override string GetArmSoundset()
const string ANIM_PHASE_DEPLOYED
override string GetLoopDeploySoundset()
const string SELECTION_NAME_LED
override void EEKilled(Object killer)
override int GetViewIndex()
override string GetDeploySoundset()
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)
ERemoteDetonatorLEDState m_LastLEDState
const string ANIM_PHASE_PACKED
static const int CLAYMORE_EXPLOSION
static RemoteDetonatorTrigger SpawnInPlayerHands(notnull EntityAI pEntity, EntityAI deviceToPair=null)
proto void CallLater(func fn, int delay=0, bool repeat=false, 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)
adds call into the queue with given parameters and arguments (arguments are held in memory until the ...
proto native CGame GetGame()
class JsonUndergroundAreaTriggerData GetPosition
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.