Show / Hide Table of Contents

Class WeaponManager

Support for mouse attack gestures, weapon state firing, and damage transfer. Should only be attached to player game object.

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

Fields

| Improve this Doc View Source

ArrowMissilePrefab

Declaration
public DaggerfallMissile ArrowMissilePrefab
Field Value
Type Description
DaggerfallMissile
| Improve this Doc View Source

AttackThreshold

Declaration
[Range(0F, 1F)]
public float AttackThreshold
Field Value
Type Description
Single
| Improve this Doc View Source

ChanceToBeParried

Declaration
public float ChanceToBeParried
Field Value
Type Description
Single
| Improve this Doc View Source

defaultWeaponReach

Declaration
public const float defaultWeaponReach = 2.25F
Field Value
Type Description
Single
| Improve this Doc View Source

EquipCountdownLeftHand

Declaration
public float EquipCountdownLeftHand
Field Value
Type Description
Single
| Improve this Doc View Source

EquipCountdownRightHand

Declaration
public float EquipCountdownRightHand
Field Value
Type Description
Single
| Improve this Doc View Source

EquipDelayTimes

Declaration
public static ushort[] EquipDelayTimes
Field Value
Type Description
UInt16[]
| Improve this Doc View Source

ScreenWeapon

Declaration
public FPSWeapon ScreenWeapon
Field Value
Type Description
FPSWeapon
| Improve this Doc View Source

Sheathed

Declaration
public bool Sheathed
Field Value
Type Description
Boolean
| Improve this Doc View Source

SphereCastRadius

Declaration
public float SphereCastRadius
Field Value
Type Description
Single

Properties

| Improve this Doc View Source

LastBowUsed

Declaration
public DaggerfallUnityItem LastBowUsed { get; }
Property Value
Type Description
DaggerfallUnityItem
| Improve this Doc View Source

UsingRightHand

Declaration
public bool UsingRightHand { get; set; }
Property Value
Type Description
Boolean

Methods

| Improve this Doc View Source

Reset()

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

SheathWeapons()

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

ToggleSheath()

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

WeaponDamage(DaggerfallUnityItem, Boolean, Boolean, Transform, Vector3, Vector3)

Declaration
public bool WeaponDamage(DaggerfallUnityItem strikingWeapon, bool arrowHit, bool arrowSummoned, Transform hitTransform, Vector3 impactPosition, Vector3 direction)
Parameters
Type Name Description
DaggerfallUnityItem strikingWeapon
Boolean arrowHit
Boolean arrowSummoned
Transform hitTransform
Vector3 impactPosition
Vector3 direction
Returns
Type Description
Boolean
| Improve this Doc View Source

WeaponEnvDamage(DaggerfallUnityItem, RaycastHit)

Declaration
public bool WeaponEnvDamage(DaggerfallUnityItem strikingWeapon, RaycastHit hit)
Parameters
Type Name Description
DaggerfallUnityItem strikingWeapon
RaycastHit hit
Returns
Type Description
Boolean

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