diff --git a/lua/advdupe2/sv_clipboard.lua b/lua/advdupe2/sv_clipboard.lua index e52022b..dbf21d5 100644 --- a/lua/advdupe2/sv_clipboard.lua +++ b/lua/advdupe2/sv_clipboard.lua @@ -1190,6 +1190,7 @@ function AdvDupe2.duplicator.Paste(Player, EntityList, ConstraintList, Position, Ent.EntityMods = table.Copy(v.EntityMods) Ent.PhysicsObjects = table.Copy(v.PhysicsObjects) if (v.CollisionGroup) then Ent:SetCollisionGroup(v.CollisionGroup) end + hook.Run("OnDuplicated", Ent, v) if (Ent.OnDuplicated) then Ent:OnDuplicated(v) end ApplyEntityModifiers(Player, Ent) ApplyBoneModifiers(Player, Ent) @@ -1362,6 +1363,7 @@ local function AdvDupe2_Spawn() if (IsValid(Phys)) then Phys:EnableMotion(false) end if (not Queue.DisableProtection) then Ent:SetNotSolid(true) end if (v.CollisionGroup) then Ent:SetCollisionGroup(v.CollisionGroup) end + hook.Run("OnDuplicated", Ent, v) if (Ent.OnDuplicated) then Ent:OnDuplicated(v) end elseif (Ent == false) then Ent = nil