Arma Reforger Script API
Loading...
Searching...
No Matches
SCR_WeaponAttachmentSuppressorAttributes Interface Reference
Inheritance diagram for SCR_WeaponAttachmentSuppressorAttributes:
SCR_WeaponAttachmentAttributes WeaponAttachmentAttributes AttachmentAttributes BaseItemAttributeData

Public Member Functions

override bool ApplyModifiers (BaseWeaponStatsManagerComponent statsManager, int muzzleIndex, IEntity attachedEntity)
 Apply Modifiers to weapon on attach.
 
override void ClearModifiers (BaseWeaponStatsManagerComponent statsManager, int muzzleIndex, IEntity attachedEntity)
 Clear the modifiers from a weapon on detach This is called before an attachment is removed from a weapon.
 
- Public Member Functions inherited from AttachmentAttributes
proto external BaseAttachmentType GetAttachmentType ()
 

Protected Attributes

float m_fMuzzleSpeedCoefficient
 
bool m_bOverrideShot
 
bool m_bOverrideMuzzleEffects
 
float m_fMuzzleDispersionFactor
 
float m_fExtraObstructionLength
 
vector m_vLinearFactors
 
vector m_vAngularFactors
 
vector m_vTurnFactors
 

Member Function Documentation

◆ ApplyModifiers()

override bool SCR_WeaponAttachmentSuppressorAttributes.ApplyModifiers ( BaseWeaponStatsManagerComponent statsManager,
int muzzleIndex,
IEntity attachedEntity )

Apply Modifiers to weapon on attach.

This is called when an attachment has been attached to a weapon.

Parameters
statsManagerThe stats manager that called this function. All modifiers should be set through this
muzzleIndexThe index of the muzzle, if applicable. This has no real meaning to this function except that it should be passed on to muzzle related functions. Can be -1 (which indicates that this attachment was done on a non-muzzle attachment slot) or a non-zero integer. See below
attachedEntityThe entity being attached

The muzzle index can be interpreted only as a far as -1 means that the attachment was not attached to a muzzle. Other than that, the index should be passed on to functions without modification.

Implements SCR_WeaponAttachmentAttributes.

◆ ClearModifiers()

override void SCR_WeaponAttachmentSuppressorAttributes.ClearModifiers ( BaseWeaponStatsManagerComponent statsManager,
int muzzleIndex,
IEntity attachedEntity )

Clear the modifiers from a weapon on detach This is called before an attachment is removed from a weapon.

Parameters
statsManagerThe stats manager that called this function. All modifiers should be set through this
muzzleIndexThe index of the muzzle, if applicable. This has no real meaning to this function except that it should be passed on to muzzle related functions. Can be -1 (which indicates that this attachment was done on a non-muzzle attachment slot) or a non-zero integer.
attachedEntityThe entity being detached

See also ApplyModifiers

Implements SCR_WeaponAttachmentAttributes.

Member Data Documentation

◆ m_bOverrideMuzzleEffects

bool SCR_WeaponAttachmentSuppressorAttributes.m_bOverrideMuzzleEffects
protected

◆ m_bOverrideShot

bool SCR_WeaponAttachmentSuppressorAttributes.m_bOverrideShot
protected

◆ m_fExtraObstructionLength

float SCR_WeaponAttachmentSuppressorAttributes.m_fExtraObstructionLength
protected

◆ m_fMuzzleDispersionFactor

float SCR_WeaponAttachmentSuppressorAttributes.m_fMuzzleDispersionFactor
protected

◆ m_fMuzzleSpeedCoefficient

float SCR_WeaponAttachmentSuppressorAttributes.m_fMuzzleSpeedCoefficient
protected

◆ m_vAngularFactors

vector SCR_WeaponAttachmentSuppressorAttributes.m_vAngularFactors
protected

◆ m_vLinearFactors

vector SCR_WeaponAttachmentSuppressorAttributes.m_vLinearFactors
protected

◆ m_vTurnFactors

vector SCR_WeaponAttachmentSuppressorAttributes.m_vTurnFactors
protected

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