Beispiel #1
0
        // Function from file: mulebot.dm
        public void RunOver(Mob_Living H = null)
        {
            int damage = 0;
            Obj_Effect_Decal_Cleanable_Blood B = null;

            GlobalFuncs.add_logs(this, H, "run over", null, "(DAMTYPE: " + String13.ToUpper("brute") + ")");
            H.visible_message("<span class='danger'>" + this + " drives over " + H + "!</span>", "<span class='userdanger'>" + this + " drives over you!<span>");
            GlobalFuncs.playsound(this.loc, "sound/effects/splat.ogg", 50, 1);
            damage = Rand13.Int(5, 15);
            H.apply_damage(damage * 2, "brute", "head", this.run_armor_check("head", "melee"));
            H.apply_damage(damage * 2, "brute", "chest", this.run_armor_check("chest", "melee"));
            H.apply_damage(damage * 0.5, "brute", "l_leg", this.run_armor_check("l_leg", "melee"));
            H.apply_damage(damage * 0.5, "brute", "r_leg", this.run_armor_check("r_leg", "melee"));
            H.apply_damage(damage * 0.5, "brute", "l_arm", this.run_armor_check("l_arm", "melee"));
            H.apply_damage(damage * 0.5, "brute", "r_arm", this.run_armor_check("r_arm", "melee"));
            B = new Obj_Effect_Decal_Cleanable_Blood(this.loc);
            B.add_blood_list(H);
            this.add_blood_list(H);
            this.bloodiness += 4;
            return;
        }