public void Kill() { if (this.bGonnaDie) { return; } this.iNextHardUpdate = 20000; this.xOwner.xRenderComponent.SwitchAnimation((ushort)(28 + this.xOwner.byAnimationDirection), Animation.CancelOptions.IgnoreIfPlaying); this.xOwner.xCollisionComponent.DeactivateGroup(CollisionComponent.ColliderGroup.Combat); this.xOwner.xCollisionComponent.SetPropertyInGroup(CollisionComponent.ColliderGroup.Movement, CollisionComponent.ColliderProperty.Ghost); this.xOwner.xAttackPhase.CancelPhase(); this.xOwner.bSyncAnimationWithServer = false; this.xOwner.bSynchNetworkPosition = false; this.bGonnaDie = true; this.xOwner.xBaseStats.UnlistStatusEffect(BaseStats.StatusEffectSource.Freeze); this.xOwner.xBaseStats.UnlistStatusEffect(BaseStats.StatusEffectSource.Chilled); this.enCurrentAction = YetiAI.Action.Chillin; }
private void ChangeAction(YetiAI.Action enChangeTo) { this.enCurrentAction = enChangeTo; this.sSubAction = ""; }