Загрузка страницы

Motor Source 2013/Garrysmod - crear/modificar la hull para tu personaje

el nombre que debe tener - "test_viewheight.lua"

comando
--Punto de vista

CreateConVar( "test_viewheight", "1", { FCVAR_REPLICATED, FCVAR_NOTIFY, FCVAR_ARCHIVE } )

hook.Add("PlayerSpawn", "test_Viewheight_Offset", function(ply)
if not ply or not ply:IsValid() then return end
e = ents.Create("gmod_hands")
e:SetOwner(ply)
e:Spawn()
e:SetOwner(ply)
ply:SetHands( e )
if (ply:GetModel() == "models/test.mdl") then
timer.Simple(0.1, function()
if GetConVarNumber( "testt_viewheight" ) == 1 then
ply:SetViewOffset( Vector( 2, 2, 38 ) )
ply:SetViewOffsetDucked( Vector( 0, 0, 25 ) )
ply:SetHull( Vector( -10, -10, 0 ), Vector( 24, 22, 50 ) )
ply:SetHullDuck( Vector( -10, -10, 0 ), Vector( 22, 20, 35 ) )
end
end)
else
ply:SetViewOffset( Vector(2,2,54) )
ply:SetViewOffsetDucked( Vector(0,0,25) )
ply:SetHull( Vector( -16, -16, 0 ), Vector( 30, 28, 60 ) )
ply:SetHullDuck( Vector( -16, -16, 0 ), Vector( 22, 20, 35 ) )
end
end)

#garrysmod
#SourceEngine2013

Видео Motor Source 2013/Garrysmod - crear/modificar la hull para tu personaje канала Motor Source en español
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
8 апреля 2023 г. 20:45:01
00:02:12
Яндекс.Метрика