Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- AddCSLuaFile()
- ENT.Base = "base_nextbot"
- ENT.Spawnable = true
- function ENT:Initialize()
- end
- function ENT:Give(weaponcls)
- local Gun = ents.Create(weaponcls)
- local pos = self:GetAttachment(self:LookupAttachment("anim_attachment_RH")).Pos
- Gun:SetOwner(self)
- Gun:SetPos(pos)
- Gun:Spawn()
- Gun.DontPickUp = true
- --Gun:SetSolid(SOLID_NONE)
- Gun:SetParent(self)
- Gun:Fire("setparentattachment", "anim_attachment_RH")
- Gun:AddEffects(EF_BONEMERGE)
- self.Weapon = Gun
- end
- function ENT:RunBehaviour()
- end
- list.Set( "NPC", "simple_nextbot", {
- Name = "Simple bot",
- Class = "simple_nextbot",
- Category = "Nextbot"
- })
Advertisement
Add Comment
Please, Sign In to add comment