Merge pull request #2515 from Spacemanspark/master

Adds in toy chainsaws.
This commit is contained in:
Fox McCloud
2015-11-18 14:04:17 -05:00
2 changed files with 30 additions and 2 deletions
+29 -1
View File
@@ -18,6 +18,7 @@
* Foam armblade
* Mini Gibber
* Toy xeno
* Toy chainsaws
*/
@@ -1413,4 +1414,31 @@ obj/item/toy/cards/deck/syndicate/black
/obj/item/toy/russian_revolver/proc/spin_cylinder()
bullet_position = rand(1,6)
bullet_position = rand(1,6)
/*
* Rubber Chainsaw
*/
/obj/item/weapon/twohanded/toy/chainsaw
name = "Toy Chainsaw"
desc = "A toy chainsaw with a rubber edge. Ages 8 and up"
icon_state = "chainsaw0"
force = 0
throwforce = 0
throw_speed = 4
throw_range = 20
wieldsound = 'sound/weapons/chainsawstart.ogg'
attack_verb = list("sawed", "cut", "hacked", "carved", "cleaved", "butchered", "felled", "timbered")
/obj/item/weapon/twohanded/toy/chainsaw/update_icon()
if(wielded)
icon_state = "chainsaw[wielded]"
else
icon_state = "chainsaw0"
/obj/item/weapon/twohanded/toy/chainsaw/attack(mob/target as mob, mob/living/user as mob)
if(wielded)
playsound(loc, 'sound/weapons/chainsaw.ogg', 100, 1, -1)
else
playsound(loc, "swing_hit", 50, 1, -1)
..()