From b5d883e3723610de8fa39f563eb8400df1e8d636 Mon Sep 17 00:00:00 2001 From: gnomerd Date: Tue, 15 Oct 2019 09:04:51 +0200 Subject: [PATCH] Bug fix --- gamemode/engine/derma/menus/menu_character.lua | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/gamemode/engine/derma/menus/menu_character.lua b/gamemode/engine/derma/menus/menu_character.lua index bb0e9b1..351d5db 100644 --- a/gamemode/engine/derma/menus/menu_character.lua +++ b/gamemode/engine/derma/menus/menu_character.lua @@ -141,12 +141,11 @@ local pages = { end end - - --- set the model mdl:SetModel( Quantum.Models.Player.Male[1] ) -- set the char model - local minv, maxv = mdl.Entity:GetRenderBounds() - local eyepos = mdl.Entity:GetBonePosition( mdl.Entity:LookupBone( "ValveBiped.Bip01_Head1" ) ) + local minv, maxv = mdl.Entity:GetRenderBounds() + local ent = mdl.Entity + local eyepos = ent:GetBonePosition( ent:LookupBone( "ValveBiped.Bip01_Head1" ) ) eyepos:Add( Vector( 40, 0, -15 ) ) mdl:SetCamPos( eyepos - Vector( -10, 0, -2 ) ) mdl:SetLookAt( eyepos )