Advertisement
CapsAdmin

Untitled

Mar 1st, 2013
660
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.47 KB | None | 0 0
  1. local outfit = pac.luadata.ReadFile("pac3/mech.txt")
  2.  
  3. if CLIENT then
  4.     pac.SetupENT(ENT)
  5.    
  6.     function ENT:Initialize()
  7.         self:AttachPACPart(outfit)
  8.                
  9.         self:SetPACDrawDistance(0)
  10.         -- 0 = don't use distance check
  11.         -- nil = obey client settings
  12.     end
  13.    
  14.     function ENT:OnRemove()
  15.         self:RemovePACPart(outfit)
  16.     end
  17. end
  18.  
  19. if SERVER then
  20.     function ENT:Initialize()
  21.         self:SetModel("models/props_c17/oildrum001.mdl")
  22.         self:PhysicsInit(SOLID_VPHYSICS)
  23.     end
  24. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement