This commit is contained in:
edshot99 2024-01-25 16:24:38 -06:00
parent aa5304e024
commit 93f461686f
5 changed files with 6 additions and 6 deletions

View File

@ -6,7 +6,7 @@ AddCSLuaFile("shared.lua")
function ENT:SpawnFunction(ply, tr)
if (!tr.Hit) then return end
local ent=ents.Create(ClassName)
ent:SetPos(tr.HitPos+tr.HitNormal*10)
ent:SetPos(tr.HitPos+tr.HitNormal*100)
ent:Spawn()
ent:Activate()
ent.Owner=ply

View File

@ -118,12 +118,12 @@ end
function ENT:SpawnFunction(ply, tr)
if (!tr.Hit) then return end
local ent=ents.Create(ClassName)
ent:SetPos(tr.HitPos+tr.HitNormal*10)
ent:SetPos(tr.HitPos+tr.HitNormal*100)
ent:Spawn()
ent:Activate()
ent.Owner=ply
self.Sounds=table.Copy(sndt)
ent:AddStuff()
timer.Simple(1.0, function() ent:AddStuff() end)
return ent
end

View File

@ -4,7 +4,7 @@ AddCSLuaFile("shared.lua")
function ENT:SpawnFunction(ply, tr)
if (!tr.Hit) then return end
local ent=ents.Create(ClassName)
ent:SetPos(tr.HitPos+tr.HitNormal*10)
ent:SetPos(tr.HitPos+tr.HitNormal*100)
ent:Spawn()
ent:Activate()
ent:SetSkin(math.random(0,4))

View File

@ -4,7 +4,7 @@ AddCSLuaFile("shared.lua")
function ENT:SpawnFunction(ply, tr)
if (!tr.Hit) then return end
local ent=ents.Create(ClassName)
ent:SetPos(tr.HitPos+tr.HitNormal*10)
ent:SetPos(tr.HitPos+tr.HitNormal*100)
ent:Spawn()
ent:Activate()
ent:SetSkin(math.random(0,2))

View File

@ -4,7 +4,7 @@ AddCSLuaFile("shared.lua")
function ENT:SpawnFunction(ply, tr)
if (!tr.Hit) then return end
local ent=ents.Create(ClassName)
ent:SetPos(tr.HitPos+tr.HitNormal*60)
ent:SetPos(tr.HitPos+tr.HitNormal*100)
ent:Spawn()
ent:Activate()
ent.Owner=ply