mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
tanks and sound varying yes (#22483)
This commit is contained in:
@@ -66,6 +66,8 @@ GLOBAL_VAR_INIT(rpg_loot_items, FALSE)
|
||||
var/pickup_sound
|
||||
///Sound uses when dropping the item, or when its thrown.
|
||||
var/drop_sound
|
||||
///Do the drop and pickup sounds vary?
|
||||
var/sound_vary = FALSE
|
||||
|
||||
var/w_class = WEIGHT_CLASS_NORMAL
|
||||
var/slot_flags = 0 //This is used to determine on which slots an item can fit.
|
||||
@@ -528,7 +530,7 @@ GLOBAL_VAR_INIT(rpg_loot_items, FALSE)
|
||||
item_flags &= ~IN_INVENTORY
|
||||
SEND_SIGNAL(src, COMSIG_ITEM_DROPPED,user)
|
||||
if(!silent)
|
||||
playsound(src, drop_sound, DROP_SOUND_VOLUME, ignore_walls = FALSE)
|
||||
playsound(src, drop_sound, DROP_SOUND_VOLUME, vary = sound_vary, ignore_walls = FALSE)
|
||||
|
||||
|
||||
// called just as an item is picked up (loc is not yet changed)
|
||||
|
||||
@@ -6,6 +6,9 @@
|
||||
flags_1 = CONDUCT_1
|
||||
slot_flags = ITEM_SLOT_BACK
|
||||
hitsound = 'sound/weapons/smash.ogg'
|
||||
pickup_sound = 'sound/items/gas_tank_pick_up.ogg'
|
||||
drop_sound = 'sound/items/gas_tank_drop.ogg'
|
||||
sound_vary = TRUE
|
||||
pressure_resistance = ONE_ATMOSPHERE * 5
|
||||
force = 5
|
||||
throwforce = 10
|
||||
|
||||
6
sound/items/attributions.txt
Normal file
6
sound/items/attributions.txt
Normal file
@@ -0,0 +1,6 @@
|
||||
|
||||
{
|
||||
gas_tank_drop.ogg
|
||||
gas_tank_pick_up.ogg
|
||||
} - https://freesound.org/people/Globofonia/sounds/698346/ , License CC0
|
||||
edited by grungussuss
|
||||
BIN
sound/items/gas_tank_drop.ogg
Normal file
BIN
sound/items/gas_tank_drop.ogg
Normal file
Binary file not shown.
BIN
sound/items/gas_tank_pick_up.ogg
Normal file
BIN
sound/items/gas_tank_pick_up.ogg
Normal file
Binary file not shown.
Reference in New Issue
Block a user