Beispiel #1
0
        // Function from file: ert.dm
        public override void post_equip(Mob H = null, int?visualsOnly = null)
        {
            visualsOnly = visualsOnly ?? GlobalVars.FALSE;

            Obj_Item_Weapon_Implant_Loyalty L = null;
            Obj_Item_Device_Radio           R = null;
            Obj_Item_Weapon_Card_Id         W = null;


            if (Lang13.Bool(visualsOnly))
            {
                return;
            }
            L           = new Obj_Item_Weapon_Implant_Loyalty(H);
            L.imp_in    = H;
            L.implanted = 1;
            ((dynamic)H).sec_hud_set_implants();
            R = ((dynamic)H).ears;
            R.set_frequency(GlobalVars.CENTCOM_FREQ);
            R.freqlock        = true;
            W                 = ((dynamic)H).wear_id;
            W.registered_name = H.real_name;
            W.update_label(W.registered_name, W.assignment);
            return;
        }
Beispiel #2
0
        // Function from file: nuclear.dm
        public override void post_equip(Mob H = null, int?visualsOnly = null)
        {
            Obj_Item_Device_Radio R = null;
            Obj_Item_Device_Radio_Uplink_Nuclear U = null;
            Obj_Item_Weapon_Implant_WeaponsAuth  W = null;
            Obj_Item_Weapon_Implant_Explosive    E = null;

            R = ((dynamic)H).ears;
            R.set_frequency(GlobalVars.SYND_FREQ);
            R.freqlock = true;

            if (this.tc != 0)
            {
                U = new Obj_Item_Device_Radio_Uplink_Nuclear(H);
                U.hidden_uplink.owner        = "" + H.key;
                U.hidden_uplink.telecrystals = this.tc;
                H.equip_to_slot_or_del(U, 18);
            }
            W = new Obj_Item_Weapon_Implant_WeaponsAuth(H);
            W.implant(H);
            E = new Obj_Item_Weapon_Implant_Explosive(H);
            E.implant(H);
            H.faction |= "syndicate";
            H.update_icons();
            return;
        }
 // Function from file: brigdoors.dm
 public Obj_Machinery_DoorTimer(dynamic loc = null) : base((object)(loc))
 {
     // Warning: Super call was HERE! If anything above HERE is needed by the super call, it might break!;
     this.Radio           = new Obj_Item_Device_Radio(this);
     this.Radio.listening = false;
     return;
 }
Beispiel #4
0
 // Function from file: MMI.dm
 public Obj_Item_Device_Mmi(dynamic loc = null) : base((object)(loc))
 {
     // Warning: Super call was HERE! If anything above HERE is needed by the super call, it might break!;
     this.radio = new Obj_Item_Device_Radio(this);
     this.radio.broadcasting = false;
     return;
 }
Beispiel #5
0
        // Function from file: laborstacker.dm
        public Obj_Machinery_Mineral_LaborClaimConsole(dynamic loc = null) : base((object)(loc))
        {
            string t = null;
            Obj_Machinery_Door_Airlock d = null;

            // Warning: Super call was HERE! If anything above HERE is needed by the super call, it might break!;
            this.Radio           = new Obj_Item_Device_Radio(this);
            this.Radio.listening = false;
            Task13.Schedule(7, (Task13.Closure)(() => {
                this.machine = Lang13.FindIn(typeof(Obj_Machinery_Mineral_StackingMachine), Map13.GetStep(this, this.machinedir));

                foreach (dynamic _a in Lang13.Enumerate(Map13.FetchInRange(this, 5), typeof(Obj_Machinery_Door_Airlock)))
                {
                    d = _a;

                    t = d.id_tag;

                    if (t == this.door_tag)
                    {
                        this.release_door = d;
                    }
                }

                if (Lang13.Bool(this.machine) && this.release_door != null)
                {
                    this.machine.CONSOLE = this;
                }
                else
                {
                    GlobalFuncs.qdel(this);
                }
                return;
            }));
            return;
        }
Beispiel #6
0
 // Function from file: supermatter.dm
 public Obj_Machinery_Power_SupermatterShard(dynamic loc = null) : base((object)(loc))
 {
     // Warning: Super call was HERE! If anything above HERE is needed by the super call, it might break!;
     this.radio           = new Obj_Item_Device_Radio(this);
     this.radio.listening = false;
     this.investigate_log("has been created.", "supermatter");
     return;
 }
Beispiel #7
0
        // Function from file: capture_the_flag.dm
        public override void post_equip(Mob H = null, int?visualsOnly = null)
        {
            Obj_Item_Device_Radio R = null;

            R = ((dynamic)H).ears;
            R.set_frequency(GlobalVars.CENTCOM_FREQ);
            R.freqlock = true;
            return;
        }
Beispiel #8
0
        // Function from file: ert.dm
        public override void post_equip(Mob H = null, int?visualsOnly = null)
        {
            visualsOnly = visualsOnly ?? GlobalVars.FALSE;

            Obj_Item_Device_Radio R = null;

            base.post_equip(H, visualsOnly);

            if (Lang13.Bool(visualsOnly))
            {
                return;
            }
            R         = ((dynamic)H).ears;
            R.keyslot = new Obj_Item_Device_Encryptionkey_Heads_Hos();
            R.recalculateChannels();
            return;
        }
Beispiel #9
0
        // Function from file: standard.dm
        public override void post_equip(Mob H = null, int?visualsOnly = null)
        {
            visualsOnly = visualsOnly ?? GlobalVars.FALSE;

            Obj_Item_Weapon_Card_Id W = null;
            Obj_Item_Device_Radio   R = null;


            if (Lang13.Bool(visualsOnly))
            {
                return;
            }
            W                 = ((dynamic)H).wear_id;
            W.icon_state      = "centcom";
            W.access          = GlobalFuncs.get_all_accesses();
            W.access         += GlobalFuncs.get_centcom_access("Special Ops Officer");
            W.assignment      = "Special Ops Officer";
            W.registered_name = H.real_name;
            W.update_label();
            R = ((dynamic)H).ears;
            R.set_frequency(GlobalVars.CENTCOM_FREQ);
            R.freqlock = true;
            return;
        }
Beispiel #10
0
 // Function from file: radio.dm
 public Wires_Radio(Obj_Item_Device_Radio holder = null) : base(holder)
 {
     this.wires = new ByTable(new object [] { "signal", "recieve", "transmit" });
     // Warning: Super call was HERE! If anything above HERE is needed by the super call, it might break!;
     return;
 }
Beispiel #11
0
        // Function from file: requests_console.dm
        public Obj_Machinery_RequestsConsole(dynamic loc = null) : base((object)(loc))
        {
            this.name = new Txt().improper().item(this.department).str(" requests console").ToString();
            GlobalVars.allConsoles.Add(this);

            switch (this.departmentType)
            {
            case 1:

                if (!GlobalVars.req_console_assistance.Contains("" + this.department))
                {
                    GlobalVars.req_console_assistance.Add(this.department);
                }
                break;

            case 2:

                if (!GlobalVars.req_console_supplies.Contains("" + this.department))
                {
                    GlobalVars.req_console_supplies.Add(this.department);
                }
                break;

            case 3:

                if (!GlobalVars.req_console_information.Contains("" + this.department))
                {
                    GlobalVars.req_console_information.Add(this.department);
                }
                break;

            case 4:

                if (!GlobalVars.req_console_assistance.Contains("" + this.department))
                {
                    GlobalVars.req_console_assistance.Add(this.department);
                }

                if (!GlobalVars.req_console_supplies.Contains("" + this.department))
                {
                    GlobalVars.req_console_supplies.Add(this.department);
                }
                break;

            case 5:

                if (!GlobalVars.req_console_assistance.Contains("" + this.department))
                {
                    GlobalVars.req_console_assistance.Add(this.department);
                }

                if (!GlobalVars.req_console_information.Contains("" + this.department))
                {
                    GlobalVars.req_console_information.Add(this.department);
                }
                break;

            case 6:

                if (!GlobalVars.req_console_supplies.Contains("" + this.department))
                {
                    GlobalVars.req_console_supplies.Add(this.department);
                }

                if (!GlobalVars.req_console_information.Contains("" + this.department))
                {
                    GlobalVars.req_console_information.Add(this.department);
                }
                break;

            case 7:

                if (!GlobalVars.req_console_assistance.Contains("" + this.department))
                {
                    GlobalVars.req_console_assistance.Add(this.department);
                }

                if (!GlobalVars.req_console_supplies.Contains("" + this.department))
                {
                    GlobalVars.req_console_supplies.Add(this.department);
                }

                if (!GlobalVars.req_console_information.Contains("" + this.department))
                {
                    GlobalVars.req_console_information.Add(this.department);
                }
                break;
            }
            this.Radio           = new Obj_Item_Device_Radio(this);
            this.Radio.listening = false;
            return;
        }