Class BoltActionRifle
- Namespace
- FistVR
- Assembly
- Assembly-CSharp.dll
public class BoltActionRifle : FVRFireArm
- Inheritance
-
BoltActionRifle
- Inherited Members
-
Constructors
BoltActionRifle()
Fields
BoltHandle
public BoltActionRifle_Handle BoltHandle
Field Value
- BoltActionRifle_Handle
BoltLerp
Field Value
- float
BoltMovingForward
public bool BoltMovingForward
Field Value
- bool
Chamber
public FVRFireArmChamber Chamber
Field Value
- FVRFireArmChamber
CockType
public BoltActionRifle.HammerCockType CockType
Field Value
- BoltActionRifle.HammerCockType
CurBoltHandleState
public BoltActionRifle_Handle.BoltActionHandleState CurBoltHandleState
Field Value
- BoltActionRifle_Handle.BoltActionHandleState
EjectionPos
public Transform EjectionPos
Field Value
- Transform
EjectsMagazineOnEmpty
public bool EjectsMagazineOnEmpty
Field Value
- bool
public FVRTailSoundClass ExtraTail
Field Value
- FVRTailSoundClass
public Transform Extraction_ChamberPos
Field Value
- Transform
public Transform Extraction_Ejecting
Field Value
- Transform
public Transform Extraction_MagazinePos
Field Value
- Transform
FireSelector_Axis
public FVRPhysicalObject.Axis FireSelector_Axis
Field Value
- FVRPhysicalObject.Axis
FireSelector_Axis_Secondary
public FVRPhysicalObject.Axis FireSelector_Axis_Secondary
Field Value
- FVRPhysicalObject.Axis
FireSelector_Display
public Transform FireSelector_Display
Field Value
- Transform
FireSelector_Display_Secondary
public Transform FireSelector_Display_Secondary
Field Value
- Transform
FireSelector_InterpStyle
public FVRPhysicalObject.InterpStyle FireSelector_InterpStyle
Field Value
- FVRPhysicalObject.InterpStyle
FireSelector_InterpStyle_Secondary
public FVRPhysicalObject.InterpStyle FireSelector_InterpStyle_Secondary
Field Value
- FVRPhysicalObject.InterpStyle
FireSelector_Modes
public BoltActionRifle.FireSelectorMode[] FireSelector_Modes
Field Value
- FireSelectorMode[]
FireSelector_Modes_Secondary
public BoltActionRifle.FireSelectorMode[] FireSelector_Modes_Secondary
Field Value
- FireSelectorMode[]
Hammer
Field Value
- Transform
HammerCocked
public float HammerCocked
Field Value
- float
HammerUncocked
public float HammerUncocked
Field Value
- float
public bool HasFireSelectorButton
Field Value
- bool
public bool HasMagEjectionButton
Field Value
- bool
HasReciprocatingBarrel
public bool HasReciprocatingBarrel
Field Value
- bool
HasVisualHammer
public bool HasVisualHammer
Field Value
- bool
LastBoltHandleState
public BoltActionRifle_Handle.BoltActionHandleState LastBoltHandleState
Field Value
- BoltActionRifle_Handle.BoltActionHandleState
MagReleaseAxis
public FVRPhysicalObject.Axis MagReleaseAxis
Field Value
- FVRPhysicalObject.Axis
public Transform MagReleaseButton_Display
Field Value
- Transform
MagReleaseInterpStyle
public FVRPhysicalObject.InterpStyle MagReleaseInterpStyle
Field Value
- FVRPhysicalObject.InterpStyle
MagReleasePressedValue
public float MagReleasePressedValue
Field Value
- float
MagReleaseUnpressedValue
public float MagReleaseUnpressedValue
Field Value
- float
Muzzle
Field Value
- Transform
public bool PlaysExtraTailOnShot
Field Value
- bool
RecoilSystem
public G11RecoilingSystem RecoilSystem
Field Value
- G11RecoilingSystem
ReloadTriggerWell
public GameObject ReloadTriggerWell
Field Value
- GameObject
RequiresHammerUncockedToToggleFireSelector
public bool RequiresHammerUncockedToToggleFireSelector
Field Value
- bool
RightwardEjectionForce
public float RightwardEjectionForce
Field Value
- float
TriggerFiringThreshold
public float TriggerFiringThreshold
Field Value
- float
TriggerInterpStyle
public FVRPhysicalObject.InterpStyle TriggerInterpStyle
Field Value
- FVRPhysicalObject.InterpStyle
TriggerInterpStyle2
public FVRPhysicalObject.InterpStyle TriggerInterpStyle2
Field Value
- FVRPhysicalObject.InterpStyle
TriggerResetThreshold
public float TriggerResetThreshold
Field Value
- float
Trigger_Display
public Transform Trigger_Display
Field Value
- Transform
Trigger_Display2
public Transform Trigger_Display2
Field Value
- Transform
Trigger_ForwardValue
public float Trigger_ForwardValue
Field Value
- float
Trigger_ForwardValue2
public float Trigger_ForwardValue2
Field Value
- float
Trigger_RearwardValue
public float Trigger_RearwardValue
Field Value
- float
Trigger_RearwardValue2
public float Trigger_RearwardValue2
Field Value
- float
UpwardEjectionForce
public float UpwardEjectionForce
Field Value
- float
UsesSecondFireSelectorChange
public bool UsesSecondFireSelectorChange
Field Value
- bool
YSpinEjectionTorque
public float YSpinEjectionTorque
Field Value
- float
Properties
IsHammerCocked
public bool IsHammerCocked { get; }
Property Value
- bool
Methods
Awake()
protected override void Awake()
BeginInteraction(FVRViveHand)
public override void BeginInteraction(FVRViveHand hand)
Parameters
hand
FVRViveHand
CanBoltMove()
public bool CanBoltMove()
Returns
- bool
CockHammer()
public override void ConfigureFromFlagDic(Dictionary<string, string> f)
Parameters
f
Dictionary<string, string>
DropHammer()
EndInteraction(FVRViveHand)
public override void EndInteraction(FVRViveHand hand)
Parameters
hand
FVRViveHand
FVRFixedUpdate()
protected override void FVRFixedUpdate()
Fire()
Returns
- bool
FiringSystem()
protected virtual void FiringSystem()
GetChamberRoundList()
public override List<FireArmRoundClass> GetChamberRoundList()
Returns
- List<FireArmRoundClass>
GetFiringMode()
public BoltActionRifle.FireSelectorMode GetFiringMode()
Returns
- BoltActionRifle.FireSelectorMode
GetFlagDic()
public override Dictionary<string, string> GetFlagDic()
Returns
- Dictionary<string, string>
GetSignedAngle(Vector2, Vector2)
public float GetSignedAngle(Vector2 from, Vector2 to)
Parameters
from
Vector2
to
Vector2
Returns
- float
GetTutorialState()
public override int GetTutorialState()
Returns
- int
public bool HasExtractedRound()
Returns
- bool
ReleaseMag()
SetHasTriggeredUp()
public void SetHasTriggeredUp()
SetLoadedChambers(List<FireArmRoundClass>)
public override void SetLoadedChambers(List<FireArmRoundClass> rounds)
Parameters
rounds
List<FireArmRoundClass>
ToggleFireSelector()
protected virtual void ToggleFireSelector()
UpdateBolt(BoltActionHandleState, float, bool)
public FVRFireArmRound UpdateBolt(BoltActionRifle_Handle.BoltActionHandleState State, float lerp, bool isCatchHeld)
Parameters
State
BoltActionRifle_Handle.BoltActionHandleState
lerp
float
isCatchHeld
bool
Returns
- FVRFireArmRound
UpdateInteraction(FVRViveHand)
public override void UpdateInteraction(FVRViveHand hand)
Parameters
hand
FVRViveHand