tanks and sound varying yes (#22483)

This commit is contained in:
AMyriad
2024-08-05 05:53:38 +02:00
committed by GitHub
parent 395f03ab71
commit 3d9023832b
5 changed files with 12 additions and 1 deletions

View File

@@ -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)

View File

@@ -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

View 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

Binary file not shown.

Binary file not shown.