Beispiel #1
0
        // Function from file: observer.dm
        public override void ClickOn(Ent_Static A = null, string _params = null)
        {
            ByTable modifiers = null;


            if (this.client.click_intercept != null)
            {
                if (Lang13.Bool(Lang13.Call(Lang13.BindFunc(this.client.click_intercept, "ClickOn"), this, _params, A)))
                {
                    return;
                }
            }
            modifiers = String13.ParseUrlParams(_params);

            if (Lang13.Bool(modifiers["middle"]))
            {
                this.MiddleClickOn(A);
                return;
            }

            if (Lang13.Bool(modifiers["shift"]))
            {
                this.ShiftClickOn(A);
                return;
            }

            if (Lang13.Bool(modifiers["alt"]))
            {
                this.AltClickOn(A);
                return;
            }

            if (Lang13.Bool(modifiers["ctrl"]))
            {
                this.CtrlClickOn(A);
                return;
            }

            if (Game13.time <= this.next_move)
            {
                return;
            }
            A.attack_ghost(this);
            return;
        }