Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ExplosiveChargeComponent Class Reference
Inheritance diagram for SCR_ExplosiveChargeComponent:

Protected Member Functions

ScriptInvokerFuzeChanged GetOnFuzeChanged ()
void OnFuzeChanged (SCR_EFuzeType oldFuzeType, SCR_EFuzeType newFuzeType)
 Triggers m_OnFuzeChanged when such exists with information about old and new fuze type.
void OnFuzeTypeChanged ()
void OnArrayOfConnectedDetonatorsChanged ()
float GetTimeOfDetonation ()
SCR_EFuzeType GetUsedFuzeType ()
SCR_ExplosiveTriggerComponent GetTrigger ()
array< RplIdGetConnectedDetonators ()
int GetNumberOfConnectedDetonators ()
bool IsDetonatorConnected (RplId detonatorId)
float GetFuzeTime ()
void SetFuzeTime (float fuzeDelay, bool silent=false)
 Change the time which will be used for timed fuze.
void SetGarbageCollectable (bool garbageCollectable)
void ArmWithTimedFuze (bool silent=false)
 Arms the charge and starts the timer for the detonation.
void ConnectDetonator (SCR_EFuzeType fuzeType, RplId detonatorId=RplId.Invalid(), bool shouldReplicate=true, bool silent=false)
void RemoveDetonatorFromTheList (RplId detonatorId, bool shouldReplicate=true)
 Removes provided detonator RplId unless its not there in the first place.
void ReplaceDetonatorFromTheList (RplId detonatorIdToReplace, RplId replaceWith=RplId.Invalid())
 Replaces connected detonator RplId with provided id which by default will be invalid.
void UpdateFuzeVisibility ()
 Change visibility of sloted fuze.
void DisarmChargeSilent ()
 Callback method to ensure that charge is disarmed when transferred but with no sound.
void DisarmCharge (bool playSound=true)
void ChangeLockState (bool locked=false)
 When item is locked then players wont be able to pick it up.
RplId GetRplId ()
 Checks validity and returns RplId of this component.
bool CheckRplId ()
 Checks validaty of RplId and if that fails then tries to find correct RplId for that trigger.
override void EOnFrame (IEntity owner, float timeSlice)
override void EOnInit (IEntity owner)
override void OnPostInit (IEntity owner)
override void OnDelete (IEntity owner)
override bool RplSave (ScriptBitWriter writer)
override bool RplLoad (ScriptBitReader reader)

Protected Attributes

RplId m_RplID
RplComponent m_RplComp
SCR_ExplosiveTriggerComponent m_Trigger
float m_fFuzeTime = 20
float m_fTimer
SCR_EFuzeType m_eUsedFuzeType = SCR_EFuzeType.NONE
ref array< RplIdm_aConnectedDetonators = {}
ref ScriptInvokerFuzeChanged m_OnFuzeChanged

Detailed Description

Definition at line 10 of file SCR_ExplosiveChargeComponent.c.

Member Function Documentation

◆ ArmWithTimedFuze()

void SCR_ExplosiveChargeComponent::ArmWithTimedFuze ( bool silent = false)
inlineprotected

Arms the charge and starts the timer for the detonation.

Definition at line 135 of file SCR_ExplosiveChargeComponent.c.

◆ ChangeLockState()

void SCR_ExplosiveChargeComponent::ChangeLockState ( bool locked = false)
inlineprotected

When item is locked then players wont be able to pick it up.

Definition at line 322 of file SCR_ExplosiveChargeComponent.c.

◆ CheckRplId()

bool SCR_ExplosiveChargeComponent::CheckRplId ( )
inlineprotected

Checks validaty of RplId and if that fails then tries to find correct RplId for that trigger.

Definition at line 343 of file SCR_ExplosiveChargeComponent.c.

◆ ConnectDetonator()

void SCR_ExplosiveChargeComponent::ConnectDetonator ( SCR_EFuzeType fuzeType,
RplId detonatorId = RplId.Invalid(),
bool shouldReplicate = true,
bool silent = false )
inlineprotected

Arms the charge with remotely detonated fuze. Adds provided detonator RplId unless its already on the list

Definition at line 168 of file SCR_ExplosiveChargeComponent.c.

◆ DisarmCharge()

void SCR_ExplosiveChargeComponent::DisarmCharge ( bool playSound = true)
inlineprotected

Will clear the array of connected detonators, change fuze visibility and update their previously connected detonators with false info to not give players on the other end information that someone is tampering with their charges

Definition at line 274 of file SCR_ExplosiveChargeComponent.c.

◆ DisarmChargeSilent()

void SCR_ExplosiveChargeComponent::DisarmChargeSilent ( )
inlineprotected

Callback method to ensure that charge is disarmed when transferred but with no sound.

Definition at line 265 of file SCR_ExplosiveChargeComponent.c.

◆ EOnFrame()

override void SCR_ExplosiveChargeComponent::EOnFrame ( IEntity owner,
float timeSlice )
inlineprotected

Definition at line 357 of file SCR_ExplosiveChargeComponent.c.

◆ EOnInit()

override void SCR_ExplosiveChargeComponent::EOnInit ( IEntity owner)
inlineprotected

Definition at line 380 of file SCR_ExplosiveChargeComponent.c.

◆ GetConnectedDetonators()

array< RplId > SCR_ExplosiveChargeComponent::GetConnectedDetonators ( )
inlineprotected

Definition at line 81 of file SCR_ExplosiveChargeComponent.c.

◆ GetFuzeTime()

float SCR_ExplosiveChargeComponent::GetFuzeTime ( )
inlineprotected

Definition at line 99 of file SCR_ExplosiveChargeComponent.c.

◆ GetNumberOfConnectedDetonators()

int SCR_ExplosiveChargeComponent::GetNumberOfConnectedDetonators ( )
inlineprotected

Definition at line 87 of file SCR_ExplosiveChargeComponent.c.

◆ GetOnFuzeChanged()

ScriptInvokerFuzeChanged SCR_ExplosiveChargeComponent::GetOnFuzeChanged ( )
inlineprotected

Script invoker that is triggered each time that fuze type chages for this entity This invoker is also called when this entity is deleted like in case when its detonated In such case its new fuze type will be NONE and such case can be recognized using IEntity.IsDeleted()

Definition at line 32 of file SCR_ExplosiveChargeComponent.c.

◆ GetRplId()

RplId SCR_ExplosiveChargeComponent::GetRplId ( )
inlineprotected

Checks validity and returns RplId of this component.

Definition at line 333 of file SCR_ExplosiveChargeComponent.c.

◆ GetTimeOfDetonation()

float SCR_ExplosiveChargeComponent::GetTimeOfDetonation ( )
inlineprotected

Definition at line 63 of file SCR_ExplosiveChargeComponent.c.

◆ GetTrigger()

SCR_ExplosiveTriggerComponent SCR_ExplosiveChargeComponent::GetTrigger ( )
inlineprotected

Definition at line 75 of file SCR_ExplosiveChargeComponent.c.

◆ GetUsedFuzeType()

SCR_EFuzeType SCR_ExplosiveChargeComponent::GetUsedFuzeType ( )
inlineprotected

Definition at line 69 of file SCR_ExplosiveChargeComponent.c.

◆ IsDetonatorConnected()

bool SCR_ExplosiveChargeComponent::IsDetonatorConnected ( RplId detonatorId)
inlineprotected

Definition at line 93 of file SCR_ExplosiveChargeComponent.c.

◆ OnArrayOfConnectedDetonatorsChanged()

void SCR_ExplosiveChargeComponent::OnArrayOfConnectedDetonatorsChanged ( )
inlineprotected

Definition at line 57 of file SCR_ExplosiveChargeComponent.c.

◆ OnDelete()

override void SCR_ExplosiveChargeComponent::OnDelete ( IEntity owner)
inlineprotected

Definition at line 402 of file SCR_ExplosiveChargeComponent.c.

◆ OnFuzeChanged()

void SCR_ExplosiveChargeComponent::OnFuzeChanged ( SCR_EFuzeType oldFuzeType,
SCR_EFuzeType newFuzeType )
inlineprotected

Triggers m_OnFuzeChanged when such exists with information about old and new fuze type.

Definition at line 42 of file SCR_ExplosiveChargeComponent.c.

◆ OnFuzeTypeChanged()

void SCR_ExplosiveChargeComponent::OnFuzeTypeChanged ( )
inlineprotected

Definition at line 51 of file SCR_ExplosiveChargeComponent.c.

◆ OnPostInit()

override void SCR_ExplosiveChargeComponent::OnPostInit ( IEntity owner)
inlineprotected

Definition at line 394 of file SCR_ExplosiveChargeComponent.c.

◆ RemoveDetonatorFromTheList()

void SCR_ExplosiveChargeComponent::RemoveDetonatorFromTheList ( RplId detonatorId,
bool shouldReplicate = true )
inlineprotected

Removes provided detonator RplId unless its not there in the first place.

Definition at line 198 of file SCR_ExplosiveChargeComponent.c.

◆ ReplaceDetonatorFromTheList()

void SCR_ExplosiveChargeComponent::ReplaceDetonatorFromTheList ( RplId detonatorIdToReplace,
RplId replaceWith = RplId.Invalid() )
inlineprotected

Replaces connected detonator RplId with provided id which by default will be invalid.

Definition at line 223 of file SCR_ExplosiveChargeComponent.c.

◆ RplLoad()

override bool SCR_ExplosiveChargeComponent::RplLoad ( ScriptBitReader reader)
inlineprotected

Definition at line 422 of file SCR_ExplosiveChargeComponent.c.

◆ RplSave()

override bool SCR_ExplosiveChargeComponent::RplSave ( ScriptBitWriter writer)
inlineprotected

Definition at line 408 of file SCR_ExplosiveChargeComponent.c.

◆ SetFuzeTime()

void SCR_ExplosiveChargeComponent::SetFuzeTime ( float fuzeDelay,
bool silent = false )
inlineprotected

Change the time which will be used for timed fuze.

Definition at line 106 of file SCR_ExplosiveChargeComponent.c.

◆ SetGarbageCollectable()

void SCR_ExplosiveChargeComponent::SetGarbageCollectable ( bool garbageCollectable)
inlineprotected

Changes if garbage system should manage this entity

Parameters
[in]garbageCollectabletrue if this entity should be inserted into garbage system

Definition at line 122 of file SCR_ExplosiveChargeComponent.c.

◆ UpdateFuzeVisibility()

void SCR_ExplosiveChargeComponent::UpdateFuzeVisibility ( )
inlineprotected

Change visibility of sloted fuze.

Definition at line 234 of file SCR_ExplosiveChargeComponent.c.

Member Data Documentation

◆ m_aConnectedDetonators

ref array<RplId> SCR_ExplosiveChargeComponent::m_aConnectedDetonators = {}
protected

Definition at line 24 of file SCR_ExplosiveChargeComponent.c.

◆ m_eUsedFuzeType

SCR_EFuzeType SCR_ExplosiveChargeComponent::m_eUsedFuzeType = SCR_EFuzeType.NONE
protected

Definition at line 21 of file SCR_ExplosiveChargeComponent.c.

◆ m_fFuzeTime

float SCR_ExplosiveChargeComponent::m_fFuzeTime = 20
protected

Definition at line 15 of file SCR_ExplosiveChargeComponent.c.

◆ m_fTimer

float SCR_ExplosiveChargeComponent::m_fTimer
protected

Definition at line 18 of file SCR_ExplosiveChargeComponent.c.

◆ m_OnFuzeChanged

ref ScriptInvokerFuzeChanged SCR_ExplosiveChargeComponent::m_OnFuzeChanged
protected

Definition at line 26 of file SCR_ExplosiveChargeComponent.c.

◆ m_RplComp

RplComponent SCR_ExplosiveChargeComponent::m_RplComp
protected

Definition at line 13 of file SCR_ExplosiveChargeComponent.c.

◆ m_RplID

RplId SCR_ExplosiveChargeComponent::m_RplID
protected

Definition at line 12 of file SCR_ExplosiveChargeComponent.c.

◆ m_Trigger

SCR_ExplosiveTriggerComponent SCR_ExplosiveChargeComponent::m_Trigger
protected

Definition at line 14 of file SCR_ExplosiveChargeComponent.c.


The documentation for this class was generated from the following file: