示例#1
0
        private async Task Macro_0()
        {
            if (this.VEC_GetVectorNorm(new Vector3((((AGO2000)(Perso_6)).Int_0_X + 30), (((AGO2000)(Perso_6)).Int_1_Y + 54), 0) - new Vector3((Int_0_X + Int_23_Size), (Int_1_Y + Int_23_Size), 0)) < ((Int_23_Size + ((AGO2000)(Perso_6)).Int_23_Size) * 1.5))
            {
                this.Proc_ChangeOneCustomBit(29, true);
                Perso_6.Proc_ChangeOneCustomBit(28, true);
                if (!(Int_21 != 0))
                {
                    //this.GetPerso("StdCamer").SOUND_SendSoundRequest(SoundEvent(122806064));
                    //this.GetPerso("StdCamer").SOUND_SetVolumeAnim(120);
                    if (Perso_4.Cond_IsCustomBitSet(31))
                    {
                        await Macro_13();
                    }
                    await Macro_1();

                    Int_9_YSpeed = -20;
                    Int_16       = 255;
                    smRule.SetState(Rule_5_MIC_en1_paf);
                }
                else
                {
                    Int_7_ScoreValue = 1;
                    await Macro_1();
                    await Macro_14();

                    Int_21 -= 1;
                    //SOUND_SendSoundRequest(SoundEvent(122758312));
                    //SOUND_SetVolumeAnim(120);
                }
            }

            ;
        }
示例#2
0
        private async Task Rule_4_MIC_bul_enn_go()
        {
            // Script 0
            if (Int_17 != 0)
            {
                Vector_14    = this.Func_Normalize(new Vector3(((JFF2000)(Perso_4)).Int_0, ((JFF2000)(Perso_4)).Int_1, 0) - new Vector3(Int_0_X, Int_1_Y, 0));
                Vector_12    = this.VEC_TemporalVectorCombination(Vector_14, 0.1f, this.Func_Normalize(new Vector3(Int_8_XSpeed, Int_9_YSpeed, 0)));
                Int_8_XSpeed = this.Func_Int((Vector_12.x * 15));
                Int_9_YSpeed = this.Func_Int((Vector_12.y * 15));
            }

            // Script 1
            Int_0_X += (Int_8_XSpeed * Int_26);
            Int_1_Y += (Int_9_YSpeed * Int_26);
            if (Boolean_15)
            {
                this.fn_p_stJFFTXTProcedure(Int_5_TextLayer, new Vector3(Int_0_X, Int_1_Y, 30), "/o200:.", 255);
                Boolean_15 = false;
            }
            else
            {
                this.fn_p_stJFFTXTProcedure(Int_5_TextLayer, new Vector3(Int_0_X, Int_1_Y, 30), "/o400:.", 255);
                Boolean_15 = true;
            }

            // Script 2
            await Macro_2();

            if (globalRandomizer % 2 == 0 && (!(Perso_4.Cond_IsCustomBitSet(29))))
            {
                if (this.VEC_GetVectorNorm(new Vector3((((JFF2000)(Perso_4)).Int_0 + ((JFF2000)(Perso_4)).Int_19), (((JFF2000)(Perso_4)).Int_1 + ((JFF2000)(Perso_4)).Int_19), 0) - new Vector3((Int_0_X + 30), (Int_1_Y + 55), 0)) < ((10 + ((JFF2000)(Perso_4)).Int_19) * 0.8))
                {
                    Perso_4.Proc_ChangeOneCustomBit(28, true);
                    await Macro_8();
                }
            }

            // Script 3
            if (globalRandomizer % 8 == 0 && (this.Cond_IsTimeElapsed(Int_10, 2500)))
            {
                await Macro_8();
            }
        }