Skip to content

Commit

Permalink
Меняем звук падающего дерева (CeladonSS13#692)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrCat15352 authored Jun 8, 2024
1 parent e293cd2 commit a00a6b1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion code/game/objects/structures/flora.dm
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@
user.visible_message("<span class='notice'>[user] begins to cut down [src] with [W].</span>","<span class='notice'>You begin to cut down [src] with [W].</span>", "<span class='hear'>You hear the sound of sawing.</span>")
if(do_after(user, 1000/W.force, target = src)) //5 seconds with 20 force, 8 seconds with a hatchet, 20 seconds with a shard.
user.visible_message("<span class='notice'>[user] fells [src] with the [W].</span>","<span class='notice'>You fell [src] with the [W].</span>", "<span class='hear'>You hear the sound of a tree falling.</span>")
playsound(get_turf(src), 'sound/effects/meteorimpact.ogg', 100 , FALSE, FALSE)
// [CELADON-EDIT] - CELADON_QOL
// playsound(get_turf(src), 'sound/effects/meteorimpact.ogg', 100 , FALSE, FALSE) // CELADON-EDIT - ORIGINAL
playsound(get_turf(src), 'mod_celadon/sound/zvuk-padayuschego-dereva.ogg', 100 , FALSE, FALSE)
// [/CELADON-EDIT]
user.log_message("cut down [src] at [AREACOORD(src)]", LOG_ATTACK)
for(var/i=1 to log_amount)
new /obj/item/grown/log/tree(get_turf(src))
Expand Down
4 changes: 3 additions & 1 deletion mod_celadon/qol/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ ID мода: CELADON_QOL

- EDIT `code\modules\projectiles\boxes_magazines\_box_magazine.dm` -> снижена задержка загрузки патронов с коробки в магазин

- EDIT `code/game/objects/structures/flora.dm` -> меняем звук падающего дерева с метеоритного на нормальный

<!--
Если вы редактировали какие-либо процедуры или переменные в кор коде,
они должны быть указаны здесь.
Expand Down Expand Up @@ -123,7 +125,7 @@ ID мода: CELADON_QOL

### Авторы:

RalseiDreemuurr
RalseiDreemuurr, MysticalFaceLesS, MrCat15352
<!--
Здесь находится твой никнейм
Если работал совместно - никнеймы тех, кто помогал.
Expand Down
Binary file added mod_celadon/sound/zvuk-padayuschego-dereva.ogg
Binary file not shown.

0 comments on commit a00a6b1

Please sign in to comment.