mirror of
https://github.com/JonnyBro/beatrun.git
synced 2024-12-28 12:53:02 +05:00
smol cleanup
This commit is contained in:
parent
e2d2853f19
commit
da056be0c2
1 changed files with 3 additions and 2 deletions
|
@ -619,6 +619,7 @@ if SERVER then
|
||||||
a:Spawn()
|
a:Spawn()
|
||||||
|
|
||||||
local phys = a:GetPhysicsObject()
|
local phys = a:GetPhysicsObject()
|
||||||
|
|
||||||
if IsValid(phys) then
|
if IsValid(phys) then
|
||||||
phys:EnableMotion(false)
|
phys:EnableMotion(false)
|
||||||
phys:Sleep()
|
phys:Sleep()
|
||||||
|
@ -1407,11 +1408,11 @@ if CLIENT then
|
||||||
end
|
end
|
||||||
|
|
||||||
hook.Add("InitPostEntity", "buildmode_create_hook", function()
|
hook.Add("InitPostEntity", "buildmode_create_hook", function()
|
||||||
timer.Simple(2, function()
|
timer.Simple(2, function()
|
||||||
hook.Add("OnEntityCreated", "BuildModeProps", function(ent)
|
hook.Add("OnEntityCreated", "BuildModeProps", function(ent)
|
||||||
if not ent:GetNW2Bool("BRProtected") and ent:GetClass() == "prop_physics" or buildmode_ents[ent:GetClass()] then
|
if not ent:GetNW2Bool("BRProtected") and ent:GetClass() == "prop_physics" or buildmode_ents[ent:GetClass()] then
|
||||||
if not BuildMode then ent.buildmode_placed_manually = true end
|
if not BuildMode then ent.buildmode_placed_manually = true end
|
||||||
|
|
||||||
table.insert(buildmode_placed, ent)
|
table.insert(buildmode_placed, ent)
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
Loading…
Reference in a new issue