Repository navigation
Added FF2R_StopMusic(); and FF2R_PlayMusic(); natives - #368
Merged
Merged
Conversation
Added FF2R_StopMusic(); and FF2R_PlayMusic(); natives StopMusic stops any music currently playing for all clients but does not play any other music after its called. PlayMusic restores the music loop that starts when the round starts and makes it so that it plays a random music when called and after that music ends plays another just like the normal loop in ff2r.
Contributor
|
Did you know ff2r supports old natives (for backwards compatiability)? You can use these native by declaring these on start. If you wanna see more information, see core/natives_old.sp |
Contributor
Author
|
oh. i didnt know about that lol |
Batfoxkid
requested changes
May 25, 2026
Batfoxkid
left a comment
Owner
There was a problem hiding this comment.
These could provide more functionality like being able to choose a specific player to start/stop music upon. Similar to older FF2 natives FF2_StartMusic/FF2_StopMusic.
Added new params for the new natives
Contributor
Author
|
i feel like the new changes i made are probably very very shitty but i might be wrong |
Batfoxkid
approved these changes
May 27, 2026
Contributor
Author
|
yippe :D |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added FF2R_StopMusic(); and FF2R_PlayMusic(); natives StopMusic stops any music currently playing for all clients but does not play any other music after its called. PlayMusic restores the music loop that starts when the round starts and makes it so that it plays a random music when called and after that music ends plays another just like the normal loop in ff2r.
Added for boss's that might have their ability stop a music play something else for the ability duration and then restart the music.
Also tested these natives and they work fine.
First time trying to contribute to this plugin i might have done something wrong at somewhere please correct me if i have done so.