-
Notifications
You must be signed in to change notification settings - Fork 24
Projectile template file
Dragoteryx edited this page Aug 12, 2019
·
3 revisions
Use this template if you want to create your own projectile.
if not DrGBase then return end -- return if DrGBase isn't installed
ENT.Base = "proj_drg_default"
-- Misc --
ENT.PrintName = "Projectile"
ENT.Category = "DrGBase"
ENT.Models = {}
ENT.ModelScale = 1
-- Physics --
ENT.Gravity = true
ENT.Physgun = false
ENT.Gravgun = false
-- Contact --
ENT.OnContactDelay = 0.1
ENT.OnContactDelete = -1
ENT.OnContactDecals = {}
-- Sounds --
ENT.LoopSounds = {}
ENT.OnContactSounds = {}
ENT.OnRemoveSounds = {}
-- Effects --
ENT.AttachEffects = {}
ENT.OnContactEffects = {}
ENT.OnRemoveEffects = {}
if SERVER then
AddCSLuaFile()
function ENT:CustomInitialize() end
function ENT:CustomThink() end
function ENT:OnContact(ent) end
function ENT:OnTakeDamage(dmg) end
function ENT:OnDealtDamage(ent, dmg)
if dmg:IsDamageType(DMG_CRUSH) then return true end
end
end