CreateConVar( "sv_viewheight", "1", { FCVAR_REPLICATED, FCVAR_NOTIFY } ) hook.Add( "PlayerSpawn", "UndertaleSetViewOffset", function( ply ) timer.Create( "MMDUndertalePly_"..ply:SteamID(), 0.1, 1, function() if (ply:GetModel() == "models/MMDUnderTale/CharaC/NPC/chara_c_npc.mdl") || (ply:GetModel() == "models/MMDUnderTale/FriskC/NPC/frisk_c_npc.mdl") then if GetConVarNumber( "sv_viewheight" ) == 1 then ply:SetViewOffset( Vector( 0, 0, 60 ) ) ply:SetViewOffsetDucked( Vector( 0, 0, 48 ) ) end else ply:SetViewOffset( Vector( 0, 0, 84 ) ) ply:SetViewOffsetDucked( Vector( 0, 0, 48 ) ) end end ) end )
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy. Accept Learn more