Allows admins to grab players. This should work in any game, though I know some game events may work differently in a few games.
I use it for Team Fortress 2.
I noticed that there were a lot of prop/entity grabbers, but most had a lot of bloat, or did a ton of things. This one is really simple, and only targets clients. It also drops players when the grabber dies, so they don't stay grabbed, as well as drops the grabbed player when they die. It is also fairly light weight, and only hooks/updates admins that have access to the command (using prethink). We use it mostly to move players around when they are blocking others (friendly situations), or to throw people into saw blades or other various map traps (when it suits us).
Commands:- sm_grab: (ADMFLAG_SLAY) Toggles grab on a player.
The grab has 2 modes. The default mode, will grab a player and bring them to you. The second mode uses +attack2, so if you hold your alt-fire and use the grab command, it will maintain the distance. Similarly, if you are grabbing a player, and use +attak2 while using the command, it will throw them rather than drop them.
Code:
2013-5-6 (v1.0.0)
* Initial Release
2013-5-6 (v1.0.1)
* Removed round_start event
* Fixed late load loop
2014-12-29 (v1.0.2)
* Added aim target immunity
* Added prop/projectile grabbing
Installation:- Place the admingrab.smx file in your "addons/sourcemod/plugins" directory.
- Use override flag "admin_grab" to change access.
Comments:- Some grab and throw code was taken from Entcontrol