Raised This Month: $ Target: $400
 0% 

[Any] Admin Player/Entity Grabber - 12/29/2014


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Plugin ID:
3643
Plugin Version:
1.0.1
Plugin Category:
Fun Stuff
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    116 
    Plugin Description:
    Allows admins to grab, move, and throw players and items
    Old 05-06-2013 , 04:25   [Any] Admin Player/Entity Grabber - 12/29/2014
    Reply With Quote #1

    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
    Attached Files
    File Type: sp Get Plugin or Get Source (admingrab.sp - 2368 views - 8.9 KB)
    File Type: smx admingrab.smx (7.4 KB, 4015 views)
    File Type: sp Get Plugin or Get Source (admingrab_1.02.sp - 2096 views - 8.7 KB)
    __________________
    Profile - Plugins
    Add me on steam if you are seeking sp/map/model commissions.

    Last edited by friagram; 12-29-2014 at 12:20.
    friagram is offline
     



    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 13:40.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode