Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local def =
- {
- run = 500,
- walk = 250,
- step = 18,
- jump = 200,
- view = Vector(0,0,64),
- viewducked = Vector(0,0,28),
- mass = 85,
- min = Vector(-16, -16, 0),
- max = Vector(16, 16, 72),
- maxduck = Vector(16, 16, 36),
- }
- hook.Add("UpdateAnimation", "pac_check_scale", function(ply)
- local ply = pac.LocalPlayer
- local siz = ply.pac_player_size or 1
- if siz ~= 1 and (ply:GetModelScale() ~= siz or ply:GetViewOffset() ~= def.view * siz) then
- pac.SetPlayerSize(ply, ply.pac_player_size)
- end
- if siz ~= 1 then
- ply:SetPlaybackRate(1/siz)
- return true
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment