Advertisement
CapsAdmin

Untitled

Jan 31st, 2014
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 6.33 KB | None | 0 0
  1. easylua.StartEntity("bt_turret")
  2.  
  3. if SERVER then
  4.     ENT.SeatPos = Vector(0, 0, 20)
  5.     ENT.SeatAng = Angle(0, -90, 0)
  6.     ENT.ForwardSpeed = 5
  7.  
  8.     function ENT:Initialize()
  9.         self:SetModel("models/props_c17/FurnitureWashingmachine001a.mdl")
  10.         self:PhysicsInit(SOLID_VPHYSICS)
  11.         self:StartMotionController()
  12.     end
  13.    
  14.     function ENT:Think()
  15.         self:NextThink(0)  
  16.     end
  17. else
  18.     local outfit = {
  19.         {
  20.             ["children"] = {
  21.                 [1] = {
  22.                     ["children"] = {
  23.                         [1] = {
  24.                             ["children"] = {
  25.                                 [1] = {
  26.                                     ["children"] = {
  27.                                         [1] = {
  28.                                             ["children"] = {
  29.                                                 [1] = {
  30.                                                     ["children"] = {
  31.                                                         [1] = {
  32.                                                             ["children"] = {
  33.                                                                 [1] = {
  34.                                                                     ["children"] = {
  35.                                                                         [1] = {
  36.                                                                             ["children"] = {
  37.                                                                             },
  38.                                                                             ["self"] = {
  39.                                                                                 ["MaxPitch"] = 122,
  40.                                                                                 ["UniqueID"] = "1634796593",
  41.                                                                                 ["Name"] = "no sound",
  42.                                                                                 ["Sound"] = "weapons/airboat/airboat_gun_loop2.wav",
  43.                                                                                 ["ClassName"] = "sound",
  44.                                                                                 ["SoundLevel"] = 180,
  45.                                                                                 ["Pitch"] = 0.3,
  46.                                                                                 ["Volume"] = 3,
  47.                                                                                 ["GlobalID"] = "2634312895",
  48.                                                                                 ["MinPitch"] = 111,
  49.                                                                             },
  50.                                                                         },
  51.                                                                     },
  52.                                                                     ["self"] = {
  53.                                                                         ["Position"] = Vector(0.00020599365234375, 0.03515625, 10.42578125),
  54.                                                                         ["UniqueID"] = "3056042281",
  55.                                                                         ["Material"] = "models/combine_mine/combine_mine03",
  56.                                                                         ["Size"] = 0.2,
  57.                                                                         ["GlobalID"] = "599193616",
  58.                                                                         ["Angles"] = Angle(0, -90, 0),
  59.                                                                         ["ClassName"] = "model",
  60.                                                                         ["Model"] = "models/props_junk/CinderBlock01a.mdl",
  61.                                                                         ["EditorExpand"] = true,
  62.                                                                     },
  63.                                                                 },
  64.                                                             },
  65.                                                             ["self"] = {
  66.                                                                 ["Position"] = Vector(0.0045394897460938, 0, 11.232421875),
  67.                                                                 ["Name"] = "getinfaget",
  68.                                                                 ["Material"] = "models/combine_mine/combine_mine03",
  69.                                                                 ["Size"] = 0.725,
  70.                                                                 ["UniqueID"] = "3022558742",
  71.                                                                 ["ClassName"] = "model",
  72.                                                                 ["GlobalID"] = "3965407520",
  73.                                                                 ["Model"] = "models/props_lab/pipesystem02c.mdl",
  74.                                                                 ["EditorExpand"] = true,
  75.                                                             },
  76.                                                         },
  77.                                                     },
  78.                                                     ["self"] = {
  79.                                                         ["UniqueID"] = "3011242502",
  80.                                                         ["GlobalID"] = "2064426072",
  81.                                                         ["Scale"] = Vector(1, 1, 3.2999999523163),
  82.                                                         ["EditorExpand"] = true,
  83.                                                         ["Angles"] = Angle(0, 179.96875, 179.96875),
  84.                                                         ["Size"] = 0.35,
  85.                                                         ["PositionOffset"] = Vector(0, 0, -0.40000000596046),
  86.                                                         ["ClassName"] = "model",
  87.                                                         ["Material"] = "models/combine_advisor/arm",
  88.                                                         ["Model"] = "models/props_lab/jar01a.mdl",
  89.                                                         ["Position"] = Vector(2.0758972167969, -0.009765625, 0),
  90.                                                     },
  91.                                                 },
  92.                                             },
  93.                                             ["self"] = {
  94.                                                 ["Position"] = Vector(5.4541015625, -0.93359375, -2.2611083984375),
  95.                                                 ["UniqueID"] = "3545807086",
  96.                                                 ["Material"] = "models/combine_advisor/arm",
  97.                                                 ["Size"] = 1.525,
  98.                                                 ["GlobalID"] = "663630350",
  99.                                                 ["Angles"] = Angle(90, 90, -90),
  100.                                                 ["ClassName"] = "model",
  101.                                                 ["Model"] = "models/Items/battery.mdl",
  102.                                                 ["EditorExpand"] = true,
  103.                                             },
  104.                                         },
  105.                                         [2] = {
  106.                                             ["children"] = {
  107.                                             },
  108.                                             ["self"] = {
  109.                                                 ["ClassName"] = "model",
  110.                                                 ["Angles"] = Angle(0, 0, 180),
  111.                                                 ["Position"] = Vector(0.2255859375, -1.46484375, 3.0320434570313),
  112.                                                 ["Size"] = 1.475,
  113.                                                 ["EditorExpand"] = true,
  114.                                                 ["UniqueID"] = "1352780721",
  115.                                                 ["Model"] = "models/Gibs/manhack_gib03.mdl",
  116.                                                 ["GlobalID"] = "1683558312",
  117.                                             },
  118.                                         },
  119.                                     },
  120.                                     ["self"] = {
  121.                                         ["Model"] = "models/props_lab/rotato.mdl",
  122.                                         ["ClassName"] = "model",
  123.                                         ["Position"] = Vector(-1.736328125, -5.0283203125, 19.561279296875),
  124.                                         ["Size"] = 1.5,
  125.                                         ["EditorExpand"] = true,
  126.                                         ["UniqueID"] = "2258319664",
  127.                                         ["Name"] = "pitch",
  128.                                         ["GlobalID"] = "3257453559",
  129.                                         ["Name"] = "LOL",
  130.                                     },
  131.                                 },
  132.                                 [2] = {
  133.                                     ["children"] = {
  134.                                     },
  135.                                     ["self"] = {
  136.                                         ["Angles"] = Angle(0, -180, 0),
  137.                                         ["Position"] = Vector(0.208984375, 7.345703125, 13.675720214844),
  138.                                         ["ClassName"] = "model",
  139.                                         ["Size"] = 0.55,
  140.                                         ["UniqueID"] = "3644771370",
  141.                                         ["Model"] = "models/Items/BoxMRounds.mdl",
  142.                                         ["GlobalID"] = "3000251333",
  143.                                     },
  144.                                 },
  145.                             },
  146.                             ["self"] = {
  147.                                 ["Model"] = "models/props_combine/combine_binocular01.mdl",
  148.                                 ["AngleOffset"] = Angle(0.96875, 0, 0),
  149.                                 ["Position"] = Vector(0, 0, 21.453125),
  150.                                 ["EditorExpand"] = true,
  151.                                 ["UniqueID"] = "1372556600",
  152.                                 ["GlobalID"] = "4072409744",
  153.                                 ["Name"] = "yaw",
  154.                                 ["ClassName"] = "model",
  155.                             },
  156.                         },
  157.                     },
  158.                     ["self"] = {
  159.                         ["GlobalID"] = "568219671",
  160.                         ["UniqueID"] = "820610735",
  161.                         ["ClassName"] = "model",
  162.                         ["Size"] = 0.65,
  163.                         ["EditorExpand"] = true,
  164.                         ["Model"] = "models/props_combine/combine_mortar01b.mdl",
  165.                         ["Position"] = Vector(0, 0, -21.62841796875),
  166.                     },
  167.                 },
  168.             },
  169.             ["self"] = {
  170.                 ["ClassName"] = "group",
  171.                 ["EditorExpand"] = true,
  172.                 ["GlobalID"] = "1106860931",
  173.                 ["UniqueID"] = "1067486361",
  174.                 ["Name"] = "my outfit",
  175.                 ["Description"] = "add parts to me!",
  176.             },
  177.         },
  178.     }
  179.    
  180.     pac.SetupENT(ENT, self)
  181.    
  182.     ENT.dunno = NULL
  183.    
  184.     function ENT:Initialize()
  185.         self:AttachPACPart(outfit)     
  186.        
  187.         self.dunno = self:FindPACPart(outfit, "LOL")
  188.     end
  189.    
  190.     function ENT:OnRemove()
  191.         self:RemovePACPart(outfit)
  192.     end
  193.    
  194.     function ENT:Think()
  195.         if self.dunno:IsValid() then
  196.             self.dunno:SetAngles(Angle(RealTime(), RealTime(), RealTime())*100)
  197.         end
  198.     end
  199.    
  200.     function ENT:Draw()
  201.         --self:DrawModel() 
  202.     end
  203. end
  204.  
  205. easylua.EndEntity(true, true)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement