Example #1
0
        public BorgCube()
        {
            Draw = new ArrayList();
            Draw.Add(Root.Instance.ResourceManager.LoadMesh("borgcube/borgcube.mesh"));
            //Draw.Add(Root.Instance.ResourceManager.LoadMesh("saucer1/saucer1.mesh"));
            //Transparent = true;

            //Draw.Add(Root.Instance.ResourceManager.LoadMesh("defiant/defiant.mesh"));
            //Draw.Add(Root.Instance.ResourceManager.LoadMesh("ncc1701e/ncc1701e.mesh"));
            ShieldModel = Root.Instance.ResourceManager.LoadMesh("borgcube-shield/borgcube-shield.mesh");

            Battery = new Battery(200);
            Generator = new Generator(20, Battery);
            Inventory = new Inventory(100);
            //Inventory.Load(typeof(HomingMissile), 10);
            Inventory.Load(typeof(LaserCannon), 2);
            Inventory.Load(typeof(RailGun), 2);
            Inventory.Load(typeof(IonPulseCannon), 2);
            Inventory.Load(typeof(DisruptorCannon), 2);
            Inventory.Load(typeof(Mine), 10);
            Inventory.Load(typeof(MineLayer), 2);
            //Inventory.Load(typeof(MissileLauncher), 1);
            Slots = new Slot[3]{
                                 new Slot(null,new Vector3(46,0,0),Quaternion.Identity,0),
                                 new Slot(null,new Vector3(-46,0,0),Quaternion.Identity,0),
                                 new Slot(null,new Vector3(64,0,0),Quaternion.Identity,0)
                             };
            Shield = new Shield(Battery, 300, 5);
            Hull = new Hull(300);
            Computer = new Computer(this);
            Radius = 100;
            RenderRadius = 150;
            SyncRefs = false;
            ShieldSound = Root.Instance.ResourceManager.LoadSound("ST_IMP_FEDROM_Photon_Shield_1.wav");

            WeaponNumbers = new int[] { -1, -1, -1 };
            ArmWeapon(GetWeaponNumber(typeof(LaserCannon)), 0);
            ArmWeapon(GetWeaponNumber(typeof(LaserCannon)), 1);

            MainThrust = 200;
            StrafeThrust = 150;
            Resistance = 0.2f;
            RollSpeed = 1.0f;
            MaxRoll = 0.4f;
            MaxRotationSpeed = 1;
        }
Example #2
0
        public Tydirium()
        {
            Draw = new ArrayList();
            Draw.Add(Root.Instance.ResourceManager.LoadMesh("tydirium/tydirium.mesh"));
            //Transparent = true;

            ShieldModel = Root.Instance.ResourceManager.LoadMesh("saucer1-shield/saucer1-shield.mesh");

            Battery = new Battery(100);
            Generator = new Generator(10, Battery);
            Inventory = new Inventory(100);
            //Inventory.Load(typeof(HomingMissile), 10);
            Inventory.Load(typeof(LaserCannon), 2);
            Inventory.Load(typeof(IonPulseCannon), 2);
            Inventory.Load(typeof(DisruptorCannon), 2);
            Inventory.Load(typeof(Mine), 10);
            Inventory.Load(typeof(MineLayer), 2);
            //Inventory.Load(typeof(MissileLauncher), 1);
            Slots = new Slot[]{
                                 new Slot(null,new Vector3(36,0,0),Quaternion.Identity,0),
                                 new Slot(null,new Vector3(-36,0,0),Quaternion.Identity,0)
                             };
            Shield = new Shield(Battery, 100, 5);
            Hull = new Hull(100);
            Computer = new Computer(this);
            Radius = 39;
            RenderRadius = 40;
            SyncRefs = false;
            ShieldSound = Root.Instance.ResourceManager.LoadSound("ST_IMP_FEDROM_Photon_Shield_1.wav");

            WeaponNumbers = new int[] { -1, -1 };
            ArmWeapon(GetWeaponNumber(typeof(LaserCannon)), 0);
            ArmWeapon(GetWeaponNumber(typeof(LaserCannon)), 1);
            MainThrust = 600;
            StrafeThrust = 300;
            Resistance = 0.3f;
            RollSpeed = 1.5f;
            MaxRoll = 1.0f;
            MaxRotationSpeed = 2;
        }
Example #3
0
        public TieFighter()
        {
            Draw = new ArrayList();
            Draw.Add(Root.Instance.ResourceManager.LoadMesh("tie/tie.mesh"));
            //Transparent = true;

            //ShieldModel = Root.Instance.ResourceManager.LoadMesh("saucer1-shield/saucer1-shield.mesh");

            //typeof(Battery).GetCustomAttributes(
            Battery = new Battery(50);
            Generator = new Generator(10, Battery);
            Inventory = new Inventory(40);
            //Inventory.Load(typeof(HomingMissile), 10);
            Inventory.Load(typeof(LaserCannon), 2);
            Inventory.Load(typeof(IonPulseCannon), 2);
            Inventory.Load(typeof(DisruptorCannon), 2);
            Inventory.Load(typeof(Mine), 10);
            Inventory.Load(typeof(MineLayer), 2);
            //Inventory.Load(typeof(MissileLauncher), 1);
            Slots = new Slot[]{
                                 new Slot(null,new Vector3(20,0,0),Quaternion.Identity,0),
                                 new Slot(null,new Vector3(-20,0,0),Quaternion.Identity,0)
                             };
            Shield = new Shield(Battery, 0, 0);
            Hull = new Hull(50);
            Computer = new Computer(this);
            Radius = 39;
            RenderRadius = 40;
            SyncRefs = false;
            //ShieldSound = Root.Instance.ResourceManager.LoadSound("cnv-shield.wav");

            WeaponNumbers = new int[] { -1, -1 };
            ArmWeapon(GetWeaponNumber(typeof(LaserCannon)), 0);
            ArmWeapon(GetWeaponNumber(typeof(LaserCannon)), 1);

            MainThrust = 2400;
            StrafeThrust = 600;
            Resistance = 0.7f;
            RollSpeed = 2.5f;
            MaxRoll = (float)Math.PI/5.0f;
            MaxRotationSpeed = 3;
        }
Example #4
0
        public Sulaco()
        {
            Draw = new ArrayList();
            //Draw.Add(Root.Instance.ResourceManager.LoadMesh("cnv301-low/cnv301-low.mesh"));
            Draw.Add(model=Root.Instance.ResourceManager.LoadMesh("sulaco/sulaco.mesh"));
            //Draw.Add(Root.Instance.ResourceManager.LoadMesh("saucer1/saucer1.mesh"));
            //Transparent = true;
            //model.BBox = new BoundingBox(new Vector3(-50, -100, -350), new Vector3(50, 100, 350));
            //ShieldModel = Root.Instance.ResourceManager.LoadMesh("cnv-shield/cnv-shield.mesh");
            ShieldModel = Root.Instance.ResourceManager.LoadMesh("sulaco-shield/sulaco-shield.mesh");

            Battery = new Battery(200);
            Generator = new Generator(20, Battery);
            Inventory = new Inventory(200);
            //Inventory.Load(typeof(HomingMissile), 10);
            Inventory.Load(typeof(LaserCannon), 2);
            Inventory.Load(typeof(RailGun), 1);
            Inventory.Load(typeof(IonPulseCannon), 2);
            Inventory.Load(typeof(DisruptorCannon), 2);
            Inventory.Load(typeof(PulseLaserCannon), 2);
            Inventory.Load(typeof(Mine), 10);
            Inventory.Load(typeof(MineLayer), 1);
            //Inventory.Load(typeof(MissileLauncher), 1);
            Slots = new Slot[3]{
                                 new Slot(null,new Vector3(46,0,0),Quaternion.Identity,0),
                                 new Slot(null,new Vector3(-46,0,0),Quaternion.Identity,0),
                                 new Slot(null,new Vector3(64,0,0),Quaternion.Identity,0)
                             };
            Shield = new Shield(Battery, 300, 5);
            Hull = new Hull(200);
            Computer = new Computer(this);
            Radius = 150;
            RenderRadius = 700;
            SyncRefs = false;
            ShieldSound = Root.Instance.ResourceManager.LoadSound("ST_IMP_FEDROM_Photon_Shield_1.wav");

            WeaponNumbers = new int[] { -1, -1, -1 };
            ArmWeapon(GetWeaponNumber(typeof(LaserCannon)), 0);
            ArmWeapon(GetWeaponNumber(typeof(LaserCannon)), 1);

            MainThrust = 80;
            StrafeThrust = 30;
            Resistance = 0.1f;
            RollSpeed = 0.5f;
            MaxRoll = 0.5f;
            MaxRotationSpeed = 0.3f;
        }
Example #5
0
        public GravityForceShip()
        {
            Draw = new ArrayList();
            Draw.Add(Root.Instance.ResourceManager.LoadMesh("spaceship-symbol/spaceship-symbol.mesh"));
            //Draw.Add(Root.Instance.ResourceManager.LoadMesh("mk9hawk/mk9hawk.mesh"));
            //Draw.Add(new Marker());
            //Transparent = true;

            ShieldModel = Root.Instance.ResourceManager.LoadMesh("cnv-shield/cnv-shield.mesh");
            //ShieldModel = Root.Instance.ResourceManager.LoadMesh("mk9hawk-shield/mk9hawk-shield.mesh");

            Battery = new Battery(100);
            Generator = new Generator(10, Battery);
            Inventory = new Inventory(100);
            //Inventory.Load(typeof(HomingMissile), 10);
            Inventory.Load(typeof(LaserCannon), 2);
            Inventory.Load(typeof(RailGun), 1);
            Inventory.Load(typeof(IonPulseCannon), 2);
            Inventory.Load(typeof(DisruptorCannon), 2);
            Inventory.Load(typeof(PulseLaserCannon), 2);
            Inventory.Load(typeof(Mine), 10);
            Inventory.Load(typeof(MineLayer), 1);
            Inventory.Load(typeof(HomingMissile), 10);
            Inventory.Load(typeof(HomingMissileLauncher), 1);
            //Inventory.Load(typeof(MissileLauncher), 1);
            Slots = new Slot[3]{
                                 new Slot(null,new Vector3(46,0,0),Quaternion.Identity,0),
                                 new Slot(null,new Vector3(-46,0,0),Quaternion.Identity,0),
                                 new Slot(null,new Vector3(64,0,0),Quaternion.Identity,0)
                             };
            Shield = new Shield(Battery, 100, 5);
            Hull = new Hull(100);
            Computer = new Computer(this);
            Radius = 60;
            RenderRadius = 90;
            SyncRefs = false;
            ShieldSound = Root.Instance.ResourceManager.LoadSound("cnv-shield.wav");

            WeaponNumbers = new int[] { -1, -1, -1 };
            ArmWeapon(GetWeaponNumber(typeof(LaserCannon)), 0);
            ArmWeapon(GetWeaponNumber(typeof(LaserCannon)), 1);

            MainThrust = 600;
            StrafeThrust = 0;
            Resistance = 0.0f;
            RollSpeed = 0;
            MaxRoll = 0;
            MaxRotationSpeed = 3;
            MaxSpeed = 500;
        }
Example #6
0
        public LaserTurret()
        {
            Draw = new ArrayList();
            Draw.Add(Root.Instance.ResourceManager.LoadMesh("turret/turret.mesh"));

            Battery = new Battery(100);
            Generator = new Generator(20, Battery);
            Slots = new Slot[]{
                                 new Slot(new LaserCannon(Battery),new Vector3(30,0,0),Quaternion.Identity,0),
                                 new Slot(new LaserCannon(Battery),new Vector3(-30,0,0),Quaternion.Identity,0),
                             };
            Shield = new Shield(Battery, 100, 5);
            Hull = new Hull(100);
            Computer = new Computer(this);
            Radius = 40;
            RenderRadius = 50;
            SyncRefs = false;
        }