Skip to content

Commit

Permalink
mod lead pipe
Browse files Browse the repository at this point in the history
  • Loading branch information
Artemchik542 committed Jul 11, 2024
1 parent f87b72d commit f2dd70a
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
/obj/item/lead_pipe/Initialize(mapload)
. = ..()
var/sound_file = 'massmeta/sounds/sfx/metalpipefallingsound.ogg'
var/list/sound_list = list()
sound_list[sound_file] = 1
AddComponent(/datum/component/squeak, sound_list, 100, 5, falloff_exponent = 20)
AddComponent(/datum/component/squeak, list('massmeta/features/lead_pipe/sound/metalpipefallingsound.ogg'=1), 100, 5, falloff_exponent = 20)

/obj/item/lead_pipe/suicide_act(mob/living/user)
user.visible_message(span_suicide("[user] is crushed under the weight of a thousand pipes!"))
for(var/i in 1 to 8)
playsound(user, 'massmeta/sounds/sfx/metalpipefallingsound.ogg', 50, FALSE)
playsound(user, 'massmeta/features/lead_pipe/sound/metalpipefallingsound.ogg', (20 + i * 10), FALSE)
user.AddElement(/datum/element/squish, 1.5 SECONDS)
sleep(1.5/8 SECONDS)
user.gib()
Expand Down
1 change: 1 addition & 0 deletions massmeta/features/lead_pipe/includes.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include "code\maintenance_loot.dm"
30 changes: 30 additions & 0 deletions massmeta/features/lead_pipe/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
## Module ID: LEAD_PIPE

### Description:

Добавляет смешной суесайд со свинцовой трубой.


### TG Proc/File Changes:

- N/A


### Modular Overrides:

- N/A


### Defines:

- N/A


### TGUI Files:

- N/A


### Credits:

- N/A
2 changes: 1 addition & 1 deletion massmeta/modular_meta.dm
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include "features\gay_removal\includes.dm"
#include "features\hardsuits\includes.dm"
#include "features\kvass\includes.dm"
#include "features\lead_pipe\includes.dm"
#include "features\oguzok\includes.dm"
#include "features\quirk_augmented\includes.dm"
#include "features\smites\includes.dm"
Expand Down Expand Up @@ -54,7 +55,6 @@
#include "code\obj\items\clothing\belt.dm"
#include "code\modules\announcers.dm"
#include "code\modules\reagents\chemistry\reagents\nitrium.dm"
#include "code\game\objects\items\maintenance_loot.dm"
#include "code\modules\mob\living\simple_animal\hostile\megafauna\colossus.dm"
#include "code\datums\components\crafting\weapon_ammo.dm"
#include "code\modules\ammunition\ballistic\shotgun.dm"
Expand Down

0 comments on commit f2dd70a

Please sign in to comment.