Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Made with Dr. Matt's Advanced Base Core v3
- ENT.Base = "advbase_core3"
- ENT.PrintName = "Pony Core" -- The name the Core will come up as in the Spawnmenu
- ENT.Spawnable = true -- If true, Anyone can spawn the entity
- ENT.AdminSpawnable = true -- If true, Admins can spawn the entity, Set ENT.Spawnable to false to make the Core Admin only.
- ENT.Author = "Dr. Matt" -- Self Explanatory, The author of the addon, AKA Your name.
- ENT.Contact = "Facepunch (MattJeanes)" -- Your contact, Perhaps an email address or a Steam username
- ENT.Purpose = "" -- The purpose of the entity
- ENT.Instructions = "Ponies 4 Bronies" -- The instructions of the entity, Perhaps "Insert 1 chocolate cookie to activate."
- ENT.AutomaticFrameAdvance = true
- ENT.Category = "Portal 2 Cores" -- The in-game category of the core
- ENT.Animation = "sphere_idle_neutral" -- Set's the animation of the core, Look in Portal 2 Authoring Tools for more info.
- ENT.Delay = 5
- ENT.Dir = "ponies" -- The name of your sub-folder, sounds go in there!
- ENT.ModelPath = "models/cores/pony/core.mdl" -- The exact path to the model, equivalent to self.Entity:SetModel( )
- ENT.AnimSpeed = 0.25 -- Equivalent to self.Entity:SetPlaybackRate( )
- ENT.Skin = 1 -- Equivalent to self.Entity:SetSkin( )
- /*---------------------------------------------------------
- ENT.Dir: Put your stuff in the following folders:
- sound/cores/(ENT.Dir)/
- sound/cores/(ENT.Dir)/special/ -- For use.wav, undo.wav and dmg.wav
- ---------------------------------------------------------*/
- function ENT:CustomInitialize(self)
- -- This function is ran at the end of ENT:Initialize() in the base core, include custom code in here. :)
- end
- function ENT:SpawnFunction( ply, tr )
- if ( !tr.Hit ) then return end
- local SpawnPos = tr.HitPos + tr.HitNormal * 16
- local ent = ents.Create( ClassName )
- ent:SetPos( SpawnPos )
- ent:Spawn()
- ent:Activate()
- return ent
- end
Advertisement
Add Comment
Please, Sign In to add comment