<< Back to Programming Forum   Search

Posts 1 - 8 of 8   
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:45:18

markov 
Level 57
Report
Surveillance card?
Simple Mod Idea: 2020-12-28 20:45:54


Hodop 
Level 62
Report
That seems simple, but I cannot mod.
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:46:57


Hodop 
Level 62
Report
Surveilance card that lightens, not removes 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.
Simple Mod Idea: 2021-01-08 08:28:24


TBest 
Level 60
Report
It's not possible to modify fog levels of a given territory using a mod. Sorry :/


Best you can do is play a card. (So spam recon cards all over to unfog something). You can also reveal orders on the map to whichever players you decide. But that is kinda a hacky workaround and not really what you are looking for.

Edited 1/8/2021 08:33:22
Posts 1 - 8 of 8