Raised This Month: $51 Target: $400
 12% 

CSGO - How to transform player map position to image coordinates


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Tugamars
Member
Join Date: Mar 2014
Old 08-17-2017 , 21:35   CSGO - How to transform player map position to image coordinates
Reply With Quote #1

Hello, its not directly connected to Dedicated Server, but since I couldnt find any other forum for general csgo devolopment I am using this one. If in any way im disrespecting the rules, im sorry.

What I need to know is how to convert map coordinates to image coordinates.

My objective is to put a "point" on a radar image (like this one: http://i.imgur.com/Kk6zuRK.png) on the position the player is. Ofc that its not suppose to be done manually, its part of a script.

The default CS:GO radar images are in 1024x1024, but the coordinates CSGO feeds me are not even close to that.

The output i receive from csgo is: "position":"421.97, 2118.56, 131.92", its an X,Y,Z coordinate type, and so the only ones that interest are the X and Y.

Im wondering what is the formula to convert this to image coordinates.

I couldnt find any information regarding this on the Valve wiki/devoloper 'center', thats why I am using this forum.

Thanks in advance.

If you want to help by talking directly, add me on skype: marcelo.silva.12
Tugamars is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:30.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode