Arma Reforger Script API
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
SCR_JunctionPowerPole Interface Reference
Inheritance diagram for SCR_JunctionPowerPole:
[legend]

Public Member Functions

override int GetSlotsCount (bool sameLine=true)
 
override vector TryGetSlot (int index, vector otherSlot, bool sameLine)
 Tries to find position of the closest compatible slot.
 
void SCR_JunctionPowerPole (IEntitySource src, IEntity parent)
 
- Public Member Functions inherited from SCR_PowerPole
int GetSlotsCount (bool sameLine=true)
 
map< SCR_EPoleCableType, ref SCR_PoleCableSlotGroupGetClosestCableSlotGroupsPerCableType (vector worldPos)
 Get the closest non-empty cable slot group for each available cable type.
 
vector TryGetSlot (int index, vector otherSlot, bool sameLine)
 Tries to find position of the closest compatible slot.
 
override bool _WB_OnKeyChanged (BaseContainer src, string key, BaseContainerList ownerContainers, IEntity parent)
 
override void _WB_AfterWorldUpdate (float timeSlice)
 
void SCR_PowerPole (IEntitySource src, IEntity parent)
 
- Public Member Functions inherited from SCR_DestructibleEntity
float GetDamageMultiplier (EDamageType type)
 
float GetDamageReduction ()
 
float GetDamageThreshold ()
 
float GetMaxHealth ()
 
void RegenerateNavmeshDelayed ()
 
override void OnDamage (int previousState, int newState, EDamageType type, float damageTaken, float currentHealth, inout vector hitTransform[3], ScriptBitWriter frameData)
 
void SetModel (ResourceName model)
 Sets the model of the object.
 
float GetDestructibleSize ()
 
void PlaySound (int damagePhaseIndex)
 
override void OnStateChanged (int destructibleState, ScriptBitReader frameData, bool JIP)
 
override void OnBeforeDestroyed ()
 
float CalculateMomentum (Contact contact, float ownerMass, float otherMass)
 
void UpdateResponseIndex (float currentHealth)
 
bool IsProxy ()
 
override void EOnContact (IEntity owner, IEntity other, Contact contact)
 Contact.
 
void SCR_DestructibleEntity (IEntitySource src, IEntity parent)
 
- Public Member Functions inherited from DestructibleEntity
proto external void HandleDamage (EDamageType type, float damage, out vector hitPosDirNorm[3])
 
proto external int GetCorrespondingState (float hp)
 
proto external float GetCurrentHealth ()
 
float ComputeEffectiveDamage (EDamageType damageType, float rawDamage, IEntity damageSource, notnull Instigator instigator, const GameMaterial hitMaterial, inout vector hitTransform[3], const vector impactVelocity)
 Calculates the amount of damage a hitzone will receive.
 

Protected Attributes

ref array< ref SCR_PowerPoleSlotBasem_aJunctionSlots
 
- Protected Attributes inherited from SCR_PowerPole
ref array< ref SCR_PowerPoleSlotBasem_aSlots
 

Additional Inherited Members

- Static Public Attributes inherited from SCR_DestructibleEntity
const float SIMULATION_IMPRECISION_MULTIPLIER = 1.1
 
static const int MAX_DESTRUCTION_RESPONSE_INDEX = 10
 
static const string MAX_DESTRUCTION_RESPONSE_INDEX_NAME = "HugeDestructible"
 
static const int TOTAL_DESTRUCTION_MAX_HEALTH_MULTIPLIER = 10
 
- Protected Member Functions inherited from SCR_PowerPole
void UpdateDebugShapes ()
 
- Protected Member Functions inherited from SCR_DestructibleEntity
void SpawnPhaseObjects (SCR_BaseDestructionPhase phase, SCR_DestructionData destructionData)
 Spawns objects that are meant to be created when the object is destroyed (particles, debris, etc)
 
void GoToDamagePhase (int damagePhaseIndex, int previousDamagePhaseIndex, SCR_DestructionData destructionData, bool streamed)
 Only call from OnStateChanged, otherwise you have HUGE desync.
 
void SetDamagePhaseSignal (int damagePhaseIndex=0)
 
- Protected Member Functions inherited from DestructibleEntity
void OnDamage (int previousState, int newState, EDamageType type, float damageTaken, float currentHealth, inout vector hitTransform[3], ScriptBitWriter frameData)
 
void OnStateChanged (int destructibleState, ScriptBitReader frameData, bool JIP)
 
void OnBeforeDestroyed ()
 
bool OnContact (IEntity owner, IEntity other, Contact contact)
 
- Static Protected Attributes inherited from SCR_PowerPole
static bool s_bDisplayCableSlots
 
static ref SCR_DebugShapeManager s_DebugShapeManager
 
static const float MIN_AVG_ANCHOR_DIST = 0.5
 
static const int DEBUG_SLOT_POS_COLOUR_1 = Color.DARK_GREEN & 0x88FFFFFF
 
static const int DEBUG_SLOT_POS_COLOUR_2 = Color.DARK_GREEN & 0x55FFFFFF
 
static const int DEBUG_PRECISION_LINE_COLOUR = Color.RED
 
static const float DEBUG_PRECISION_LINE_SIZE = 0.1
 
static const int DEBUG_ANCHOR_POS_COLOUR = Color.ORANGE & 0xBBFFFFFF
 
static const int DEBUG_ANCHOR_LINE_COLOUR = Color.ORANGE & 0x66FFFFFF
 
static const float DEBUG_SLOT_POS_SIZE_1 = 0.05
 
static const float DEBUG_SLOT_POS_SIZE_2 = 0.25
 
static const float DEBUG_ANCHOR_POS = 0.075
 
- Static Protected Attributes inherited from SCR_DestructibleEntity
static const int MIN_MOMENTUM_RESPONSE_INDEX = 1
 
static const int MAX_MOMENTUM_RESPONSE_INDEX = 5
 
static const int MIN_DESTRUCTION_RESPONSE_INDEX = 6
 
static const string DAMAGE_PHASE_SIGNAL_NAME = "DamagePhase"
 

Constructor & Destructor Documentation

◆ SCR_JunctionPowerPole()

void SCR_JunctionPowerPole.SCR_JunctionPowerPole ( IEntitySource  src,
IEntity  parent 
)
Parameters
[in]src
[in]parent

Member Function Documentation

◆ GetSlotsCount()

override int SCR_JunctionPowerPole.GetSlotsCount ( bool  sameLine = true)
Parameters
[in]sameLineis used by SCR_JunctionPowerPole.GetSlotsCount

Implements SCR_PowerPole.

◆ TryGetSlot()

override vector SCR_JunctionPowerPole.TryGetSlot ( int  index,
vector  otherSlot,
bool  sameLine 
)

Tries to find position of the closest compatible slot.

Parameters
[in]indexis the index of the other slot, this method tries to find the slot under the same index.
[in]otherSlotis the world position of the other pole's slot.
[in]sameLineis used by SCR_JunctionPowerPole.TryGetSlot
Returns
vector with world origin of the closest compatible slot.

Implements SCR_PowerPole.

Member Data Documentation

◆ m_aJunctionSlots

ref array<ref SCR_PowerPoleSlotBase> SCR_JunctionPowerPole.m_aJunctionSlots
protected

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