Hi,
what was the correct formula to convert ingame units to meters for CSS again?
Oh, and does the same formula apply to each engine (CSGO, TF2, etc.)?
Thank you. :)
Old question, but: Units to Meters?
Re: Old question, but: Units to Meters?
We haven't exposed it, but this is the same for each engine I have checked:
https://github.com/alliedmodders/hl2sdk ... face.h#L40
1 unit = 1 inch
https://github.com/alliedmodders/hl2sdk ... face.h#L40
1 unit = 1 inch
Re: Old question, but: Units to Meters?
A unit's relationship to real-world measurements is not set in stone or precise; it is defined only by the scale of a game's content.
But for HL2 here's the table: https://developer.valvesoftware.com/wik ... _reference
/id/its_iPlayer
My plugins: Map Cycle • Killstreaker • DeadChat • Infinite Jumping • TripMines • AdPurge • Bot Damage • PLRBots • Entity AntiSpam
Hail, Companion. [...] Hands to yourself, sneak thief.
My plugins: Map Cycle • Killstreaker • DeadChat • Infinite Jumping • TripMines • AdPurge • Bot Damage • PLRBots • Entity AntiSpam
Hail, Companion. [...] Hands to yourself, sneak thief.
Re: Old question, but: Units to Meters?
Thank you very much, helps a lot.
Return to “Plugin Development Support”
Who is online
Users browsing this forum: No registered users and 18 guests