/* Weapons * Contains: * Banhammer * Sword * Classic Baton * Energy Shield */ /* * Banhammer */ /obj/item/weapon/banhammer/attack(mob/M as mob, mob/user as mob) to_chat(M, " You have been banned FOR NO REISIN by [user]") to_chat(user, " You have BANNED [M]") /* * Classic Baton */ /obj/item/weapon/melee/classic_baton name = "police baton" desc = "A wooden truncheon for beating criminal scum." icon = 'icons/obj/weapons.dmi' icon_state = "baton" item_state = "classic_baton" slot_flags = SLOT_BELT force = 12 //9 hit crit w_class = 3 var/cooldown = 0 var/on = 1 /obj/item/weapon/melee/classic_baton/attack(mob/target as mob, mob/living/user as mob) if(on) add_fingerprint(user) if((CLUMSY in user.mutations) && prob(50)) to_chat(user, "You club yourself over the head.") user.Weaken(3 * force) if(ishuman(user)) var/mob/living/carbon/human/H = user H.apply_damage(2*force, BRUTE, "head") else user.take_organ_damage(2*force) return if(isrobot(target)) ..() return if(!isliving(target)) return if(user.a_intent == I_HARM) if(!..()) return if(!isrobot(target)) return else if(cooldown <= 0) if(ishuman(target)) var/mob/living/carbon/human/H = target if(H.check_shields(0, "[user]'s [name]", src, MELEE_ATTACK)) return 0 playsound(get_turf(src), 'sound/effects/woodhit.ogg', 75, 1, -1) target.Weaken(3) add_logs(user, target, "stunned", object="[src]") src.add_fingerprint(user) target.visible_message("[user] has knocked down [target] with \the [src]!", \ "[user] has knocked down [target] with \the [src]!") if(!iscarbon(user)) target.LAssailant = null else target.LAssailant = user cooldown = 1 spawn(40) cooldown = 0 return else return ..() /obj/item/weapon/melee/classic_baton/ntcane name = "fancy cane" desc = "A cane with special engraving on it. It seems well suited for fending off assailants..." icon_state = "cane_nt" item_state = "cane_nt" needs_permit = 0 /obj/item/weapon/melee/classic_baton/ntcane/is_crutch() return 1 //Telescopic baton /obj/item/weapon/melee/classic_baton/telescopic name = "telescopic baton" desc = "A compact yet robust personal defense weapon. Can be concealed when folded." icon = 'icons/obj/weapons.dmi' icon_state = "telebaton_0" item_state = null slot_flags = SLOT_BELT w_class = 2 needs_permit = 0 force = 0 on = 0 /obj/item/weapon/melee/classic_baton/telescopic/attack_self(mob/user as mob) on = !on if(on) to_chat(user, "You extend the baton.") icon_state = "telebaton_1" item_state = "nullrod" w_class = 4 //doesnt fit in backpack when its on for balance force = 10 //stunbaton damage attack_verb = list("smacked", "struck", "cracked", "beaten") else to_chat(user, "You collapse the baton.") icon_state = "telebaton_0" item_state = null //no sprite for concealment even when in hand slot_flags = SLOT_BELT w_class = 2 force = 0 //not so robust now attack_verb = list("hit", "poked") if(istype(user,/mob/living/carbon/human)) var/mob/living/carbon/human/H = user H.update_inv_l_hand() H.update_inv_r_hand() playsound(src.loc, 'sound/weapons/batonextend.ogg', 50, 1) add_fingerprint(user)