mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-12-22 10:23:05 +00:00
39 lines
674 B
C#
39 lines
674 B
C#
|
using UnityEngine;
|
||
|
using SanAndreasUnity.Utilities;
|
||
|
using SanAndreasUnity.Importing.Animation;
|
||
|
|
||
|
namespace SanAndreasUnity.Behaviours.Peds.States
|
||
|
{
|
||
|
|
||
|
public class CrouchFireState : CrouchAimState, IFireState
|
||
|
{
|
||
|
|
||
|
|
||
|
protected override bool SwitchToFiringState ()
|
||
|
{
|
||
|
// there are no other fire movement states to switch to
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
protected override bool SwitchToOtherAimMovementState ()
|
||
|
{
|
||
|
// we'll switch to aim state when fire anim finishes
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
public override void StartFiring ()
|
||
|
{
|
||
|
// ignore
|
||
|
}
|
||
|
|
||
|
public virtual void StopFiring ()
|
||
|
{
|
||
|
// switch to crouch-aim state
|
||
|
m_ped.SwitchState<CrouchAimState>();
|
||
|
}
|
||
|
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|