improved-stacker
improved-stacker copied to clipboard
Add option to clone relative to prop origin
Add option to clone relative to prop origin instead of prop bounding box
@stepa2
The tool already uses the prop's position as the stack origin:
local entPos = ent:GetPos()
local entAng = ent:GetAngles()
...
-- calculate the next stacked entity's position
entPos = entPos + (direction * distance) + offset
Direction and distance are calculated on WORLD or PROP mode. OBB Mins/Maxs are used so the prop can easily stick to the one at the previous iteration.