Skip to content
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

CAVEEXPRESS: wind indicator in the hud #161

Open
mgerhardy opened this issue Mar 16, 2025 · 5 comments
Open

CAVEEXPRESS: wind indicator in the hud #161

mgerhardy opened this issue Mar 16, 2025 · 5 comments
Labels
caveexpress CaveExpress

Comments

@mgerhardy
Copy link
Owner

The map wind value from the map lua script is sent to the client with the MapSettingsMessage protocol message already. The ClientMap::setSetting() method is converting some of them already for easier use. The wind values should also be used here in the hud to show a wind indicator

Currently these wind values are in use

base/caveexpress/maps/desert-01.lua:	map:setSetting("wind", "1.000000")
base/caveexpress/maps/desert-02.lua:	map:setSetting("wind", "1.000000")
base/caveexpress/maps/races-03.lua:	map:setSetting("wind", "1.000000")
base/caveexpress/maps/second-rock-06.lua:	map:setSetting("wind", "-0.2")
base/caveexpress/maps/test-crash-sidescroll.lua:	map:setSetting("wind", "6")
base/caveexpress/maps/wind-01.lua:	map:setSetting("wind", "2.5")
base/caveexpress/maps/wind-02.lua:	map:setSetting("wind", "2.5")
base/caveexpress/maps/wind-03.lua:	map:setSetting("wind", "2.5")
base/caveexpress/maps/wind-04.lua:	map:setSetting("wind", "2")

we need to define a max value where do do the clamping on the server side and then use that value for the 100% on the client side, too

The wind indicator could be something like the one that is used in the worms games e.g. - specify a direction (negative left, positive value right) and the amplitude

@cryham
Copy link
Contributor

cryham commented Mar 16, 2025

I was thinking of adding scene particles, flying in direction of wind.
So on desert: flying sand, on ice just snow, in jungle just rain, on rock hmm maybe some dark ground particles.
Maybe this way we could drop having another bar on Hud? It is getting to be full.

@mgerhardy
Copy link
Owner Author

The tree could drop leaves, too

@mgerhardy
Copy link
Owner Author

4eaf6ed ff implemented a tree particle when a stone was dropped and hit it. it would be nice if we the (currently unused) Leaf particle could spawn from time to time if the map has wind (without physics attached - the leaf is just flying through the map in this case - so all client side)

@cryham
Copy link
Contributor

cryham commented Mar 16, 2025

Okay I will try adding it to Rock and Jungle probably. In addition to current Sand, Dirt, Snow and Rain from weather with wind.

@cryham
Copy link
Contributor

cryham commented Mar 16, 2025

Done #172
so check out wind particles, I think we don't need now an additional wind bar on Hud. Or maybe on devices.

@mgerhardy mgerhardy added the caveexpress CaveExpress label Mar 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
caveexpress CaveExpress
Projects
None yet
Development

No branches or pull requests

2 participants