r2mods/ilspy_dump/ror2_csproj/EntityStates.ClayBruiser.We.../FireSonicBoom.cs

31 lines
676 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
using EntityStates.Treebot.Weapon;
using RoR2;
using UnityEngine;
namespace EntityStates.ClayBruiser.Weapon;
public class FireSonicBoom : EntityStates.Treebot.Weapon.FireSonicBoom
{
private static int WeaponIsReadyParamHash = Animator.StringToHash("WeaponIsReady");
public override void OnEnter()
{
base.OnEnter();
GetModelAnimator().SetBool(WeaponIsReadyParamHash, value: true);
}
protected override void AddDebuff(CharacterBody body)
{
body.AddTimedBuff(RoR2Content.Buffs.ClayGoo, slowDuration);
}
public override void OnExit()
{
if (!outer.destroying)
{
GetModelAnimator().SetBool(WeaponIsReadyParamHash, value: false);
}
base.OnExit();
}
}