Got lightning kinf of working. Right now it's always striking 0,0,0.
Looks like the entity is all client side and all I have to do is tell the client where the lightning hits.
Still not sure how the server tells the client it's a lightning storm and not a rain storm. Is there a way for the server to control sky lighting directly?
Oooooh, I need to multiple the X, Y and Z by 32. Very odd. :/
Whelp, lightning works.
Now to come up with a weather system.
Each world needs an is or is not raining variable. It should probably be a char instead of a bool similar to m_GameMode I think. If the worlds m_Weather is set to rain then everyone gets the packet telling them it's raining when they log in. When the world is first set to rain everyone should get the packet at once. I'm not sure how to send every client a packet, but I'll look and see how the chat packet works.
Looks like the entity is all client side and all I have to do is tell the client where the lightning hits.
Still not sure how the server tells the client it's a lightning storm and not a rain storm. Is there a way for the server to control sky lighting directly?
Oooooh, I need to multiple the X, Y and Z by 32. Very odd. :/
Whelp, lightning works.
Now to come up with a weather system.
Each world needs an is or is not raining variable. It should probably be a char instead of a bool similar to m_GameMode I think. If the worlds m_Weather is set to rain then everyone gets the packet telling them it's raining when they log in. When the world is first set to rain everyone should get the packet at once. I'm not sure how to send every client a packet, but I'll look and see how the chat packet works.