Class FVRFireArmMagazine
- Namespace
- FistVR
- Assembly
- Assembly-CSharp.dll
public class FVRFireArmMagazine : FVRPhysicalObject
- Inheritance
-
FVRFireArmMagazine
- Derived
-
- Inherited Members
-
Constructors
FVRFireArmMagazine()
public FVRFireArmMagazine()
Fields
AlternatePoseOverride
public Transform AlternatePoseOverride
Field Value
- Transform
AttachableFireArm
public AttachableFirearm AttachableFireArm
Field Value
- AttachableFirearm
AutoEjectsOnEmpty
public bool AutoEjectsOnEmpty
Field Value
- bool
BeltGrabTrigger
public FVRFireArmBeltGrabTrigger BeltGrabTrigger
Field Value
- FVRFireArmBeltGrabTrigger
CanBeTornOut
Field Value
- bool
CanManuallyEjectRounds
public bool CanManuallyEjectRounds
Field Value
- bool
DefaultLoadingPattern
public FVRFireArmMagazine.FVRMagazineLoadingPattern DefaultLoadingPattern
Field Value
- FVRFireArmMagazine.FVRMagazineLoadingPattern
DisplayBullets
public GameObject[] DisplayBullets
Field Value
- GameObject[]
DisplayMeshFilters
public MeshFilter[] DisplayMeshFilters
Field Value
- MeshFilter[]
DisplayRenderers
public Renderer[] DisplayRenderers
Field Value
- Renderer[]
DoesDisplayXOscillate
public bool DoesDisplayXOscillate
Field Value
- bool
DoesFollowerStopBolt
public bool DoesFollowerStopBolt
Field Value
- bool
EjectionSpeed
public float EjectionSpeed
Field Value
- float
FireArm
public FVRFireArm FireArm
Field Value
- FVRFireArm
Follower
public Transform Follower
Field Value
- Transform
FollowerEulers
public Vector3[] FollowerEulers
Field Value
- Vector3[]
FollowerMeshFilter
public MeshFilter FollowerMeshFilter
Field Value
- MeshFilter
FollowerMeshes
public Mesh[] FollowerMeshes
Field Value
- Mesh[]
FollowerPositions
public Vector3[] FollowerPositions
Field Value
- Vector3[]
FuelAmountLeft
public float FuelAmountLeft
Field Value
- float
HidesAllDisplayBulletsWhenGrabbed
public bool HidesAllDisplayBulletsWhenGrabbed
Field Value
- bool
ImpactEmptyType
public ImpactType ImpactEmptyType
Field Value
- ImpactType
IndexBeforeWhichIsHiddenWhenGrabbed
public int IndexBeforeWhichIsHiddenWhenGrabbed
Field Value
- int
IsBeltBox
Field Value
- bool
IsDropInLoadable
public bool IsDropInLoadable
Field Value
- bool
IsEnBloc
Field Value
- bool
public bool IsExtractable
Field Value
- bool
IsInfinite
Field Value
- bool
IsIntegrated
Field Value
- bool
IsNonPhysForLoad
public bool IsNonPhysForLoad
Field Value
- bool
LoadedRounds
public FVRLoadedRound[] LoadedRounds
Field Value
- FVRLoadedRound[]
MagazineType
[SearchableEnum]
public FireArmMagazineType MagazineType
Field Value
- FireArmMagazineType
Profile
public FVRFirearmAudioSet Profile
Field Value
- FVRFirearmAudioSet
ProfileOverride
public FVRFirearmMagazineAudioSet ProfileOverride
Field Value
- FVRFirearmMagazineAudioSet
RotAxis
public FVRPhysicalObject.Axis RotAxis
Field Value
- FVRPhysicalObject.Axis
Rot_Empty
Field Value
- float
Rot_Full
Field Value
- float
RotatingBit
public Transform RotatingBit
Field Value
- Transform
RoundEjectionPos
public Transform RoundEjectionPos
Field Value
- Transform
RoundType
[SearchableEnum]
public FireArmRoundType RoundType
Field Value
- FireArmRoundType
Spring
Field Value
- Transform
SpringScales
public float[] SpringScales
Field Value
- float[]
State
public FVRFireArmMagazine.MagazineState State
Field Value
- FVRFireArmMagazine.MagazineState
SwapsImpactTypeOnEmpty
public bool SwapsImpactTypeOnEmpty
Field Value
- bool
UsesFollower
Field Value
- bool
UsesFollowerMeshSwapping
public bool UsesFollowerMeshSwapping
Field Value
- bool
UsesFollowerRotation
public bool UsesFollowerRotation
Field Value
- bool
UsesOverrideInOut
public bool UsesOverrideInOut
Field Value
- bool
UsesRotatingBit
public bool UsesRotatingBit
Field Value
- bool
UsesSpring
Field Value
- bool
UsesVizInterp
public bool UsesVizInterp
Field Value
- bool
Viz
Field Value
- Transform
m_capacity
Field Value
- int
m_numRounds
Field Value
- int
Properties
TimeSinceRoundInserted
public float TimeSinceRoundInserted { get; }
Property Value
- float
Methods
AddRound(FVRFireArmRound, bool, bool, bool)
public void AddRound(FVRFireArmRound round, bool makeSound, bool updateDisplay, bool animate = false)
Parameters
round
FVRFireArmRound
makeSound
bool
updateDisplay
bool
animate
bool
AddRound(FireArmRoundClass, bool, bool)
public void AddRound(FireArmRoundClass rClass, bool makeSound, bool updateDisplay)
Parameters
rClass
FireArmRoundClass
makeSound
bool
updateDisplay
bool
Awake()
protected override void Awake()
BeginInteraction(FVRViveHand)
public override void BeginInteraction(FVRViveHand hand)
Parameters
hand
FVRViveHand
DrainFuel(float)
public void DrainFuel(float f)
Parameters
f
float
DuplicateFromSpawnLock(FVRViveHand)
public override GameObject DuplicateFromSpawnLock(FVRViveHand hand)
Parameters
hand
FVRViveHand
Returns
- GameObject
EndInteraction(FVRViveHand)
public override void EndInteraction(FVRViveHand hand)
Parameters
hand
FVRViveHand
FVRFixedUpdate()
protected override void FVRFixedUpdate()
FVRUpdate()
protected override void FVRUpdate()
FlipRoundX()
ForceEmpty()
ForceFull()
GetAmmoLocalEulers()
public Vector3 GetAmmoLocalEulers()
Returns
- Vector3
GetCanPalm()
Returns
- bool
GetGrabPos()
protected override Vector3 GetGrabPos()
Returns
- Vector3
GetGrabRot()
protected override Quaternion GetGrabRot()
Returns
- Quaternion
GetMagChild()
public FVRFireArmMagazine GetMagChild()
Returns
- FVRFireArmMagazine
GetMagParent()
public FVRFireArmMagazine GetMagParent()
Returns
- FVRFireArmMagazine
GetMagWidth()
public float GetMagWidth()
Returns
- float
GetPosTarget()
protected override Vector3 GetPosTarget()
Returns
- Vector3
GetRotTarget()
protected override Quaternion GetRotTarget()
Returns
- Quaternion
HasARound()
Returns
- bool
HasFuel()
Returns
- bool
HasFuel(float)
public bool HasFuel(float f)
Parameters
f
float
Returns
- bool
IsFull()
Returns
- bool
IsInteractable()
public override bool IsInteractable()
Returns
- bool
Load(AttachableFirearm)
public void Load(AttachableFirearm fireArm)
Parameters
fireArm
AttachableFirearm
Load(FVRFireArm)
public void Load(FVRFireArm fireArm)
Parameters
fireArm
FVRFireArm
LoadIntoSecondary(FVRFireArm, int)
public void LoadIntoSecondary(FVRFireArm fireArm, int slot)
Parameters
fireArm
FVRFireArm
slot
int
Release(bool)
public void Release(bool PhysicalRelease = false)
Parameters
PhysicalRelease
bool
ReleaseFromAttachableFireArm(bool)
public void ReleaseFromAttachableFireArm(bool PhysicalRelease = false)
Parameters
PhysicalRelease
bool
ReleaseFromSecondarySlot(int, bool)
public void ReleaseFromSecondarySlot(int slot, bool PhysicalRelease = false)
Parameters
slot
int
PhysicalRelease
bool
ReloadMagWithList(List<FireArmRoundClass>)
public void ReloadMagWithList(List<FireArmRoundClass> list)
Parameters
list
List<FireArmRoundClass>
ReloadMagWithType(FireArmRoundClass)
public void ReloadMagWithType(FireArmRoundClass rClass)
Parameters
rClass
FireArmRoundClass
ReloadMagWithTypeUpToPercentage(FireArmRoundClass, float)
public void ReloadMagWithTypeUpToPercentage(FireArmRoundClass rClass, float percentage)
Parameters
rClass
FireArmRoundClass
percentage
float
RemoveRound()
public void RemoveRound()
RemoveRound(bool)
public GameObject RemoveRound(bool b)
Parameters
b
bool
Returns
- GameObject
RemoveRound(int)
public FVRLoadedRound RemoveRound(int i)
Parameters
i
int
Returns
- FVRLoadedRound
SetMagChild(FVRFireArmMagazine)
public void SetMagChild(FVRFireArmMagazine magChild)
Parameters
magChild
FVRFireArmMagazine
SetMagParent(FVRFireArmMagazine)
public void SetMagParent(FVRFireArmMagazine magParent)
Parameters
magParent
FVRFireArmMagazine
UpdateBulletDisplay()
public void UpdateBulletDisplay()
UpdateBulletDisplayTest()
public void UpdateBulletDisplayTest()
UpdateInteraction(FVRViveHand)
public override void UpdateInteraction(FVRViveHand hand)
Parameters
hand
FVRViveHand