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

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