mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-24 05:30:05 +01:00
Adds Chainsaws
Happy Halloween! Sprites by WalterJe. These are force 21 two-handed weapons. They are sharp and can be tablecrafted by spending one circular saw, one plasteel sheet, and one cable coil, plus a welding tool for crafting. The sound used is from the freesounds.org and was released into the public domain. It is available at https://www.freesound.org/people/esperri/sounds/118972/. This is a rehash of PR #6320 if you're feeling dejavu.
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
* Fireaxe
|
||||
* Double-Bladed Energy Swords
|
||||
* Spears
|
||||
* CHAINSAWS
|
||||
*/
|
||||
|
||||
/*##################################################################
|
||||
@@ -370,3 +371,38 @@
|
||||
explosive = C42
|
||||
desc = "A makeshift spear with [C42] attached to it. Alt+click on the spear to set your war cry!"
|
||||
update_icon()
|
||||
|
||||
// CHAINSAW
|
||||
/obj/item/weapon/twohanded/required/chainsaw
|
||||
name = "chainsaw"
|
||||
desc = "A versatile power tool. Useful for limbing trees and delimbing humans."
|
||||
icon_state = "chainsaw_off"
|
||||
flags = CONDUCT
|
||||
force = 13
|
||||
w_class = 5
|
||||
throwforce = 13
|
||||
throw_speed = 2
|
||||
throw_range = 4
|
||||
materials = list(MAT_METAL=13000)
|
||||
origin_tech = "materials=2;engineering=2;combat=2"
|
||||
attack_verb = list("sawed", "torn", "cut", "chopped", "diced")
|
||||
hitsound = "swing_hit"
|
||||
sharpness = IS_SHARP
|
||||
action_button_name = "Pull the starting cord"
|
||||
var/on = 0
|
||||
|
||||
/obj/item/weapon/twohanded/required/chainsaw/attack_self(mob/user)
|
||||
on = !on
|
||||
user << "As you pull the starting cord dangling from \the [src], [on ? "it begins to whirr." : "the chain stops moving."]"
|
||||
force = on ? 21 : 13
|
||||
throwforce = on ? 21 : 13
|
||||
icon_state = "chainsaw_[on ? "on" : "off"]"
|
||||
|
||||
if(hitsound == "swing_hit")
|
||||
hitsound = 'sound/weapons/chainsawhit.ogg'
|
||||
else
|
||||
hitsound = "swing_hit"
|
||||
|
||||
if(src == user.get_active_hand()) //update inhands
|
||||
user.update_inv_l_hand()
|
||||
user.update_inv_r_hand()
|
||||
|
||||
@@ -229,4 +229,14 @@
|
||||
/obj/item/stack/packageWrap = 5,)
|
||||
tools = list(/obj/item/weapon/screwdriver)
|
||||
time = 200
|
||||
category = CAT_WEAPON
|
||||
category = CAT_WEAPON
|
||||
|
||||
/datum/table_recipe/chainsaw
|
||||
name = "Chainsaw"
|
||||
result = /obj/item/weapon/twohanded/required/chainsaw
|
||||
reqs = list(/obj/item/weapon/circular_saw = 1,
|
||||
/obj/item/stack/cable_coil = 1,
|
||||
/obj/item/stack/sheet/plasteel = 1)
|
||||
tools = list(/obj/item/weapon/weldingtool)
|
||||
time = 100
|
||||
category = CAT_WEAPON
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
|
||||
/obj/item/weapon/grown/log/attackby(obj/item/weapon/W, mob/user, params)
|
||||
..()
|
||||
if(istype(W, /obj/item/weapon/circular_saw) || istype(W, /obj/item/weapon/hatchet) || (istype(W, /obj/item/weapon/twohanded/fireaxe) && W:wielded) || istype(W, /obj/item/weapon/melee/energy))
|
||||
if(istype(W, /obj/item/weapon/circular_saw) || istype(W, /obj/item/weapon/hatchet) || (istype(W, /obj/item/weapon/twohanded/fireaxe) && W:wielded) || istype(W, /obj/item/weapon/melee/energy) || istype(W, /obj/item/weapon/twohanded/required/chainsaw))
|
||||
user.show_message("<span class='notice'>You make [plank_name] out of \the [src]!</span>", 1)
|
||||
var/obj/item/stack/plank = new plank_type(user.loc, 1 + round(potency / 25))
|
||||
var/old_plank_amount = plank.amount
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
author: Tkdrg
|
||||
|
||||
delete-after: True
|
||||
|
||||
changes:
|
||||
- rscadd: "Added chainsaws. They can be tablecrafted using a circular saw, a plasteel sheet, some cable coil, and a welding tool. Don't forget to turn it on!"
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 99 KiB After Width: | Height: | Size: 100 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 97 KiB After Width: | Height: | Size: 98 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 37 KiB |
Binary file not shown.
Reference in New Issue
Block a user