예제 #1
0
        // Function from file: disposal-unit.dm
        public void expel(Obj_Structure_Disposalholder H = null)
        {
            dynamic     T      = null;
            Tile        target = null;
            Ent_Dynamic AM     = null;

            T = GlobalFuncs.get_turf(this);
            GlobalFuncs.playsound(this, "sound/machines/hiss.ogg", 50, 0, 0);

            if (H != null)
            {
                foreach (dynamic _a in Lang13.Enumerate(H, typeof(Ent_Dynamic)))
                {
                    AM = _a;

                    target = GlobalFuncs.get_offset_target_turf(this.loc, Rand13.Int(5) - Rand13.Int(5), Rand13.Int(5) - Rand13.Int(5));
                    AM.forceMove(T);
                    AM.pipe_eject(0);
                    AM.throw_at_fast(target, 5, 1);
                }
                H.vent_gas(this.loc);
                GlobalFuncs.qdel(H);
            }
            return;
        }
예제 #2
0
        // Function from file: disposal-structures.dm
        public void expel(Obj_Structure_Disposalholder H = null)
        {
            dynamic     T  = null;
            Ent_Dynamic AM = null;

            T = GlobalFuncs.get_turf(this);
            Icon13.Flick("outlet-open", this);

            if (this.start_eject + 30 < Game13.time)
            {
                this.start_eject = Game13.time;
                GlobalFuncs.playsound(this, "sound/machines/warning-buzzer.ogg", 50, 0, 0);
                Task13.Sleep(20);
                GlobalFuncs.playsound(this, "sound/machines/hiss.ogg", 50, 0, 0);
            }
            else
            {
                Task13.Sleep(20);
            }

            if (H != null)
            {
                foreach (dynamic _a in Lang13.Enumerate(H, typeof(Ent_Dynamic)))
                {
                    AM = _a;

                    AM.forceMove(T);
                    AM.pipe_eject(this.dir);
                    AM.throw_at_fast(this.target, this.eject_range, 1);
                }
                H.vent_gas(T);
                GlobalFuncs.qdel(H);
            }
            return;
        }