-
Notifications
You must be signed in to change notification settings - Fork 25
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
Update to RSC rifle and RSC rifle crate #209
Conversation
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.
@Unisol I've debugged the audio system in RobustToolbox/Robust.Client/Audio/AudioSystem.cs
by placing a breakpoint on the line 451 that is in charge of playing an entity if all conditions are correct.
return PlayEntity(sound, Filter.Local(), source, false, audioParams);
It, as expected, played 3 sounds at the same time: garand-ping-short.wav
, garand-ping-rattle.wav
, and a sniper.ogg
shot sound.
Unless the issue is with misprediction, it's probably a sound overlay issue.
You can attempt adding a quiet time to ping-rattle that is slightly more than ping-short to see if it helps and see if I diagnosed it right.
Feel free to place a breakpoint yourself to monitor what plays and when.
I don't see it as a blocker, so approved.
This is how it's been since the very beginning, I had split the ping file into ping and rattle and kept the quiet section in the front of the rattle with the same duration as ping. When I added extra silence at the end of the ping file, double ping became more pronounced, suggesting that it in fact plays twice. @FluffMe btw, is that issue replicated on your setup at all? |
Yeah, Funnily enough i can hear it better if I don't debug it. sound_debug-2024-11-25_03.35.44.mp4Sounds are replaced with 2 different debug tones. Rattle one with silence. While playing is called only once, i can still hear artifacts/repetition. |
Maybe it's just about playing too much stuff at the same time. No idea! Let me know if you wanna dig into it more, or merge. |
It sounds like an upstream bug, if anything. The only other entity that uses the autoeject feature is the C-20r, and it has very quiet mag eject sound accompanied by a very loud beeping for mag empty sound. It's reasonable to assume it's gone unnoticed so far. In any case, I think it's out of scope for this PR to fix. |
About the PR
Changed texture on bolt-action rifle crate to old wooden texture provided by thesaladmancer. Changed RSC rifle to be stripper-clip fed as opposed to internal magazine fed.
Why / Balance
To further distance RSC from Mosin, RSC now uses stripper clips as magazines and autoejects them when empty (audio for inserting and ejecting clips courtesy Nonagon).
Media
See thread for video presentation of rifle mechanics.
Requirements
Breaking changes
Changelog
🆑