Raised This Month: $ Target: $400
 0% 

[ANY] Advanced Grab Entity - v2.2 [Oct 18, 2019]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
Stugger
Member
Join Date: Sep 2007
Plugin ID:
6762
Plugin Version:
2.2
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Grab then Move, Push, Pull and Rotate the entity you're looking at until released.
    Old 10-14-2019 , 21:41   [ANY] Advanced Grab Entity - v2.2 [Oct 18, 2019]
    Reply With Quote #1

    Description:
    This provides the ability to precisely grab, move and rotate entities freely with your mouse on all axis. I started this a while ago and decided to share. There are similar plugins, however I would consider mine geared more towards precision grabbing and movement as well as not only restricted to props. I highly doubt you'll find one with the rotation mode feature as well.

    Demo Video on CS:S


    Using Rotation Mode


    General Notes:
    • This is very useful if you're using my TrackTrains plugin.
    • This should work on any game, please let me know otherwise.
    • The admin flag for use is set to ADMFLAG_CHEATS
    • This should work on most entities, not just props. Rotation will be iffy on non-props though.
    • If you just want v1.5 (no rotation mode), let me know.

    Use Notes:
    • This works best if you bind +grabent to a key, otherwise you will have to manually do -grabent to release.
    • While grabbed: Reload Key will Enable/Disable Rotation Mode.
      ---
    • While grabbed and NOT on a Rotation axis: Primary Attack(Mouse1) will PUSH the entity farther away.
    • While grabbed and NOT on a Rotation axis: Secondary Attack(Mouse2) will PULL the entity closer.
    • The farther away the entity you're grabbing is from you, the faster it will be pushed/pulled.
    • The closer the entity you're grabbing is to you, the slower it will be pushed/pulled.
      ---
    • While grabbed and in Rotation Mode: Walk keys (A,S,D) will dictate the rotation axis. (W to show all rings).
    • While grabbed and in Rotation Mode: Holding A+S+D keys will reset the entities angles to 0
    • While grabbed and on a Rotation axis: Primary Attack(Mouse1) will +Rotate on selected axis.
    • While grabbed and on a Rotation axis: Secondary Attack(Mouse2) will -Rotate on selected axis.
      ---
    • You will not be able to use your weapon while grabbing (Mouse1/Mouse2 and Reload are used)
    • You will not be able to walk while in Rotation Mode, the keys are needed for settings.
      ---
    • By default, the grabbed entity will be frozen on release unless you change sm_grabent_freeze to 0
    • If you change the freeze value to 0, it will revert back to 1 on map change/reconnect.
    • Some entities will remain frozen regardless, as not all are geared for physics. Players will always be unfrozen.

    Commands:
    Code:
    • sm_grabent_freeze <0/1> > This will determine whether or not the grabbed entity will be frozen when released. > The default value is 1. Entities will be frozen on release > Setting the value to 0 will mean entities will be unfrozen on release
    • +grabent > Grab the entity you're looking at. > While grabbed: reload key to enter/exit rotation mode > While grabbed, and not on a rotation axis: mouse1 to push and mouse2 to pull. > While grabbed, and on a rotation axis (A,S,D): mouse1 to +rotate and mouse2 to -rotate
    • -grabent > Release the entity you're grabbing. > Depending on your freeze setting, the entity will either remain frozen, or unfreeze. > This is irrelevant if you bind +grabent to a key.
    Installation:
    • 1. Tap on "Get Plugin" below
    • 2. Put the downloaded file GrabEnt.smx in your servers plugins folder: SERVER/GAME/addons/sourcemod/plugins/
    • (optional) Put the source file GrabEnt.sp in your servers scripting folder: SERVER/GAME/addons/sourcemod/scripting/

    Todo:
    Spoiler


    CHANGELOG:
    Spoiler
    Attached Files
    File Type: sp Get Plugin or Get Source (GrabEnt.sp - 1049 views - 17.3 KB)

    Last edited by Stugger; 10-19-2019 at 16:58. Reason: V2.2 - Some changes to rotation mode
    Stugger 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 16:36.


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