-
Notifications
You must be signed in to change notification settings - Fork 97
Add soundParam attribute for the Tileset XMLs + force a NoInlining on Player.DustParticleFromSurfaceIndex #886
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
Conversation
…only soundParam and the forced NoInlining on the Dust Particles method
Wartori54
left a comment
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.
LGTM
(I'll approve once that commented out code is handled)
|
The pull request was approved and entered the 3-day last-call window. |
|
The pull request was approved and entered the 3-day last-call window. |
|
The last-call window for this pull request ended. It can now be merged if no blockers were brought up. |
These changes are copied over from #867 to be merged in advance while the custom Particles implementation is being sorted out.
The additions include the following:
soundParamattribute forTileset:Makes this surface index play a different sound, by setting the
"surface_index"parameter to the value. For example, setting a value of"40"makes it play the Glitch sound. The purpose of this is to make new surface indices play already existing sounds without having to set up a different event for them. This is also useful in cases where a different event is used with thesoundPathattribute.Note: Defining a
soundattribute is required to use this, and it's recommended to set the value for thatsoundattribute greater than the range of already defined vanilla sounds (50is a good number to start from)NoInliningonPlayer.DustParticleFromSurfaceIndex:Makes
Player.DustParticleFromSurfaceIndexnot inline, meaning it can be hooked by code mods without any problems. For the time being, this can be used by coders to implement their own dust particles