Server Name:
Surf & Bhop
Suggestion Title:
Add setting too display 2d velocity
How would it benefit the server:
You would be able too see your speed without having too look down to the bottom left(which could ruin your run)
Potential Issues/Exploits:
nah
Additional notes: local CenterSpeed = CreateClientConVar( "surf_velocity_center", "0", true, false, "" )
local COv = 0
local TAC, TAL = TEXT_ALIGN_CENTER, TEXT_ALIGN_LEFT
local fo = string.format
surface.CreateFont( "HUDHeader", { size = 30, font = "Coolvetica" } )
local function HUDPaintCenterSpeed()
if !CenterSpeed:GetBool() then return end
local lpc = LocalPlayer()
local nSpeed = lpc:GetVelocity():Length2D()
if nSpeed == 0 then
COv = COv - 1
else
COv = 255
end
draw.SimpleText( fo( "%.0f u/s", nSpeed ), "HUDHeader", ScrW() / 2 + 2, ScrH() / 2 - 168, Color(0, 0, 0, COv), TAL, TAC )
draw.SimpleText( fo( "%.0f u/s", nSpeed ), "HUDHeader", ScrW() / 2, ScrH() / 2 - 170, Color(255, 255, 255, COv), TAL, TAC )
end
hook.Add( "HUDPaint", "PaintCenterSpeed", HUDPaintCenterSpeed ) EDIT:
Looks like this btw
VIDEO