From 2cf2fbe95a5e56588245d7b913c5473a196b1099 Mon Sep 17 00:00:00 2001 From: icedream Date: Mon, 20 Oct 2014 11:30:37 +0200 Subject: [PATCH] Also apply velocity to view entity in third person. --- lua/weapons/disguiser/init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/weapons/disguiser/init.lua b/lua/weapons/disguiser/init.lua index a870389..f5bd184 100644 --- a/lua/weapons/disguiser/init.lua +++ b/lua/weapons/disguiser/init.lua @@ -316,6 +316,7 @@ function SWEP:EnableThirdPerson(player) entity:SetModel(player:GetModel()) entity:Spawn() entity:SetAngles(player:GetAngles()) + entity:SetVelocity(player:GetVelocity()) entity:SetMoveType(MOVETYPE_NONE) entity:SetParent(player) entity:SetOwner(player) @@ -323,7 +324,7 @@ function SWEP:EnableThirdPerson(player) entity:SetRenderMode(RENDERMODE_NONE) entity:SetSolid(SOLID_NONE) player:SetViewEntity(entity) - + player:SetNetworkedBool("thirdperson", true) end