Пример #1
0
 public FunnymanBot(BotArgs args, Controller <FunnymanBot> controller) : base(args)
 {
     if (controller != null)
     {
         m_controller       = controller;
         m_controller.Actor = this;
     }
 }
Пример #2
0
 public KingpinBot(BotArgs args, Controller <KingpinBot> controller) : base(args)
 {
     if (controller != null)
     {
         m_controller       = controller;
         m_controller.Actor = this;
     }
 }
Пример #3
0
        public EngineerBot(BotArgs args, EngineerBot_Controller controller) : base(args)
        {
            UpdateDelay = 0;

            if (controller != null)
            {
                m_controller       = controller;
                m_controller.Actor = this;
            }
        }
Пример #4
0
        public MechaBot(BotArgs args, MechaBot_Controller controller) : base(args)
        {
            UpdateDelay = 0;
            m_state     = MechaState.Normal;

            if (controller != null)
            {
                m_controller       = controller;
                m_controller.Actor = this;
            }
        }
Пример #5
0
 public CowboyBot(BotArgs args) : base(args)
 {
     if (Info.IsBoss)
     {
         DisarmChance     = .35f;
         CritDisarmChance = .65f;
         DestroyWeaponWhenDisarmChance     = .15f;
         DestroyWeaponWhenCritDisarmChance = .35f;
     }
     else
     {
         DisarmChance     = .15f;
         CritDisarmChance = .15f;
         DestroyWeaponWhenDisarmChance     = 0f;
         DestroyWeaponWhenCritDisarmChance = .01f;
     }
 }
Пример #6
0
        public static Bot Create(IPlayer player, BotType botType, BotFaction faction)
        {
            Bot bot  = null;
            var args = new BotArgs
            {
                Player     = player,
                BotType    = botType,
                BotFaction = faction,
                Info       = GetInfo(botType),
            };

            switch (botType)
            {
            case BotType.Balista:
                bot = new BalistaBot(args);
                break;

            case BotType.Balloonatic:
                bot = new BalloonaticBot(args);
                break;

            case BotType.Boffin:
                bot = new BoffinBot(args);
                break;

            case BotType.Cindy:
                bot = new CindyBot(args);
                break;

            case BotType.Cowboy:
            case BotType.ClownCowboy:
                bot = new CowboyBot(args);
                break;

            case BotType.Cyborg:
                bot = new CyborgBot(args);
                break;

            case BotType.Engineer:
                bot = new EngineerBot(args, player.IsBot ? new EngineerBot_Controller() : null);
                break;

            case BotType.Funnyman:
                bot = new FunnymanBot(args, player.IsBot ? new FunnymanBot_Controller() : null);
                break;

            case BotType.Hacker:
                bot = new HackerBot(args);
                break;

            case BotType.Hunter:
                bot = new HunterBot(args);
                break;

            case BotType.Incinerator:
                bot = new IncineratorBot(args);
                break;

            case BotType.Kingpin:
                bot = new KingpinBot(args, player.IsBot ? new KingpinBot_Controller() : null);
                break;

            case BotType.Kriegbar:
                bot = new KriegbärBot(args, player.IsBot ? new KriegbarBot_Controller() : null);
                break;

            case BotType.Mecha:
                bot = new MechaBot(args, player.IsBot ? new MechaBot_Controller() : null);
                break;

            case BotType.MirrorMan:
                bot = new MirrorManBot(args);
                break;

            case BotType.PoliceChief:
                bot = new PoliceChiefBot(args);
                break;

            case BotType.Sheriff:
                bot = new SheriffBot(args);
                break;

            case BotType.Smoker:
                bot = new SmokerBot(args);
                break;

            case BotType.SurvivorBiker:
            case BotType.SurvivorCrazy:
            case BotType.SurvivorNaked:
            case BotType.SurvivorRifleman:
            case BotType.SurvivorRobber:
            case BotType.SurvivorTough:
                bot = new SurvivorBot(args);
                break;

            case BotType.Stripper:
                bot = new StripperBot(args);
                break;

            case BotType.Teddybear:
                bot = new TeddybearBot(args);
                break;

            case BotType.Babybear:
                bot = new BabybearBot(args);
                break;

            case BotType.ZombieFat:
                bot = new ZombieFatBot(args);
                break;

            case BotType.ZombieFlamer:
                bot = new ZombieFlamerBot(args);
                break;

            default:
                bot = new Bot(args);
                break;
            }

            return(bot);
        }
Пример #7
0
 public SmokerBot(BotArgs args) : base(args)
 {
 }
Пример #8
0
 public BoffinBot(BotArgs args) : base(args)
 {
     m_currentPowerup = GetWeapons(Type).First().PrimaryPowerup;
 }
Пример #9
0
 public MirrorManBot(BotArgs args) : base(args)
 {
 }
Пример #10
0
 public TeddybearBot(BotArgs args) : base(args)
 {
     IsEnraged = false;
 }
Пример #11
0
 public Bot(BotArgs args) : this(args.Player)
 {
     Type    = args.BotType;
     Faction = args.BotFaction;
     Info    = args.Info;
 }
Пример #12
0
 public CindyBot(BotArgs args) : base(args)
 {
 }
Пример #13
0
 public ZombieFatBot(BotArgs args) : base(args)
 {
 }
Пример #14
0
 public BabybearBot(BotArgs args) : base(args)
 {
 }
Пример #15
0
 public PoliceChiefBot(BotArgs args) : base(args)
 {
 }
Пример #16
0
 public CyborgBot(BotArgs args) : base(args)
 {
 }
Пример #17
0
 public ZombieFlamerBot(BotArgs args) : base(args)
 {
 }
Пример #18
0
 public SheriffBot(BotArgs args) : base(args)
 {
 }
Пример #19
0
 public HunterBot(BotArgs args) : base(args)
 {
 }
Пример #20
0
 public SurvivorBot(BotArgs args) : base(args)
 {
 }
Пример #21
0
 public BalistaBot(BotArgs args) : base(args)
 {
 }
Пример #22
0
 public IncineratorBot(BotArgs args) : base(args)
 {
 }
Пример #23
0
 public StripperBot(BotArgs args) : base(args)
 {
     BouncerCheckTime = RandomHelper.Between(800, 1200);
 }
Пример #24
0
 public RobotBot(BotArgs args) : base(args)
 {
 }
Пример #25
0
 public BalloonaticBot(BotArgs args) : base(args)
 {
 }