Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Добавление звука телефона при его активации #13569

Closed
wants to merge 10 commits into from
6 changes: 6 additions & 0 deletions code/defines/obj/weapon.dm
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,16 @@
throwforce = 2.0
throw_speed = 1
throw_range = 4
var/cooldown = 0
w_class = SIZE_TINY
attack_verb = list("called", "rang")
hitsound = list('sound/weapons/ring.ogg')

/obj/item/weapon/phone/attack_self(mob/user)
if(cooldown <= world.time)
cooldown = world.time + 10
Riverz1 marked this conversation as resolved.
Show resolved Hide resolved
to_chat(user, "<span class='notice'>Сalled.</span>")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
to_chat(user, "<span class='notice'>Сalled.</span>")

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А это чем тебе не понравилось?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

по-английски это предложение не имеет смысла

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Добавил вместо каллед Ring.

playsound(user, 'sound/weapons/ring.ogg', VOL_EFFECTS_MASTER, 20)
/obj/item/weapon/rsp
name = "Rapid-Seed-Producer (RSP)"
desc = "A device used to rapidly deploy seeds."
Expand Down
Loading