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

            if (controller != null)
            {
                m_controller       = controller;
                m_controller.Actor = this;
            }
        }
Example #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;
            }
        }
Example #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;
     }
 }
Example #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);
        }
Example #7
0
 public SmokerBot(BotArgs args) : base(args)
 {
 }
Example #8
0
 public BoffinBot(BotArgs args) : base(args)
 {
     m_currentPowerup = GetWeapons(Type).First().PrimaryPowerup;
 }
Example #9
0
 public MirrorManBot(BotArgs args) : base(args)
 {
 }
Example #10
0
 public TeddybearBot(BotArgs args) : base(args)
 {
     IsEnraged = false;
 }
Example #11
0
 public Bot(BotArgs args) : this(args.Player)
 {
     Type    = args.BotType;
     Faction = args.BotFaction;
     Info    = args.Info;
 }
Example #12
0
 public CindyBot(BotArgs args) : base(args)
 {
 }
Example #13
0
 public ZombieFatBot(BotArgs args) : base(args)
 {
 }
Example #14
0
 public BabybearBot(BotArgs args) : base(args)
 {
 }
Example #15
0
 public PoliceChiefBot(BotArgs args) : base(args)
 {
 }
Example #16
0
 public CyborgBot(BotArgs args) : base(args)
 {
 }
 public ZombieFlamerBot(BotArgs args) : base(args)
 {
 }
Example #18
0
 public SheriffBot(BotArgs args) : base(args)
 {
 }
Example #19
0
 public HunterBot(BotArgs args) : base(args)
 {
 }
Example #20
0
 public SurvivorBot(BotArgs args) : base(args)
 {
 }
Example #21
0
 public BalistaBot(BotArgs args) : base(args)
 {
 }
Example #22
0
 public IncineratorBot(BotArgs args) : base(args)
 {
 }
Example #23
0
 public StripperBot(BotArgs args) : base(args)
 {
     BouncerCheckTime = RandomHelper.Between(800, 1200);
 }
Example #24
0
 public RobotBot(BotArgs args) : base(args)
 {
 }
Example #25
0
 public BalloonaticBot(BotArgs args) : base(args)
 {
 }