Thank you for sharing that, I had no idea someone else had attempted this. It would appear that he manually set up the web page to match the de_dust.bsp coordinates:
I was hoping there's a more automated way of doing things, instead of manually figuring out the coordinates one map at a time using an unknown amount of attempts.
A recap of the data that's available:
- dds (image) 0,0 coordinates in game, part of .txt file (mapping of img(0,0) -> ingame(X,Y))
- dds (image) scale as a float, might be able to retrieve using a plugin. This is normally calculated ingame, Valve have a tutorial on how to do this
- ingame coordinates of every entity and player
Would it be possible for a SM plugin to retrieve the radar'x X,Y (corner) coordinates and its scale, programmatically? If so, then some maps have the X,Y coordinates of the bombsite in the radar .txt file, and 2 points would suffice to automate scaling things.