Arma Reforger Script API
Loading...
Searching...
No Matches
SCR_PowerPole Interface Reference
Inheritance diagram for SCR_PowerPole:
PowerPoleEntity SCR_DestructibleEntity DestructibleEntity SCR_JunctionPowerPole

Public Member Functions

map< SCR_EPoleCableType, ref SCR_PoleCableSlotGroupGetClosestCableSlotGroupsForEachCableType (vector worldPos, bool isSameLine)
 Get the closest non-empty cable slot group for each available cable type.
 
override bool _WB_OnKeyChanged (BaseContainer src, string key, BaseContainerList ownerContainers, IEntity parent)
 
override int _WB_GetAfterWorldUpdateSpecs (IEntitySource src)
 
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 ()
 
override void OnDamage (int previousState, int newState, EDamageType type, float damageTaken, float currentHealth, inout vector hitTransform[3], ScriptBitWriter frameData)
 
void HeatmapPrototype ()
 
override void OnStateChanged (int destructibleState, ScriptBitReader frameData, bool JIP)
 
override void OnBeforeDestroyed ()
 
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 ()
 
int GetDestructionCategory ()
 
int GetDestructionWeight ()
 
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 Member Functions

void UpdateDebugShapes ()
 
- Protected Member Functions inherited from SCR_DestructibleEntity
void GoToDamagePhase (int damagePhaseIndex, int previousDamagePhaseIndex, SCR_DestructionData destructionData, bool streamed)
 Only call from OnStateChanged, otherwise you have HUGE desync.
 
bool FilterContact (IEntity owner, IEntity other, Contact contact)
 
void OnFilteredContact (IEntity owner, IEntity other, Contact contact)
 
- Protected Member Functions inherited from DestructibleEntity
bool OnContact (IEntity owner, IEntity other, Contact contact)
 

Protected Attributes

ref array< ref SCR_PowerPoleSlotBasem_aSlots
 

Static Protected Attributes

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 MIN_DESTRUCTION_RESPONSE_INDEX = 6
 

Additional Inherited Members

- Static Public Attributes inherited from SCR_DestructibleEntity
static const int TOTAL_DESTRUCTION_MAX_HEALTH_MULTIPLIER = 10
 

Constructor & Destructor Documentation

◆ SCR_PowerPole()

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

Member Function Documentation

◆ _WB_AfterWorldUpdate()

override void SCR_PowerPole._WB_AfterWorldUpdate ( float timeSlice)

◆ _WB_GetAfterWorldUpdateSpecs()

override int SCR_PowerPole._WB_GetAfterWorldUpdateSpecs ( IEntitySource src)

◆ _WB_OnKeyChanged()

override bool SCR_PowerPole._WB_OnKeyChanged ( BaseContainer src,
string key,
BaseContainerList ownerContainers,
IEntity parent )

◆ GetClosestCableSlotGroupsForEachCableType()

map< SCR_EPoleCableType, ref SCR_PoleCableSlotGroup > SCR_PowerPole.GetClosestCableSlotGroupsForEachCableType ( vector worldPos,
bool isSameLine )

Get the closest non-empty cable slot group for each available cable type.

Parameters
[in]worldPosthe position from which to find the closest slots
[in]isSameLinetrue to get same line-accepting slots, false to get external line-accepting slots
Returns
a cableType-slotGroup map - never returns null

◆ UpdateDebugShapes()

void SCR_PowerPole.UpdateDebugShapes ( )
protected

Member Data Documentation

◆ DEBUG_ANCHOR_LINE_COLOUR

const int SCR_PowerPole.DEBUG_ANCHOR_LINE_COLOUR = Color.ORANGE & 0x66FFFFFF
staticprotected

◆ DEBUG_ANCHOR_POS

const float SCR_PowerPole.DEBUG_ANCHOR_POS = 0.075
staticprotected

◆ DEBUG_ANCHOR_POS_COLOUR

const int SCR_PowerPole.DEBUG_ANCHOR_POS_COLOUR = Color.ORANGE & 0xBBFFFFFF
staticprotected

◆ DEBUG_PRECISION_LINE_COLOUR

const int SCR_PowerPole.DEBUG_PRECISION_LINE_COLOUR = Color.RED
staticprotected

◆ DEBUG_PRECISION_LINE_SIZE

const float SCR_PowerPole.DEBUG_PRECISION_LINE_SIZE = 0.1
staticprotected

◆ DEBUG_SLOT_POS_COLOUR_1

const int SCR_PowerPole.DEBUG_SLOT_POS_COLOUR_1 = Color.DARK_GREEN & 0x88FFFFFF
staticprotected

◆ DEBUG_SLOT_POS_COLOUR_2

const int SCR_PowerPole.DEBUG_SLOT_POS_COLOUR_2 = Color.DARK_GREEN & 0x55FFFFFF
staticprotected

◆ DEBUG_SLOT_POS_SIZE_1

const float SCR_PowerPole.DEBUG_SLOT_POS_SIZE_1 = 0.05
staticprotected

◆ DEBUG_SLOT_POS_SIZE_2

const float SCR_PowerPole.DEBUG_SLOT_POS_SIZE_2 = 0.25
staticprotected

◆ m_aSlots

ref array<ref SCR_PowerPoleSlotBase> SCR_PowerPole.m_aSlots
protected

◆ MIN_AVG_ANCHOR_DIST

const float SCR_PowerPole.MIN_AVG_ANCHOR_DIST = 0.5
staticprotected

◆ s_bDisplayCableSlots

bool SCR_PowerPole.s_bDisplayCableSlots
staticprotected

◆ s_DebugShapeManager

ref SCR_DebugShapeManager SCR_PowerPole.s_DebugShapeManager
staticprotected

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