Raised This Month: $ Target: $400
 0% 

[CS:GO] GetClientAbsOrigin <\3 [INFORMATION AND TEMPORARY FIX]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mathias.
Veteran Member
Join Date: Aug 2010
Location: Canada is my city
Old 09-21-2012 , 17:39   [CS:GO] GetClientAbsOrigin <\3 [INFORMATION AND TEMPORARY FIX]
Reply With Quote #1

Hello everyone,

for some reason the function GetClientAbsOrigin() return the eyes position of the player instead of the origin. The aproximative distance between eyes position and floor is ~ 64.062559 for Counter-Terrorist and ~ 64.062562 for Terrorist STANDAR SKINS. Since the difference is so small you can round it to 64.062560. Here how you do:

PHP Code:
GetClientAbsOrigin(clientvector);
vector[2] -= 64.062560
Mathias. is offline
blodia
Veteran Member
Join Date: Sep 2009
Location: UK
Old 09-21-2012 , 19:52   Re: [CS:GO] GetClientAbsOrigin <\3 [INFORMATION AND TEMPORARY FIX]
Reply With Quote #2

in css i'm sure its 64.0 for all players so its safe to assume its the same for csgo. be warned that it will change on player crouch, can't remember what it is in css, maybe 32.0

Last edited by blodia; 09-21-2012 at 19:52.
blodia is offline
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 09-22-2012 , 01:30   Re: [CS:GO] GetClientAbsOrigin <\3 [INFORMATION AND TEMPORARY FIX]
Reply With Quote #3

That's pretty easy to figure out. Just figure out the origin while standing, crouch without moving, and then compare the difference between the two.
bl4nk is offline
FaTony
Veteran Member
Join Date: Aug 2008
Old 09-22-2012 , 10:17   Re: [CS:GO] GetClientAbsOrigin <\3 [INFORMATION AND TEMPORARY FIX]
Reply With Quote #4

Quote:
Originally Posted by blodia View Post
in css i'm sure its 64.0 for all players so its safe to assume its the same for csgo. be warned that it will change on player crouch, can't remember what it is in css, maybe 32.0
Yeah, it's 64.0. 0.625 is added because models technically float a little over the ground.
__________________
FaTony is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 09-22-2012 , 15:01   Re: [CS:GO] GetClientAbsOrigin <\3 [INFORMATION AND TEMPORARY FIX]
Reply With Quote #5

https://developer.valvesoftware.com/wiki/Dimensions
__________________
Do not Private Message @me
Bacardi 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 05:39.


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