I’ve been a little busy and haven’t been working on Improved Stacker lately. I see you are not the only one requesting adding something like hook.Call( “PlayerSpawnProp”, GAMEMODE, ply, entModel ) and hook.Call( “PlayerSpawnedProp”, GAMEMODE, ply,entModel, ent ).
I originally did not put this in because it already calls ply:GetSWEP():CheckLimit( “props” ), which is a wrapper for ply:CheckLimit( “props” ), and I am so used to overriding functions like these for my own prop protection addon because of the horrible inconsistency there is between addons (some calling only the undo library, some using ply:CheckLimit and undo, some using undo and the PlayerSpawn* hooks, some using the PlayerSpawned* hooks, etc).
I did push an update to the GitHub version that adds PlayerSpawnProp and PlayerSpawnedProp but I haven’t tested it out yet (https://github.com/Mista-Tea/improved-stacker/commit/0accde8558c06e1af8e809824d5e1c12617fffb2). I can get to work on it right now.
Alternatively, I do have my own StackerEntity hook getting called every time an entity is created in the stack, and you can use that in the meantime. It would just be something like:
hook.Add( "StackerEntity", "PropProtection", function( ent, owner )
-- run your prop protection checks here
if ( failed checks ) then
For the future, feel free to make a GitHub issue/request instead so that I can properly address it for everyone, instead of having developers like yourself make custom edits to the tools. You can post issues here: https://github.com/Mista-Tea/improved-stacker/issues?state=open