Class PatternHitscanShooter
Inheritance
PatternHitscanShooter
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: NeoFPS.ModularFirearms
Assembly: NeoFPS.dll
Syntax
public class PatternHitscanShooter : BaseShooterBehaviour, IFirearmModule, IShooter, IFirearmModuleValidity, INeoSerializableComponent, IUseCameraAim
Properties
collisionLayers
Declaration
public LayerMask collisionLayers { get; set; }
Property Value
| Type | Description |
|---|---|
| LayerMask |
isModuleValid
Declaration
public override bool isModuleValid { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Overrides
useCameraAim
Declaration
public UseCameraAim useCameraAim { get; set; }
Property Value
| Type | Description |
|---|---|
| UseCameraAim |
Methods
Awake()
Declaration
protected override void Awake()
Overrides
GetModifiedAimOffset(Single)
Declaration
protected virtual float GetModifiedAimOffset(float unmodified)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | unmodified |
Returns
| Type | Description |
|---|---|
| System.Single |
OnValidate()
Declaration
protected void OnValidate()
ReadProperties(INeoDeserializer, NeoSerializedGameObject)
Declaration
public override void ReadProperties(INeoDeserializer reader, NeoSerializedGameObject nsgo)
Parameters
| Type | Name | Description |
|---|---|---|
| INeoDeserializer | reader | |
| NeoSerializedGameObject | nsgo |
Overrides
Shoot(Single, IAmmoEffect)
Declaration
public override void Shoot(float accuracy, IAmmoEffect effect)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | accuracy | |
| IAmmoEffect | effect |
Overrides
WriteProperties(INeoSerializer, NeoSerializedGameObject, SaveMode)
Declaration
public override void WriteProperties(INeoSerializer writer, NeoSerializedGameObject nsgo, SaveMode saveMode)
Parameters
| Type | Name | Description |
|---|---|---|
| INeoSerializer | writer | |
| NeoSerializedGameObject | nsgo | |
| SaveMode | saveMode |