master
gnomerd 5 years ago
parent f6e1f9b9c2
commit b5d883e372
  1. 7
      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 )

Loading…
Cancel
Save