public override bool f_action(dynamic target = null)
        {
            Mob_Living_Carbon M = null;
            Mob_Living_Carbon H = null;
            dynamic           T = null;


            if (!this.action_checks(target))
            {
                return(false);
            }
            GlobalFuncs.playsound(this.chassis, "sound/items/AirHorn.ogg", 100, 1);
            this.chassis.occupant_message("<font color='red' size='5'>HONK</font>");

            foreach (dynamic _a in Lang13.Enumerate(Map13.FetchHearersExcludeThis(this.chassis, 6), typeof(Mob_Living_Carbon)))
            {
                M = _a;


                if (M is Mob_Living_Carbon_Human)
                {
                    H = M;

                    if (((dynamic)H).ears is Obj_Item_Clothing_Ears_Earmuffs)
                    {
                        continue;
                    }
                }
                M.WriteMsg("<font color='red' size='7'>HONK</font>");
                M.SetSleeping(0);
                M.stuttering += 20;
                M.adjustEarDamage(0, 30);
                M.Weaken(3);

                if (Rand13.PercentChance(30))
                {
                    M.Stun(10);
                    M.Paralyse(4);
                }
                else
                {
                    M.Jitter(500);
                }
            }
            this.log_message("Honked from " + this.name + ". HONK!");
            T = GlobalFuncs.get_turf(this);
            GlobalFuncs.message_admins(new Txt().item(GlobalFuncs.key_name_admin(this.chassis.occupant, ((dynamic)this.chassis.occupant).client)).str("(<A HREF='?_src_=holder;adminmoreinfo=").Ref(this.chassis.occupant).str("'>?</A>) (<A HREF='?_src_=holder;adminplayerobservefollow=").Ref(this.chassis.occupant).str("'>FLW</A>) used a Mecha Honker in (").item(T.x).str(",").item(T.y).str(",").item(T.z).str(" - <A HREF='?_src_=holder;adminplayerobservecoodjump=1;X=").item(T.x).str(";Y=").item(T.y).str(";Z=").item(T.z).str("'>JMP</a>)").ToString());
            GlobalFuncs.log_game("" + ((dynamic)this.chassis.occupant).ckey + "(" + this.chassis.occupant + ") used a Mecha Honker in (" + T.x + "," + T.y + "," + T.z + ")");
            return(true);
        }
Exemple #2
0
        // Function from file: runes.dm
        public override void invoke(dynamic user = null)
        {
            Mob_Living_Carbon C = null;

            this.visible_message("<span class='warning'>" + this + " emits a blinding red flash!</span>");

            foreach (dynamic _a in Lang13.Enumerate(Map13.FetchViewers(null, this), typeof(Mob_Living_Carbon)))
            {
                C = _a;


                if (!GlobalFuncs.iscultist(C) && !Lang13.Bool(C.null_rod_check()))
                {
                    C.WriteMsg("<span class='cultlarge'>You feel oily shadows cover your senses.</span>");
                    C.adjustEarDamage(0, 50);
                    C.flash_eyes(1, true);
                    C.adjust_blurriness(50);
                    C.adjust_blindness(20);
                    C.silent += 10;
                }
            }
            GlobalFuncs.qdel(this);
            return;
        }