Exemplo n.º 1
0
        private IEnumerator ServerProcessCloning(CloningRecord record)
        {
            yield return(WaitFor.Seconds(10f));

            statusString = "Cloning process complete.";
            if (console)
            {
                console.UpdateDisplay();
            }
            if (record.mind.IsOnline())
            {
                var playerBody = PlayerSpawn.ServerClonePlayer(record.mind, transform.position.CutToInt()).GetComponent <LivingHealthMasterBase>();

                void ApplyDamage()
                {
                    ApplyCloningDamage(playerBody);
                }

                playerBody.OnFullyInitialised(ApplyDamage);
                //GameObject
                //Do cloning damage
                //Initialisation order
            }
            statusSync = CloningPodStatus.Empty;
        }
Exemplo n.º 2
0
    private IEnumerator ServerProcessCloning(CloningRecord record)
    {
        yield return(WaitFor.Seconds(10f));

        statusString = "Cloning process complete.";
        if (console)
        {
            console.consoleGUI.UpdateDisplay();
        }
        if (record.mind.IsOnline(record.mind.GetCurrentMob()))
        {
            PlayerSpawn.ServerClonePlayer(record.mind, transform.position.CutToInt());
        }
        statusSync = CloningPodStatus.Empty;
    }
Exemplo n.º 3
0
        private IEnumerator ServerProcessCloning(CloningRecord record)
        {
            yield return(WaitFor.Seconds(10f));

            statusString = "Cloning process complete.";
            if (console)
            {
                console.UpdateDisplay();
            }
            if (record.mind.IsOnline())
            {
                var playerBody = PlayerSpawn.ServerClonePlayer(record.mind, transform.position.CutToInt()).GetComponent <LivingHealthMasterBase>();
                playerBody.ApplyDamageAll(this.gameObject, LimbCloningDamage, AttackType.Internal, DamageType.Clone, false);
            }
            statusSync = CloningPodStatus.Empty;
        }