|Simple Mod Idea: 1/7/2021 22:02:42
I know Lua rather well and would like some simple mod idea to start learning the Warzone API. This sounds like a really good idea and should not be to difficult to implement once you get the general idea.
However, after looking into the API I can find no real good solution as to how to change the fog level on a region or area.
You can implement functionality via hooks either server-side or client-side. In this case it would need to be at least some parts server-side since the data you got on client is already fogged (I assume?). but on the server-side all data for areas are common for all players, so I assume that changing the fog level for an area server-side would change it for all players.
It might be possible to connect a server side hook on playing the card, and set up a separate mod data structure for the affected region and always send this data to all the clients. Then only show the lighter fog for the player who own the played card. However this means all clients get the lighter fog even though it is not displayed. This might be used to cheat so that a cheating players always see the lighter fog on all played cards if it is possible to access this data somehow. Dunno...
Would appreciate if someone used to modding Warzone could point me in the right direction.