コード例 #1
0
 private void PostProcessBeam(BeamController beam)
 {
     if (Owner.CurrentGun.PickupObjectId == 10)
     {
         beam.AdjustPlayerBeamTint(gold, 1, 0f);
     }
 }
コード例 #2
0
ファイル: ImpsHorn.cs プロジェクト: UnstableStrafe/CelsItems
 public void PostProcessBeam(BeamController beam)
 {
     if (this.TintBeams)
     {
         beam.AdjustPlayerBeamTint(Library.LightGreen, 5);
     }
 }
コード例 #3
0
 protected override void PostProcessBeam(BeamController beam)
 {
     if (beam && beam.projectile && beam.projectile.ProjectilePlayerOwner())
     {
         if (beam.projectile.ProjectilePlayerOwner().PlayerHasActiveSynergy("It won't actually show up on screen, but there's no hard limit on how long you can make synergy names."))
         {
             beam.AdjustPlayerBeamTint(Color.green, 1);
             beam.projectile.fireEffect = StaticStatusEffects.greenFireEffect;
         }
         if (beam.projectile.ProjectilePlayerOwner().PlayerHasActiveSynergy("Re-Heat"))
         {
             beam.GetComponent <BasicBeamController>().TimeToStatus       = 0.1f;
             beam.GetComponent <BasicBeamController>().statusEffectChance = 1f;
         }
         if (beam.projectile.ProjectilePlayerOwner().PlayerHasActiveSynergy("Don't Trust The Toaster"))
         {
             beam.projectile.baseData.speed *= 5;
             beam.projectile.UpdateSpeed();
             beam.projectile.RuntimeUpdateScale(1.3f);
             beam.projectile.baseData.damage *= 2;
             EmmisiveBeams emission = beam.projectile.gameObject.GetOrAddComponent <EmmisiveBeams>();
         }
     }
     base.PostProcessBeam(beam);
 }
コード例 #4
0
        private void PostProcessBeam(BeamController beam)
        {
            if (electricMode)
            {
                beam.AdjustPlayerBeamTint(Color.blue.WithAlpha(Color.blue.a / 2f), 5, 0f);
            }

            if (poisonMode)
            {
                beam.AdjustPlayerBeamTint(Color.green.WithAlpha(Color.green.a / 2f), 5, 0f);
            }

            if (fireMode)
            {
                beam.AdjustPlayerBeamTint(Color.red.WithAlpha(Color.red.a / 2f), 5, 0f);
            }
        }
コード例 #5
0
        // Token: 0x060002BD RID: 701 RVA: 0x000163CC File Offset: 0x000145CC
        public void PostProcessBeam(BeamController beam)
        {
            bool tintBeams = this.TintBeams;

            if (tintBeams)
            {
                beam.AdjustPlayerBeamTint(this.TintColor.WithAlpha(this.TintColor.a / 2f), this.TintPriority, 0f);
            }
        }
コード例 #6
0
ファイル: Television.cs プロジェクト: Lichton/Fallen-Items
 private void Channels(BeamController obj)
 {
     if (isCartoon == true)
     {
     }
     if (isWrassle == true)
     {
         obj.AdjustPlayerBeamTint(Color.red, 1);
         obj.projectile.baseData.damage *= 2;
     }
     if (isTelemarket == true)
     {
         bighead2 = UnityEngine.Random.Range(1, 9);
         if (bighead2 == 1)
         {
             obj.AdjustPlayerBeamTint(Color.red, 1);
         }
         if (bighead2 == 2)
         {
             obj.AdjustPlayerBeamTint(ExtendedColours.orange, 1);
         }
         if (bighead2 == 3)
         {
             obj.AdjustPlayerBeamTint(Color.yellow, 1);
         }
         if (bighead2 == 4)
         {
             obj.AdjustPlayerBeamTint(Color.blue, 1);
         }
         if (bighead2 == 5)
         {
             obj.AdjustPlayerBeamTint(Color.green, 1);
         }
         if (bighead2 == 6)
         {
             obj.AdjustPlayerBeamTint(ExtendedColours.purple, 1);
         }
         if (bighead2 == 7)
         {
             obj.AdjustPlayerBeamTint(ExtendedColours.pink, 1);
         }
         if (bighead2 == 8)
         {
             obj.AdjustPlayerBeamTint(Color.grey, 1);
         }
         obj.projectile.OnHitEnemy += this.OnHitEnemy;
     }
 }
コード例 #7
0
        // Token: 0x0600017F RID: 383 RVA: 0x0000CA00 File Offset: 0x0000AC00
        private void PostProcessBeam(BeamController sourceBeam)
        {
            try
            {
                sourceBeam.AdjustPlayerBeamTint(Color.HSVToRGB(UnityEngine.Random.value, 1.0f, 1.0f), 1);
                Projectile projectile = sourceBeam.projectile;

                projectile.OnHitEnemy = (Action <Projectile, SpeculativeRigidbody, bool>)Delegate.Combine(projectile.OnHitEnemy, new Action <Projectile, SpeculativeRigidbody, bool>(this.OnHitEnemy));
            }
            catch (Exception ex)
            {
                ETGModConsole.Log(ex.Message, false);
            }
        }
コード例 #8
0
        private void PostProcessBeam(BeamController beam, SpeculativeRigidbody hitRigidBody, float tickrate)
        {
            float procChance = 0.12f;

            beam.AdjustPlayerBeamTint(ExtendedColours.plaguePurple, 1, 0f);
            GameActor gameActor = hitRigidBody.gameActor;

            if (!gameActor)
            {
                return;
            }
            if (UnityEngine.Random.value < BraveMathCollege.SliceProbability(procChance, tickrate))
            {
                hitRigidBody.gameActor.ApplyEffect(StaticStatusEffects.StandardPlagueEffect);
            }
        }
コード例 #9
0
        private void PostProcessBeam(BeamController beam, SpeculativeRigidbody hitRigidBody, float tickrate)
        {
            float procChance = 0.09f;

            beam.AdjustPlayerBeamTint(ExtendedColours.vibrantOrange, 1, 0f);
            GameActor gameActor = hitRigidBody.gameActor;

            if (!gameActor)
            {
                return;
            }
            if (UnityEngine.Random.value < BraveMathCollege.SliceProbability(procChance, tickrate))
            {
                hitRigidBody.gameActor.ApplyEffect(StatusEffectHelper.GenerateSizeEffect(10, new Vector2(0.4f, 0.4f)));
            }
        }
コード例 #10
0
ファイル: LaconMK6.cs プロジェクト: Some-Bunny/BunnyMod-1.15
        /*
         * protected override void Update()
         * {
         *  PlayerController player = this.gun.CurrentOwner as PlayerController;
         *  if (gun.CurrentOwner)
         *  {
         *      bool check = player.HasPickupID(Game.Items["bny:lacon_upgrade_scrap"].PickupObjectId);
         *      if (check)
         *      {
         *          AkSoundEngine.PostEvent("Play_OBJ_spears_clank_01", base.gameObject);
         *          Upgrades++;
         *          player.RemovePassiveItem(Lacon1Scrap.Scrap1ID);
         *      }
         *  }
         *
         * }
         * private static int Upgrades = 0;
         */

        private void PostProcessBeam(BeamController beam)
        {
            if (beam is BasicBeamController)
            {
                BasicBeamController basicBeamController = (beam as BasicBeamController);
                if (basicBeamController.Gun == this.gun)
                {
                    beam.AdjustPlayerBeamTint(Color.magenta, 1); //works
                    basicBeamController.ProjectileScale = 1.5f;
                    basicBeamController.DamageModifier  = 80f;
                }

                /*
                 * basicBeamController.penetration += 10; //it works
                 *
                 * basicBeamController.ProjectileScale = 1.5f;//it works !!!
                 * basicBeamController.PenetratesCover = true; //works to pass through tables
                 * basicBeamController.projectile.PenetratesInternalWalls = true;//don't work
                 */
            }
        }
コード例 #11
0
 private void onFiredBeam(BeamController sourceBeam)
 {
     sourceBeam.AdjustPlayerBeamTint(Color.white, 1);
     sourceBeam.gameObject.AddComponent <EnemyBulletReflectorBeam>();
 }