MalboroDEV / PermaProps

PermaProps
12 stars 20 forks source link

Use the GMod Duplicator Library #7

Closed Lexicality closed 8 years ago

Lexicality commented 8 years ago

Hi!

This changes the save/load logic so that it uses the built in duplicator.Copy and duplicator.Paste functions to save and load entities.

I did this because your library doesn't call all of the right hooks to properly duplicate one of my addons. If you use the duplicator library, this addon will be able to save entities from any other addon on the workshop that supports sandbox's duplicator or persistence mode.

I have left the old spawning code in so that all existing permaprops will continue to work.

MalboroDEV commented 8 years ago

I got too much problems with this library sorry.

Lexicality commented 8 years ago

What problems?

MalboroDEV commented 8 years ago

Duplicator lib use the ent.GetTable() this get all variables of the entity, like the owner and this cause some problems.