local verdana = render.create_font("verdana.ttf", 12, render.font_flag_outline)
local state = {
lp = entities.get_entity(engine.get_local_player()),
refx = math.floor(lp:get_prop("m_vecVelocity[0]")),
refy = math.floor(lp:get_prop("m_vecVelocity[1]")),
stand = math.sqrt(refx ^ 2 + refy ^ 2) < 5,
move = math.sqrt(refx ^ 2 + refy ^ 2) > 5,
air = lp:get_prop("m_hGroundEntity") == -1,
crouch = bit.band(lp:get_prop("m_fFlags"),bit.lshift(2, 0)) ~= 0,
slow = info.fatality.in_slowwalk,
}
local name = ""
local currentstate = 0
if state.stand and not state.crouch then name = "standing" currentstate = 1 end
if state.move then name = "moving" currentstate = 2 end
if state.air then name = "aerobic" currentstate = 3 end
if state.air and state.crouch then name = "aerobic+" currentstate = 4 end
if state.crouch then name = "crouching" currentstate = 5 end
if state.slow then name = "slowwalk" currentstate = 6 end
local desync = math.floor(math.abs(player:get_prop("m_flPoseParameter", 11) * 120 - 60.5))
render.text(verdana, 15, 541, "#RNT v4.lua - version: v4 - stable - " .. info.fatality.username, render.color(255,255,255,255))
render.text(verdana, 15, 555, "> version: stable", render.color(255,255,255,255))
render.text(verdana, 15, 569, "> player info: " .. name, render.color(255,255,255,255))
render.text(verdana, 15, 583, "> dsy amount: " .. desync .. "°", render.color(255,255,255,255))