AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Code Snippets/Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=83)
-   -   [Short Explanation] HL Unit sizes (https://forums.alliedmods.net/showthread.php?t=344336)

Jhob94 10-28-2023 07:05

[Short Explanation] HL Unit sizes
 
GoldSrc units are measured as inches.
For decades it was something that people never came into a common ground because it lacks some accuracy in-game. But it is not much hard to prove that units are measured based on inches.

A player entity is 72 units in height and the average human is 6 feet tall which converts to 72 inches.
And the 32 units wide that people struggle about is actually the waist of the player. And if you have a 32 inch waist, your size is a US-Size M or Euro-Size 42. That seems pretty normal to me.

So this is how you properly convert the units:
Feet = Units / 12
Meters = Units * 0.0254

mlibre 10-29-2023 18:09

Re: [Short Explanation] HL Unit sizes
 
wow interesting

EFFx 11-02-2023 10:01

Re: [Short Explanation] HL Unit sizes
 
Something like that https://forums.alliedmods.net/showpo...40&postcount=9

Jhob94 11-02-2023 10:31

Re: [Short Explanation] HL Unit sizes
 
Quote:

Originally Posted by EFFx (Post 2812340)

Yes sir, that is correct. But some people don’t respect those measures because there was no confirmation that units are inches.
Many people used to struggle because the 32 inches wide would be way too big but in fact it’s just the waist size. Since this is a 3D game the height is measured from top to bottom but the width must measure the player’s radius waist and not just side to side.

This was just a short explanation and confirmation that hl units are in fact inches.

Some people are using some other random values like diving by 100 when this unit size should already be considered official and required on plugins that display meters/feet distance to players.


All times are GMT -4. The time now is 15:12.

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