Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /obj/item/clothing/head/oddjob
- name = "bladed 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)
- boutput(user, "<span style=\"color:blue\">Blades extend from the brim.</span>")
- hit_type = DAMAGE_CUT
- hitsound = 'sound/weapons/slashcut.ogg'
- src.force = 30
- src.icon_state = "oddjob1"
- src.item_state = "oddjob1"
- else
- boutput(user, "<span style=\"color:blue\">The 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)
- ..(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(hit_atom == usr) // THIS WON'T WORK AAAAAAAAAAAAA
- var/mob/living/carbon/human/user = usr
- src.attack_hand(usr)
- user.visible_message("<span style=\"color:blue\">[user] cleanly catches the hat.</span>")
- src.add_fingerprint(user) */
- return
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement