AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Snippets and Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=112)
-   -   [CS:GO] GetClientAbsOrigin <\3 [INFORMATION AND TEMPORARY FIX] (https://forums.alliedmods.net/showthread.php?t=196482)

Mathias. 09-21-2012 17:39

[CS:GO] GetClientAbsOrigin <\3 [INFORMATION AND TEMPORARY FIX]
 
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


blodia 09-21-2012 19:52

Re: [CS:GO] GetClientAbsOrigin <\3 [INFORMATION AND TEMPORARY FIX]
 
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

bl4nk 09-22-2012 01:30

Re: [CS:GO] GetClientAbsOrigin <\3 [INFORMATION AND TEMPORARY FIX]
 
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.

FaTony 09-22-2012 10:17

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

Originally Posted by blodia (Post 1803677)
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.

Bacardi 09-22-2012 15:01

Re: [CS:GO] GetClientAbsOrigin <\3 [INFORMATION AND TEMPORARY FIX]
 
https://developer.valvesoftware.com/wiki/Dimensions


All times are GMT -4. The time now is 18:34.

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