Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_DestructionFractalComponent.c File Reference

Go to the source code of this file.

Data Structures

class  SCR_DestructionFractalComponent
 Fractal destruction component. For objects that should shatter/splinter etc. More...
 
class  SCR_FractalVariation
 
class  SCR_FragmentHierarchyTitle
 
class  SCR_FragmentDebris
 
class  SCR_FragmentLinkage
 

Enumerations

enum  SCR_EFractalDestructionForceModel
 

Functions

enum SCR_EFractalDestructionForceModel ComponentEditorProps (category:"GameScripted/Destruction", description:"Fractal destruction component. For objects that should shatter/splinter etc")
 
SCR_DestructionFractalComponent SCR_DestructionDamageManagerComponent _WB_GetCustomTitle (BaseContainer source, out string title)
 
int CountFragments ()
 
bool GetFragmentIndexIsAnchor (int index)
 
ResourceName GetFragmentModel (int index, out bool isAnchor)
 
ResourceName GetFragmentDebrisModel (int index, out bool isAnchor)
 
class SCR_FragmentDebris BaseContainerProps ()
 
void Spawn (SCR_FragmentEntity fragment, Physics parentPhysics, float damage, vector hitDirection)
 
class SCR_FragmentDebris SCR_FragmentHierarchyTitle ()] class SCR_FragmentHierarchy
 

Variables

 FORCE_NONE = -1
 
 FORCE_UNFRACTURED
 
 FORCE_FRACTURED
 
protected ResourceName m_ModelNormal
 
protected ResourceName m_ModelDestroyed
 
protected ref array< ResourceName > m_aModelFragments
 
protected ref array< ResourceName > m_aModelAnchorFragments
 
protected ref array< ResourceName > m_aDebrisModelFragments
 
protected ref array< ResourceName > m_aDebrisModelAnchorFragments
 
protected ref SCR_FragmentHierarchy m_Hierarchy
 
protected float m_fMass
 
protected float m_fLifetimeMin
 
protected float m_fLifetimeMax
 
protected float m_fDistanceMax
 
protected int m_fPriority
 
protected float m_fDamageToImpulse
 
protected float m_fRandomVelocityLinear
 
protected float m_fRandomVelocityAngular
 

Enumeration Type Documentation

◆ SCR_EFractalDestructionForceModel

Function Documentation

◆ _WB_GetCustomTitle()

SCR_DestructionFractalComponent SCR_DestructionDamageManagerComponent _WB_GetCustomTitle ( BaseContainer  source,
out string  title 
)

Definition at line 1000 of file SCR_DestructionFractalComponent.c.

◆ BaseContainerProps()

class SCR_FragmentDebris BaseContainerProps ( )

◆ ComponentEditorProps()

enum SCR_EFractalDestructionForceModel ComponentEditorProps ( category:"GameScripted/Destruction"  ,
description:"Fractal destruction component. For objects that should shatter/splinter etc"   
)

Definition at line 8 of file SCR_DestructionFractalComponent.c.

◆ CountFragments()

int _WB_GetCustomTitle::CountFragments ( )
Returns
how many fragments are in the list (including anchor fragments)

Definition at line 25 of file SCR_DestructionFractalComponent.c.

◆ GetFragmentDebrisModel()

ResourceName _WB_GetCustomTitle::GetFragmentDebrisModel ( int  index,
out bool  isAnchor 
)
Parameters
[in]index
[out]isAnchor
Returns
the debris model to use for the input fragment index

Definition at line 70 of file SCR_DestructionFractalComponent.c.

◆ GetFragmentIndexIsAnchor()

bool _WB_GetCustomTitle::GetFragmentIndexIsAnchor ( int  index)
Returns
whether the input fragment index is an anchor

Definition at line 32 of file SCR_DestructionFractalComponent.c.

◆ GetFragmentModel()

ResourceName _WB_GetCustomTitle::GetFragmentModel ( int  index,
out bool  isAnchor 
)
Parameters
[in]index
[out]isAnchor
Returns
the model to use for the input fragment index

Definition at line 46 of file SCR_DestructionFractalComponent.c.

◆ SCR_FragmentHierarchyTitle()

◆ Spawn()

void BaseContainerProps::Spawn ( SCR_FragmentEntity  fragment,
Physics  parentPhysics,
float  damage,
vector  hitDirection 
)

Spawns the object

Parameters
[in]fragment
[in]parentPhysics
[in]damage
[in]hitDirection

Definition at line 32 of file SCR_DestructionFractalComponent.c.

Variable Documentation

◆ FORCE_FRACTURED

FORCE_FRACTURED

Definition at line 5 of file SCR_DestructionFractalComponent.c.

◆ FORCE_NONE

FORCE_NONE = -1

Definition at line 2 of file SCR_DestructionFractalComponent.c.

◆ FORCE_UNFRACTURED

FORCE_UNFRACTURED

Definition at line 3 of file SCR_DestructionFractalComponent.c.

◆ m_aDebrisModelAnchorFragments

protected ref array<ResourceName> m_aDebrisModelAnchorFragments

Definition at line 18 of file SCR_DestructionFractalComponent.c.

◆ m_aDebrisModelFragments

protected ref array<ResourceName> m_aDebrisModelFragments

Definition at line 15 of file SCR_DestructionFractalComponent.c.

◆ m_aModelAnchorFragments

protected ref array<ResourceName> m_aModelAnchorFragments

Definition at line 12 of file SCR_DestructionFractalComponent.c.

◆ m_aModelFragments

protected ref array<ResourceName> m_aModelFragments

Definition at line 9 of file SCR_DestructionFractalComponent.c.

◆ m_fDamageToImpulse

protected float m_fDamageToImpulse

Definition at line 18 of file SCR_DestructionFractalComponent.c.

◆ m_fDistanceMax

protected float m_fDistanceMax

Definition at line 12 of file SCR_DestructionFractalComponent.c.

◆ m_fLifetimeMax

protected float m_fLifetimeMax

Definition at line 9 of file SCR_DestructionFractalComponent.c.

◆ m_fLifetimeMin

protected float m_fLifetimeMin

Definition at line 6 of file SCR_DestructionFractalComponent.c.

◆ m_fMass

protected float m_fMass

Definition at line 3 of file SCR_DestructionFractalComponent.c.

◆ m_fPriority

protected int m_fPriority

Definition at line 15 of file SCR_DestructionFractalComponent.c.

◆ m_fRandomVelocityAngular

protected float m_fRandomVelocityAngular

Definition at line 24 of file SCR_DestructionFractalComponent.c.

◆ m_fRandomVelocityLinear

protected float m_fRandomVelocityLinear

Definition at line 21 of file SCR_DestructionFractalComponent.c.

◆ m_Hierarchy

protected ref SCR_FragmentHierarchy m_Hierarchy

Definition at line 21 of file SCR_DestructionFractalComponent.c.

◆ m_ModelDestroyed

protected ResourceName m_ModelDestroyed

Definition at line 6 of file SCR_DestructionFractalComponent.c.

◆ m_ModelNormal

protected ResourceName m_ModelNormal

Definition at line 3 of file SCR_DestructionFractalComponent.c.