Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function SENT:Initialize()
- self:SetModel("Objects/library/storage/barrels/empty_metal_barrel_a.cgf")
- self:Physicialize(PE_RIGID)
- end
- local angle = Ang3(90,0,0)
- local i = 0
- function SENT:PrePhysicsUpdate(phys, frametime)
- i = i + frametime
- local ply = LocalPlayer()
- local endpos = ply:GetEyePos() + ply:GetEyeDir() * 3
- phys:SmoothMove(endpos, frametime * 1500)
- self:SetAngles(angle)
- self:SetOpacity(math.abs(math.sin(i)))
- end
Advertisement
Add Comment
Please, Sign In to add comment