mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-20 19:44:09 +01:00
Merge pull request #2515 from Spacemanspark/master
Adds in toy chainsaws.
This commit is contained in:
@@ -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)
|
||||
..()
|
||||
|
||||
Reference in New Issue
Block a user