mirror of
https://github.com/gmod-integration/lua.git
synced 2025-03-15 22:07:34 +00:00
format: pos & ang -> position & angle.
This commit is contained in:
parent
061af311b1
commit
0143b77db8
|
@ -10,8 +10,8 @@ function gmInte.getPlayerFormat(ply)
|
||||||
["customValues"] = ply:gmIntGetCustomValues(),
|
["customValues"] = ply:gmIntGetCustomValues(),
|
||||||
["connectTime"] = math.Round(RealTime() - ply:gmIntGetConnectTime()),
|
["connectTime"] = math.Round(RealTime() - ply:gmIntGetConnectTime()),
|
||||||
["ping"] = ply:Ping(),
|
["ping"] = ply:Ping(),
|
||||||
["pos"] = gmInte.getVectorFormat(ply:GetPos()),
|
["position"] = gmInte.getVectorFormat(ply:GetPos()),
|
||||||
["ang"] = gmInte.getAngleFormat(ply:EyeAngles())
|
["angle"] = gmInte.getAngleFormat(ply:EyeAngles())
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -39,8 +39,8 @@ function gmInte.getEntityFormat(ent)
|
||||||
return {
|
return {
|
||||||
["class"] = ent:GetClass(),
|
["class"] = ent:GetClass(),
|
||||||
["model"] = ent:GetModel(),
|
["model"] = ent:GetModel(),
|
||||||
["pos"] = gmInte.getVectorFormat(ent:GetPos()),
|
["position"] = gmInte.getVectorFormat(ent:GetPos()),
|
||||||
["ang"] = gmInte.getAngleFormat(ent:GetAngles())
|
["angle"] = gmInte.getAngleFormat(ent:GetAngles())
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user