Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Feature] Oddjob's Hat
#1
Adds a bladed boomerang hat. Don't miss!

Code:
/obj/item/clothing/head/oddjob
    name = "odd hat"
    desc = "Looking sharp."
    icon_state = "oddjob"
    item_state = "oddjob"
    hitsound = 'sound/weapons/genhit1.ogg'
    var/active = 0
    throw_return = 1
    throw_speed = 1

    attack_self (mob/user as mob)
        src.active = !( src.active )
        if (src.active)
            user.visible_message( "<span style=\"color:red\">Blades extend from the brim of the hat!</span>")
            hit_type = DAMAGE_CUT
            hitsound = 'sound/weapons/slashcut.ogg'
            src.force = 30
            src.icon_state = "oddjob1"
            src.item_state = "oddjob1"
        else
            user.visible_message( "<span style=\"color:blue\">The hat's blades retract.</span>")
            hit_type = DAMAGE_BLUNT
            hitsound = 'sound/weapons/genhit1.ogg'
            src.force = 1
            src.icon_state = "oddjob"
            src.item_state = "oddjob"
        user.update_inhands()
        src.add_fingerprint(user)
        return

    throw_impact(atom/hit_atom)
        
        if (src.active)
            if(ismob(hit_atom))
                var/mob/M = hit_atom
                if(ishuman(M))
                    playsound(src.loc, "sound/weapons/slashcut.ogg", 60, 1)
                    var/mob/living/carbon/T = M
                    T.stunned = max(2, T.stunned)
                    T.TakeDamage("chest", 30, 0)
                    take_bleeding_damage(T, null, 15, DAMAGE_CUT)
                src.active = !( src.active )
                hit_type = DAMAGE_BLUNT
                hitsound = 'sound/weapons/genhit1.ogg'
                src.force = 1
                src.icon_state = "oddjob"
                src.item_state = "oddjob"
        else if(ishuman(hit_atom))
            var/mob/living/carbon/human/Q = hit_atom
            src.attack_hand(Q)
            Q.visible_message("<span style=\"color:red\">[Q] catches the [src] like a badass.</span>")
            return
        return ..(hit_atom)


DMIs:
https://puu.sh/rUAQ4/dd71e4c540.rar
Reply
#2
This would make a hilarious traitor item. As a Goldeneye 64 bonus, could it also give shots a low percentage chance to just not hit you?
Reply
#3
Also a 1% chance to cut the head clean off
Reply
#4
Wearing it should give you the Dwarf mutation
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)