fix bugs
This commit is contained in:
parent
aa5304e024
commit
93f461686f
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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))
|
||||
|
@ -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))
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user