Example #1
0
    // Example commands

    void Echo(string[] args)
    {
        if (string.Join(" ", args) == "the magic word")
        {
            ETGMod.SayTheMagicWord();
            return;
        }

        if (string.Join(" ", args) == "Keep singing, woah, I keep singing")
        {
            ETGMod.KeepSinging();
            Log("Keep singing, woah, I keep singing\nPraising to the heavens with my voice ringing\nKeep singing, woah, I keep singing\nClap to the beat till my hands are stinging\nAnd I'd be saved some sunny day\nFrom throwing my life, throwing my life away");
            ETGModLoaderMenu.Instance.KeepSinging();
            return;
        }

        StringBuilder combined = new StringBuilder();

        for (int i = 0; i < args.Length; i++)
        {
            combined.Append(args[i]);
            if (i < args.Length - 1)
            {
                combined.Append(' ');
            }
        }
        string str = combined.ToString();

        Debug.Log(str);
        Log(str);
    }
Example #2
0
 protected override void DoEffect(PlayerController user)
 {
     AkSoundEngine.PostEvent("Play_WPN_Gun_Musical_01", gameObject);
     Exploder.DoRadialKnockback(user.CenterPosition, 100f, 15f);
     this.Collide1(15f);
     ETGMod.SayTheMagicWord();
     ETGMod.KeepSinging();
 }