Big Bastard Incidental Sound Port

This commit is contained in:
Cerebulon
2020-03-08 23:25:45 +00:00
parent 51fd39f84a
commit 52e6669bf9
177 changed files with 1504 additions and 28 deletions
@@ -116,6 +116,12 @@ var/list/_client_preferences_by_type
enabled_description = "Audible"
disabled_description = "Silent"
/datum/client_preference/drop_sounds
description = "Dropped Item Sounds"
key = "SOUND_DROPPED"
enabled_description = "Enabled"
disabled_description = "Disabled"
/datum/client_preference/mob_tooltips
description ="Mob tooltips"
key = "MOB_TOOLTIPS"
@@ -239,6 +239,21 @@
feedback_add_details("admin_verb","TAirPumpNoise")
/client/verb/toggle_drop_sounds()
set name = "Toggle Dropped Item Sounds"
set category = "Preferences"
set desc = "Toggles sounds when items are dropped or thrown."
var/pref_path = /datum/client_preference/drop_sounds
toggle_preference(pref_path)
to_chat(src, "You will [ (is_preference_enabled(pref_path)) ? "now" : "no longer"] hear sounds when items are dropped or thrown.")
SScharacter_setup.queue_preferences_save(prefs)
feedback_add_details("admin_verb", "TDropSounds")
/client/verb/toggle_safe_firing()
set name = "Toggle Gun Firing Intent Requirement"
set category = "Preferences"
+2
View File
@@ -1,6 +1,7 @@
/obj/item/clothing
name = "clothing"
siemens_coefficient = 0.9
drop_sound = 'sound/items/drop/clothing.ogg'
var/list/species_restricted = null //Only these species can wear this kit.
var/gunshot_residue //Used by forensics.
@@ -530,6 +531,7 @@
if(usr.put_in_hands(holding))
usr.visible_message("<span class='danger'>\The [usr] pulls a knife out of their boot!</span>")
playsound(get_turf(src), 'sound/weapons/holster/sheathout.ogg', 25)
holding = null
overlays -= image(icon, "[icon_state]_knife")
else
+2
View File
@@ -53,6 +53,7 @@
desc = "A delicate golden chain worn by female skrell to decorate their head tails."
icon_state = "skrell_chain"
item_state_slots = list(slot_r_hand_str = "egg5", slot_l_hand_str = "egg5")
drop_sound = 'sound/items/drop/accessory.ogg'
/obj/item/clothing/ears/skrell/chain/silver
name = "Silver headtail chains"
@@ -83,6 +84,7 @@
desc = "Golden metallic bands worn by male skrell to adorn their head tails."
icon_state = "skrell_band"
item_state_slots = list(slot_r_hand_str = "egg5", slot_l_hand_str = "egg5")
drop_sound = 'sound/items/drop/accessory.ogg'
/obj/item/clothing/ears/skrell/band/silver
name = "Silver headtail bands"
+3
View File
@@ -27,6 +27,7 @@ BLIND // can't see anything
var/activation_sound = 'sound/items/goggles_charge.ogg'
var/obj/screen/overlay = null
var/list/away_planes //Holder for disabled planes
drop_sound = 'sound/items/drop/accessory.ogg'
sprite_sheets = list(
"Teshari" = 'icons/mob/species/seromi/eyes.dmi',
@@ -159,6 +160,7 @@ BLIND // can't see anything
item_state_slots = list(slot_r_hand_str = "blindfold", slot_l_hand_str = "blindfold")
body_parts_covered = 0
var/eye = null
drop_sound = 'sound/items/drop/gloves.ogg'
/obj/item/clothing/glasses/eyepatch/verb/switcheye()
set name = "Switch Eyepatch"
@@ -340,6 +342,7 @@ BLIND // can't see anything
item_state_slots = list(slot_r_hand_str = "blindfold", slot_l_hand_str = "blindfold")
flash_protection = FLASH_PROTECTION_MAJOR
tint = BLIND
drop_sound = 'sound/items/drop/gloves.ogg'
/obj/item/clothing/glasses/sunglasses/blindfold/tape
name = "length of tape"
@@ -5,6 +5,7 @@
overgloves = 1
punch_force = 3
w_class = ITEMSIZE_NORMAL
drop_sound = 'sound/items/drop/metalshield.ogg'
/obj/item/clothing/gloves/arm_guard/mob_can_equip(var/mob/living/carbon/human/H, slot)
if(..()) //This will only run if no other problems occured when equiping.
+9
View File
@@ -1,9 +1,17 @@
/obj/item/clothing/gloves
desc = "you aren't supposed to see this."
name = "strange gloves"
icon_state = "black"
item_state = "bgloves"
drop_sound = 'sound/items/drop/gloves.ogg'
/obj/item/clothing/gloves/yellow
desc = "These gloves will protect the wearer from electric shock."
name = "insulated gloves"
icon_state = "yellow"
siemens_coefficient = 0
permeability_coefficient = 0.05
drop_sound = 'sound/items/drop/rubber.ogg'
/obj/item/clothing/gloves/fyellow //Cheap Chinese Crap
desc = "These gloves are cheap copies of proper insulated gloves. No way this can end badly."
@@ -11,6 +19,7 @@
icon_state = "yellow"
siemens_coefficient = 1 //Set to a default of 1, gets overridden in initialize()
permeability_coefficient = 0.05
drop_sound = 'sound/items/drop/rubber.ogg'
/obj/item/clothing/gloves/fyellow/Initialize()
. = ..()
@@ -56,6 +56,7 @@
permeability_coefficient = 0.01
germ_level = 0
fingerprint_chance = 25
drop_sound = 'sound/items/drop/rubber.ogg'
// var/balloonPath = /obj/item/latexballon
//TODO: Make inflating gloves a thing
@@ -81,6 +82,7 @@
item_state_slots = list(slot_r_hand_str = "lightbrown", slot_l_hand_str = "lightbrown")
permeability_coefficient = 0.05
siemens_coefficient = 0.75 //thick work gloves
drop_sound = 'sound/items/drop/leather.ogg'
/obj/item/clothing/gloves/duty
desc = "These brown duty gloves are made from a durable synthetic."
@@ -109,6 +111,7 @@
siemens_coefficient = 0
permeability_coefficient = 0.05
species_restricted = list("Vox")
drop_sound = 'sound/items/drop/metalboots.ogg'
cold_protection = HANDS
min_cold_protection_temperature = GLOVES_MIN_COLD_PROTECTION_TEMPERATURE
@@ -127,6 +130,7 @@
overgloves = 1
force = 5
punch_force = 5
drop_sound = 'sound/items/drop/metalboots.ogg'
/obj/item/clothing/gloves/ranger
var/glovecolor = "white"
@@ -1,6 +1,11 @@
//Hat Station 13
/obj/item/clothing/head/
name = "hat"
desc = "Apply on head."
drop_sound = 'sound/items/drop/hat.ogg'
/obj/item/clothing/head/collectable
name = "collectable hat"
desc = "A rare collectable hat."
@@ -37,6 +42,7 @@
desc = "What looks like an ordinary paper hat, is actually a rare and valuable collector's edition paper hat. Keep away from water, fire and Librarians."
icon_state = "paper"
body_parts_covered = 0
drop_sound = 'sound/items/drop/paper.ogg'
/obj/item/clothing/head/collectable/tophat
name = "collectable top hat"
@@ -36,21 +36,25 @@
desc = "A flower crown weaved with sunflowers."
icon_state = "sunflower_crown"
body_parts_covered = 0
drop_sound = 'sound/items/drop/herb.ogg'
/obj/item/clothing/head/lavender_crown
name = "lavender crown"
desc = "A flower crown weaved with lavender."
icon_state = "lavender_crown"
body_parts_covered = 0
drop_sound = 'sound/items/drop/herb.ogg'
/obj/item/clothing/head/poppy_crown
name = "poppy crown"
desc = "A flower crown weaved with poppies."
icon_state = "poppy_crown"
body_parts_covered = 0
drop_sound = 'sound/items/drop/herb.ogg'
/obj/item/clothing/head/rose_crown
name = "rose crown"
desc = "A flower crown weaved with roses."
icon_state = "poppy_crown"
body_parts_covered = 0
drop_sound = 'sound/items/drop/herb.ogg'
+1
View File
@@ -10,6 +10,7 @@
action_button_name = "Toggle Head-light"
w_class = ITEMSIZE_NORMAL
ear_protection = 1
drop_sound = 'sound/items/drop/helm.ogg'
/obj/item/clothing/head/hardhat/orange
icon_state = "hardhat0_orange"
+1
View File
@@ -14,6 +14,7 @@
siemens_coefficient = 0.7
w_class = ITEMSIZE_NORMAL
ear_protection = 1
drop_sound = 'sound/items/drop/helm.ogg'
/obj/item/clothing/head/helmet/solgov
name = "\improper Solar Confederate Government helmet"
+4 -1
View File
@@ -17,6 +17,7 @@
desc = "A nice hair pin."
slot_flags = SLOT_HEAD | SLOT_EARS
body_parts_covered = 0
drop_sound = 'sound/items/drop/ring.ogg'
/obj/item/clothing/head/pin/pink
icon_state = "pinkpin"
@@ -168,6 +169,7 @@
icon_state = "cardborg_h"
flags_inv = HIDEMASK|HIDEEARS|HIDEEYES|HIDEFACE
body_parts_covered = HEAD|FACE|EYES
drop_sound = 'sound/items/drop/box.ogg'
/obj/item/clothing/head/justice
name = "justice hat"
@@ -420,6 +422,7 @@
desc = "A jeweled headpiece originating in India."
icon_state = "maangtikka"
body_parts_covered = 0
drop_sound = 'sound/items/drop/accessory.ogg'
/obj/item/clothing/head/jingasa
name = "jingasa"
@@ -427,7 +430,7 @@
icon_state = "jingasa"
body_parts_covered = 0
item_state_slots = list(slot_r_hand_str = "taq", slot_l_hand_str = "taq")
/obj/item/clothing/head/cowl
name = "black cowl"
desc = "A gold-lined black cowl. It gives off uncomfortable cult vibes, but fancy."
@@ -28,6 +28,7 @@
var/base_state
flash_protection = FLASH_PROTECTION_MAJOR
tint = TINT_HEAVY
drop_sound = 'sound/items/drop/helm.ogg'
/obj/item/clothing/head/welding/attack_self()
toggle()
@@ -167,6 +168,7 @@
brightness_on = 2
light_overlay = "helmet_light"
w_class = ITEMSIZE_NORMAL
drop_sound = 'sound/items/drop/herb.ogg'
/*
* Kitty ears
+8
View File
@@ -1,3 +1,11 @@
//Generic Ring
/obj/item/clothing/ring
name = "generic ring"
desc = "Torus shaped finger decoration."
icon_state = "material"
drop_sound = 'sound/items/drop/ring.ogg'
/////////////////////////////////////////
//Standard Rings
/obj/item/clothing/gloves/ring/engagement
+2
View File
@@ -5,11 +5,13 @@
force = 3
can_hold_knife = 1
step_volume_mod = 1.2
drop_sound = 'sound/items/drop/boots.ogg'
/obj/item/clothing/shoes/boots/cowboy
name = "cowboy boots"
desc = "Lacking a durasteel horse to ride."
icon_state = "cowboy"
drop_sound = 'sound/items/drop/leather.ogg'
/obj/item/clothing/shoes/boots/cowboy/classic
name = "classic cowboy boots"
+7
View File
@@ -1,3 +1,9 @@
/obj/item/clothing/shoes
name = "shoes"
icon_state = "white"
desc = "A pair of shoes."
drop_sound = 'sound/items/drop/shoes.ogg'
/obj/item/clothing/shoes/black
name = "black shoes"
icon_state = "black"
@@ -38,6 +44,7 @@
name = "leather shoes"
desc = "A sturdy pair of leather shoes."
icon_state = "leather"
drop_sound = 'sound/items/drop/leather.ogg'
/obj/item/clothing/shoes/rainbow
name = "rainbow shoes"
@@ -7,6 +7,7 @@
w_class = ITEMSIZE_NORMAL
step_volume_mod = 1.3
can_hold_knife = TRUE
drop_sound = 'sound/items/drop/boots.ogg'
/obj/item/clothing/shoes/leg_guard/mob_can_equip(var/mob/living/carbon/human/H, slot, disable_warning = 0)
if(..()) //This will only run if no other problems occured when equiping.
+2
View File
@@ -16,6 +16,7 @@
var/obj/item/clothing/shoes/shoes = null //Undershoes
var/mob/living/carbon/human/wearer = null //For shoe procs
step_volume_mod = 1.3
drop_sound = 'sound/items/drop/metalboots.ogg'
/obj/item/clothing/shoes/magboots/proc/set_slowdown()
slowdown = shoes? max(SHOES_SLOWDOWN, shoes.slowdown): SHOES_SLOWDOWN //So you can't put on magboots to make you walk faster.
@@ -36,6 +37,7 @@
set_slowdown()
force = 5
if(icon_base) icon_state = "[icon_base]1"
playsound(get_turf(src), 'sound/effects/magnetclamp.ogg', 20)
to_chat(user, "You enable the mag-pulse traction system.")
user.update_inv_shoes() //so our mob-overlays update
user.update_action_buttons()
@@ -24,6 +24,7 @@
item_flags = NOSLIP
slowdown = SHOES_SLOWDOWN+1
species_restricted = null
drop_sound = 'sound/items/drop/rubber.ogg'
/obj/item/clothing/shoes/dress
name = "dress shoes"
@@ -98,6 +99,7 @@
force = 0
species_restricted = null
w_class = ITEMSIZE_SMALL
drop_sound = 'sound/items/drop/clothing.ogg'
/obj/item/clothing/shoes/slippers_worn
name = "worn bunny slippers"
@@ -155,6 +157,7 @@
force = 0
w_class = ITEMSIZE_SMALL
species_restricted = null
drop_sound = 'sound/items/drop/clothing.ogg'
/obj/item/clothing/shoes/boots/ranger
var/bootcolor = "white"
+1
View File
@@ -25,6 +25,7 @@
can_be_placed_into = null
flags = OPENCONTAINER | NOBLUDGEON
unacidable = 0
drop_sound = 'sound/items/drop/clothing.ogg'
var/on_fire = 0
var/burn_time = 20 //if the rag burns for too long it turns to ashes
+2
View File
@@ -15,6 +15,7 @@
var/access = list()
access = access_crate_cash
var/worth = 0
drop_sound = 'sound/items/drop/paper.ogg'
/obj/item/weapon/spacecash/attackby(obj/item/weapon/W as obj, mob/user as mob)
if(istype(W, /obj/item/weapon/spacecash))
@@ -150,6 +151,7 @@ proc/spawn_money(var/sum, spawnloc, mob/living/carbon/human/human_user as mob)
name = "charge card"
icon_state = "efundcard"
desc = "A card that holds an amount of money."
drop_sound = 'sound/items/drop/card.ogg'
var/owner_name = "" //So the ATM can set it so the EFTPOS can put a valid name on transactions.
attack_self() return //Don't act
attackby() return //like actual
+1
View File
@@ -8,6 +8,7 @@
possible_transfer_amounts = null
volume = 50 //Sets the default container amount for all food items.
var/filling_color = "#FFFFFF" //Used by sandwiches.
drop_sound = 'sound/items/drop/food.ogg'
/obj/item/weapon/reagent_containers/food/Initialize()
. = ..()
+2
View File
@@ -2,6 +2,7 @@
volume = 40 //just over one and a half cups
amount_per_transfer_from_this = 5
flags = 0 //starts closed
drop_sound = 'sound/items/drop/soda.ogg'
//DRINKS
@@ -20,6 +21,7 @@
desc = "Introduced to the vending machines by Skrellian request, this water comes straight from the Martian poles."
icon_state = "waterbottle"
center_of_mass = list("x"=16, "y"=8)
drop_sound = 'sound/items/drop/food.ogg'
/obj/item/weapon/reagent_containers/food/drinks/cans/waterbottle/Initialize()
. = ..()
+11
View File
@@ -5,6 +5,7 @@
name = "drink"
desc = "yummy"
icon = 'icons/obj/drinks.dmi'
drop_sound = 'sound/items/drop/bottle.ogg'
icon_state = null
flags = OPENCONTAINER
amount_per_transfer_from_this = 5
@@ -116,6 +117,7 @@
icon_state = "milk"
item_state = "carton"
center_of_mass = list("x"=16, "y"=9)
drop_sound = 'sound/items/drop/box.ogg'
/obj/item/weapon/reagent_containers/food/drinks/milk/Initialize()
. = ..()
@@ -127,6 +129,8 @@
icon_state = "soymilk"
item_state = "carton"
center_of_mass = list("x"=16, "y"=9)
drop_sound = 'sound/items/drop/box.ogg'
/obj/item/weapon/reagent_containers/food/drinks/soymilk/Initialize()
. = ..()
reagents.add_reagent("soymilk", 50)
@@ -138,6 +142,8 @@
icon_state = "mini-milk"
item_state = "carton"
center_of_mass = list("x"=16, "y"=9)
drop_sound = 'sound/items/drop/box.ogg'
/obj/item/weapon/reagent_containers/food/drinks/smallmilk/Initialize()
. = ..()
reagents.add_reagent("milk", 30)
@@ -149,6 +155,8 @@
icon_state = "mini-milk_choco"
item_state = "carton"
center_of_mass = list("x"=16, "y"=9)
drop_sound = 'sound/items/drop/box.ogg'
/obj/item/weapon/reagent_containers/food/drinks/smallchocmilk/Initialize()
. = ..()
reagents.add_reagent("chocolate_milk", 30)
@@ -158,6 +166,8 @@
desc = "Careful, the beverage you're about to enjoy is extremely hot."
icon_state = "coffee"
center_of_mass = list("x"=15, "y"=10)
drop_sound = 'sound/items/drop/box.ogg'
/obj/item/weapon/reagent_containers/food/drinks/coffee/Initialize()
. = ..()
reagents.add_reagent("coffee", 30)
@@ -209,6 +219,7 @@
possible_transfer_amounts = null
volume = 10
center_of_mass = list("x"=16, "y"=12)
drop_sound = 'sound/items/drop/paper.ogg'
/obj/item/weapon/reagent_containers/food/drinks/sillycup/Initialize()
. = ..()
+3 -1
View File
@@ -16,7 +16,9 @@
/obj/item/weapon/reagent_containers/food/drinks/bottle/Initialize()
. = ..()
if(isGlass) unacidable = 1
if(isGlass)
unacidable = 1
drop_sound = 'sound/items/drop/bottle.ogg'
/obj/item/weapon/reagent_containers/food/drinks/bottle/Destroy()
if(rag)
+1
View File
@@ -340,6 +340,7 @@ datum/unarmed_attack/holopugilism/unarmed_override(var/mob/living/carbon/human/u
name = "basketball"
desc = "Here's your chance, do your dance at the Space Jam."
w_class = ITEMSIZE_LARGE //Stops people from hiding it in their bags/pockets
drop_sound = 'sound/items/drop/basketball.ogg'
/obj/structure/holohoop
name = "basketball hoop"
+2
View File
@@ -7,6 +7,7 @@
desc = "Nutritious! Probably."
flags = NOCONDUCT
slot_flags = SLOT_HOLSTER
drop_sound = 'sound/items/drop/herb.ogg'
var/plantname
var/datum/seed/seed
@@ -359,6 +360,7 @@ var/list/fruit_icon_cache = list()
name = "[S.seed_name] slice"
desc = "A slice of \a [S.seed_name]. Tasty, probably."
drop_sound = 'sound/items/drop/herb.ogg'
var/rind_colour = S.get_trait(TRAIT_PRODUCT_COLOUR)
var/flesh_colour = S.get_trait(TRAIT_FLESH_COLOUR)
+5
View File
@@ -180,6 +180,7 @@ Book Cart End
var/title // The real name of the book.
var/carved = 0 // Has the book been hollowed out for use as a secret storage item?
var/obj/item/store //What's in the book?
drop_sound = 'sound/bureaucracy/bookclose.ogg'
/obj/item/weapon/book/attack_self(var/mob/user as mob)
if(carved)
@@ -194,7 +195,9 @@ Book Cart End
if(src.dat)
user << browse("<TT><I>Penned by [author].</I></TT> <BR>" + "[dat]", "window=book")
user.visible_message("[user] opens a book titled \"[src.title]\" and begins reading intently.")
playsound(loc, 'sound/bureaucracy/bookopen.ogg', 50, 1)
onclose(user, "book")
playsound(loc, 'sound/bureaucracy/bookclose.ogg', 50, 1)
else
to_chat(user, "This book is completely blank!")
@@ -277,6 +280,8 @@ Book Cart End
to_chat(user, "<span class='notice'>You begin to carve out [title].</span>")
if(do_after(user, 30))
to_chat(user, "<span class='notice'>You carve out the pages from [title]! You didn't want to read it anyway.</span>")
playsound(loc, 'sound/bureaucracy/papercrumple.ogg', 50, 1)
new /obj/item/weapon/shreddedp(get_turf(src))
carved = 1
return
else
+11
View File
@@ -17,6 +17,7 @@
var/material/material
var/perunit = SHEET_MATERIAL_AMOUNT
var/apply_colour //temp pending icon rewrite
drop_sound = 'sound/items/drop/axe.ogg'
/obj/item/stack/material/New()
..()
@@ -106,17 +107,20 @@
icon_state = "sheet-sandstone"
default_type = "sandstone"
no_variants = FALSE
drop_sound = 'sound/items/drop/boots.ogg'
/obj/item/stack/material/marble
name = "marble brick"
icon_state = "sheet-marble"
default_type = "marble"
no_variants = FALSE
drop_sound = 'sound/items/drop/boots.ogg'
/obj/item/stack/material/diamond
name = "diamond"
icon_state = "sheet-diamond"
default_type = "diamond"
drop_sound = 'sound/items/drop/glass.ogg'
/obj/item/stack/material/uranium
name = "uranium"
@@ -129,6 +133,7 @@
icon_state = "sheet-phoron"
default_type = "phoron"
no_variants = FALSE
drop_sound = 'sound/items/drop/glass.ogg'
/obj/item/stack/material/plastic
name = "plastic"
@@ -317,6 +322,7 @@
icon_state = "sheet-wood"
default_type = MAT_WOOD
strict_color_stacking = TRUE
drop_sound = 'sound/items/drop/wooden.ogg'
/obj/item/stack/material/wood/sif
name = "alien wooden plank"
@@ -333,6 +339,7 @@
w_class = ITEMSIZE_HUGE
description_info = "Use inhand to craft things, or use a sharp and edged object on this to convert it into two wooden planks."
var/plank_type = /obj/item/stack/material/wood
drop_sound = 'sound/items/drop/wooden.ogg'
/obj/item/stack/material/log/sif
name = "alien log"
@@ -370,6 +377,7 @@
no_variants = FALSE
pass_color = TRUE
strict_color_stacking = TRUE
drop_sound = 'sound/items/drop/clothing.ogg'
/obj/item/stack/material/resin
name = "resin"
@@ -387,6 +395,7 @@
no_variants = FALSE
pass_color = TRUE
strict_color_stacking = TRUE
drop_sound = 'sound/items/drop/box.ogg'
/obj/item/stack/material/snow
name = "snow"
@@ -408,12 +417,14 @@
no_variants = FALSE
pass_color = TRUE
strict_color_stacking = TRUE
drop_sound = 'sound/items/drop/clothing.ogg'
/obj/item/stack/material/glass
name = "glass"
icon_state = "sheet-glass"
default_type = "glass"
no_variants = FALSE
drop_sound = 'sound/items/drop/glass.ogg'
/obj/item/stack/material/glass/reinforced
name = "reinforced glass"
+1
View File
@@ -12,6 +12,7 @@
slot_flags = SLOT_EARS
var/string_attached
var/sides = 2
drop_sound = 'sound/items/drop/ring.ogg'
/obj/item/weapon/coin/New()
randpixel_xy()
+1 -1
View File
@@ -23,7 +23,7 @@
var/digspeed = 40 //moving the delay to an item var so R&D can make improved picks. --NEO
origin_tech = list(TECH_MATERIAL = 1, TECH_ENGINEERING = 1)
attack_verb = list("hit", "pierced", "sliced", "attacked")
var/drill_sound = 'sound/weapons/Genhit.ogg'
var/drill_sound = "pickaxe"
var/drill_verb = "drilling"
sharp = 1
-1
View File
@@ -152,7 +152,6 @@ var/list/slot_equipment_priority = list( \
//Drops the item in our active hand. TODO: rename this to drop_active_hand or something
/mob/proc/drop_item(var/atom/Target)
return
/*
Removes the object from any slots the mob might have, calling the appropriate icon update proc.
Does nothing else.
+19 -2
View File
@@ -33,8 +33,25 @@
//Drops the item in our active hand. TODO: rename this to drop_active_hand or something
/mob/living/drop_item(var/atom/Target)
if(hand) return drop_l_hand(Target)
else return drop_r_hand(Target)
var/obj/item/item_dropped = null
if (hand)
item_dropped = l_hand
. = drop_l_hand(Target)
else
item_dropped = r_hand
. = drop_r_hand(Target)
if (istype(item_dropped) && !QDELETED(item_dropped) && is_preference_enabled(/datum/client_preference/drop_sounds))
addtimer(CALLBACK(src, .proc/make_item_drop_sound, item_dropped), 1)
/mob/proc/make_item_drop_sound(obj/item/I)
if(QDELETED(I))
return
if(I.drop_sound)
playsound(I, I.drop_sound, 25, 0)
//Drops the item in our left hand
/mob/living/drop_l_hand(var/atom/Target)
+1
View File
@@ -4,6 +4,7 @@ var/list/organ_cache = list()
name = "organ"
icon = 'icons/obj/surgery.dmi'
germ_level = 0
drop_sound = 'sound/items/drop/flesh.ogg'
// Strings.
var/organ_tag = "organ" // Unique identifier.
+6 -3
View File
@@ -37,7 +37,9 @@
user.drop_item()
P.loc = src
icon_state = "[initial(icon_state)]-open"
sleep(5)
flick("[initial(icon_state)]-open",src)
playsound(loc, 'sound/bureaucracy/filingcabinet.ogg', 50, 1)
sleep(40)
icon_state = initial(icon_state)
updateUsrDialog()
else if(P.is_wrench())
@@ -98,9 +100,10 @@
if(istype(P) && (P.loc == src) && src.Adjacent(usr))
usr.put_in_hands(P)
updateUsrDialog()
icon_state = "[initial(icon_state)]-open"
flick("[initial(icon_state)]-open",src)
playsound(loc, 'sound/bureaucracy/filingcabinet.ogg', 50, 1)
spawn(0)
sleep(5)
sleep(20)
icon_state = initial(icon_state)
/*
+1
View File
@@ -5,6 +5,7 @@
icon_state = "folder"
w_class = ITEMSIZE_SMALL
pressure_resistance = 2
drop_sound = 'sound/items/drop/paper.ogg'
/obj/item/weapon/folder/blue
desc = "A blue folder."
+6
View File
@@ -19,6 +19,7 @@
slot_flags = SLOT_HEAD
body_parts_covered = HEAD
attack_verb = list("bapped")
drop_sound = 'sound/items/drop/paper.ogg'
var/info //What's actually written on the paper.
var/info_links //A different version of the paper which includes html links at fields and EOF
@@ -177,6 +178,7 @@
//crumple dat paper
info = stars(info,85)
user.visible_message("\The [user] crumples \the [src] into a ball!")
playsound(src, 'sound/bureaucracy/papercrumple.ogg', 50, 1)
icon_state = "scrap"
return
user.examinate(src)
@@ -368,6 +370,7 @@
user.visible_message("<span class='[class]'>[user] holds \the [P] up to \the [src], it looks like [TU.hes] trying to burn it!</span>", \
"<span class='[class]'>You hold \the [P] up to \the [src], burning it slowly.</span>")
playsound(src.loc, 'sound/bureaucracy/paperburn.ogg', 50, 1)
spawn(20)
if(get_dist(src, user) < 2 && user.get_active_hand() == P && P.lit)
@@ -461,6 +464,8 @@
usr << browse("<HTML><HEAD><TITLE>[name]</TITLE></HEAD><BODY>[info_links][stamps]</BODY></HTML>", "window=[name]") // Update the window
playsound(src, pick('sound/bureaucracy/pen1.ogg','sound/bureaucracy/pen2.ogg'), 10)
update_icon()
/obj/item/weapon/paper/get_worn_icon_state(var/slot_name)
@@ -573,6 +578,7 @@
stamped += P.type
overlays += stampoverlay
playsound(src, 'sound/bureaucracy/stamp.ogg', 50, 1)
to_chat(user, "<span class='notice'>You stamp the paper with your rubber stamp.</span>")
else if(istype(P, /obj/item/weapon/flame))
+1
View File
@@ -12,6 +12,7 @@
layer = MOB_LAYER
pressure_resistance = 1
attack_verb = list("bapped")
drop_sound = 'sound/items/drop/paper.ogg'
var/page = 1 // current page
var/list/pages = list() // Ordered list of pages as they are to be displayed. Can be different order than src.contents.
+1
View File
@@ -23,6 +23,7 @@
matter = list(DEFAULT_WALL_MATERIAL = 10)
var/colour = "black" //what colour the ink is!
pressure_resistance = 2
drop_sound = 'sound/items/drop/accessory.ogg'
/obj/item/weapon/pen/attack_self(var/mob/user)
to_chat(user, "<span class='notice'>Click.</span>")
+1
View File
@@ -515,6 +515,7 @@ obj/structure/cable/proc/cableColor(var/colorC)
item_state = "coil"
attack_verb = list("whipped", "lashed", "disciplined", "flogged")
stacktype = /obj/item/stack/cable_coil
drop_sound = 'sound/items/drop/accessory.ogg'
/obj/item/stack/cable_coil/cyborg
name = "cable coil synthesizer"
+1
View File
@@ -8,6 +8,7 @@
throwforce = 1
w_class = ITEMSIZE_TINY
preserve_item = 1
drop_sound = 'sound/items/drop/ring.ogg'
var/leaves_residue = 1
var/caliber = "" //Which kind of guns it can be loaded into
+1
View File
@@ -49,6 +49,7 @@
origin_tech = list(TECH_COMBAT = 1)
attack_verb = list("struck", "hit", "bashed")
zoomdevicename = "scope"
drop_sound = 'sound/items/drop/gun.ogg'
var/automatic = 0
var/burst = 1
@@ -159,6 +159,7 @@
var/label = href_list["dispense"]
if(cartridges[label] && container && container.is_open_container())
var/obj/item/weapon/reagent_containers/chem_disp_cartridge/C = cartridges[label]
playsound(src.loc, 'sound/machines/reagent_dispense.ogg', 25, 1)
C.reagents.trans_to(container, amount)
else if(href_list["ejectBeaker"])
@@ -21,6 +21,7 @@
icon = 'icons/obj/bloodpack.dmi'
icon_state = "empty"
item_state = "bloodpack_empty"
drop_sound = 'sound/items/drop/food.ogg'
volume = 200
var/label_text = ""
@@ -11,6 +11,7 @@
w_class = ITEMSIZE_TINY
slot_flags = SLOT_EARS
volume = 5
drop_sound = 'sound/items/drop/glass.ogg'
/obj/item/weapon/reagent_containers/dropper/examine(var/mob/user)
if(!..(user, 2))
@@ -7,6 +7,7 @@
icon = 'icons/obj/chemical.dmi'
icon_state = null
item_state = "pill"
drop_sound = 'sound/items/drop/food.ogg'
var/base_state = "pill"
@@ -25,6 +25,7 @@
var/visible_name = "a syringe"
var/time = 30
var/drawing = 0
drop_sound = 'sound/items/drop/glass.ogg'
/obj/item/weapon/reagent_containers/syringe/on_reagent_change()
update_icon()
@@ -18,6 +18,7 @@
unwrap()
proc/unwrap()
playsound(loc, 'sound/items/package_unwrap.ogg', 50, 1)
// Destroy will drop our wrapped object on the turf, so let it.
qdel(src)
@@ -48,6 +49,7 @@
user.visible_message("\The [user] titles \the [src] with \a [W], marking down: \"[str]\"",\
"<span class='notice'>You title \the [src]: \"[str]\"</span>",\
"You hear someone scribbling a note.")
playsound(src, pick('sound/bureaucracy/pen1.ogg','sound/bureaucracy/pen2.ogg'), 20)
name = "[name] ([str])"
if(!examtext && !nameset)
nameset = 1
@@ -67,6 +69,7 @@
user.visible_message("\The [user] labels \the [src] with \a [W], scribbling down: \"[examtext]\"",\
"<span class='notice'>You label \the [src]: \"[examtext]\"</span>",\
"You hear someone scribbling a note.")
playsound(src, pick('sound/bureaucracy/pen1.ogg','sound/bureaucracy/pen2.ogg'), 20)
return
update_icon()
@@ -111,6 +114,7 @@
name = "small parcel"
icon = 'icons/obj/storage.dmi'
icon_state = "deliverycrate3"
drop_sound = 'sound/items/drop/box.ogg'
var/obj/item/wrapped = null
var/sortTag = null
var/examtext = null
@@ -155,6 +159,7 @@
user.visible_message("\The [user] titles \the [src] with \a [W], marking down: \"[str]\"",\
"<span class='notice'>You title \the [src]: \"[str]\"</span>",\
"You hear someone scribbling a note.")
playsound(src, pick('sound/bureaucracy/pen1.ogg','sound/bureaucracy/pen2.ogg'), 20)
name = "[name] ([str])"
if(!examtext && !nameset)
nameset = 1
@@ -175,6 +180,7 @@
user.visible_message("\The [user] labels \the [src] with \a [W], scribbling down: \"[examtext]\"",\
"<span class='notice'>You label \the [src]: \"[examtext]\"</span>",\
"You hear someone scribbling a note.")
playsound(src, pick('sound/bureaucracy/pen1.ogg','sound/bureaucracy/pen2.ogg'), 20)
return
update_icon()
@@ -217,6 +223,7 @@
icon_state = "deliveryPaper"
w_class = ITEMSIZE_NORMAL
var/amount = 25.0
drop_sound = 'sound/items/drop/wrapper.ogg'
afterattack(var/obj/target as obj, mob/user as mob, proximity)
@@ -267,6 +274,7 @@
user.visible_message("\The [user] wraps \a [target] with \a [src].",\
"<span class='notice'>You wrap \the [target], leaving [amount] units of paper on \the [src].</span>",\
"You hear someone taping paper around a small object.")
playsound(loc, 'sound/items/package_wrap.ogg', 50, 1)
else if (istype(target, /obj/structure/closet/crate))
var/obj/structure/closet/crate/O = target
if (src.amount > 3 && !O.opened)
@@ -278,6 +286,7 @@
user.visible_message("\The [user] wraps \a [target] with \a [src].",\
"<span class='notice'>You wrap \the [target], leaving [amount] units of paper on \the [src].</span>",\
"You hear someone taping paper around a large object.")
playsound(loc, 'sound/items/package_wrap.ogg', 50, 1)
else if(src.amount < 3)
to_chat(user, "<span class='warning'>You need more paper.</span>")
else if (istype (target, /obj/structure/closet))
@@ -291,6 +300,7 @@
user.visible_message("\The [user] wraps \a [target] with \a [src].",\
"<span class='notice'>You wrap \the [target], leaving [amount] units of paper on \the [src].</span>",\
"You hear someone taping paper around a large object.")
playsound(loc, 'sound/items/package_wrap.ogg', 50, 1)
else if(src.amount < 3)
to_chat(user, "<span class='warning'>You need more paper.</span>")
else