Product Chat / About entity position (x,y)

Author
Message
3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 2nd Jun 2016 23:49
Hi guys
I've another question about "g_Entity[e]['x'] " and "g_Entity[e]['y'] ", are these values in pixels?

Thanks in advance 4 all feedbacks

3com
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics

PM
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 2nd Jun 2016 23:57
nope, it's the world co-ordinates
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 3rd Jun 2016 00:22
We'd have some big numbers to manage if it were pixels


SPECS: Q6600 CPU. Nvidia 660GTX. 8 Gig Memory. Win 7.
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 3rd Jun 2016 09:55
x & z are the positional coordinates and y the height. The units roughly equate to cm in the game world so a difference of 100 is roughly a metre away.
Been there, done that, got all the T-Shirts!
PM
3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 3rd Jun 2016 13:07
Thanks very much guys.
Well, writing script to conver world co-ordinates to screen coo-ors.
3com
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics

PM
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 3rd Jun 2016 22:55
Me too, quite tricky taking into account FOV and converting to percentages for use in sprite plotting.
Been there, done that, got all the T-Shirts!
PM

Login to post a reply

Server time is: 2024-11-25 02:12:59
Your offset time is: 2024-11-25 02:12:59