scelight
scelight copied to clipboard
Add more information about commands issued for cmdTargetUpdateUnit
Is it possible to translate a cmdTargetUpdateUnit to the actual input?
For example:
-
targetUnitFlags=111looks to me like the smart command (= right click). -
targetUnitFlags=175looks to me like the universal attack command (a-click).
Analyzing the commands issued seems to be an excellent tool to identify maphackers, e.g. issuing commands to a attack an enemy combat unit that should clearly be not visible to them.
Can you give concrete example from screp's output?
Flags are already handled in some cases, e.g. see TargetedOrderCmd.Queued.
Also note that just from a replay (without the game engine recalculating the game) you can't tell what areas of the map are visible for 100% probability.