I wanted to make a system to detect and stop maphacking. What i got now is 2 parted and i wanted to know if it should work because i dont feel like downloading hacks.
Its a team 1 vs team 2 map both teams own an area in opposite corners. In the farthest corners of the map in each base there is an invisible unit. There is nothing in the game that could give vision of a teams unit to the enemy because its in a secluded area. So basically every 2 seconds i add this invisible unit to the the players selection(team 1 gets team 2s invis unit added to their selection and visa versa).
This will do nothing if you dont have a mh or a unit with true sight.
If you have a unit with true sight that gives you vision of the unit it will just add the unit to your selection making hacking very obvious in replays.
The Second part uses the 'is unit visible' to identify hacking in the game and cause actions such as a text message, player kick, subtract resources.
I tested the first part by making a unit with true sight in this secluded area. I watched the replay and the only time i selected the unit was when i had vision.
Will this work?
Its a team 1 vs team 2 map both teams own an area in opposite corners. In the farthest corners of the map in each base there is an invisible unit. There is nothing in the game that could give vision of a teams unit to the enemy because its in a secluded area. So basically every 2 seconds i add this invisible unit to the the players selection(team 1 gets team 2s invis unit added to their selection and visa versa).
This will do nothing if you dont have a mh or a unit with true sight.
If you have a unit with true sight that gives you vision of the unit it will just add the unit to your selection making hacking very obvious in replays.
The Second part uses the 'is unit visible' to identify hacking in the game and cause actions such as a text message, player kick, subtract resources.
I tested the first part by making a unit with true sight in this secluded area. I watched the replay and the only time i selected the unit was when i had vision.
Will this work?
Last edited: