-
Notifications
You must be signed in to change notification settings - Fork 52
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
Add: Shuttle sounds #1058
base: master
Are you sure you want to change the base?
Add: Shuttle sounds #1058
Conversation
Reviewer's Guide by SourceryThis pull request introduces new departure and arrival sounds for shuttles, improving the auditory feedback during shuttle operations. It also allows for customization of these sounds via admin controls and considers the timing of different flight phases to ensure accurate sound playback. Sequence diagram for shuttle sound playback during departure and arrivalsequenceDiagram
participant S as Shuttle
participant P as Player
participant A as Audio System
Note over S: Mode: SHUTTLE_IGNITING
alt 3 seconds before ignition
S->>A: Play hyperspace_warmup sound
A->>P: Play sound based on location
end
Note over S: Mode: SHUTTLE_CALL
alt 2 seconds before arrival
S->>A: Play hyperspace_end sound
A->>P: Play sound in shuttle areas
S->>A: Play arrival sound at destination
A->>P: Play sound at docking point
end
Class diagram for shuttle sound system modificationsclassDiagram
class obj_docking_port_mobile {
+bool sound_played_start
+bool sound_played_end
+sound custom_hyperspace_warmup_sound
+sound custom_hyperspace_end_sound
+get_custom_sound(phase)
+check()
}
note for obj_docking_port_mobile "New sound-related attributes and methods added"
State diagram for shuttle sound systemstateDiagram-v2
[*] --> IDLE
IDLE --> IGNITING: Departure initiated
IGNITING --> CALL: Launch
CALL --> IDLE: Arrival
state IGNITING {
[*] --> NoSound
NoSound --> WarmupSound: 3s before launch
}
state CALL {
[*] --> InFlight
InFlight --> ArrivalSound: 2s before docking
}
state IDLE {
ResetSoundFlags: sound_played_start = false
ResetSoundFlags: sound_played_end = false
}
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
ff58774
to
b208469
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Код стоит переписать. В дискорде обсудим
/obj/docking_port/mobile/proc/get_custom_sound(phase) | ||
return null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
в модуль
This PR has been inactive for long enough to be automatically marked as stale. This means it is at risk of being auto closed in ~ 7 days, please address any outstanding review items and ensure your PR is finished, if these are all true and you are auto-staled anyway, you need to actively ask maintainers if your PR will be merged. Once you have done any of the previous actions then you should request a maintainer remove the stale label on your PR, to reset the stale timer. If you feel no maintainer will respond in that time, you may wish to close this PR youself, while you seek maintainer comment, as you will then be able to reopen the PR yourself |
Что этот PR делает
Добавляет звуки для шаттлов помимо arrival и emergency с Пары.
Подробности в Чейнджлоге и в изображениях.
Также есть некоторые моменты, которые я возможно исправлю позже (в будущем, если будет не все равно/будет и так нормально):
Почему это хорошо для игры
В отличии от имплементации на Паре, здесь я провел несколько улучшений:
Изображения изменений
shuttle_sounds_1.mp4
shuttle_sounds_2.mp4
Тестирование
5000 часов и ГОДЫ тестирований на локалке.
Changelog
🆑
sound: Добавлены звуки отлёта шаттлам, всем кроме шаттла прибытия и отбытия - у них свои звуки.
code_imp: Теперь при стыковке (как для тех кто снаружи, так и для тех кто внутри шаттла) будет проигрываться звук прилета.
code_imp: Теперь при отстыковке (как для тех кто снаружи, так и для тех кто внутри шаттла) будет проигрываться звук отлёта. Также используемый звук меняется от расстояния.
/:cl: