nanos-world / issues

Issue Tracker for nanos world
9 stars 1 forks source link

GetCameraArmLength(true) not correct when not lerping #895

Closed vugi99 closed 1 year ago

vugi99 commented 1 year ago

Prerequisites

Your Environment

Description

GetCameraArmLength(true) not correct when not lerping

Steps to reproduce the behavior

Serverside char:SetViewMode(ViewMode.TopDown)

Clientside : ply:GetCameraArmLength(true) - returns 100 incorrect ply:GetCameraArmLength(false) - returns 800 correct

Expected behavior

It should return ply:GetCameraArmLength(false) when no lerping is going on instead of the value you stored. (use a simple boolean to know when you are lerping)

Actual behavior

It returns a wrong stored value

gtnardy commented 1 year ago

thx for reporting, I was returning the base instead of the target

gtnardy commented 1 year ago

Actually, I'm keeping this as is, and will change the parameter to return_base instead. The way it was designed to be