Simple Mod Idea: 2020-12-28 20:44:07 |
Huitzilopochtli
Level 57
Report
|
Would it be possible to mod the fog cards so that they only reveal the map in light fog, not as no fog. For example, my scenarios often use dense fog, so fog cards would raise sight by one level to light fog, instead of no fog. Does that make sense?
|
Simple Mod Idea: 2020-12-28 20:46:23 |
Huitzilopochtli
Level 57
Report
|
Yes, but surveillance card lets you see with no-fog. But I want those cards to let you see light fog, or some other fog setting, instead of only no fog.
|
Simple Mod Idea: 2020-12-28 20:48:12 |
Huitzilopochtli
Level 57
Report
|
Yes.
|
Simple Mod Idea: 2021-01-07 22:02:42 |
Gurubashi
Level 57
Report
|
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.
|