コード例 #1
0
        public PlayerGrenadeFireMode(GunBasic Parent)
        {
            //Sound
            FireSound  = "Grenade";
            FireVolume = 0.4f;

            //Ammo
            MaxROF        = 400;
            MaxBurstTime  = 2000;
            MaxReloadTime = 0;
            MaxBurstSize  = 3;
            MaxClipSize   = 1;

            //Creation
            BulletSpeed    = 7f;
            Accuracy       = 0;
            BulletCount    = 1;
            ModifierFactor = 1;
            LifeTime       = 1000;
            MaxHits        = 1;

            //Damage
            Damage                  = 6;
            PushTime                = 1.5f;
            ModifierFactor          = 1;
            PushVelocityMult        = 0.1f;
            BulletExplosionDistance = 200;
            BulletExplosionDamage   = 3f;
            attackType              = AttackType.Red;
        }
コード例 #2
0
        public SplinterTurretFireMode(GunBasic Parent)
        {
            //Sound
            FireSound  = "SplinterTurretFire";
            FireVolume = 0.75f;

            //Ammo
            MaxROF        = 300;
            MaxBurstTime  = 4000;
            MaxReloadTime = 0;
            MaxBurstSize  = 3;
            MaxClipSize   = 1;

            //Creation
            BulletSpeed             = 8;
            LifeTime                = (int)(SplinterTurretCard.EngagementDistance / BulletSpeed * 1000f / 60f);
            Accuracy                = 0;
            BulletCount             = 1;
            Damage                  = 1f;
            PushTime                = 1;
            ModifierFactor          = 1;
            attackType              = AttackType.Red;
            BulletExplosionDistance = 150;
            BulletExplosionDamage   = 0.25f;
        }
コード例 #3
0
        public RailTurretFireMode(GunBasic Parent)
        {
            //Sound
            FireSound  = "RailTurretFire";
            FireVolume = 0.75f;

            //Ammo
            MaxROF        = 400;
            MaxBurstTime  = 0;
            MaxReloadTime = 0;
            MaxBurstSize  = 1;
            MaxClipSize   = 1;
            MaxChargeTime = 0;

            //Creation
            BulletSpeed    = 6;
            Accuracy       = 0;
            BulletCount    = 1;
            ModifierFactor = 1;
            LifeTime       = (int)(RailTurretCard.EngagementDistance / BulletSpeed * 1000f / 60f);
            MaxHits        = 1;

            //Damage
            Damage                  = 8;
            ModifierFactor          = 1;
            PushTime                = 50;
            PushVelocityMult        = 1f;
            BulletExplosionDistance = 200;
            BulletExplosionDamage   = 0.5f;
            attackType              = AttackType.Green;
        }
コード例 #4
0
        public CrystalKnightFireMode(GunBasic Parent)
        {
            //Sound
            FireSound  = "CrystalKnightFire";
            FireVolume = 0.75f;

            //Ammo
            MaxROF        = 2000;
            MaxBurstTime  = 0;
            MaxReloadTime = 0;
            MaxBurstSize  = 1;
            MaxClipSize   = 1;

            //Creation
            BulletSpeed    = 4f;
            Accuracy       = 0;
            BulletCount    = 1;
            ModifierFactor = 1;
            LifeTime       = 4000;
            MaxHits        = 1;

            //Damage
            Damage                  = 1;
            PushTime                = 1.5f;
            ModifierFactor          = 1;
            PushVelocityMult        = 0.1f;
            BulletExplosionDistance = 0;
            BulletExplosionDamage   = 0;
            attackType              = AttackType.Blue;
        }
コード例 #5
0
        public PlayerEngineerFireMode(GunBasic Parent)
        {
            //Sound
            FireSound  = "Engineer";
            FireVolume = 0.6f;

            //Ammo
            MaxROF        = 1400;
            MaxBurstTime  = 0;
            MaxReloadTime = 0;
            MaxBurstSize  = 6;
            MaxClipSize   = 1;

            //Creation
            LifeTime                = 1000;
            BulletSpeed             = 5;
            Accuracy                = 0;
            BulletCount             = 1;
            Damage                  = 4f;
            BulletExplosionDamage   = 1;
            BulletExplosionDistance = 200;
            PushTime                = 1;
            ModifierFactor          = 1;
            attackType              = AttackType.White;
        }
コード例 #6
0
        public HornetFireMode(GunBasic Parent)
        {
            //Sound
            FireSound    = "HornetFire";
            FireVolume   = 0.5f;
            FireDistance = 600;

            //Ammo
            MaxROF        = 3000;
            MaxBurstTime  = 0;
            MaxReloadTime = 0;
            MaxBurstSize  = 1;
            MaxClipSize   = 1;

            //Creation
            BulletSpeed    = 5f;
            Accuracy       = 0;
            BulletCount    = 1;
            ModifierFactor = 1;
            LifeTime       = 1200;
            MaxHits        = 1;

            //Damage
            Damage                  = 2f;
            PushTime                = 1.5f;
            ModifierFactor          = 1;
            PushVelocityMult        = 0.1f;
            BulletExplosionDistance = 0;
            BulletExplosionDamage   = 0;
            attackType              = AttackType.Red;
        }
コード例 #7
0
 public void Add(GunBasic gun)
 {
     if (Guns == null)
     {
         Guns = new List <GunBasic>(1);
     }
     Guns.Add(gun);
     gun.SetParent(this);
 }
コード例 #8
0
        public void SetGun(GunBasic gun)
        {
            if (Guns == null)
            {
                Guns = new List <GunBasic>(1);
                Guns.Add(gun);
            }
            else
            {
                Guns[0] = gun;
            }

            if (gun != null)
            {
                gun.SetParent(this);
            }
        }
コード例 #9
0
        public PlayerSuperShotgunFireMode(GunBasic Parent)
        {
            //Ammo
            MaxROF        = 300;
            MaxBurstTime  = 1000;
            MaxReloadTime = 0;
            MaxBurstSize  = 3;
            MaxClipSize   = 1;

            //Creation
            LifeTime       = 500;
            BulletSpeed    = 15;
            Accuracy       = 0;
            BulletCount    = 5;
            Damage         = 3.5f;
            PushTime       = 1;
            ModifierFactor = 1;
            attackType     = AttackType.Blue;
        }
コード例 #10
0
        public PlayerSuperRailFireMode(GunBasic Parent)
        {
            //Ammo
            MaxROF        = 100;
            MaxBurstTime  = 0;
            MaxReloadTime = 0;
            MaxBurstSize  = 1;
            MaxClipSize   = 1;

            //Creation
            MaxChargeTime  = 2000;
            LifeTime       = 800;
            BulletSpeed    = 15;
            Accuracy       = 0;
            BulletCount    = 6;
            Damage         = 1f;
            PushTime       = 1;
            ModifierFactor = 1;
            attackType     = AttackType.Blue;
        }
コード例 #11
0
        public PlayerSuperLaserFireMode(GunBasic Parent)
        {
            //Ammo
            MaxROF        = 200;
            MaxBurstTime  = 0;
            MaxReloadTime = 0;
            MaxBurstSize  = 6;
            MaxClipSize   = 1;

            //Creation
            LifeTime                = 700;
            BulletSpeed             = 15;
            Accuracy                = 0;
            BulletCount             = 1;
            Damage                  = 1f;
            PushTime                = 1;
            ModifierFactor          = 1;
            BulletExplosionDamage   = 3;
            BulletExplosionDistance = 300;
            attackType              = AttackType.White;
        }
コード例 #12
0
        public SnapTurretFireMode(GunBasic Parent)
        {
            //Ammo
            MaxROF        = 400;
            MaxBurstTime  = 0;
            MaxReloadTime = 0;
            MaxBurstSize  = 1;
            MaxClipSize   = 1;

            //Creation
            BulletSpeed             = 8;
            Accuracy                = 0;
            BulletCount             = 1;
            Damage                  = 1;
            ModifierFactor          = 1;
            LifeTime                = (int)(SnapTurretCard.EngagementDistance / BulletSpeed * 1000f / 60f);
            LifeTime                = -1;
            MaxHits                 = 1;
            BulletExplosionDamage   = 1;
            BulletExplosionDistance = 150;
            attackType              = AttackType.Blue;
        }
コード例 #13
0
        public PlayerKnightFireMode(GunBasic Parent)
        {
            //Sound
            FireSound  = "Knight";
            FireVolume = 0.6f;

            //Ammo
            MaxROF        = 200;
            MaxBurstTime  = 0;
            MaxReloadTime = 0;
            MaxBurstSize  = 6;
            MaxClipSize   = 1;

            //Creation
            LifeTime       = 1600;
            BulletSpeed    = 8;
            Accuracy       = 0;
            BulletCount    = 1;
            Damage         = 1f;
            PushTime       = 1;
            ModifierFactor = 1;
            attackType     = AttackType.White;
        }
コード例 #14
0
        public PlayerSnipeFireMode(GunBasic Parent)
        {
            //Sound
            FireSound  = "Snipe";
            FireVolume = 0.4f;

            //Ammo
            MaxROF        = 400;
            MaxBurstTime  = 1500;
            MaxReloadTime = 0;
            MaxBurstSize  = 2;
            MaxClipSize   = 1;

            //Creation
            LifeTime       = 1200;
            BulletSpeed    = 8;
            Accuracy       = 0;
            BulletCount    = 10;
            Damage         = 1.5f;
            PushTime       = 1;
            ModifierFactor = 1;
            attackType     = AttackType.Blue;
        }
コード例 #15
0
        public PlayerStalkerFireMode(GunBasic Parent)
        {
            //Sound
            FireSound  = "Stalker";
            FireVolume = 0.5f;

            //Ammo
            MaxROF        = 60;
            MaxBurstTime  = 600;
            MaxReloadTime = 0;
            MaxBurstSize  = 4;
            MaxClipSize   = 1;

            //Creation
            LifeTime       = 350;
            BulletSpeed    = 15;
            Accuracy       = 0;
            BulletCount    = 6;
            Damage         = 1.5f;
            PushTime       = 1;
            ModifierFactor = 1;
            attackType     = AttackType.Blue;
        }
コード例 #16
0
        public FlameTurretFireMode(GunBasic Parent)
        {
            //Sound
            FireSound  = "FlameTurretFire";
            FireVolume = 0.1f;

            //Ammo
            MaxROF        = 100;
            MaxBurstTime  = 0;
            MaxReloadTime = 0;
            MaxBurstSize  = 1;
            MaxClipSize   = 1;

            //Creation
            BulletSpeed    = 3;
            Accuracy       = 0;
            BulletCount    = 1;
            Damage         = 1.5f;
            ModifierFactor = 1;
            LifeTime       = (int)(FlameTurretCard.EngagementDistance / BulletSpeed * 1000f / 60f);
            MaxHits        = 1;
            attackType     = AttackType.Red;
        }
コード例 #17
0
        public PlayerSingularityFireMode(GunBasic Parent)
        {
            //Sound
            FireSound  = "Singularity";
            FireVolume = 0.4f;

            //Ammo
            MaxROF        = 200;
            MaxBurstTime  = 0;
            MaxReloadTime = 0;
            MaxBurstSize  = 6;
            MaxClipSize   = 1;

            //Creation
            LifeTime       = 800;
            BulletSpeed    = 10;
            Accuracy       = 0;
            BulletCount    = 3;
            Damage         = 1f;
            PushTime       = 1;
            ModifierFactor = 1;
            attackType     = AttackType.White;
        }
コード例 #18
0
        public PlayerRaidFireMode(GunBasic Parent)
        {
            //Sound
            FireSound  = "Raid";
            FireVolume = 0.3f;

            //Ammo
            MaxROF        = 600;
            MaxBurstTime  = 800;
            MaxReloadTime = 0;
            MaxBurstSize  = 3;
            MaxClipSize   = 1;

            //Creation
            LifeTime       = 500;
            BulletSpeed    = 10;
            Accuracy       = 0;
            BulletCount    = 3;
            Damage         = 1.5f;
            PushTime       = 1;
            ModifierFactor = 1;
            attackType     = AttackType.Green;
        }
コード例 #19
0
        public SpearTurretFireMode(GunBasic Parent)
        {
            //Sound
            FireSound  = "SpearFire";
            FireVolume = 1f;

            //Ammo
            MaxROF        = 100;
            MaxBurstTime  = 0;
            MaxReloadTime = 0;
            MaxBurstSize  = 1;
            MaxClipSize   = 1;
            MaxChargeTime = 2000;

            //Creation
            LifeTime       = 800;
            BulletSpeed    = 15;
            Accuracy       = 0;
            BulletCount    = 1;
            Damage         = 1f;
            PushTime       = 1;
            ModifierFactor = 1;
            attackType     = AttackType.Blue;
        }
コード例 #20
0
 public void SetParent(GunBasic Parent)
 {
     this.Parent = Parent;
 }