Skip to content

Commit

Permalink
PSHOOM
Browse files Browse the repository at this point in the history
  • Loading branch information
Iamgoofball committed Jun 9, 2015
1 parent 10c60a5 commit 81fcaa9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion code/modules/research/designs/stock_parts_designs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
id = "bs_rped"
req_tech = list("engineering" = 3, "materials" = 5, "programming" = 3, "bluespace" = 3)
build_type = PROTOLATHE
materials = list("$metal" = 15000, "$glass" = 5000, "$diamond" = 5000) //hardcore
materials = list("$metal" = 15000, "$glass" = 5000, "$silver" = 2500) //hardcore
build_path = /obj/item/weapon/storage/part_replacer/bluespace
category = list("Stock Parts")

Expand Down
9 changes: 8 additions & 1 deletion code/modules/research/stock_parts.dm
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
max_w_class = 3
max_combined_w_class = 100
var/works_from_distance = 0
var/pshoom_or_beepboopblorpzingshadashwoosh = 'sound/items/rped.ogg'
var/alt_sound = null

/obj/item/weapon/storage/part_replacer/afterattack(obj/machinery/T as obj, mob/living/carbon/human/user as mob, flag, params)
if(flag)
Expand All @@ -37,11 +39,16 @@
max_w_class = 3
max_combined_w_class = 800
works_from_distance = 1
pshoom_or_beepboopblorpzingshadashwoosh = 'sound/items/PSHOOM.ogg'
alt_sound = 'sound/items/PSHOOM_2.ogg'


/obj/item/weapon/storage/part_replacer/proc/play_rped_sound()
//Plays the sound for RPED exhanging or installing parts.
playsound(src, 'sound/items/rped.ogg', 40, 1)
if(alt_sound && prob(1))
playsound(src, alt_sound, 40, 1)
else
playsound(src, pshoom_or_beepboopblorpzingshadashwoosh, 40, 1)

//Sorts stock parts inside an RPED by their rating.
//Only use /obj/item/weapon/stock_parts/ with this sort proc!
Expand Down
Binary file added sound/items/PSHOOM.ogg
Binary file not shown.
Binary file added sound/items/PSHOOM_2.ogg
Binary file not shown.

0 comments on commit 81fcaa9

Please sign in to comment.