Decompiled source of Xenomorph v1.1.0

Xenomorph.dll

Decompiled a week ago
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using System.Security;
using System.Security.Cryptography;
using System.Security.Permissions;
using System.Text;
using BepInEx;
using BepInEx.Configuration;
using BepInEx.Logging;
using EntityStates;
using EntityStates.Bandit2;
using EntityStates.JellyfishMonster;
using EntityStates.Merc;
using KinematicCharacterController;
using Microsoft.CodeAnalysis;
using R2API;
using R2API.Utils;
using Rewired;
using RoR2;
using RoR2.Audio;
using RoR2.ContentManagement;
using RoR2.Projectile;
using RoR2.Skills;
using ShaderSwapper;
using ThreeEyedGames;
using UnityEngine;
using UnityEngine.AddressableAssets;
using UnityEngine.Networking;
using UnityEngine.Rendering;
using UnityEngine.SceneManagement;
using Xenomorph;
using XenomorphSkills.XenomorphStates;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: IgnoresAccessChecksTo("RoR2")]
[assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("0.0.0.0")]
[module: UnverifiableCode]
[module: RefSafetyRules(11)]
namespace Microsoft.CodeAnalysis
{
	[CompilerGenerated]
	[Embedded]
	internal sealed class EmbeddedAttribute : Attribute
	{
	}
}
namespace System.Runtime.CompilerServices
{
	[CompilerGenerated]
	[Embedded]
	[AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)]
	internal sealed class RefSafetyRulesAttribute : Attribute
	{
		public readonly int Version;

		public RefSafetyRulesAttribute(int P_0)
		{
			Version = P_0;
		}
	}
}
public class NormalDebug : MonoBehaviour
{
}
public class ClimbCamera : MonoBehaviour, ICameraStateProvider
{
	public float cameraLerpTime = 1f;

	public void GetCameraState(CameraRigController cameraRigController, ref CameraState cameraState)
	{
		//IL_000c: Unknown result type (might be due to invalid IL or missing references)
		//IL_0011: Unknown result type (might be due to invalid IL or missing references)
		//IL_0022: Unknown result type (might be due to invalid IL or missing references)
		//IL_0032: Unknown result type (might be due to invalid IL or missing references)
		//IL_003c: Unknown result type (might be due to invalid IL or missing references)
		//IL_0041: Unknown result type (might be due to invalid IL or missing references)
		//IL_0051: Unknown result type (might be due to invalid IL or missing references)
		//IL_005b: Unknown result type (might be due to invalid IL or missing references)
		//IL_0060: Unknown result type (might be due to invalid IL or missing references)
		//IL_0065: Unknown result type (might be due to invalid IL or missing references)
		cameraState.rotation = ((Component)this).gameObject.transform.rotation;
		cameraState.position = ((Component)this).gameObject.transform.position + ((Component)this).gameObject.transform.up * 1f + ((Component)this).gameObject.transform.forward * -5f;
	}

	public bool IsUserLookAllowed(CameraRigController cameraRigController)
	{
		return true;
	}

	public bool IsUserControlAllowed(CameraRigController cameraRigController)
	{
		return true;
	}

	public bool IsHudAllowed(CameraRigController cameraRigController)
	{
		return true;
	}

	public void LeaveWall()
	{
		//IL_001a: Unknown result type (might be due to invalid IL or missing references)
		//IL_002a: Expected O, but got Unknown
		foreach (CameraRigController readOnlyInstances in CameraRigController.readOnlyInstancesList)
		{
			if ((Object)readOnlyInstances.target == (Object)(object)((Component)this).gameObject)
			{
				readOnlyInstances.SetOverrideCam((ICameraStateProvider)(object)this, 0f);
				readOnlyInstances.SetOverrideCam((ICameraStateProvider)null, cameraLerpTime);
			}
		}
		((Component)this).gameObject.SetActive(false);
	}
}
namespace XenomorphSkills.XenomorphStates
{
	public class ClawSwipeState : BaseSkillState
	{
		[SerializeField]
		public NetworkSoundEventDef impactSound;

		[SerializeField]
		public GameObject swingEffectPrefab;

		[SerializeField]
		public GameObject swingEffectLeftPrefab;

		[SerializeField]
		public GameObject swingEffectRightPrefab;

		[SerializeField]
		public GameObject hitEffectPrefab;

		[SerializeField]
		public GameObject acidBloodPrefab;

		private const string hitboxName = "ClawSwipeHitBox";

		private const string swingSound = "Play_claw_LXeno";

		private const string playbackParam = "Claws.playbackRate";

		private const float pushForce = 300f;

		private const float hitStopDuration = 0.012f;

		private const float hitHopVelocity = 4f;

		private float duration;

		private float firstSwipeTime;

		private float secondSwipeTime;

		private int swipeCount;

		private float stopwatch;

		private bool hasHopped;

		private bool inHitPause;

		private float hitPauseTimer;

		private HitStopCachedState hitStopCachedState;

		private Vector3 storedVelocity;

		private Animator animator;

		private HitBoxGroup hitBoxGroup;

		public override void OnEnter()
		{
			((BaseState)this).OnEnter();
			duration = 0.55f / ((BaseState)this).attackSpeedStat;
			firstSwipeTime = 0.15f / ((BaseState)this).attackSpeedStat;
			secondSwipeTime = 0.33f / ((BaseState)this).attackSpeedStat;
			animator = ((EntityState)this).GetModelAnimator();
			hitBoxGroup = XenoUtil.FindHitBoxGroup(((EntityState)this).GetModelTransform(), "ClawSwipeHitBox");
			((BaseState)this).StartAimMode(0.5f + duration, false);
			if (Object.op_Implicit((Object)(object)animator))
			{
				animator.SetBool("inCombat", true);
			}
			((EntityState)this).PlayAnimation("Gesture, Override", "ClawSwipe", "Claws.playbackRate", duration, 0f);
			XenoUtil.DropFromWall(((EntityState)this).gameObject, ((EntityState)this).isAuthority);
		}

		public override void FixedUpdate()
		{
			//IL_000d: Unknown result type (might be due to invalid IL or missing references)
			//IL_004b: Unknown result type (might be due to invalid IL or missing references)
			//IL_00a1: Unknown result type (might be due to invalid IL or missing references)
			//IL_00a6: Unknown result type (might be due to invalid IL or missing references)
			//IL_007c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0081: Unknown result type (might be due to invalid IL or missing references)
			((EntityState)this).FixedUpdate();
			XenoUtil.AimHitboxes(((EntityState)this).characterBody, ((BaseState)this).GetAimRay(), ((BaseState)this).FindModelChild("HitboxAim"));
			hitPauseTimer -= Time.fixedDeltaTime;
			if (inHitPause && hitPauseTimer <= 0f)
			{
				((BaseState)this).ConsumeHitStopCachedState(hitStopCachedState, ((EntityState)this).characterMotor, animator);
				inHitPause = false;
				if (Object.op_Implicit((Object)(object)((EntityState)this).characterMotor))
				{
					((EntityState)this).characterMotor.velocity = storedVelocity;
				}
			}
			if (inHitPause)
			{
				if (Object.op_Implicit((Object)(object)((EntityState)this).characterMotor))
				{
					((EntityState)this).characterMotor.velocity = Vector3.zero;
				}
				if (Object.op_Implicit((Object)(object)animator))
				{
					animator.SetFloat("Claws.playbackRate", 0f);
				}
				return;
			}
			stopwatch += Time.fixedDeltaTime;
			if (swipeCount < 1 && stopwatch >= firstSwipeTime)
			{
				swipeCount = 1;
				Swipe(right: true);
			}
			if (swipeCount < 2 && stopwatch >= secondSwipeTime)
			{
				swipeCount = 2;
				Swipe(right: false);
			}
			if (((EntityState)this).isAuthority && stopwatch >= duration)
			{
				((EntityState)this).outer.SetNextStateToMain();
			}
		}

		public override void OnExit()
		{
			if (Object.op_Implicit((Object)(object)animator))
			{
				animator.SetBool("inCombat", false);
			}
			((EntityState)this).OnExit();
		}

		private void Swipe(bool right)
		{
			//IL_0055: Unknown result type (might be due to invalid IL or missing references)
			//IL_005a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0066: Unknown result type (might be due to invalid IL or missing references)
			//IL_0072: Unknown result type (might be due to invalid IL or missing references)
			//IL_0074: Unknown result type (might be due to invalid IL or missing references)
			//IL_0079: Unknown result type (might be due to invalid IL or missing references)
			//IL_007e: Unknown result type (might be due to invalid IL or missing references)
			//IL_009c: Unknown result type (might be due to invalid IL or missing references)
			//IL_00a3: Unknown result type (might be due to invalid IL or missing references)
			//IL_00a8: Unknown result type (might be due to invalid IL or missing references)
			//IL_00ad: Unknown result type (might be due to invalid IL or missing references)
			//IL_00b2: Unknown result type (might be due to invalid IL or missing references)
			//IL_00bd: Unknown result type (might be due to invalid IL or missing references)
			//IL_00c9: Unknown result type (might be due to invalid IL or missing references)
			//IL_00ca: Unknown result type (might be due to invalid IL or missing references)
			//IL_00cf: Unknown result type (might be due to invalid IL or missing references)
			//IL_00d4: Unknown result type (might be due to invalid IL or missing references)
			//IL_00df: Unknown result type (might be due to invalid IL or missing references)
			//IL_00eb: Unknown result type (might be due to invalid IL or missing references)
			//IL_00f7: Unknown result type (might be due to invalid IL or missing references)
			//IL_0146: Unknown result type (might be due to invalid IL or missing references)
			//IL_010e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0113: Unknown result type (might be due to invalid IL or missing references)
			//IL_0118: Unknown result type (might be due to invalid IL or missing references)
			//IL_011f: Unknown result type (might be due to invalid IL or missing references)
			if (right)
			{
				Util.PlayAttackSpeedSound("Play_claw_LXeno", ((EntityState)this).gameObject, ((BaseState)this).attackSpeedStat);
			}
			if (((EntityState)this).isAuthority)
			{
				EffectManager.SimpleMuzzleFlash(right ? swingEffectRightPrefab : swingEffectLeftPrefab, ((EntityState)this).gameObject, "ClawSwipeHitBox", true);
				if (Object.op_Implicit((Object)(object)hitBoxGroup) && new OverlapAttack
				{
					attacker = ((EntityState)this).gameObject,
					inflictor = ((EntityState)this).gameObject,
					teamIndex = ((BaseState)this).GetTeam(),
					damage = 1.4f * ((BaseState)this).damageStat * XenoUtil.AmbushMultiplier(((EntityState)this).gameObject),
					damageType = DamageTypeCombo.op_Implicit(LifeCycle.ClawDamageType(((EntityState)this).characterBody)),
					procCoefficient = 1f,
					hitEffectPrefab = hitEffectPrefab,
					forceVector = Vector3.zero,
					pushAwayForce = 300f,
					hitBoxGroup = hitBoxGroup,
					isCrit = ((BaseState)this).RollCrit(),
					impactSound = (NetworkSoundEventIndex)((!Object.op_Implicit((Object)(object)impactSound)) ? (-1) : ((int)impactSound.index)),
					damageType = 
					{
						damageSource = (DamageSource)1
					}
				}.Fire((List<HurtBox>)null))
				{
					OnHitEnemyAuthority();
				}
				if (Object.op_Implicit((Object)(object)acidBloodPrefab))
				{
					LifeCycle.FlingAcid(((EntityState)this).characterBody, ((BaseState)this).GetAimRay(), ((BaseState)this).damageStat * XenoUtil.AmbushMultiplier(((EntityState)this).gameObject), ((BaseState)this).RollCrit(), acidBloodPrefab);
				}
			}
		}

		private void OnHitEnemyAuthority()
		{
			//IL_005d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0050: Unknown result type (might be due to invalid IL or missing references)
			//IL_0062: Unknown result type (might be due to invalid IL or missing references)
			//IL_007a: Unknown result type (might be due to invalid IL or missing references)
			//IL_007f: Unknown result type (might be due to invalid IL or missing references)
			if (!hasHopped)
			{
				if (Object.op_Implicit((Object)(object)((EntityState)this).characterMotor) && !((EntityState)this).characterMotor.isGrounded)
				{
					((BaseState)this).SmallHop(((EntityState)this).characterMotor, 4f);
				}
				hasHopped = true;
			}
			if (!inHitPause)
			{
				storedVelocity = (Object.op_Implicit((Object)(object)((EntityState)this).characterMotor) ? ((EntityState)this).characterMotor.velocity : Vector3.zero);
				hitStopCachedState = ((BaseState)this).CreateHitStopCachedState(((EntityState)this).characterMotor, animator, "Claws.playbackRate");
				hitPauseTimer = 0.012f / ((BaseState)this).attackSpeedStat;
				inHitPause = true;
			}
		}

		public override InterruptPriority GetMinimumInterruptPriority()
		{
			return (InterruptPriority)1;
		}
	}
	public class HeadbiteState : BaseSkillState
	{
		[SerializeField]
		public NetworkSoundEventDef impactSound;

		[SerializeField]
		public GameObject biteEffectPrefab;

		[SerializeField]
		public GameObject hitEffectPrefab;

		[SerializeField]
		public BuffDef headbiteBuff;

		private const string hitboxName = "HeadbiteHitbox";

		private const string biteSound = "Play_bites_LXeno";

		private const string playbackParam = "Bite.playbackRate";

		private const float baseDuration = 0.5f;

		private const float attackStartFraction = 0.15f;

		private const float pushForce = 300f;

		private const float hitStopDuration = 0.05f;

		private float duration;

		private float stopwatch;

		private bool hasBitten;

		private bool inHitPause;

		private float hitPauseTimer;

		private HitStopCachedState hitStopCachedState;

		private Vector3 storedVelocity;

		private Animator animator;

		public override void OnEnter()
		{
			((BaseState)this).OnEnter();
			duration = 0.5f / ((BaseState)this).attackSpeedStat;
			animator = ((EntityState)this).GetModelAnimator();
			((BaseState)this).StartAimMode(0.5f + duration, false);
			if (Object.op_Implicit((Object)(object)animator))
			{
				animator.SetBool("inCombat", true);
			}
			((EntityState)this).PlayAnimation("Headbite, Override", "Headbite", "Bite.playbackRate", duration, 0f);
			XenoUtil.DropFromWall(((EntityState)this).gameObject, ((EntityState)this).isAuthority);
		}

		public override void FixedUpdate()
		{
			//IL_000d: Unknown result type (might be due to invalid IL or missing references)
			//IL_004b: Unknown result type (might be due to invalid IL or missing references)
			//IL_00a1: Unknown result type (might be due to invalid IL or missing references)
			//IL_00a6: Unknown result type (might be due to invalid IL or missing references)
			//IL_007c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0081: Unknown result type (might be due to invalid IL or missing references)
			((EntityState)this).FixedUpdate();
			XenoUtil.AimHitboxes(((EntityState)this).characterBody, ((BaseState)this).GetAimRay(), ((BaseState)this).FindModelChild("HitboxAim"));
			hitPauseTimer -= Time.fixedDeltaTime;
			if (inHitPause && hitPauseTimer <= 0f)
			{
				((BaseState)this).ConsumeHitStopCachedState(hitStopCachedState, ((EntityState)this).characterMotor, animator);
				inHitPause = false;
				if (Object.op_Implicit((Object)(object)((EntityState)this).characterMotor))
				{
					((EntityState)this).characterMotor.velocity = storedVelocity;
				}
			}
			if (inHitPause)
			{
				if (Object.op_Implicit((Object)(object)((EntityState)this).characterMotor))
				{
					((EntityState)this).characterMotor.velocity = Vector3.zero;
				}
				if (Object.op_Implicit((Object)(object)animator))
				{
					animator.SetFloat("Bite.playbackRate", 0f);
				}
				return;
			}
			stopwatch += Time.fixedDeltaTime;
			if (!hasBitten && stopwatch >= 0.15f * duration)
			{
				Bite();
			}
			if (((EntityState)this).isAuthority && stopwatch >= duration)
			{
				((EntityState)this).outer.SetNextStateToMain();
			}
		}

		public override void OnExit()
		{
			if (Object.op_Implicit((Object)(object)animator))
			{
				animator.SetBool("inCombat", false);
			}
			((EntityState)this).OnExit();
		}

		private void Bite()
		{
			//IL_0058: Unknown result type (might be due to invalid IL or missing references)
			//IL_005d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0069: Unknown result type (might be due to invalid IL or missing references)
			//IL_0075: Unknown result type (might be due to invalid IL or missing references)
			//IL_0077: Unknown result type (might be due to invalid IL or missing references)
			//IL_007c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0081: Unknown result type (might be due to invalid IL or missing references)
			//IL_009f: Unknown result type (might be due to invalid IL or missing references)
			//IL_00a1: Unknown result type (might be due to invalid IL or missing references)
			//IL_00a6: Unknown result type (might be due to invalid IL or missing references)
			//IL_00ab: Unknown result type (might be due to invalid IL or missing references)
			//IL_00b6: Unknown result type (might be due to invalid IL or missing references)
			//IL_00c2: Unknown result type (might be due to invalid IL or missing references)
			//IL_00c3: Unknown result type (might be due to invalid IL or missing references)
			//IL_00c8: Unknown result type (might be due to invalid IL or missing references)
			//IL_00cd: Unknown result type (might be due to invalid IL or missing references)
			//IL_00d8: Unknown result type (might be due to invalid IL or missing references)
			//IL_00df: Unknown result type (might be due to invalid IL or missing references)
			//IL_00eb: Unknown result type (might be due to invalid IL or missing references)
			//IL_0102: Unknown result type (might be due to invalid IL or missing references)
			//IL_0107: Unknown result type (might be due to invalid IL or missing references)
			//IL_010c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0113: Unknown result type (might be due to invalid IL or missing references)
			//IL_0118: Unknown result type (might be due to invalid IL or missing references)
			//IL_0119: Unknown result type (might be due to invalid IL or missing references)
			//IL_0123: Expected O, but got Unknown
			//IL_014e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0141: Unknown result type (might be due to invalid IL or missing references)
			//IL_0153: Unknown result type (might be due to invalid IL or missing references)
			//IL_016b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0170: Unknown result type (might be due to invalid IL or missing references)
			hasBitten = true;
			Util.PlayAttackSpeedSound("Play_bites_LXeno", ((EntityState)this).gameObject, ((BaseState)this).attackSpeedStat);
			if (!((EntityState)this).isAuthority)
			{
				return;
			}
			EffectManager.SimpleMuzzleFlash(biteEffectPrefab, ((EntityState)this).gameObject, "HeadbiteHitbox", true);
			HitBoxGroup val = XenoUtil.FindHitBoxGroup(((EntityState)this).GetModelTransform(), "HeadbiteHitbox");
			if (Object.op_Implicit((Object)(object)val))
			{
				OverlapAttack val2 = new OverlapAttack
				{
					attacker = ((EntityState)this).gameObject,
					inflictor = ((EntityState)this).gameObject,
					teamIndex = ((BaseState)this).GetTeam(),
					damage = 12f * ((BaseState)this).damageStat * XenoUtil.AmbushMultiplier(((EntityState)this).gameObject),
					damageType = DamageTypeCombo.op_Implicit((DamageType)0),
					procCoefficient = 1f,
					hitEffectPrefab = hitEffectPrefab,
					forceVector = Vector3.zero,
					pushAwayForce = 300f,
					hitBoxGroup = val,
					isCrit = ((BaseState)this).RollCrit(),
					impactSound = (NetworkSoundEventIndex)((!Object.op_Implicit((Object)(object)impactSound)) ? (-1) : ((int)impactSound.index)),
					damageType = 
					{
						damageSource = (DamageSource)8
					}
				};
				DamageAPI.AddModdedDamageType(val2, XenomorphDamageTypes.Headbite);
				if (val2.Fire((List<HurtBox>)null) && !inHitPause)
				{
					storedVelocity = (Object.op_Implicit((Object)(object)((EntityState)this).characterMotor) ? ((EntityState)this).characterMotor.velocity : Vector3.zero);
					hitStopCachedState = ((BaseState)this).CreateHitStopCachedState(((EntityState)this).characterMotor, animator, "Bite.playbackRate");
					hitPauseTimer = 0.05f / ((BaseState)this).attackSpeedStat;
					inHitPause = true;
				}
			}
		}

		public override InterruptPriority GetMinimumInterruptPriority()
		{
			return (InterruptPriority)1;
		}
	}
	public class HostProjectileSkillDef : SkillDef
	{
		public GameObject projectile;

		public GameObject extraProjectile;

		public GameObject tracer;

		public GameObject chargeEffect;

		public float damage = 1f;

		public float spread;

		public float duration = 0.5f;

		public float rainRadius;

		public float force = 300f;

		public float range = 60f;

		public float chargeTime;

		public int count = 1;

		public bool arc;

		public string sound;
	}
	internal static class HostAim
	{
		public static Vector3 Point(Ray aim, float maxDistance)
		{
			//IL_0000: Unknown result type (might be due to invalid IL or missing references)
			//IL_0004: Unknown result type (might be due to invalid IL or missing references)
			//IL_0009: Unknown result type (might be due to invalid IL or missing references)
			//IL_000c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0029: Unknown result type (might be due to invalid IL or missing references)
			//IL_0021: Unknown result type (might be due to invalid IL or missing references)
			Ray val = aim;
			LayerIndex world = LayerIndex.world;
			RaycastHit val2 = default(RaycastHit);
			if (!Physics.Raycast(val, ref val2, maxDistance, LayerMask.op_Implicit(((LayerIndex)(ref world)).mask), (QueryTriggerInteraction)1))
			{
				return ((Ray)(ref aim)).GetPoint(maxDistance);
			}
			return ((RaycastHit)(ref val2)).point;
		}

		public static Vector3 Lob(Vector3 from, Vector3 to, float horizontalSpeed = 28f)
		{
			//IL_0000: Unknown result type (might be due to invalid IL or missing references)
			//IL_0001: Unknown result type (might be due to invalid IL or missing references)
			//IL_0002: Unknown result type (might be due to invalid IL or missing references)
			//IL_0007: Unknown result type (might be due to invalid IL or missing references)
			//IL_000a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0015: Unknown result type (might be due to invalid IL or missing references)
			//IL_0039: Unknown result type (might be due to invalid IL or missing references)
			//IL_003b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0040: Unknown result type (might be due to invalid IL or missing references)
			//IL_0046: Unknown result type (might be due to invalid IL or missing references)
			//IL_0051: Unknown result type (might be due to invalid IL or missing references)
			//IL_0056: Unknown result type (might be due to invalid IL or missing references)
			Vector3 val = to - from;
			Vector3 val2 = default(Vector3);
			((Vector3)(ref val2))..ctor(val.x, 0f, val.z);
			float num = Mathf.Clamp(((Vector3)(ref val2)).magnitude / horizontalSpeed, 0.5f, 2.5f);
			return val2 / num + Vector3.up * Trajectory.CalculateInitialYSpeed(num, val.y);
		}

		public static HitBoxGroup AnyMeleeGroup(Transform model)
		{
			if (!Object.op_Implicit((Object)(object)model))
			{
				return null;
			}
			HitBoxGroup val = null;
			HitBoxGroup[] componentsInChildren = ((Component)model).GetComponentsInChildren<HitBoxGroup>(true);
			foreach (HitBoxGroup val2 in componentsInChildren)
			{
				if (val2.groupName == "ClawSwipeHitBox" || val2.groupName == "BursterBiteHitBox")
				{
					return val2;
				}
				if (!Object.op_Implicit((Object)(object)val))
				{
					val = val2;
				}
			}
			return val;
		}

		public static void Cosmetic(BaseState state, Transform model, float duration, bool overhead = false)
		{
			if (!Object.op_Implicit((Object)(object)model))
			{
				return;
			}
			BursterMotion component = ((Component)model).GetComponent<BursterMotion>();
			if (Object.op_Implicit((Object)(object)component))
			{
				component.PlayBite(duration);
			}
			XenoSecondaryMotion component2 = ((Component)model).GetComponent<XenoSecondaryMotion>();
			if (Object.op_Implicit((Object)(object)component2))
			{
				if (overhead)
				{
					component2.PlayOverhead(duration);
				}
				else
				{
					component2.PlayArmsBack(duration);
				}
			}
		}
	}
	public class HostProjectileState : BaseSkillState
	{
		private HostProjectileSkillDef def;

		private float duration;

		private float fireTime;

		private int fired;

		private bool hasTarget;

		private Vector3 target;

		private Transform muzzle;

		private GameObject charge;

		private static readonly HashSet<string> logged = new HashSet<string>();

		public override void OnEnter()
		{
			//IL_0141: Unknown result type (might be due to invalid IL or missing references)
			//IL_0134: Unknown result type (might be due to invalid IL or missing references)
			//IL_0146: Unknown result type (might be due to invalid IL or missing references)
			((BaseState)this).OnEnter();
			def = (Object.op_Implicit((Object)(object)((BaseSkillState)this).activatorSkillSlot) ? (((BaseSkillState)this).activatorSkillSlot.skillDef as HostProjectileSkillDef) : null);
			float num = (Object.op_Implicit((Object)(object)def) ? (def.chargeTime / ((BaseState)this).attackSpeedStat) : 0f);
			duration = num + (Object.op_Implicit((Object)(object)def) ? def.duration : 0.5f) / ((BaseState)this).attackSpeedStat;
			fireTime = ((num > 0f) ? num : (duration * 0.25f));
			((BaseState)this).StartAimMode(duration + 1f, false);
			muzzle = ((BaseState)this).FindModelChild("MuzzleMouth") ?? ((BaseState)this).FindModelChild("Head");
			HostAim.Cosmetic((BaseState)(object)this, ((EntityState)this).GetModelTransform(), duration);
			if (num > 0f)
			{
				Util.PlaySound("Play_greater_wisp_attack", ((EntityState)this).gameObject);
				if (Object.op_Implicit((Object)(object)def.chargeEffect))
				{
					charge = Object.Instantiate<GameObject>(def.chargeEffect, Object.op_Implicit((Object)(object)muzzle) ? muzzle.position : ((EntityState)this).characterBody.aimOrigin, Quaternion.identity);
					charge.transform.SetParent(Object.op_Implicit((Object)(object)muzzle) ? muzzle : ((EntityState)this).transform, true);
				}
			}
			else if (Object.op_Implicit((Object)(object)def) && !string.IsNullOrEmpty(def.sound))
			{
				Util.PlaySound(def.sound, ((EntityState)this).gameObject);
			}
			else
			{
				Util.PlaySound("Play_Hiss1_LXeno", ((EntityState)this).gameObject);
			}
			if (((EntityState)this).isAuthority)
			{
				LogOnce();
			}
		}

		private void LogOnce()
		{
			string text = (Object.op_Implicit((Object)(object)def) ? ((SkillDef)def).skillName : ("(no HostProjectileSkillDef: " + ((Object.op_Implicit((Object)(object)((BaseSkillState)this).activatorSkillSlot) && Object.op_Implicit((Object)(object)((BaseSkillState)this).activatorSkillSlot.skillDef)) ? ((BaseSkillState)this).activatorSkillSlot.skillDef.skillName : "none") + ")"));
			if (logged.Add(text))
			{
				string text2 = ((!Object.op_Implicit((Object)(object)def)) ? "nothing" : ((Object.op_Implicit((Object)(object)def.tracer) || !Object.op_Implicit((Object)(object)def.projectile)) ? ("bullets (tracer " + (Object.op_Implicit((Object)(object)def.tracer) ? ((Object)def.tracer).name : "none") + ")") : string.Format("projectile {0} (ghost {1}, catalog index {2})", ((Object)def.projectile).name, Object.op_Implicit((Object)(object)def.projectile.GetComponent<ProjectileController>()?.ghostPrefab) ? "direct" : "address", ProjectileCatalog.GetProjectileIndex(def.projectile))));
				XenomorphMain.LogInfo("Life Cycle host skill " + text + ": fires " + text2);
			}
		}

		public override void OnExit()
		{
			if (Object.op_Implicit((Object)(object)charge))
			{
				Object.Destroy((Object)(object)charge);
			}
			((EntityState)this).OnExit();
		}

		public override void FixedUpdate()
		{
			((EntityState)this).FixedUpdate();
			if (!((EntityState)this).isAuthority)
			{
				return;
			}
			if (Object.op_Implicit((Object)(object)def))
			{
				if (def.rainRadius > 0f)
				{
					float num = duration * 0.8f / (float)Mathf.Max(1, def.count);
					while (fired < def.count && ((EntityState)this).fixedAge >= duration * 0.15f + (float)fired * num)
					{
						Fire(fired++);
					}
				}
				else if (fired == 0 && ((EntityState)this).fixedAge >= fireTime)
				{
					if (Object.op_Implicit((Object)(object)charge))
					{
						Object.Destroy((Object)(object)charge);
					}
					for (int i = 0; i < def.count; i++)
					{
						Fire(i);
					}
					fired = def.count;
				}
			}
			if (((EntityState)this).fixedAge >= duration && (!Object.op_Implicit((Object)(object)def) || fired >= def.count))
			{
				((EntityState)this).outer.SetNextStateToMain();
			}
		}

		private void Fire(int i)
		{
			//IL_0001: Unknown result type (might be due to invalid IL or missing references)
			//IL_0006: Unknown result type (might be due to invalid IL or missing references)
			//IL_0023: Unknown result type (might be due to invalid IL or missing references)
			//IL_0035: Unknown result type (might be due to invalid IL or missing references)
			//IL_003a: Unknown result type (might be due to invalid IL or missing references)
			//IL_006d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0072: Unknown result type (might be due to invalid IL or missing references)
			//IL_007e: Unknown result type (might be due to invalid IL or missing references)
			//IL_008a: Unknown result type (might be due to invalid IL or missing references)
			//IL_008d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0092: Unknown result type (might be due to invalid IL or missing references)
			//IL_0097: Unknown result type (might be due to invalid IL or missing references)
			//IL_009a: Unknown result type (might be due to invalid IL or missing references)
			//IL_00a4: Unknown result type (might be due to invalid IL or missing references)
			//IL_00af: Unknown result type (might be due to invalid IL or missing references)
			//IL_00c0: Unknown result type (might be due to invalid IL or missing references)
			//IL_00c7: Unknown result type (might be due to invalid IL or missing references)
			//IL_00ce: Unknown result type (might be due to invalid IL or missing references)
			//IL_00df: Unknown result type (might be due to invalid IL or missing references)
			//IL_00f0: Unknown result type (might be due to invalid IL or missing references)
			//IL_00fc: Unknown result type (might be due to invalid IL or missing references)
			//IL_0107: Unknown result type (might be due to invalid IL or missing references)
			//IL_010e: Unknown result type (might be due to invalid IL or missing references)
			//IL_011f: Unknown result type (might be due to invalid IL or missing references)
			//IL_012a: Unknown result type (might be due to invalid IL or missing references)
			//IL_012c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0131: Unknown result type (might be due to invalid IL or missing references)
			//IL_0138: Unknown result type (might be due to invalid IL or missing references)
			//IL_016d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0160: Unknown result type (might be due to invalid IL or missing references)
			//IL_0174: Unknown result type (might be due to invalid IL or missing references)
			//IL_017e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0183: Unknown result type (might be due to invalid IL or missing references)
			//IL_0188: Unknown result type (might be due to invalid IL or missing references)
			//IL_01a2: Unknown result type (might be due to invalid IL or missing references)
			//IL_01b2: Unknown result type (might be due to invalid IL or missing references)
			//IL_01b7: Unknown result type (might be due to invalid IL or missing references)
			//IL_01ba: Unknown result type (might be due to invalid IL or missing references)
			//IL_01bf: Unknown result type (might be due to invalid IL or missing references)
			//IL_01cb: Unknown result type (might be due to invalid IL or missing references)
			//IL_01d2: Unknown result type (might be due to invalid IL or missing references)
			//IL_01d7: Unknown result type (might be due to invalid IL or missing references)
			//IL_01dc: Unknown result type (might be due to invalid IL or missing references)
			//IL_01dd: Unknown result type (might be due to invalid IL or missing references)
			//IL_01e2: Unknown result type (might be due to invalid IL or missing references)
			//IL_01f5: Unknown result type (might be due to invalid IL or missing references)
			//IL_01f7: Unknown result type (might be due to invalid IL or missing references)
			//IL_0201: Unknown result type (might be due to invalid IL or missing references)
			//IL_0206: Unknown result type (might be due to invalid IL or missing references)
			//IL_020a: Unknown result type (might be due to invalid IL or missing references)
			//IL_020f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0287: Unknown result type (might be due to invalid IL or missing references)
			//IL_02a1: Unknown result type (might be due to invalid IL or missing references)
			//IL_02a2: Unknown result type (might be due to invalid IL or missing references)
			//IL_02a9: Unknown result type (might be due to invalid IL or missing references)
			//IL_02aa: Unknown result type (might be due to invalid IL or missing references)
			//IL_02af: Unknown result type (might be due to invalid IL or missing references)
			//IL_02f1: Unknown result type (might be due to invalid IL or missing references)
			//IL_0269: Unknown result type (might be due to invalid IL or missing references)
			//IL_026e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0275: Unknown result type (might be due to invalid IL or missing references)
			//IL_027a: Unknown result type (might be due to invalid IL or missing references)
			//IL_027f: Unknown result type (might be due to invalid IL or missing references)
			//IL_030f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0315: Unknown result type (might be due to invalid IL or missing references)
			//IL_031f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0324: Unknown result type (might be due to invalid IL or missing references)
			//IL_0338: Unknown result type (might be due to invalid IL or missing references)
			//IL_033f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0344: Unknown result type (might be due to invalid IL or missing references)
			Ray aimRay = ((BaseState)this).GetAimRay();
			float num = ((BaseState)this).damageStat * def.damage;
			if (!hasTarget)
			{
				target = HostAim.Point(aimRay, def.range * 2f);
				hasTarget = true;
			}
			if (Object.op_Implicit((Object)(object)def.tracer) || !Object.op_Implicit((Object)(object)def.projectile))
			{
				new BulletAttack
				{
					owner = ((EntityState)this).gameObject,
					weapon = ((EntityState)this).gameObject,
					origin = ((Ray)(ref aimRay)).origin,
					aimVector = ((Ray)(ref aimRay)).direction,
					minSpread = 0f,
					maxSpread = def.spread,
					bulletCount = 1u,
					damage = num,
					force = def.force,
					tracerEffectPrefab = def.tracer,
					isCrit = ((BaseState)this).RollCrit(),
					radius = 0.4f,
					smartCollision = true,
					maxDistance = def.range,
					procCoefficient = 0.7f,
					falloffModel = (FalloffModel)1,
					damageType = 
					{
						damageSource = (DamageSource)2
					}
				}.Fire();
			}
			else if (!((Object)(object)ProjectileManager.instance == (Object)null))
			{
				Vector3 val = (Object.op_Implicit((Object)(object)muzzle) ? muzzle.position : ((Ray)(ref aimRay)).origin) + ((Ray)(ref aimRay)).direction * 0.8f;
				float speedOverride = -1f;
				Vector3 val3;
				if (def.rainRadius > 0f)
				{
					Vector2 val2 = Random.insideUnitCircle * def.rainRadius;
					val = target + new Vector3(val2.x, 20f, val2.y);
					val3 = Vector3.down;
				}
				else if (def.arc)
				{
					Vector3 val4 = HostAim.Lob(val, target);
					val3 = ((Vector3)(ref val4)).normalized;
					speedOverride = ((Vector3)(ref val4)).magnitude;
				}
				else
				{
					val3 = Quaternion.AngleAxis((def.count > 1) ? Mathf.Lerp((0f - def.spread) * 0.5f, def.spread * 0.5f, (float)i / (float)(def.count - 1)) : 0f, Vector3.up) * ((Ray)(ref aimRay)).direction;
				}
				ProjectileManager instance = ProjectileManager.instance;
				FireProjectileInfo val5 = new FireProjectileInfo
				{
					projectilePrefab = def.projectile,
					position = val,
					rotation = Util.QuaternionSafeLookRotation(val3),
					owner = ((EntityState)this).gameObject,
					damage = num,
					force = def.force,
					crit = ((BaseState)this).RollCrit()
				};
				((FireProjectileInfo)(ref val5)).speedOverride = speedOverride;
				instance.FireProjectile(val5);
				if (i == 0 && Object.op_Implicit((Object)(object)def.extraProjectile))
				{
					Vector3 val6 = HostAim.Lob(((Ray)(ref aimRay)).origin, target);
					ProjectileManager.instance.FireProjectile(def.extraProjectile, ((Ray)(ref aimRay)).origin, Util.QuaternionSafeLookRotation(((Vector3)(ref val6)).normalized), ((EntityState)this).gameObject, num * 0.5f, 0f, ((BaseState)this).RollCrit(), (DamageColorIndex)0, (GameObject)null, ((Vector3)(ref val6)).magnitude, (DamageTypeCombo?)null);
				}
			}
		}

		public override InterruptPriority GetMinimumInterruptPriority()
		{
			return (InterruptPriority)1;
		}
	}
	public class HostSlamState : BaseSkillState
	{
		private float duration;

		private bool slammed;

		public override void OnEnter()
		{
			((BaseState)this).OnEnter();
			XenoUtil.DropFromWall(((EntityState)this).gameObject, ((EntityState)this).isAuthority);
			duration = 0.9f / ((BaseState)this).attackSpeedStat;
			HostAim.Cosmetic((BaseState)(object)this, ((EntityState)this).GetModelTransform(), duration, overhead: true);
			Util.PlaySound("Play_beetle_guard_attack2_initial", ((EntityState)this).gameObject);
		}

		public override void FixedUpdate()
		{
			//IL_0021: Unknown result type (might be due to invalid IL or missing references)
			((EntityState)this).FixedUpdate();
			if (Object.op_Implicit((Object)(object)((EntityState)this).characterMotor) && ((EntityState)this).isAuthority)
			{
				((EntityState)this).characterMotor.moveDirection = Vector3.zero;
			}
			if (!slammed && ((EntityState)this).fixedAge >= duration * 0.55f)
			{
				slammed = true;
				Util.PlaySound("Play_beetle_guard_impact", ((EntityState)this).gameObject);
				if (((EntityState)this).isAuthority)
				{
					Slam();
				}
			}
			if (((EntityState)this).isAuthority && ((EntityState)this).fixedAge >= duration)
			{
				((EntityState)this).outer.SetNextStateToMain();
			}
		}

		private void Slam()
		{
			//IL_0020: Unknown result type (might be due to invalid IL or missing references)
			//IL_0013: Unknown result type (might be due to invalid IL or missing references)
			//IL_0025: Unknown result type (might be due to invalid IL or missing references)
			//IL_002c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0031: Unknown result type (might be due to invalid IL or missing references)
			//IL_0043: Unknown result type (might be due to invalid IL or missing references)
			//IL_0048: Unknown result type (might be due to invalid IL or missing references)
			//IL_004d: Unknown result type (might be due to invalid IL or missing references)
			//IL_004e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0053: Unknown result type (might be due to invalid IL or missing references)
			//IL_005f: Unknown result type (might be due to invalid IL or missing references)
			//IL_006b: Unknown result type (might be due to invalid IL or missing references)
			//IL_006d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0072: Unknown result type (might be due to invalid IL or missing references)
			//IL_0077: Unknown result type (might be due to invalid IL or missing references)
			//IL_0078: Unknown result type (might be due to invalid IL or missing references)
			//IL_0079: Unknown result type (might be due to invalid IL or missing references)
			//IL_007e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0089: Unknown result type (might be due to invalid IL or missing references)
			//IL_009b: Unknown result type (might be due to invalid IL or missing references)
			//IL_00a6: Unknown result type (might be due to invalid IL or missing references)
			//IL_00a7: Unknown result type (might be due to invalid IL or missing references)
			//IL_00b1: Unknown result type (might be due to invalid IL or missing references)
			//IL_00b6: Unknown result type (might be due to invalid IL or missing references)
			//IL_00bb: Unknown result type (might be due to invalid IL or missing references)
			//IL_00c7: Unknown result type (might be due to invalid IL or missing references)
			//IL_00ca: Unknown result type (might be due to invalid IL or missing references)
			//IL_00cf: Unknown result type (might be due to invalid IL or missing references)
			//IL_00d4: Unknown result type (might be due to invalid IL or missing references)
			//IL_00d6: Unknown result type (might be due to invalid IL or missing references)
			//IL_00db: Unknown result type (might be due to invalid IL or missing references)
			//IL_00e6: Unknown result type (might be due to invalid IL or missing references)
			//IL_00e8: Unknown result type (might be due to invalid IL or missing references)
			//IL_00ed: Unknown result type (might be due to invalid IL or missing references)
			//IL_00f4: Unknown result type (might be due to invalid IL or missing references)
			//IL_00f9: Unknown result type (might be due to invalid IL or missing references)
			//IL_0116: Unknown result type (might be due to invalid IL or missing references)
			//IL_011b: Unknown result type (might be due to invalid IL or missing references)
			//IL_011c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0122: Unknown result type (might be due to invalid IL or missing references)
			//IL_012f: Expected O, but got Unknown
			//IL_0143: Unknown result type (might be due to invalid IL or missing references)
			//IL_0148: Unknown result type (might be due to invalid IL or missing references)
			//IL_0149: Unknown result type (might be due to invalid IL or missing references)
			//IL_014f: Unknown result type (might be due to invalid IL or missing references)
			//IL_015c: Expected O, but got Unknown
			//IL_0163: Unknown result type (might be due to invalid IL or missing references)
			//IL_0172: Unknown result type (might be due to invalid IL or missing references)
			//IL_0177: Unknown result type (might be due to invalid IL or missing references)
			//IL_017c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0181: Unknown result type (might be due to invalid IL or missing references)
			//IL_0187: Unknown result type (might be due to invalid IL or missing references)
			//IL_018c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0191: Unknown result type (might be due to invalid IL or missing references)
			//IL_0193: Unknown result type (might be due to invalid IL or missing references)
			//IL_0195: Unknown result type (might be due to invalid IL or missing references)
			//IL_019f: Unknown result type (might be due to invalid IL or missing references)
			//IL_01a4: Unknown result type (might be due to invalid IL or missing references)
			//IL_01a9: Unknown result type (might be due to invalid IL or missing references)
			//IL_01b5: Unknown result type (might be due to invalid IL or missing references)
			//IL_01ba: Unknown result type (might be due to invalid IL or missing references)
			//IL_01be: Unknown result type (might be due to invalid IL or missing references)
			//IL_01de: Unknown result type (might be due to invalid IL or missing references)
			//IL_01e3: Unknown result type (might be due to invalid IL or missing references)
			//IL_01e4: Unknown result type (might be due to invalid IL or missing references)
			//IL_01eb: Unknown result type (might be due to invalid IL or missing references)
			//IL_01fe: Expected O, but got Unknown
			//IL_01d2: Unknown result type (might be due to invalid IL or missing references)
			//IL_01d7: Unknown result type (might be due to invalid IL or missing references)
			Vector3 val = (Object.op_Implicit((Object)(object)((EntityState)this).characterDirection) ? ((EntityState)this).characterDirection.forward : ((EntityState)this).transform.forward);
			Vector3 val2 = ((EntityState)this).characterBody.footPosition + val * (((EntityState)this).characterBody.radius + 1.5f);
			new BlastAttack
			{
				attacker = ((EntityState)this).gameObject,
				inflictor = ((EntityState)this).gameObject,
				teamIndex = ((BaseState)this).GetTeam(),
				position = val2,
				radius = 8f,
				baseDamage = ((BaseState)this).damageStat * 4.5f,
				baseForce = 600f,
				bonusForce = Vector3.up * 1200f,
				crit = ((BaseState)this).RollCrit(),
				damageType = DamageTypeCombo.op_Implicit((DamageType)32),
				falloffModel = (FalloffModel)0,
				procCoefficient = 1f,
				attackerFiltering = (AttackerFiltering)2,
				damageType = 
				{
					damageSource = (DamageSource)2
				}
			}.Fire();
			float num = 8f;
			if (Object.op_Implicit((Object)(object)LifeCycle.HostFx.LoaderSlam))
			{
				EffectManager.SpawnEffect(LifeCycle.HostFx.LoaderSlam, new EffectData
				{
					origin = val2,
					scale = num
				}, true);
			}
			if (!Object.op_Implicit((Object)(object)LifeCycle.HostFx.BeetleSlam))
			{
				return;
			}
			EffectManager.SpawnEffect(LifeCycle.HostFx.BeetleSlam, new EffectData
			{
				origin = val2,
				scale = num
			}, true);
			RaycastHit val5 = default(RaycastHit);
			for (int i = 0; i < 8; i++)
			{
				Vector3 val3 = val2 + Quaternion.AngleAxis((float)i * 360f / 8f, Vector3.up) * Vector3.forward * num;
				Vector3 val4 = val3 + Vector3.up * 3f;
				Vector3 down = Vector3.down;
				LayerIndex world = LayerIndex.world;
				if (Physics.Raycast(val4, down, ref val5, 8f, LayerMask.op_Implicit(((LayerIndex)(ref world)).mask), (QueryTriggerInteraction)1))
				{
					val3 = ((RaycastHit)(ref val5)).point;
				}
				EffectManager.SpawnEffect(LifeCycle.HostFx.BeetleSlam, new EffectData
				{
					origin = val3,
					scale = num * 0.35f
				}, true);
			}
		}

		public override InterruptPriority GetMinimumInterruptPriority()
		{
			return (InterruptPriority)2;
		}
	}
	public class HostRamState : BaseSkillState
	{
		private Vector3 direction;

		private OverlapAttack attack;

		public override void OnEnter()
		{
			//IL_003b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0040: Unknown result type (might be due to invalid IL or missing references)
			//IL_0043: Unknown result type (might be due to invalid IL or missing references)
			//IL_0048: Unknown result type (might be due to invalid IL or missing references)
			//IL_004d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0052: Unknown result type (might be due to invalid IL or missing references)
			//IL_0055: Unknown result type (might be due to invalid IL or missing references)
			//IL_005a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0092: Unknown result type (might be due to invalid IL or missing references)
			//IL_0085: Unknown result type (might be due to invalid IL or missing references)
			//IL_00ce: Unknown result type (might be due to invalid IL or missing references)
			//IL_00d3: Unknown result type (might be due to invalid IL or missing references)
			//IL_00df: Unknown result type (might be due to invalid IL or missing references)
			//IL_00eb: Unknown result type (might be due to invalid IL or missing references)
			//IL_00ed: Unknown result type (might be due to invalid IL or missing references)
			//IL_00f2: Unknown result type (might be due to invalid IL or missing references)
			//IL_00f7: Unknown result type (might be due to invalid IL or missing references)
			//IL_0109: Unknown result type (might be due to invalid IL or missing references)
			//IL_0114: Unknown result type (might be due to invalid IL or missing references)
			//IL_011f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0121: Unknown result type (might be due to invalid IL or missing references)
			//IL_012b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0130: Unknown result type (might be due to invalid IL or missing references)
			//IL_013a: Unknown result type (might be due to invalid IL or missing references)
			//IL_013f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0144: Unknown result type (might be due to invalid IL or missing references)
			//IL_0149: Unknown result type (might be due to invalid IL or missing references)
			//IL_0154: Unknown result type (might be due to invalid IL or missing references)
			//IL_015b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0167: Unknown result type (might be due to invalid IL or missing references)
			//IL_016a: Unknown result type (might be due to invalid IL or missing references)
			//IL_016f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0179: Expected O, but got Unknown
			//IL_0185: Unknown result type (might be due to invalid IL or missing references)
			//IL_0097: Unknown result type (might be due to invalid IL or missing references)
			((BaseState)this).OnEnter();
			XenoUtil.DropFromWall(((EntityState)this).gameObject, ((EntityState)this).isAuthority);
			Util.PlaySound("Play_bison_charge_attack_start", ((EntityState)this).gameObject);
			Util.PlaySound("Play_Hiss1_LXeno", ((EntityState)this).gameObject);
			Ray aimRay = ((BaseState)this).GetAimRay();
			Vector3 val = Vector3.ProjectOnPlane(((Ray)(ref aimRay)).direction, Vector3.up);
			direction = ((Vector3)(ref val)).normalized;
			if (((Vector3)(ref direction)).sqrMagnitude < 0.01f)
			{
				direction = (Object.op_Implicit((Object)(object)((EntityState)this).characterDirection) ? ((EntityState)this).characterDirection.forward : ((EntityState)this).transform.forward);
			}
			Transform modelTransform = ((EntityState)this).GetModelTransform();
			HostAim.Cosmetic((BaseState)(object)this, modelTransform, 0.9f);
			if (((EntityState)this).isAuthority)
			{
				HitBoxGroup val2 = HostAim.AnyMeleeGroup(modelTransform);
				if (Object.op_Implicit((Object)(object)val2))
				{
					attack = new OverlapAttack
					{
						attacker = ((EntityState)this).gameObject,
						inflictor = ((EntityState)this).gameObject,
						teamIndex = ((BaseState)this).GetTeam(),
						damage = ((BaseState)this).damageStat * 3.5f,
						procCoefficient = 1f,
						hitEffectPrefab = XenomorphContent.ClawHitEffect,
						forceVector = direction * 2500f + Vector3.up * 1200f,
						pushAwayForce = 1000f,
						hitBoxGroup = val2,
						isCrit = ((BaseState)this).RollCrit(),
						damageType = DamageTypeCombo.op_Implicit((DamageType)32)
					};
					attack.damageType.damageSource = (DamageSource)4;
				}
			}
		}

		public override void FixedUpdate()
		{
			//IL_0025: Unknown result type (might be due to invalid IL or missing references)
			//IL_0079: Unknown result type (might be due to invalid IL or missing references)
			//IL_007e: Unknown result type (might be due to invalid IL or missing references)
			((EntityState)this).FixedUpdate();
			if (((EntityState)this).isAuthority)
			{
				if (Object.op_Implicit((Object)(object)((EntityState)this).characterDirection))
				{
					((EntityState)this).characterDirection.forward = direction;
				}
				if (Object.op_Implicit((Object)(object)((EntityState)this).characterMotor))
				{
					float num = ((BaseState)this).moveSpeedStat * 3.2f;
					((EntityState)this).characterMotor.velocity = new Vector3(direction.x * num, ((EntityState)this).characterMotor.velocity.y, direction.z * num);
				}
				if (attack != null && attack.Fire((List<HurtBox>)null))
				{
					Util.PlaySound("Play_bison_charge_attack_collide", ((EntityState)this).gameObject);
				}
				if (((EntityState)this).fixedAge >= 0.9f)
				{
					((EntityState)this).outer.SetNextStateToMain();
				}
			}
		}

		public override void OnExit()
		{
			//IL_001c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0026: Unknown result type (might be due to invalid IL or missing references)
			//IL_002b: Unknown result type (might be due to invalid IL or missing references)
			if (((EntityState)this).isAuthority && Object.op_Implicit((Object)(object)((EntityState)this).characterMotor))
			{
				CharacterMotor characterMotor = ((EntityState)this).characterMotor;
				characterMotor.velocity *= 0.3f;
			}
			((EntityState)this).OnExit();
		}

		public override InterruptPriority GetMinimumInterruptPriority()
		{
			return (InterruptPriority)2;
		}
	}
	public class HostBlinkState : BaseSkillState
	{
		protected virtual bool Explodes => false;

		public override void OnEnter()
		{
			((BaseState)this).OnEnter();
			XenoUtil.DropFromWall(((EntityState)this).gameObject, ((EntityState)this).isAuthority);
			Util.PlaySound("Play_child_frolic_teleport", ((EntityState)this).gameObject);
			if (((EntityState)this).isAuthority)
			{
				Blink();
			}
		}

		private void Blink()
		{
			//IL_0006: Unknown result type (might be due to invalid IL or missing references)
			//IL_000d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0012: Unknown result type (might be due to invalid IL or missing references)
			//IL_0013: Unknown result type (might be due to invalid IL or missing references)
			//IL_0019: Unknown result type (might be due to invalid IL or missing references)
			//IL_001e: Unknown result type (might be due to invalid IL or missing references)
			//IL_001f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0022: Unknown result type (might be due to invalid IL or missing references)
			//IL_0038: Unknown result type (might be due to invalid IL or missing references)
			//IL_003d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0042: Unknown result type (might be due to invalid IL or missing references)
			//IL_0043: Unknown result type (might be due to invalid IL or missing references)
			//IL_0044: Unknown result type (might be due to invalid IL or missing references)
			//IL_004e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0053: Unknown result type (might be due to invalid IL or missing references)
			//IL_0058: Unknown result type (might be due to invalid IL or missing references)
			//IL_0064: Unknown result type (might be due to invalid IL or missing references)
			//IL_0069: Unknown result type (might be due to invalid IL or missing references)
			//IL_006c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0080: Unknown result type (might be due to invalid IL or missing references)
			//IL_0085: Unknown result type (might be due to invalid IL or missing references)
			//IL_0097: Unknown result type (might be due to invalid IL or missing references)
			//IL_009c: Unknown result type (might be due to invalid IL or missing references)
			//IL_00a3: Unknown result type (might be due to invalid IL or missing references)
			//IL_00ad: Unknown result type (might be due to invalid IL or missing references)
			//IL_00b0: Unknown result type (might be due to invalid IL or missing references)
			//IL_00b5: Unknown result type (might be due to invalid IL or missing references)
			//IL_00ba: Unknown result type (might be due to invalid IL or missing references)
			//IL_00c5: Expected O, but got Unknown
			//IL_00dd: Unknown result type (might be due to invalid IL or missing references)
			//IL_00de: Unknown result type (might be due to invalid IL or missing references)
			//IL_00e8: Unknown result type (might be due to invalid IL or missing references)
			//IL_00ed: Unknown result type (might be due to invalid IL or missing references)
			//IL_00f8: Unknown result type (might be due to invalid IL or missing references)
			//IL_0109: Unknown result type (might be due to invalid IL or missing references)
			//IL_010e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0124: Unknown result type (might be due to invalid IL or missing references)
			//IL_0129: Unknown result type (might be due to invalid IL or missing references)
			//IL_012a: Unknown result type (might be due to invalid IL or missing references)
			//IL_012b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0130: Unknown result type (might be due to invalid IL or missing references)
			//IL_013a: Unknown result type (might be due to invalid IL or missing references)
			//IL_013d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0142: Unknown result type (might be due to invalid IL or missing references)
			//IL_0147: Unknown result type (might be due to invalid IL or missing references)
			//IL_0152: Expected O, but got Unknown
			//IL_015d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0162: Unknown result type (might be due to invalid IL or missing references)
			//IL_016e: Unknown result type (might be due to invalid IL or missing references)
			//IL_017a: Unknown result type (might be due to invalid IL or missing references)
			//IL_017c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0181: Unknown result type (might be due to invalid IL or missing references)
			//IL_0186: Unknown result type (might be due to invalid IL or missing references)
			//IL_0187: Unknown result type (might be due to invalid IL or missing references)
			//IL_0188: Unknown result type (might be due to invalid IL or missing references)
			//IL_018d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0192: Unknown result type (might be due to invalid IL or missing references)
			//IL_0197: Unknown result type (might be due to invalid IL or missing references)
			//IL_01a2: Unknown result type (might be due to invalid IL or missing references)
			//IL_01b4: Unknown result type (might be due to invalid IL or missing references)
			//IL_01bf: Unknown result type (might be due to invalid IL or missing references)
			//IL_01cb: Unknown result type (might be due to invalid IL or missing references)
			//IL_01d1: Unknown result type (might be due to invalid IL or missing references)
			//IL_01d6: Unknown result type (might be due to invalid IL or missing references)
			//IL_01db: Unknown result type (might be due to invalid IL or missing references)
			//IL_01dd: Unknown result type (might be due to invalid IL or missing references)
			//IL_01e2: Unknown result type (might be due to invalid IL or missing references)
			//IL_01ed: Unknown result type (might be due to invalid IL or missing references)
			//IL_01ef: Unknown result type (might be due to invalid IL or missing references)
			//IL_01f4: Unknown result type (might be due to invalid IL or missing references)
			//IL_01fb: Unknown result type (might be due to invalid IL or missing references)
			//IL_0200: Unknown result type (might be due to invalid IL or missing references)
			//IL_0217: Unknown result type (might be due to invalid IL or missing references)
			//IL_021c: Unknown result type (might be due to invalid IL or missing references)
			//IL_021d: Unknown result type (might be due to invalid IL or missing references)
			//IL_021e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0223: Unknown result type (might be due to invalid IL or missing references)
			//IL_022d: Unknown result type (might be due to invalid IL or missing references)
			//IL_023e: Expected O, but got Unknown
			_ = ((EntityState)this).characterBody.footPosition;
			Ray aimRay = ((BaseState)this).GetAimRay();
			Vector3 val = HostAim.Point(aimRay, 20f);
			val -= ((Ray)(ref aimRay)).direction * (((EntityState)this).characterBody.radius + 0.5f);
			Vector3 val2 = val + Vector3.up * 2f;
			Vector3 down = Vector3.down;
			LayerIndex world = LayerIndex.world;
			RaycastHit val3 = default(RaycastHit);
			if (Physics.Raycast(val2, down, ref val3, 30f, LayerMask.op_Implicit(((LayerIndex)(ref world)).mask), (QueryTriggerInteraction)1))
			{
				val = ((RaycastHit)(ref val3)).point;
			}
			if (Object.op_Implicit((Object)(object)LifeCycle.HostFx.ChildTeleport))
			{
				EffectManager.SpawnEffect(LifeCycle.HostFx.ChildTeleport, new EffectData
				{
					origin = ((EntityState)this).characterBody.corePosition,
					rotation = Util.QuaternionSafeLookRotation(((Ray)(ref aimRay)).direction)
				}, true);
			}
			if (Object.op_Implicit((Object)(object)((EntityState)this).characterMotor))
			{
				((BaseCharacterController)((EntityState)this).characterMotor).Motor.SetPositionAndRotation(val + Vector3.up * 0.1f, ((EntityState)this).transform.rotation, true);
				((EntityState)this).characterMotor.velocity = Vector3.zero;
			}
			if (Object.op_Implicit((Object)(object)LifeCycle.HostFx.ChildTeleport))
			{
				EffectManager.SpawnEffect(LifeCycle.HostFx.ChildTeleport, new EffectData
				{
					origin = val + Vector3.up,
					rotation = Util.QuaternionSafeLookRotation(((Ray)(ref aimRay)).direction)
				}, true);
			}
			if (Explodes)
			{
				new BlastAttack
				{
					attacker = ((EntityState)this).gameObject,
					inflictor = ((EntityState)this).gameObject,
					teamIndex = ((BaseState)this).GetTeam(),
					position = val + Vector3.up,
					radius = 9f,
					baseDamage = ((BaseState)this).damageStat * 4f,
					baseForce = 800f,
					crit = ((BaseState)this).RollCrit(),
					damageType = DamageTypeCombo.op_Implicit((DamageType)128),
					falloffModel = (FalloffModel)0,
					procCoefficient = 1f,
					attackerFiltering = (AttackerFiltering)2,
					damageType = 
					{
						damageSource = (DamageSource)4
					}
				}.Fire();
				if (Object.op_Implicit((Object)(object)LifeCycle.HostFx.ChildBlast))
				{
					EffectManager.SpawnEffect(LifeCycle.HostFx.ChildBlast, new EffectData
					{
						origin = val + Vector3.up,
						scale = 9f
					}, true);
				}
			}
			((EntityState)this).outer.SetNextStateToMain();
		}

		public override InterruptPriority GetMinimumInterruptPriority()
		{
			return (InterruptPriority)2;
		}
	}
	public class HostBlinkBlastState : HostBlinkState
	{
		protected override bool Explodes => true;
	}
	public class HostFlamebreathState : BaseSkillState
	{
		private const float tick = 0.1f;

		private float timer;

		private Transform muzzle;

		private GameObject flame;

		public override void OnEnter()
		{
			//IL_008a: Unknown result type (might be due to invalid IL or missing references)
			//IL_007d: Unknown result type (might be due to invalid IL or missing references)
			//IL_008f: Unknown result type (might be due to invalid IL or missing references)
			((BaseState)this).OnEnter();
			((BaseState)this).StartAimMode(2.3f, false);
			Util.PlaySound("Play_lemurianBruiser_m2_loop", ((EntityState)this).gameObject);
			muzzle = ((BaseState)this).FindModelChild("MuzzleMouth") ?? ((BaseState)this).FindModelChild("Head");
			HostAim.Cosmetic((BaseState)(object)this, ((EntityState)this).GetModelTransform(), 1.8f);
			if (Object.op_Implicit((Object)(object)LifeCycle.HostFx.Flamebreath))
			{
				flame = Object.Instantiate<GameObject>(LifeCycle.HostFx.Flamebreath, Object.op_Implicit((Object)(object)muzzle) ? muzzle.position : ((EntityState)this).characterBody.aimOrigin, Quaternion.identity);
				if (Object.op_Implicit((Object)(object)muzzle))
				{
					flame.transform.SetParent(muzzle, true);
				}
				ParticleSystem[] componentsInChildren = flame.GetComponentsInChildren<ParticleSystem>();
				for (int i = 0; i < componentsInChildren.Length; i++)
				{
					componentsInChildren[i].Play();
				}
			}
		}

		public override void Update()
		{
			//IL_001f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0024: Unknown result type (might be due to invalid IL or missing references)
			//IL_0027: Unknown result type (might be due to invalid IL or missing references)
			//IL_002c: Unknown result type (might be due to invalid IL or missing references)
			((EntityState)this).Update();
			if (Object.op_Implicit((Object)(object)flame))
			{
				Transform transform = flame.transform;
				Ray aimRay = ((BaseState)this).GetAimRay();
				transform.rotation = Util.QuaternionSafeLookRotation(((Ray)(ref aimRay)).direction);
			}
		}

		public override void FixedUpdate()
		{
			//IL_0044: Unknown result type (might be due to invalid IL or missing references)
			//IL_0049: Unknown result type (might be due to invalid IL or missing references)
			//IL_004a: Unknown result type (might be due to invalid IL or missing references)
			//IL_004f: Unknown result type (might be due to invalid IL or missing references)
			//IL_005b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0067: Unknown result type (might be due to invalid IL or missing references)
			//IL_006a: Unknown result type (might be due to invalid IL or missing references)
			//IL_006f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0074: Unknown result type (might be due to invalid IL or missing references)
			//IL_0077: Unknown result type (might be due to invalid IL or missing references)
			//IL_0081: Unknown result type (might be due to invalid IL or missing references)
			//IL_008c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0097: Unknown result type (might be due to invalid IL or missing references)
			//IL_009e: Unknown result type (might be due to invalid IL or missing references)
			//IL_00b0: Unknown result type (might be due to invalid IL or missing references)
			//IL_00bb: Unknown result type (might be due to invalid IL or missing references)
			//IL_00c7: Unknown result type (might be due to invalid IL or missing references)
			//IL_00d2: Unknown result type (might be due to invalid IL or missing references)
			//IL_00d9: Unknown result type (might be due to invalid IL or missing references)
			//IL_00da: Unknown result type (might be due to invalid IL or missing references)
			//IL_00df: Unknown result type (might be due to invalid IL or missing references)
			//IL_00e2: Unknown result type (might be due to invalid IL or missing references)
			//IL_00e7: Unknown result type (might be due to invalid IL or missing references)
			//IL_00ec: Unknown result type (might be due to invalid IL or missing references)
			//IL_00f7: Unknown result type (might be due to invalid IL or missing references)
			//IL_0102: Unknown result type (might be due to invalid IL or missing references)
			//IL_0104: Unknown result type (might be due to invalid IL or missing references)
			//IL_0109: Unknown result type (might be due to invalid IL or missing references)
			//IL_010f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0114: Unknown result type (might be due to invalid IL or missing references)
			//IL_0119: Unknown result type (might be due to invalid IL or missing references)
			//IL_0120: Unknown result type (might be due to invalid IL or missing references)
			((EntityState)this).FixedUpdate();
			if (((EntityState)this).isAuthority)
			{
				timer -= Time.fixedDeltaTime;
				if (timer <= 0f)
				{
					timer += 0.1f;
					Ray aimRay = ((BaseState)this).GetAimRay();
					BulletAttack val = new BulletAttack
					{
						owner = ((EntityState)this).gameObject,
						weapon = ((EntityState)this).gameObject,
						origin = ((Ray)(ref aimRay)).origin,
						aimVector = ((Ray)(ref aimRay)).direction,
						minSpread = 0f,
						maxSpread = 2f,
						bulletCount = 1u,
						damage = ((BaseState)this).damageStat * 0.7f,
						force = 50f,
						isCrit = ((BaseState)this).RollCrit(),
						radius = 1.8f,
						smartCollision = true
					};
					LayerIndex world = LayerIndex.world;
					val.stopperMask = ((LayerIndex)(ref world)).mask;
					val.maxDistance = 15f;
					val.procCoefficient = 0.5f;
					val.falloffModel = (FalloffModel)0;
					val.damageType = DamageTypeCombo.op_Implicit((DamageType)128);
					val.damageType.damageSource = (DamageSource)2;
					val.Fire();
				}
				if (((EntityState)this).fixedAge >= 1.8f)
				{
					((EntityState)this).outer.SetNextStateToMain();
				}
			}
		}

		public override void OnExit()
		{
			Util.PlaySound("Play_lemurianBruiser_m2_end", ((EntityState)this).gameObject);
			if (Object.op_Implicit((Object)(object)flame))
			{
				Object.Destroy((Object)(object)flame);
			}
			((EntityState)this).OnExit();
		}

		public override InterruptPriority GetMinimumInterruptPriority()
		{
			return (InterruptPriority)1;
		}
	}
	public class HostNovaState : BaseSkillState
	{
		private GameObject charge;

		private bool fired;

		protected virtual float ChargeTime => 0.6f;

		protected virtual float Radius => 14f;

		protected virtual float Damage => 5f;

		protected virtual GameObject ChargeEffect => LifeCycle.HostFx.JellyCharge;

		protected virtual GameObject BlastEffect => LifeCycle.HostFx.JellyNova;

		protected virtual string ChargeSound => "Play_jellyfish_detonate_pre";

		protected virtual string BlastSound => "Play_jellyfish_detonate";

		public override void OnEnter()
		{
			//IL_0045: Unknown result type (might be due to invalid IL or missing references)
			//IL_004a: Unknown result type (might be due to invalid IL or missing references)
			((BaseState)this).OnEnter();
			Util.PlaySound(ChargeSound, ((EntityState)this).gameObject);
			HostAim.Cosmetic((BaseState)(object)this, ((EntityState)this).GetModelTransform(), ChargeTime, overhead: true);
			if (Object.op_Implicit((Object)(object)ChargeEffect))
			{
				charge = Object.Instantiate<GameObject>(ChargeEffect, ((EntityState)this).characterBody.corePosition, Quaternion.identity);
				charge.transform.SetParent(((EntityState)this).transform, true);
			}
		}

		public override void FixedUpdate()
		{
			//IL_0022: Unknown result type (might be due to invalid IL or missing references)
			//IL_002c: Unknown result type (might be due to invalid IL or missing references)
			((EntityState)this).FixedUpdate();
			if (((EntityState)this).isAuthority && Object.op_Implicit((Object)(object)((EntityState)this).characterMotor))
			{
				CharacterMotor characterMotor = ((EntityState)this).characterMotor;
				characterMotor.moveDirection *= 0.3f;
			}
			if (!fired && ((EntityState)this).fixedAge >= ChargeTime)
			{
				fired = true;
				Util.PlaySound(BlastSound, ((EntityState)this).gameObject);
				if (Object.op_Implicit((Object)(object)charge))
				{
					Object.Destroy((Object)(object)charge);
				}
				if (((EntityState)this).isAuthority)
				{
					Blast();
				}
			}
			if (((EntityState)this).isAuthority && ((EntityState)this).fixedAge >= ChargeTime + 0.2f)
			{
				((EntityState)this).outer.SetNextStateToMain();
			}
		}

		private void Blast()
		{
			//IL_0000: Unknown result type (might be due to invalid IL or missing references)
			//IL_0005: Unknown result type (might be due to invalid IL or missing references)
			//IL_0011: Unknown result type (might be due to invalid IL or missing references)
			//IL_001d: Unknown result type (might be due to invalid IL or missing references)
			//IL_001f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0024: Unknown result type (might be due to invalid IL or missing references)
			//IL_0029: Unknown result type (might be due to invalid IL or missing references)
			//IL_0030: Unknown result type (might be due to invalid IL or missing references)
			//IL_0035: Unknown result type (might be due to invalid IL or missing references)
			//IL_003a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0046: Unknown result type (might be due to invalid IL or missing references)
			//IL_0059: Unknown result type (might be due to invalid IL or missing references)
			//IL_0064: Unknown result type (might be due to invalid IL or missing references)
			//IL_0070: Unknown result type (might be due to invalid IL or missing references)
			//IL_0072: Unknown result type (might be due to invalid IL or missing references)
			//IL_0077: Unknown result type (might be due to invalid IL or missing references)
			//IL_0082: Unknown result type (might be due to invalid IL or missing references)
			//IL_0084: Unknown result type (might be due to invalid IL or missing references)
			//IL_0089: Unknown result type (might be due to invalid IL or missing references)
			//IL_0090: Unknown result type (might be due to invalid IL or missing references)
			//IL_0095: Unknown result type (might be due to invalid IL or missing references)
			//IL_00ae: Unknown result type (might be due to invalid IL or missing references)
			//IL_00b3: Unknown result type (might be due to invalid IL or missing references)
			//IL_00ba: Unknown result type (might be due to invalid IL or missing references)
			//IL_00c4: Unknown result type (might be due to invalid IL or missing references)
			//IL_00d6: Expected O, but got Unknown
			new BlastAttack
			{
				attacker = ((EntityState)this).gameObject,
				inflictor = ((EntityState)this).gameObject,
				teamIndex = ((BaseState)this).GetTeam(),
				position = ((EntityState)this).characterBody.corePosition,
				radius = Radius,
				baseDamage = ((BaseState)this).damageStat * Damage,
				baseForce = 1000f,
				crit = ((BaseState)this).RollCrit(),
				falloffModel = (FalloffModel)0,
				procCoefficient = 1f,
				attackerFiltering = (AttackerFiltering)2,
				damageType = 
				{
					damageSource = (DamageSource)4
				}
			}.Fire();
			if (Object.op_Implicit((Object)(object)BlastEffect))
			{
				EffectManager.SpawnEffect(BlastEffect, new EffectData
				{
					origin = ((EntityState)this).characterBody.corePosition,
					scale = Radius
				}, true);
			}
		}

		public override void OnExit()
		{
			if (Object.op_Implicit((Object)(object)charge))
			{
				Object.Destroy((Object)(object)charge);
			}
			((EntityState)this).OnExit();
		}

		public override InterruptPriority GetMinimumInterruptPriority()
		{
			return (InterruptPriority)2;
		}
	}
	public class HostMegaNovaState : HostNovaState
	{
		protected override float ChargeTime => 2f;

		protected override float Radius => 28f;

		protected override float Damage => 14f;

		protected override GameObject ChargeEffect => LifeCycle.HostFx.VagrantCharge;

		protected override GameObject BlastEffect => LifeCycle.HostFx.VagrantNova;

		protected override string ChargeSound => "Play_vagrant_R_charge";

		protected override string BlastSound => "Play_vagrant_R_explode";
	}
	internal static class XenoMelee
	{
		public static bool Hit(BaseState state, GameObject bodyObject, Transform model, string group, float damage, bool crit, TeamIndex team, DamageSource source, GameObject hitEffect, NetworkSoundEventDef sound, float push, Vector3 force = default(Vector3), ModdedDamageType? modded = null, DamageType type = (DamageType)0u)
		{
			//IL_0012: Unknown result type (might be due to invalid IL or missing references)
			//IL_0017: Unknown result type (might be due to invalid IL or missing references)
			//IL_001e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0025: Unknown result type (might be due to invalid IL or missing references)
			//IL_0026: Unknown result type (might be due to invalid IL or missing references)
			//IL_0028: Unknown result type (might be due to invalid IL or missing references)
			//IL_002d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0035: Unknown result type (might be due to invalid IL or missing references)
			//IL_0036: Unknown result type (might be due to invalid IL or missing references)
			//IL_0038: Unknown result type (might be due to invalid IL or missing references)
			//IL_003d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0042: Unknown result type (might be due to invalid IL or missing references)
			//IL_004d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0055: Unknown result type (might be due to invalid IL or missing references)
			//IL_0056: Unknown result type (might be due to invalid IL or missing references)
			//IL_0058: Unknown result type (might be due to invalid IL or missing references)
			//IL_005d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0065: Unknown result type (might be due to invalid IL or missing references)
			//IL_006c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0074: Unknown result type (might be due to invalid IL or missing references)
			//IL_0083: Unknown result type (might be due to invalid IL or missing references)
			//IL_0088: Unknown result type (might be due to invalid IL or missing references)
			//IL_008e: Expected O, but got Unknown
			//IL_0094: Unknown result type (might be due to invalid IL or missing references)
			//IL_0096: Unknown result type (might be due to invalid IL or missing references)
			//IL_00a7: Unknown result type (might be due to invalid IL or missing references)
			HitBoxGroup val = XenoUtil.FindHitBoxGroup(model, group);
			if (!Object.op_Implicit((Object)(object)val))
			{
				return false;
			}
			OverlapAttack val2 = new OverlapAttack
			{
				attacker = bodyObject,
				inflictor = bodyObject,
				teamIndex = team,
				damage = damage,
				damageType = DamageTypeCombo.op_Implicit(type),
				procCoefficient = 1f,
				hitEffectPrefab = hitEffect,
				forceVector = force,
				pushAwayForce = push,
				hitBoxGroup = val,
				isCrit = crit,
				impactSound = (NetworkSoundEventIndex)((!Object.op_Implicit((Object)(object)sound)) ? (-1) : ((int)sound.index))
			};
			val2.damageType.damageSource = source;
			if (modded.HasValue)
			{
				DamageAPI.AddModdedDamageType(val2, modded.Value);
			}
			return val2.Fire((List<HurtBox>)null);
		}
	}
	public class ClawComboState : BaseSkillState, IStepSetter
	{
		private const string hitboxName = "ClawSwipeHitBox";

		private int step;

		private float duration;

		private float hitTime;

		private bool hasHit;

		private Animator animator;

		public void SetStep(int i)
		{
			step = i;
		}

		public override void OnEnter()
		{
			((BaseState)this).OnEnter();
			bool flag = step >= 2;
			duration = (flag ? 0.85f : 0.6f) / ((BaseState)this).attackSpeedStat;
			hitTime = duration * (flag ? 0.5f : 0.35f);
			animator = ((EntityState)this).GetModelAnimator();
			((BaseState)this).StartAimMode(duration + 0.5f, false);
			XenoUtil.DropFromWall(((EntityState)this).gameObject, ((EntityState)this).isAuthority);
			if (Object.op_Implicit((Object)(object)animator))
			{
				animator.SetBool("inCombat", true);
				if (!flag)
				{
					int layerIndex = animator.GetLayerIndex("Gesture, Override");
					if (layerIndex >= 0)
					{
						animator.SetFloat("Claws.playbackRate", 0.275f / duration);
						animator.Play("ClawSwipe", layerIndex, (step == 0) ? 0.45f : 0f);
					}
				}
			}
			if (flag)
			{
				XenoSecondaryMotion xenoSecondaryMotion = (Object.op_Implicit((Object)(object)((EntityState)this).GetModelTransform()) ? ((Component)((EntityState)this).GetModelTransform()).GetComponent<XenoSecondaryMotion>() : null);
				if (Object.op_Implicit((Object)(object)xenoSecondaryMotion))
				{
					xenoSecondaryMotion.PlayOverhead(duration);
				}
				Util.PlaySound("Play_Hiss1_LXeno", ((EntityState)this).gameObject);
			}
		}

		public override void FixedUpdate()
		{
			//IL_000d: Unknown result type (might be due to invalid IL or missing references)
			((EntityState)this).FixedUpdate();
			XenoUtil.AimHitboxes(((EntityState)this).characterBody, ((BaseState)this).GetAimRay(), ((BaseState)this).FindModelChild("HitboxAim"));
			if (!hasHit && ((EntityState)this).fixedAge >= hitTime)
			{
				Strike();
			}
			if (((EntityState)this).isAuthority && ((EntityState)this).fixedAge >= duration)
			{
				((EntityState)this).outer.SetNextStateToMain();
			}
		}

		private void Strike()
		{
			//IL_00d3: Unknown result type (might be due to invalid IL or missing references)
			//IL_00fc: Unknown result type (might be due to invalid IL or missing references)
			//IL_0106: Unknown result type (might be due to invalid IL or missing references)
			//IL_00f5: Unknown result type (might be due to invalid IL or missing references)
			//IL_0111: Unknown result type (might be due to invalid IL or missing references)
			//IL_0116: Unknown result type (might be due to invalid IL or missing references)
			//IL_0122: Unknown result type (might be due to invalid IL or missing references)
			//IL_015a: Unknown result type (might be due to invalid IL or missing references)
			hasHit = true;
			bool flag = step >= 2;
			Util.PlayAttackSpeedSound("Play_claw_LXeno", ((EntityState)this).gameObject, ((BaseState)this).attackSpeedStat);
			if (((EntityState)this).isAuthority)
			{
				GameObject val = ((step == 0) ? XenomorphContent.ClawLeftEffect : XenomorphContent.ClawRightEffect);
				if (Object.op_Implicit((Object)(object)val))
				{
					EffectManager.SimpleMuzzleFlash(val, ((EntityState)this).gameObject, "ClawSwipeHitBox", true);
				}
				if (flag && Object.op_Implicit((Object)(object)XenomorphContent.ClawLeftEffect))
				{
					EffectManager.SimpleMuzzleFlash(XenomorphContent.ClawRightEffect, ((EntityState)this).gameObject, "ClawSwipeHitBox", true);
				}
				float num = XenoUtil.AmbushMultiplier(((EntityState)this).gameObject) * LifeCycle.DamageScale(((EntityState)this).characterBody);
				float damage = (flag ? 3.2f : 1.6f) * ((BaseState)this).damageStat * num;
				GameObject gameObject = ((EntityState)this).gameObject;
				Transform modelTransform = ((EntityState)this).GetModelTransform();
				bool crit = ((BaseState)this).RollCrit();
				TeamIndex team = ((BaseState)this).GetTeam();
				GameObject clawHitEffect = XenomorphContent.ClawHitEffect;
				NetworkSoundEventDef clawImpactSound = XenomorphContent.ClawImpactSound;
				float push = (flag ? 900f : 300f);
				Vector3 force = (flag ? (Vector3.down * 600f) : Vector3.zero);
				DamageType type = LifeCycle.ClawDamageType(((EntityState)this).characterBody);
				XenoMelee.Hit((BaseState)(object)this, gameObject, modelTransform, "ClawSwipeHitBox", damage, crit, team, (DamageSource)1, clawHitEffect, clawImpactSound, push, force, null, type);
				if (flag)
				{
					((BaseState)this).AddRecoil(-1f, -2f, -0.5f, 0.5f);
				}
				if (Object.op_Implicit((Object)(object)XenomorphContent.AcidBloodPrefab))
				{
					LifeCycle.FlingAcid(((EntityState)this).characterBody, ((BaseState)this).GetAimRay(), ((BaseState)this).damageStat * num, ((BaseState)this).RollCrit(), XenomorphContent.AcidBloodPrefab);
				}
			}
		}

		public override void OnExit()
		{
			if (Object.op_Implicit((Object)(object)animator))
			{
				animator.SetBool("inCombat", false);
			}
			((EntityState)this).OnExit();
		}

		public override void OnSerialize(NetworkWriter writer)
		{
			((BaseSkillState)this).OnSerialize(writer);
			writer.Write((byte)step);
		}

		public override void OnDeserialize(NetworkReader reader)
		{
			((BaseSkillState)this).OnDeserialize(reader);
			step = reader.ReadByte();
		}

		public override InterruptPriority GetMinimumInterruptPriority()
		{
			if (((EntityState)this).fixedAge >= hitTime)
			{
				return (InterruptPriority)0;
			}
			return (InterruptPriority)1;
		}
	}
	public class RoarState : BaseSkillState
	{
		private bool hasRoared;

		public override void OnEnter()
		{
			//IL_002a: Unknown result type (might be due to invalid IL or missing references)
			//IL_002f: Unknown result type (might be due to invalid IL or missing references)
			((BaseState)this).OnEnter();
			XenoUtil.DropFromWall(((EntityState)this).gameObject, ((EntityState)this).isAuthority);
			if (Object.op_Implicit((Object)(object)((EntityState)this).characterMotor))
			{
				((EntityState)this).characterMotor.velocity = Vector3.zero;
			}
			Util.PlaySound("Play_Hiss1_LXeno", ((EntityState)this).gameObject);
			Util.PlaySound("Play_pain_LXeno", ((EntityState)this).gameObject);
			((EntityState)this).PlayAnimation("Headbite, Override", "Headbite", "Bite.playbackRate", 1.04f, 0f);
			XenoSecondaryMotion xenoSecondaryMotion = (Object.op_Implicit((Object)(object)((EntityState)this).GetModelTransform()) ? ((Component)((EntityState)this).GetModelTransform()).GetComponent<XenoSecondaryMotion>() : null);
			if (Object.op_Implicit((Object)(object)xenoSecondaryMotion))
			{
				xenoSecondaryMotion.PlayArmsBack(1.04f);
			}
		}

		public override void FixedUpdate()
		{
			//IL_0021: Unknown result type (might be due to invalid IL or missing references)
			((EntityState)this).FixedUpdate();
			if (Object.op_Implicit((Object)(object)((EntityState)this).characterMotor) && ((EntityState)this).isAuthority)
			{
				((EntityState)this).characterMotor.moveDirection = Vector3.zero;
			}
			if (!hasRoared && ((EntityState)this).fixedAge >= 0.24000001f)
			{
				Roar();
			}
			if (((EntityState)this).isAuthority && ((EntityState)this).fixedAge >= 0.8f)
			{
				((EntityState)this).outer.SetNextStateToMain();
			}
		}

		private void Roar()
		{
			//IL_0016: Unknown result type (might be due to invalid IL or missing references)
			//IL_001b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0022: Unknown result type (might be due to invalid IL or missing references)
			//IL_002c: Unknown result type (might be due to invalid IL or missing references)
			//IL_003d: Expected O, but got Unknown
			//IL_0045: Unknown result type (might be due to invalid IL or missing references)
			//IL_004a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0051: Unknown result type (might be due to invalid IL or missing references)
			//IL_0056: Unknown result type (might be due to invalid IL or missing references)
			//IL_005b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0066: Unknown result type (might be due to invalid IL or missing references)
			//IL_0067: Unknown result type (might be due to invalid IL or missing references)
			//IL_006c: Unknown result type (might be due to invalid IL or missing references)
			//IL_006f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0074: Unknown result type (might be due to invalid IL or missing references)
			//IL_0079: Unknown result type (might be due to invalid IL or missing references)
			//IL_007b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0086: Unknown result type (might be due to invalid IL or missing references)
			//IL_008b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0130: Unknown result type (might be due to invalid IL or missing references)
			//IL_0136: Unknown result type (might be due to invalid IL or missing references)
			hasRoared = true;
			GameObject novaEffectPrefab = JellyNova.novaEffectPrefab;
			if (Object.op_Implicit((Object)(object)novaEffectPrefab))
			{
				EffectManager.SpawnEffect(novaEffectPrefab, new EffectData
				{
					origin = ((EntityState)this).characterBody.corePosition,
					scale = 18f
				}, false);
			}
			if (!NetworkServer.active)
			{
				return;
			}
			SphereSearch val = new SphereSearch
			{
				origin = ((EntityState)this).characterBody.corePosition,
				radius = 18f
			};
			LayerIndex entityPrecise = LayerIndex.entityPrecise;
			val.mask = ((LayerIndex)(ref entityPrecise)).mask;
			val.queryTriggerInteraction = (QueryTriggerInteraction)0;
			HurtBox[] hurtBoxes = val.RefreshCandidates().FilterCandidatesByHurtBoxTeam(TeamMask.GetEnemyTeams(((BaseState)this).GetTeam())).FilterCandidatesByDistinctHurtBoxEntities()
				.GetHurtBoxes();
			int num = 0;
			HurtBox[] array = hurtBoxes;
			foreach (HurtBox val2 in array)
			{
				CharacterBody val3 = (Object.op_Implicit((Object)(object)val2.healthComponent) ? val2.healthComponent.body : null);
				if (Object.op_Implicit((Object)(object)val3) && val3.healthComponent.alive)
				{
					val3.AddTimedBuff(Buffs.Weak, 6f);
					num++;
				}
			}
			if (num > 0 && Object.op_Implicit((Object)(object)((EntityState)this).healthComponent))
			{
				((EntityState)this).healthComponent.HealFraction(Mathf.Min(0.3f, 0.03f * (float)num), default(ProcChainMask));
			}
		}

		public override InterruptPriority GetMinimumInterruptPriority()
		{
			return (InterruptPriority)2;
		}
	}
	public class LifeCycleEvolveState : BaseState
	{
		private bool done;

		public override void OnEnter()
		{
			((BaseState)this).OnEnter();
			XenoUtil.DropFromWall(((EntityState)this).gameObject, ((EntityState)this).isAuthority);
			Util.PlaySound("Play_Hiss1_LXeno", ((EntityState)this).gameObject);
			Util.PlaySound("Play_pain_LXeno", ((EntityState)this).gameObject);
			Transform modelTransform = ((EntityState)this).GetModelTransform();
			BursterMotion bursterMotion = (Object.op_Implicit((Object)(object)modelTransform) ? ((Component)modelTransform).GetComponent<BursterMotion>() : null);
			if (Object.op_Implicit((Object)(object)bursterMotion))
			{
				bursterMotion.PlayEvolve(1f);
			}
			XenoSecondaryMotion xenoSecondaryMotion = (Object.op_Implicit((Object)(object)modelTransform) ? ((Component)modelTransform).GetComponent<XenoSecondaryMotion>() : null);
			if (Object.op_Implicit((Object)(object)xenoSecondaryMotion))
			{
				xenoSecondaryMotion.PlayOverhead(1f);
			}
			if (NetworkServer.active)
			{
				((EntityState)this).characterBody.AddTimedBuff(Buffs.HiddenInvincibility, 1.5f);
			}
		}

		public override void FixedUpdate()
		{
			//IL_0019: Unknown result type (might be due to invalid IL or missing references)
			//IL_0075: Unknown result type (might be due to invalid IL or missing references)
			//IL_007b: Unknown result type (might be due to invalid IL or missing references)
			//IL_003e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0043: Unknown result type (might be due to invalid IL or missing references)
			//IL_00af: Unknown result type (might be due to invalid IL or missing references)
			//IL_00b4: Unknown result type (might be due to invalid IL or missing references)
			//IL_00bb: Unknown result type (might be due to invalid IL or missing references)
			//IL_00c5: Unknown result type (might be due to invalid IL or missing references)
			//IL_00d6: Expected O, but got Unknown
			((EntityState)this).FixedUpdate();
			if (Object.op_Implicit((Object)(object)((EntityState)this).characterMotor))
			{
				((EntityState)this).characterMotor.moveDirection = Vector3.zero;
				if (((EntityState)this).isAuthority && ((EntityState)this).characterMotor.isGrounded)
				{
					((EntityState)this).characterMotor.velocity = Vector3.zero;
				}
			}
			if (Object.op_Implicit((Object)(object)((EntityState)this).healthComponent) && NetworkServer.active)
			{
				((EntityState)this).healthComponent.HealFraction(Time.fixedDeltaTime / 1f * 0.5f, default(ProcChainMask));
			}
			if (!done && ((EntityState)this).fixedAge >= 1f)
			{
				done = true;
				if (Object.op_Implicit((Object)(object)XenomorphContent.AcidImpactEffect))
				{
					EffectManager.SpawnEffect(XenomorphContent.AcidImpactEffect, new EffectData
					{
						origin = ((EntityState)this).characterBody.corePosition,
						scale = 4f
					}, false);
				}
				if (NetworkServer.active)
				{
					LifeCycle.EvolveServer(((EntityState)this).characterBody);
				}
				if (((EntityState)this).isAuthority)
				{
					((EntityState)this).outer.SetNextStateToMain();
				}
			}
		}

		public override InterruptPriority GetMinimumInterruptPriority()
		{
			return (InterruptPriority)9;
		}
	}
	public class SummonBroodState : BaseSkillState
	{
		public override void OnEnter()
		{
			((BaseState)this).OnEnter();
			Util.PlaySound("Play_Hiss1_LXeno", ((EntityState)this).gameObject);
			XenoSecondaryMotion xenoSecondaryMotion = (Object.op_Implicit((Object)(object)((EntityState)this).GetModelTransform()) ? ((Component)((EntityState)this).GetModelTransform()).GetComponent<XenoSecondaryMotion>() : null);
			if (Object.op_Implicit((Object)(object)xenoSecondaryMotion))
			{
				xenoSecondaryMotion.PlayOverhead(0.6f);
			}
			if (NetworkServer.active)
			{
				LifeCycle.SummonBroodServer(((EntityState)this).characterBody);
			}
		}

		public override void FixedUpdate()
		{
			((EntityState)this).FixedUpdate();
			if (((EntityState)this).isAuthority && ((EntityState)this).fixedAge >= 0.6f)
			{
				((EntityState)this).outer.SetNextStateToMain();
			}
		}

		public override InterruptPriority GetMinimumInterruptPriority()
		{
			return (InterruptPriority)2;
		}
	}
	public class BroodSkillDef : SkillDef
	{
		public override bool IsReady(GenericSkill skillSlot)
		{
			CharacterBody val = (Object.op_Implicit((Object)(object)skillSlot) ? skillSlot.characterBody : null);
			if (((SkillDef)this).IsReady(skillSlot) && Object.op_Implicit((Object)(object)val))
			{
				return val.GetBuffCount(LifeCycle.BroodBuff) < 2;
			}
			return false;
		}
	}
	public class BursterBiteState : BaseSkillState
	{
		private float duration;

		private bool hasBitten;

		public override void OnEnter()
		{
			((BaseState)this).OnEnter();
			duration = 0.4f / ((BaseState)this).attackSpeedStat;
			((BaseState)this).StartAimMode(duration + 0.5f, false);
			BursterMotion bursterMotion = (Object.op_Implicit((Object)(object)((EntityState)this).GetModelTransform()) ? ((Component)((EntityState)this).GetModelTransform()).GetComponent<BursterMotion>() : null);
			if (Object.op_Implicit((Object)(object)bursterMotion))
			{
				bursterMotion.PlayBite(duration);
			}
		}

		public override void FixedUpdate()
		{
			//IL_000d: Unknown result type (might be due to invalid IL or missing references)
			//IL_00a1: Unknown result type (might be due to invalid IL or missing references)
			//IL_00b8: Unknown result type (might be due to invalid IL or missing references)
			//IL_00be: Unknown result type (might be due to invalid IL or missing references)
			((EntityState)this).FixedUpdate();
			XenoUtil.AimHitboxes(((EntityState)this).characterBody, ((BaseState)this).GetAimRay(), ((BaseState)this).FindModelChild("HitboxAim"));
			if (!hasBitten && ((EntityState)this).fixedAge >= duration * 0.3f)
			{
				hasBitten = true;
				Util.PlayAttackSpeedSound("Play_bites_LXeno", ((EntityState)this).gameObject, ((BaseState)this).attackSpeedStat * 1.5f);
				if (((EntityState)this).isAuthority)
				{
					XenoMelee.Hit((BaseState)(object)this, ((EntityState)this).gameObject, ((EntityState)this).GetModelTransform(), "BursterBiteHitBox", 1.8f * ((BaseState)this).damageStat * LifeCycle.DamageScale(((EntityState)this).characterBody), ((BaseState)this).RollCrit(), ((BaseState)this).GetTeam(), (DamageSource)1, XenomorphContent.ClawHitEffect, XenomorphContent.BiteImpactSound, 150f, default(Vector3), null, (DamageType)0);
				}
			}
			if (((EntityState)this).isAuthority && ((EntityState)this).fixedAge >= duration)
			{
				((EntityState)this).outer.SetNextStateToMain();
			}
		}

		public override InterruptPriority GetMinimumInterruptPriority()
		{
			return (InterruptPriority)1;
		}
	}
	public class FeastState : BaseSkillState
	{
		private const float duration = 0.6f;

		private const float lungeTime = 0.3f;

		private bool hasBitten;

		private Vector3 direction;

		public override void OnEnter()
		{
			//IL_0008: Unknown result type (might be due to invalid IL or missing references)
			//IL_000d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0010: Unknown result type (might be due to invalid IL or missing references)
			//IL_0015: Unknown result type (might be due to invalid IL or missing references)
			//IL_00c1: Unknown result type (might be due to invalid IL or missing references)
			//IL_00c6: Unknown result type (might be due to invalid IL or missing references)
			//IL_00c9: Unknown result type (might be due to invalid IL or missing references)
			//IL_00d3: Unknown result type (might be due to invalid IL or missing references)
			//IL_00d8: Unknown result type (might be due to invalid IL or missing references)
			((BaseState)this).OnEnter();
			Ray aimRay = ((BaseState)this).GetAimRay();
			direction = ((Ray)(ref aimRay)).direction;
			((BaseState)this).StartAimMode(1.1f, false);
			Util.PlaySound("Play_Hiss1_LXeno", ((EntityState)this).gameObject);
			BursterMotion bursterMotion = (Object.op_Implicit((Object)(object)((EntityState)this).GetModelTransform()) ? ((Component)((EntityState)this).GetModelTransform()).GetComponent<BursterMotion>() : null);
			if (Object.op_Implicit((Object)(object)bursterMotion))
			{
				bursterMotion.PlayLunge(0.6f);
			}
			if (((EntityState)this).isAuthority && Object.op_Implicit((Object)(object)((EntityState)this).characterMotor))
			{
				((BaseCharacterController)((EntityState)this).characterMotor).Motor.ForceUnground(0.1f);
				CharacterMotor characterMotor = ((EntityState)this).characterMotor;
				Vector3 val = new Vector3(direction.x, Mathf.Max(direction.y, 0.15f), direction.z);
				characterMotor.velocity = ((Vector3)(ref val)).normalized * 22f;
			}
		}

		public override void FixedUpdate()
		{
			//IL_000d: Unknown result type (might be due to invalid IL or missing references)
			//IL_004b: Unknown result type (might be due to invalid IL or missing references)
			((EntityState)this).FixedUpdate();
			XenoUtil.AimHitboxes(((EntityState)this).characterBody, ((BaseState)this).GetAimRay(), ((BaseState)this).FindModelChild("HitboxAim"));
			if (((EntityState)this).isAuthority && Object.op_Implicit((Object)(object)((EntityState)this).characterMotor) && ((EntityState)this).fixedAge < 0.3f)
			{
				((EntityState)this).characterMotor.moveDirection = direction;
			}
			if (!hasBitten && ((EntityState)this).fixedAge >= 0.3f)
			{
				Bite();
			}
			if (((EntityState)this).isAuthority && ((EntityState)this).fixedAge >= 0.6f)
			{
				((EntityState)this).outer.SetNextStateToMain();
			}
		}

		private void Bite()
		{
			//IL_0052: Unknown result type (might be due to invalid IL or missing references)
			//IL_0069: Unknown result type (might be due to invalid IL or missing references)
			//IL_0075: Unknown result type (might be due to invalid IL or missing references)
			//IL_007b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0099: Unknown result type (might be due to invalid IL or missing references)
			//IL_00a3: Unknown result type (might be due to invalid IL or missing references)
			//IL_00a8: Unknown result type (might be due to invalid IL or missing references)
			hasBitten = true;
			Util.PlaySound("Play_bites_LXeno", ((EntityState)this).gameObject);
			if (((EntityState)this).isAuthority)
			{
				GameObject gameObject = ((EntityState)this).gameObject;
				Transform modelTransform = ((EntityState)this).GetModelTransform();
				float damage = 6f * ((BaseState)this).damageStat * LifeCycle.DamageScale(((EntityState)this).characterBody);
				bool crit = ((BaseState)this).RollCrit();
				TeamIndex team = ((BaseState)this).GetTeam();
				GameObject clawHitEffect = XenomorphContent.ClawHitEffect;
				NetworkSoundEventDef biteImpactSound = XenomorphContent.BiteImpactSound;
				ModdedDamageType? modded = LifeCycle.FeastDamage;
				if (XenoMelee.Hit((BaseState)(object)this, gameObject, modelTransform, "BursterBiteHitBox", damage, crit, team, (DamageSource)8, clawHitEffect, biteImpactSound, 300f, default(Vector3), modded, (DamageType)0) && Object.op_Implicit((Object)(object)((EntityState)this).characterMotor))
				{
					CharacterMotor characterMotor = ((EntityState)this).characterMotor;
					characterMotor.velocity *= 0.2f;
				}
			}
		}

		public override InterruptPriority GetMinimumInterruptPriority()
		{
			return (InterruptPriority)2;
		}
	}
	public class AdrenalineState : BaseSkillState
	{
		public override void OnEnter()
		{
			((BaseState)this).OnEnter();
			Util.PlaySound("Play_Hiss1_LXeno", ((EntityState)this).gameObject);
			if (NetworkServer.active)
			{
				((EntityState)this).characterBody.AddTimedBuff(LifeCycle.AdrenalineBuff, 4f);
			}
			if (((EntityState)this).isAuthority)
			{
				((EntityState)this).outer.SetNextStateToMain();
			}
		}
	}
	public class FacehugState : BaseSkillState
	{
		private Vector3 direction;

		public override void OnEnter()
		{
			//IL_0008: Unknown result type (might be due to invalid IL or missing references)
			//IL_000d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0010: Unknown result type (might be due to invalid IL or missing references)
			//IL_0015: Unknown result type (might be due to invalid IL or missing references)
			//IL_00b2: Unknown result type (might be due to invalid IL or missing references)
			//IL_00b7: Unknown result type (might be due to invalid IL or missing references)
			//IL_00ba: Unknown result type (might be due to invalid IL or missing references)
			//IL_00c4: Unknown result type (might be due to invalid IL or missing references)
			//IL_00c9: Unknown result type (might be due to invalid IL or missing references)
			((BaseState)this).OnEnter();
			Ray aimRay = ((BaseState)this).