mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-22 12:29:46 +01:00
Adding chainswords and more blades (#534)
Chainswords can be turned on and off, with sprite and damage changes. Also, adding more swords, with some flavor and stats differences. Swords cannot go inside bags anymore.
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
icon_state = "claymore"
|
||||
item_state = "claymore"
|
||||
slot_flags = SLOT_BELT|SLOT_BACK
|
||||
w_class = 4
|
||||
force_divisor = 0.7 // 42 when wielded with hardnes 60 (steel)
|
||||
thrown_force_divisor = 0.5 // 10 when thrown with weight 20 (steel)
|
||||
sharp = 1
|
||||
@@ -28,3 +29,35 @@
|
||||
/obj/item/weapon/material/sword/katana/suicide_act(mob/user)
|
||||
viewers(user) << "<span class='danger'>[user] is slitting \his stomach open with the [src.name]! It looks like \he's trying to commit seppuku.</span>"
|
||||
return(BRUTELOSS)
|
||||
|
||||
/obj/item/weapon/material/sword/rapier
|
||||
name = "rapier"
|
||||
desc = "A slender, fancy and sharply pointed sword."
|
||||
icon_state = "rapier"
|
||||
item_state = "claymore"
|
||||
slot_flags = SLOT_BELT
|
||||
attack_verb = list("attacked", "stabbed", "prodded", "poked", "lunged")
|
||||
|
||||
/obj/item/weapon/material/sword/longsword
|
||||
name = "longsword"
|
||||
desc = "A double-edged large blade."
|
||||
icon_state = "longsword"
|
||||
item_state = "claymore"
|
||||
slot_flags = SLOT_BELT | SLOT_BACK
|
||||
|
||||
/obj/item/weapon/material/sword/trench
|
||||
name = "trench knife"
|
||||
desc = "A military knife used to slash and stab enemies in close quarters."
|
||||
force_divisor = 0.4
|
||||
icon_state = "trench"
|
||||
item_state = "knife"
|
||||
w_class = 3
|
||||
flags = NOSHIELD
|
||||
slot_flags = SLOT_BELT
|
||||
|
||||
/obj/item/weapon/material/sword/sabre
|
||||
name = "sabre"
|
||||
desc = "A sharp curved backsword."
|
||||
icon_state = "sabre"
|
||||
item_state = "katana"
|
||||
slot_flags = SLOT_BELT
|
||||
|
||||
@@ -14,3 +14,40 @@
|
||||
suicide_act(mob/user)
|
||||
viewers(user) << "\red <b>[user] is strangling \himself with the [src.name]! It looks like \he's trying to commit suicide.</b>"
|
||||
return (OXYLOSS)
|
||||
|
||||
/obj/item/weapon/melee/chainsword
|
||||
name = "chainsword"
|
||||
desc = "A deadly chainsaw in the shape of a sword."
|
||||
icon = 'icons/obj/weapons.dmi'
|
||||
icon_state = "chainswordoff"
|
||||
flags = CONDUCT
|
||||
slot_flags = SLOT_BELT
|
||||
force = 15
|
||||
throwforce = 7
|
||||
w_class = 4
|
||||
sharp = 1
|
||||
edge = 1
|
||||
origin_tech = "combat=5"
|
||||
attack_verb = list("chopped", "sliced", "shredded", "slashed", "cut", "ripped")
|
||||
hitsound = 'sound/weapons/bladeslice.ogg'
|
||||
var/active = 0
|
||||
|
||||
/obj/item/weapon/melee/chainsword/attack_self(mob/user)
|
||||
active= !active
|
||||
if(active)
|
||||
playsound(user, 'sound/weapons/circsawhit.ogg', 50, 1)
|
||||
user << "\blue \The [src] rumbles to life."
|
||||
force = 35
|
||||
hitsound = 'sound/weapons/circsawhit.ogg'
|
||||
icon_state = "chainswordon"
|
||||
slot_flags = null
|
||||
else
|
||||
user << "\blue \The [src] slowly powers down."
|
||||
force = initial(force)
|
||||
hitsound = initial(hitsound)
|
||||
icon_state = initial(icon_state)
|
||||
slot_flags = initial(slot_flags)
|
||||
|
||||
/obj/item/weapon/melee/chainsword/suicide_act(mob/user)
|
||||
viewers(user) << "\red <b>[user] is slicing \himself apart with the [src.name]! It looks like \he's trying to commit suicide.</b>"
|
||||
return (BRUTELOSS|OXYLOSS)
|
||||
|
||||
Reference in New Issue
Block a user