CapsAdmin

Untitled

May 28th, 2011
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.28 KB | None | 0 0
  1. function SENT:Initialize()
  2.     self:SetModel("Objects/library/storage/barrels/empty_metal_barrel_a.cgf")
  3.     self:Physicialize(PE_RIGID)
  4. end
  5.  
  6. function SENT:PrePhysicsUpdate(phys, frametime)
  7.     phys:AddVelocity((LocalPlayer():GetEyePos() - self:GetPos()) * phys:GetMass() * frametime)
  8. end
Advertisement
Add Comment
Please, Sign In to add comment