Show / Hide Table of Contents

Class CameraRecoiler

Inheritance
Object
Object
Component
Behaviour
MonoBehaviour
CameraRecoiler
Namespace: DaggerfallWorkshop.Game
Assembly: Assembly-CSharp.dll
Syntax
public class CameraRecoiler : MonoBehaviour

Fields

| Improve this Doc View Source

baseMaxRecoilSeverity

Declaration
protected const float baseMaxRecoilSeverity = 50F
Field Value
Type Description
Single
| Improve this Doc View Source

bSwaying

Declaration
protected bool bSwaying
Field Value
Type Description
Boolean
| Improve this Doc View Source

playerCamTransform

Declaration
protected Transform playerCamTransform
Field Value
Type Description
Transform
| Improve this Doc View Source

swayAxis

Declaration
protected Vector2 swayAxis
Field Value
Type Description
Vector2
| Improve this Doc View Source

timer

Declaration
protected float timer
Field Value
Type Description
Single
| Improve this Doc View Source

timerStart

Declaration
protected float timerStart
Field Value
Type Description
Single
| Improve this Doc View Source

vitalsDetector

Declaration
protected VitalsChangeDetector vitalsDetector
Field Value
Type Description
VitalsChangeDetector

Properties

| Improve this Doc View Source

RecoilSetting

Declaration
public CameraRecoilSetting RecoilSetting { get; }
Property Value
Type Description
CameraRecoilSetting

Methods

| Improve this Doc View Source

AdjustForUserSetting(Single)

Declaration
protected virtual float AdjustForUserSetting(float maxRotationScalar)
Parameters
Type Name Description
Single maxRotationScalar
Returns
Type Description
Single
| Improve this Doc View Source

CalculateRotationScalar(Int32)

Declaration
protected virtual float CalculateRotationScalar(int healthLost)
Parameters
Type Name Description
Int32 healthLost
Returns
Type Description
Single
| Improve this Doc View Source

CalculateTimerStart(Single)

Declaration
protected virtual float CalculateTimerStart(float percentHealthLost)
Parameters
Type Name Description
Single percentHealthLost
Returns
Type Description
Single
| Improve this Doc View Source

GetRecoilSetting(Int32)

Declaration
protected virtual CameraRecoilSetting GetRecoilSetting(int recoilStrength)
Parameters
Type Name Description
Int32 recoilStrength
Returns
Type Description
CameraRecoilSetting
| Improve this Doc View Source

GetRotationVector(Int32, Single)

Declaration
protected virtual Vector3 GetRotationVector(int healthLost, float rotationScalar)
Parameters
Type Name Description
Int32 healthLost
Single rotationScalar
Returns
Type Description
Vector3
| Improve this Doc View Source

ResetRecoil()

Declaration
public void ResetRecoil()
| Improve this Doc View Source

SetSwayAxis()

Declaration
protected virtual void SetSwayAxis()

Extension Methods

MBExtensions.Invoke(MonoBehaviour, Action, Single)
MBExtensions.Invoke<T>(MonoBehaviour, Action<T>, T, Single)
MBExtensions.Invoke<T1, T2>(MonoBehaviour, Action<T1, T2>, T1, T2, Single)
MBExtensions.Invoke<T1, T2, T3>(MonoBehaviour, Action<T1, T2, T3>, T1, T2, T3, Single)
MBExtensions.Invoke<T1, T2, T3, T4>(MonoBehaviour, Action<T1, T2, T3, T4>, T1, T2, T3, T4, Single)
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX