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
- function SENT:PrePhysicsUpdate(phys, frametime)
- phys:AddVelocity((LocalPlayer():GetEyePos() - self:GetPos()) * phys:GetMass() * frametime)
- end
Advertisement
Add Comment
Please, Sign In to add comment