zombiesurvival-evolved/gamemodes/zombiesurvival/gamemode/obj_vector_extend.lua
2014-10-01 20:49:54 -04:00

6 lines
204 B
Lua

local meta = FindMetaTable("Vector")
if not meta then return end
function meta:DistanceZSkew(vec, skew)
return math.sqrt((self.x - vec.x) ^ 2 + (self.y - vec.y) ^ 2 + ((self.z - vec.z) * skew) ^ 2)
end