wiremod / advduplicator

Garry's Mod add-on that allows a player to save and load contraptions
http://www.wiremod.com
Apache License 2.0
67 stars 43 forks source link

Please adjust the NPC duping to be based on spawnname instead of classname #90

Open SligWolf opened 2 months ago

SligWolf commented 2 months ago

The last GMod update from March 2024 fixed npcs being spawned and duped by their classname instead of their spawnname. It made it more elegant to have them apply all their properties that are supported by default via list.Get("NPC") without addional dupe code.

firefox_Oj2fTPkwtn https://gmod.facepunch.com/changelist/3976

Unfortunately ADV Dupe 1 does not support this change yet. So please adjust it to work similary to ADV Dupe 2 and Garry's Dupe which supports this new behavour. For example ADV Dupe 1 does not handle Health, MaxHealth and other properties that might come later.

This was the relvant change in GMod: https://github.com/Facepunch/garrysmod/commit/9fe82bca8c7ea1113eee2623995ff971ccd50c8d?diff=unified&w=0#diff-b7a357bf1c9ee1f589fa300430bf6c5c1331cb4fcb1ddc81d7a9bca0b36fbd8bR595-R597