10-24-2016, 05:39 PM 
	
	
	
		Adds a bladed boomerang hat. Don't miss!
DMIs:
https://puu.sh/rUAQ4/dd71e4c540.rar
	
	
	
	
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

Goonhub