Class FVRFireArm
- Namespace
- FistVR
- Assembly
- Assembly-CSharp.dll
public class FVRFireArm : FVRPhysicalObject
- Inheritance
-
FVRFireArm
- Derived
-
- Inherited Members
-
Constructors
FVRFireArm()
Fields
AccuracyClass
public FVRFireArmMechanicalAccuracyClass AccuracyClass
Field Value
- FVRFireArmMechanicalAccuracyClass
AudioClipSet
public FVRFirearmAudioSet AudioClipSet
Field Value
- FVRFirearmAudioSet
BeltBoxEjectPos
public Transform BeltBoxEjectPos
Field Value
- Transform
BeltBoxMountPos
public Transform BeltBoxMountPos
Field Value
- Transform
BeltDD
public FVRFirearmBeltDisplayData BeltDD
Field Value
- FVRFirearmBeltDisplayData
Clip
public FVRFireArmClip Clip
Field Value
- FVRFireArmClip
ClipEjectPos
public Transform ClipEjectPos
Field Value
- Transform
ClipMountPos
public Transform ClipMountPos
Field Value
- Transform
ClipTrigger
public GameObject ClipTrigger
Field Value
- GameObject
ClipType
public FireArmClipType ClipType
Field Value
- FireArmClipType
ConnectedToBox
public bool ConnectedToBox
Field Value
- bool
ControlsOwnGasOut
public bool ControlsOwnGasOut
Field Value
- bool
CurrentAttachableMeleeWeapon
public AttachableMeleeWeapon CurrentAttachableMeleeWeapon
Field Value
- AttachableMeleeWeapon
CurrentMuzzle
public Transform CurrentMuzzle
Field Value
- Transform
CurrentMuzzleBrake
public MuzzleBrake CurrentMuzzleBrake
Field Value
- MuzzleBrake
CurrentSuppressor
public Suppressor CurrentSuppressor
Field Value
- Suppressor
DefaultMuzzleDamping
public FVRFireArmMechanicalAccuracyClass DefaultMuzzleDamping
Field Value
- FVRFireArmMechanicalAccuracyClass
DefaultMuzzleEffectSize
public MuzzleEffectSize DefaultMuzzleEffectSize
Field Value
- MuzzleEffectSize
DefaultMuzzleState
public FVRFireArm.MuzzleState DefaultMuzzleState
Field Value
- FVRFireArm.MuzzleState
FChambers
protected List<FVRFireArmChamber> FChambers
Field Value
- List<FVRFireArmChamber>
Foregrip
public GameObject Foregrip
Field Value
- GameObject
GasOutEffects
public FVRFireArm.GasOutEffect[] GasOutEffects
Field Value
- GasOutEffect[]
HasActiveShoulderStock
public bool HasActiveShoulderStock
Field Value
- bool
HasBelt
Field Value
- bool
IsBreachOpenForGasOut
public bool IsBreachOpenForGasOut
Field Value
- bool
IsTopCoverUp
Field Value
- bool
Magazine
public FVRFireArmMagazine Magazine
Field Value
- FVRFireArmMagazine
MagazineEjectPos
public Transform MagazineEjectPos
Field Value
- Transform
MagazineMountPos
public Transform MagazineMountPos
Field Value
- Transform
MagazineType
[SearchableEnum]
public FireArmMagazineType MagazineType
Field Value
- FireArmMagazineType
MuzzleDevices
public List<MuzzleDevice> MuzzleDevices
Field Value
- List<MuzzleDevice>
MuzzleEffects
public MuzzleEffect[] MuzzleEffects
Field Value
- MuzzleEffect[]
MuzzlePos
public Transform MuzzlePos
Field Value
- Transform
RecoilProfile
public FVRFireArmRecoilProfile RecoilProfile
Field Value
- FVRFireArmRecoilProfile
RecoilProfileStocked
public FVRFireArmRecoilProfile RecoilProfileStocked
Field Value
- FVRFireArmRecoilProfile
RecoilingPoseHolder
public Transform RecoilingPoseHolder
Field Value
- Transform
RequiresBoltBackToSeatBelt
public bool RequiresBoltBackToSeatBelt
Field Value
- bool
RoundType
[SearchableEnum]
public FireArmRoundType RoundType
Field Value
- FireArmRoundType
SceneSettings
public FVRSceneSettings SceneSettings
Field Value
- FVRSceneSettings
SecondaryMagazineSlots
public FVRFireArm.SecondaryMagazineSlot[] SecondaryMagazineSlots
Field Value
- SecondaryMagazineSlot[]
StockDist
Field Value
- float
StockPos
public Transform StockPos
Field Value
- Transform
UsesBeltBoxes
public bool UsesBeltBoxes
Field Value
- bool
UsesBelts
Field Value
- bool
UsesClips
Field Value
- bool
UsesMagazines
public bool UsesMagazines
Field Value
- bool
UsesStockedRecoilProfile
public bool UsesStockedRecoilProfile
Field Value
- bool
UsesTopCover
Field Value
- bool
m_ejectDelay
protected float m_ejectDelay
Field Value
- float
m_isBraked
protected bool m_isBraked
Field Value
- bool
m_isSuppressed
protected bool m_isSuppressed
Field Value
- bool
m_pool_belt
protected SM.AudioSourcePool m_pool_belt
Field Value
- SM.AudioSourcePool
m_pool_handling
protected SM.AudioSourcePool m_pool_handling
Field Value
- SM.AudioSourcePool
m_pool_mechanics
protected SM.AudioSourcePool m_pool_mechanics
Field Value
- SM.AudioSourcePool
m_pool_shot
protected SM.AudioSourcePool m_pool_shot
Field Value
- SM.AudioSourcePool
m_pool_tail
protected SM.AudioSourcePool m_pool_tail
Field Value
- SM.AudioSourcePool
Properties
ClipEjectDelay
public float ClipEjectDelay { get; }
Property Value
- float
EjectDelay
public float EjectDelay { get; set; }
Property Value
- float
LastEjectedMag
public FVRFireArmMagazine LastEjectedMag { get; }
Property Value
- FVRFireArmMagazine
Methods
AddGas(int)
public virtual void AddGas(int i)
Parameters
i
int
Awake()
protected override void Awake()
BeginInteraction(FVRViveHand)
public override void BeginInteraction(FVRViveHand hand)
Parameters
hand
FVRViveHand
public void ConfigureForMelee()
public override void ConfigureFromFlagDic(Dictionary<string, string> f)
Parameters
f
Dictionary<string, string>
DeRegisterMuzzleDevice(MuzzleDevice)
public void DeRegisterMuzzleDevice(MuzzleDevice m)
Parameters
m
MuzzleDevice
EjectClip()
public virtual void EjectClip()
EjectMag(bool)
public virtual void EjectMag(bool PhysicalRelease = false)
Parameters
PhysicalRelease
bool
EjectSecondaryMagFromSlot(int, bool)
public virtual void EjectSecondaryMagFromSlot(int slot, bool PhysicalRelease = false)
Parameters
slot
int
PhysicalRelease
bool
EndInteraction(FVRViveHand)
public override void EndInteraction(FVRViveHand hand)
Parameters
hand
FVRViveHand
EndInteractionIntoInventorySlot(FVRViveHand, FVRQuickBeltSlot)
public override void EndInteractionIntoInventorySlot(FVRViveHand hand, FVRQuickBeltSlot slot)
Parameters
hand
FVRViveHand
slot
FVRQuickBeltSlot
FVRFixedUpdate()
protected override void FVRFixedUpdate()
FVRUpdate()
protected override void FVRUpdate()
public virtual void Fire(FVRFireArmChamber chamber, Transform muzzle, bool doBuzz, float velMult = 1, float rangeOverride = -1)
Parameters
chamber
FVRFireArmChamber
muzzle
Transform
doBuzz
bool
velMult
float
rangeOverride
float
FireMuzzleSmoke()
public virtual void FireMuzzleSmoke()
FireMuzzleSmoke(int)
public virtual void FireMuzzleSmoke(int i)
Parameters
i
int
GetChamberRoundList()
public virtual List<FireArmRoundClass> GetChamberRoundList()
Returns
- List<FireArmRoundClass>
GetChambers()
public List<FVRFireArmChamber> GetChambers()
Returns
- List<FVRFireArmChamber>
GetCombinedFixedDrift(FVRFireArmMechanicalAccuracyClass)
public Vector2 GetCombinedFixedDrift(FVRFireArmMechanicalAccuracyClass c)
Parameters
c
FVRFireArmMechanicalAccuracyClass
Returns
- Vector2
GetCombinedFixedDrop(FVRFireArmMechanicalAccuracyClass)
public float GetCombinedFixedDrop(FVRFireArmMechanicalAccuracyClass c)
Parameters
c
FVRFireArmMechanicalAccuracyClass
Returns
- float
GetCombinedMuzzleDeviceAccuracy()
public float GetCombinedMuzzleDeviceAccuracy()
Returns
- float
GetFlagDic()
public override Dictionary<string, string> GetFlagDic()
Returns
- Dictionary<string, string>
GetIntegratedAttachableFirearm()
public AttachableFirearm GetIntegratedAttachableFirearm()
Returns
- AttachableFirearm
GetMagEjectPos(bool)
public Transform GetMagEjectPos(bool isBeltBox)
Parameters
isBeltBox
bool
Returns
- Transform
GetMagMountPos(bool)
public Transform GetMagMountPos(bool isBeltBox)
Parameters
isBeltBox
bool
Returns
- Transform
public virtual Transform GetMagMountingTransform()
Returns
- Transform
GetMinStabilizationAllowanceFactor()
public override float GetMinStabilizationAllowanceFactor()
Returns
- float
GetMuzzle()
public virtual Transform GetMuzzle()
Returns
- Transform
GetRecoilProfile()
public FVRFireArmRecoilProfile GetRecoilProfile()
Returns
- FVRFireArmRecoilProfile
GetRecoilZ()
public override float GetRecoilZ()
Returns
- float
GetReductionFactor()
public float GetReductionFactor()
Returns
- float
GetStockPos()
public override Transform GetStockPos()
Returns
- Transform
HasStockPos()
public override bool HasStockPos()
Returns
- bool
IsBraked()
Returns
- bool
IsForegripStabilized()
public virtual bool IsForegripStabilized()
Returns
- bool
IsShoulderStabilized()
public virtual bool IsShoulderStabilized()
Returns
- bool
IsSuppressed()
public bool IsSuppressed()
Returns
- bool
IsTwoHandStabilized()
public virtual bool IsTwoHandStabilized()
Returns
- bool
LoadClip(FVRFireArmClip)
public virtual void LoadClip(FVRFireArmClip clip)
Parameters
clip
FVRFireArmClip
LoadMag(FVRFireArmMagazine)
public virtual void LoadMag(FVRFireArmMagazine mag)
Parameters
mag
FVRFireArmMagazine
LoadMagIntoSecondary(FVRFireArmMagazine, int)
public virtual void LoadMagIntoSecondary(FVRFireArmMagazine mag, int slot)
Parameters
mag
FVRFireArmMagazine
slot
int
PlayAudioAsHandling(AudioEvent, Vector3)
public FVRPooledAudioSource PlayAudioAsHandling(AudioEvent ev, Vector3 pos)
Parameters
ev
AudioEvent
pos
Vector3
Returns
- FVRPooledAudioSource
PlayAudioEvent(FirearmAudioEventType, float)
public void PlayAudioEvent(FirearmAudioEventType eType, float pitchmod = 1)
Parameters
eType
FirearmAudioEventType
pitchmod
float
PlayAudioEventHandling(AudioEvent)
public void PlayAudioEventHandling(AudioEvent e)
Parameters
e
AudioEvent
PlayAudioGunShot(FVRFireArmRound, FVRSoundEnvironment, float)
public void PlayAudioGunShot(FVRFireArmRound round, FVRSoundEnvironment TailEnvironment, float globalLoudnessMultiplier = 1)
Parameters
round
FVRFireArmRound
TailEnvironment
FVRSoundEnvironment
globalLoudnessMultiplier
float
PlayAudioGunShot(bool, FVRTailSoundClass, FVRTailSoundClass, FVRSoundEnvironment)
public void PlayAudioGunShot(bool IsHighPressure, FVRTailSoundClass TailClass, FVRTailSoundClass TailClassSuppressed, FVRSoundEnvironment TailEnvironment)
Parameters
IsHighPressure
bool
TailClass
FVRTailSoundClass
TailClassSuppressed
FVRTailSoundClass
TailEnvironment
FVRSoundEnvironment
PlayShotTail(FVRTailSoundClass, FVRSoundEnvironment, float)
public void PlayShotTail(FVRTailSoundClass tailClass, FVRSoundEnvironment TailEnvironment, float globalLoudnessMultiplier = 1)
Parameters
tailClass
FVRTailSoundClass
TailEnvironment
FVRSoundEnvironment
globalLoudnessMultiplier
float
RattleSuppresor()
public void RattleSuppresor()
Recoil(bool, bool, bool, FVRFireArmRecoilProfile, float)
public virtual void Recoil(bool twoHandStabilized, bool foregripStabilized, bool shoulderStabilized, FVRFireArmRecoilProfile overrideprofile = null, float VerticalRecoilMult = 1)
Parameters
twoHandStabilized
bool
foregripStabilized
bool
shoulderStabilized
bool
overrideprofile
FVRFireArmRecoilProfile
VerticalRecoilMult
float
RegisterAttachedMeleeWeapon(AttachableMeleeWeapon)
public void RegisterAttachedMeleeWeapon(AttachableMeleeWeapon a)
Parameters
a
AttachableMeleeWeapon
RegisterMuzzleBrake(MuzzleBrake)
public void RegisterMuzzleBrake(MuzzleBrake m)
Parameters
m
MuzzleBrake
RegisterMuzzleDevice(MuzzleDevice)
public void RegisterMuzzleDevice(MuzzleDevice m)
Parameters
m
MuzzleDevice
RegisterSuppressor(Suppressor)
public void RegisterSuppressor(Suppressor s)
Parameters
s
Suppressor
SetIntegratedAttachableFirearm(AttachableFirearm)
public void SetIntegratedAttachableFirearm(AttachableFirearm a)
Parameters
a
AttachableFirearm
SetLoadedChambers(List<FireArmRoundClass>)
public virtual void SetLoadedChambers(List<FireArmRoundClass> rounds)
Parameters
rounds
List<FireArmRoundClass>
SetQuickBeltSlot(FVRQuickBeltSlot)
public override void SetQuickBeltSlot(FVRQuickBeltSlot slot)
Parameters
slot
FVRQuickBeltSlot