Description:
This allows you to precisely duplicate a selected prop and linearly stack the duplication(s) in one of six selected directions, no matter the angle of the selected prop. You can increase the stack count up to 5 in a single stack. For a more seamless result, you can decrease the distance between the dupes, or optionally, increase the distance for a gap. This is essentially just a building command. Getting this to work right was a traumatic experience for me, so enjoy.
This should work on any game, please let me know otherwise.
There is no admin flag set.
Use Notes:
This works quick if you bind sm_stack to a key.
You can only stack prop_physics and prop_dynamic.
The maximum amount of stacks at once is set to 5.
You won't be able to use your weapon while stacking, the buttons are needed for settings.
Commands:
Code:
sm_stackOPTIONAL:You can add an argument to increase the stack count: "sm_stack <1-5>" or simply just press MOUSE1/MOUSE2 while stacking to increase/decrease.
------
This command works as a toggle, you use it once to select the prop, then use it again to release the stacks (If you selected a side to stack on)
------
KEYS WHILE STACKING:
> MOUSE1 will increase the stack count, appending another duplication to the end of the stack, up to 5 times.
> MOUSE2 will decrease the stack count in the same fashion. Decreasing to 0 will cancel the stack.
> [R]+MOUSE1 will increase the distance between the stacks and the selected prop.
> [R]+MOUSE2 will decrease the distance in the same fashion.
Installation:
1. Tap on "Get Plugin" below
2. Put the downloaded file PropStack.smx in your servers plugins folder: SERVER/GAME/addons/sourcemod/plugins/
(optional) Put the source filePropStack.sp in your servers scripting folder: SERVER/GAME/addons/sourcemod/scripting/
Todo:
I'm open to suggestions.
CHANGELOG:
Spoiler
V1.0 (October 22, 2019)
Initial Release
V1.3 (October 24, 2019)
MOUSE1 no longer releases the stack, this is now done by using sm_stack a second time
MOUSE1 will now increase the stack count while stacking
MOUSE2 will now decrease the stack count, decreasing to 0 will cancel the stack
Cleaned a lot of code
V1.5 (October 24, 2019)
Optimizations and cleaning
The ghost props now move with offset increase/decrease
Last edited by Stugger; 10-24-2019 at 20:40.
Reason: v1.5