flapch

Untitled

Aug 20th, 2022
10
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. AddCSLuaFile()
  2.  
  3. ENT.Base = "base_nextbot"
  4. ENT.Spawnable = true
  5.  
  6. function ENT:Initialize()
  7.  
  8. end
  9.  
  10. function ENT:Give(weaponcls)
  11. local Gun = ents.Create(weaponcls)
  12. local pos = self:GetAttachment(self:LookupAttachment("anim_attachment_RH")).Pos
  13. Gun:SetOwner(self)
  14. Gun:SetPos(pos)
  15. Gun:Spawn()
  16. Gun.DontPickUp = true
  17. --Gun:SetSolid(SOLID_NONE)
  18. Gun:SetParent(self)
  19. Gun:Fire("setparentattachment", "anim_attachment_RH")
  20. Gun:AddEffects(EF_BONEMERGE)
  21. self.Weapon = Gun
  22. end
  23.  
  24. function ENT:RunBehaviour()
  25. end
  26.  
  27. list.Set( "NPC", "simple_nextbot", {
  28. Name = "Simple bot",
  29. Class = "simple_nextbot",
  30. Category = "Nextbot"
  31. })
Advertisement
Add Comment
Please, Sign In to add comment