r2mods/ilspy_dump/ror2_csproj/EntityStates.BrotherMonster/InstantDeathState.cs

29 lines
585 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
using RoR2;
using UnityEngine;
using UnityEngine.Networking;
namespace EntityStates.BrotherMonster;
public class InstantDeathState : GenericCharacterDeath
{
public static GameObject deathEffectPrefab;
protected override bool shouldAutoDestroy => false;
public override void OnEnter()
{
base.OnEnter();
DestroyModel();
if (NetworkServer.active)
{
DestroyBodyAsapServer();
}
}
protected override void CreateDeathEffects()
{
base.CreateDeathEffects();
EffectManager.SimpleMuzzleFlash(deathEffectPrefab, base.gameObject, "MuzzleCenter", transmit: false);
}
}