Class FVRFireArmRound
- Namespace
- FistVR
- Assembly
- Assembly-CSharp.dll
public class FVRFireArmRound : FVRPhysicalObject, IFVRDamageable
- Inheritance
-
FVRFireArmRound
- Implements
-
- Inherited Members
-
Constructors
FVRFireArmRound()
Fields
BallisticProjectilePrefab
public GameObject BallisticProjectilePrefab
Field Value
- GameObject
FiredRenderer
public Renderer FiredRenderer
Field Value
- Renderer
HoveredOverChamber
public FVRFireArmChamber HoveredOverChamber
Field Value
- FVRFireArmChamber
HoveredOverRound
public FVRFireArmRound HoveredOverRound
Field Value
- FVRFireArmRound
ImpactSound_Fired
public ImpactType ImpactSound_Fired
Field Value
- ImpactType
ImpactSound_Unfired
public ImpactType ImpactSound_Unfired
Field Value
- ImpactType
IsCaseless
Field Value
- bool
IsDestroyedAfterCounter
public bool IsDestroyedAfterCounter
Field Value
- bool
IsHighPressure
public bool IsHighPressure
Field Value
- bool
MaxPalmedAmount
public int MaxPalmedAmount
Field Value
- int
NumProjectiles
public int NumProjectiles
Field Value
- int
OnWhenUnfired
public GameObject OnWhenUnfired
Field Value
- GameObject
PalmingDimensions
public Vector3 PalmingDimensions
Field Value
- Vector3
PopType
Field Value
- PMaterial
ProjectilePrefab
public GameObject ProjectilePrefab
Field Value
- GameObject
ProjectileSpread
public float ProjectileSpread
Field Value
- float
ProxyPose
public FVRFireArmRound.ProxyPositionMode ProxyPose
Field Value
- FVRFireArmRound.ProxyPositionMode
ProxyRounds
public List<FVRFireArmRound.ProxyRound> ProxyRounds
Field Value
- List<FVRFireArmRound.ProxyRound>
RoundClass
[SearchableEnum]
public FireArmRoundClass RoundClass
Field Value
- FireArmRoundClass
RoundType
[SearchableEnum]
public FireArmRoundType RoundType
Field Value
- FireArmRoundType
TailClass
public FVRTailSoundClass TailClass
Field Value
- FVRTailSoundClass
TailClassSuppressed
public FVRTailSoundClass TailClassSuppressed
Field Value
- FVRTailSoundClass
UnfiredRenderer
public Renderer UnfiredRenderer
Field Value
- Renderer
isMagazineLoadable
public bool isMagazineLoadable
Field Value
- bool
isManuallyChamberable
public bool isManuallyChamberable
Field Value
- bool
isPalmable
Field Value
- bool
Properties
IsChambered
public bool IsChambered { get; }
Property Value
- bool
IsSpent
public bool IsSpent { get; }
Property Value
- bool
Methods
AddProxy(FireArmRoundClass, FVRObject)
public void AddProxy(FireArmRoundClass roundClass, FVRObject prefabWrapper)
Parameters
roundClass
FireArmRoundClass
prefabWrapper
FVRObject
Awake()
protected override void Awake()
BeginAnimationFrom(Vector3, Quaternion)
public void BeginAnimationFrom(Vector3 pos, Quaternion rot)
Parameters
pos
Vector3
rot
Quaternion
BeginInteraction(FVRViveHand)
public override void BeginInteraction(FVRViveHand hand)
Parameters
hand
FVRViveHand
Chamber(FVRFireArmChamber, bool)
public void Chamber(FVRFireArmChamber c, bool makeChamberingSound)
Parameters
c
FVRFireArmChamber
makeChamberingSound
bool
CycleToProxy(bool, bool)
public void CycleToProxy(bool forward, bool destroyThisRound)
Parameters
forward
bool
destroyThisRound
bool
Damage(Damage)
public void Damage(Damage d)
Parameters
d
Damage
DuplicateFromSpawnLock(FVRViveHand)
public override GameObject DuplicateFromSpawnLock(FVRViveHand hand)
Parameters
hand
FVRViveHand
Returns
- GameObject
Eject(Vector3, Vector3, Vector3)
public void Eject(Vector3 EjectionPosition, Vector3 EjectionVelocity, Vector3 EjectionAngularVelocity)
Parameters
EjectionPosition
Vector3
EjectionVelocity
Vector3
EjectionAngularVelocity
Vector3
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()
Fire()
IsInteractable()
public override bool IsInteractable()
Returns
- bool
MigrateImpactSetting()
public void MigrateImpactSetting()
OnParticleCollision(GameObject)
public void OnParticleCollision(GameObject other)
Parameters
other
GameObject
OnTriggerEnter(Collider)
public void OnTriggerEnter(Collider collider)
Parameters
collider
Collider
OnTriggerExit(Collider)
public void OnTriggerExit(Collider collider)
Parameters
collider
Collider
PalmRound(FVRFireArmRound, bool, bool, int)
public void PalmRound(FVRFireArmRound round, bool insertAtFront, bool updateDisplay, int addAtIndex = 0)
Parameters
round
FVRFireArmRound
insertAtFront
bool
updateDisplay
bool
addAtIndex
int
Recharge()
SetKillCounting(bool)
public void SetKillCounting(bool b)
Parameters
b
bool
SetPickupCooldown(float)
public void SetPickupCooldown(float f)
Parameters
f
float
UpdateInteraction(FVRViveHand)
public override void UpdateInteraction(FVRViveHand hand)
Parameters
hand
FVRViveHand
UpdateProxyDisplay()
public void UpdateProxyDisplay()