Beispiel #1
0
        public void Execute(IRocketPlayer caller, string[] command)
        {
            UnturnedChat.Say(caller, "This command is not working properly, request denied.", Color.red);
            return;

            Zombie         myZombie = new Zombie();
            UnturnedPlayer pCaller  = (UnturnedPlayer)caller;

            //            Vector3 test = new Vector3(0, 0, 0);
//            myZombie.isHunting = true;
//            Logger.Log("Flag1" + myZombie.isActiveAndEnabled);
//            myZombie.move = 100;
            myZombie.askAttack(100);
            //            myZombie.enabled = true;
            myZombie.askThrow();
            myZombie.tellSpeciality(EZombieSpeciality.ACID);
//            myZombie.idle = 0;

            ZombieManager.sendZombieAlive(myZombie, myZombie.type, (byte)myZombie.speciality, myZombie.shirt, myZombie.pants, myZombie.hat, myZombie.gear, pCaller.Position, 0);

            ZombieManager.Instance.addZombie(0, myZombie.type, (byte)myZombie.speciality, myZombie.shirt, myZombie.pants, myZombie.hat, myZombie.gear, myZombie.move, myZombie.idle, pCaller.Position, pCaller.Rotation, false);
        }
Beispiel #2
0
        public override CommandResult OnExecute(ICommandSource src, ICommandArgs args)
        {
            var count = 0;

            UWorld.Zombies.Where(z => z.isDead).ForEach(zombie => {
                ZombieManager.sendZombieAlive(
                    zombie,
                    zombie.type,
                    (byte)zombie.speciality,
                    zombie.shirt,
                    zombie.pants,
                    zombie.hat,
                    zombie.gear,
                    zombie.transform.position,
                    0
                    );
                count++;
            });

            EssLang.Send(src, "RESPAWNED_ZOMBIES", count);

            return(CommandResult.Success());
        }
        public override void Execute(ICommandContext context)
        {
            var count = 0;

            var zombies = Object.FindObjectsOfType <Zombie>();

            zombies.Where(z => z.isDead).ForEach(zombie =>
            {
                ZombieManager.sendZombieAlive(
                    zombie,
                    zombie.type,
                    (byte)zombie.speciality,
                    zombie.shirt,
                    zombie.pants,
                    zombie.hat,
                    zombie.gear,
                    zombie.transform.position,
                    0
                    );
                count++;
            });

            context.User.SendLocalizedMessage(Translations, "RESPAWNED_ZOMBIES", count);
        }