-
Notifications
You must be signed in to change notification settings - Fork 54
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 snow option to Change Weather module #682
Conversation
addons/modules/XEH_postInit.sqf
Outdated
@@ -44,20 +44,61 @@ if (isServer) then { | |||
_unit allowFleeing 0; | |||
}] call CBA_fnc_addEventHandler; | |||
|
|||
[QGVAR(applyWeatherSnow), { |
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.
Should probably renamed to something like "toggle snow"
Works fine in MP so far. |
I have not looked into it yet but would using I am unsure if there is much value in making all |
We gonna need to have a look on what |
- Used 'BIS_fnc_setRain' instead of CBA event - When precipitations parameter of CBA event is default (-1), it doesn't do anything - previously it reset weather. - Updated translations: - Removed translations lacking the word "precipitation" wherever necessary. - Changed "Rain" to "Precipitation" in some places
Looking at the code of the function, it should be MP and JIP compatible. I have only tested it the latest commit (c4f7531) in SP though. |
Maybe my previous comment was confusing. What I meant is that I tested your initial PR and it worked fine on dedicated with a second client and JIP as well. On a different note, we first need to know what |
Just checked out |
No, no, I understood what you meant the first time. My communication abilities are poor, so I assume I didn't express myself well enough: I have tested both options in SP only (by options I mean either CBA Events or
I had looked into
Ultimately, I don't care, as both options work (well, in theory, I still haven't tested the option with |
Nvm, I somehow missed that you put it in the |
I have tested it with 2 clients, one acting as the server, and by the looks of it it seems to work (MP and JIP compatible). On a different note: The particle arguments require some tweaking. For example: Wind doesn't seem to affect snow much, even if you set the |
Co-authored-by: mharis001 <34453221+mharis001@users.noreply.github.com>
When merged this pull request will:
QGVAR(applyWeather)
event is kept backwards compatible.Notes:
These changes might require some edits to the rain strength slider text, in order to be more clear:
At the moment, there is "Rain" to set the rain strength and "Precipitation" to set the type of precipitation, which makes me believe it could lead to some confusion.
Suggestions:
Previously: "Rain" -> Suggested: "Precipitation"
Previously: "Precipitation" -> Suggested: "Precipitation Type"
The
rainParticles
can be changed (color, drop speed, etc., see setRain, but I'm unsure what options should be added to the weather module. I didn't add any, as I felt the module might become too cluttered and maybe even complicated for some to use.If it is wanted, so that curators can change snow particle properties, making an entirely new module just for that might be necessary.
I haven't done much in terms of optimisation (e.g. not comparing the current precipitation state with the new one), but I'm not sure it's worth it.
I have tested it in SP. As it's relatively simple, I doubt there should be any issues in MP, but I haven't tested it, so I can't say for certain if it's MP ready.