Raised This Month: $32 Target: $400
 8% 

[TF2] Physics Gun (v1.0, 2018/2/25)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Dr.Doctor
AlliedModders Donor
Join Date: Feb 2017
Location: Hong Kong
Plugin ID:
6031
Plugin Version:
1.0
Plugin Category:
Fun Stuff
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Allow players to use PhysicsGun on TF2! Grab everything!
    Old 02-25-2018 , 03:17   [TF2] Physics Gun (v1.0, 2018/2/25)
    Reply With Quote #1

    TF2 Physics Gun


    Latest version is here! (https://github.com/BattlefieldDuck/TF2_PhysicsGun)


    Description:
    • Bring GMod PhysicsGun to TF2!
    • Grab Players and Entities!
    • Throw Players and Entities!

    Features:
    • Press MOUSE1 to grab things
    • Press and Hold R and Move the mouse to rotate
    • Press and Hold R and press W or S to push and pull
    • Press and Hold R and press A or B to rotate
    • Press and Hold R and press Ctrl key to accurate
    • Press MOUSE2 to freeze or unfreeze the prop. (Only for prop_physics)
    • Press MOUSE3 to rotate the prop face to the client.
    • 90% similar to GMod

    Requirements:
    Commands:
    Code:
    sm_pg //Equip Physics Gun (Admin flag: Root)
    You can edit admin_overrides.cfg to change the permission
    Credits:
    Danct: Gave me some idea
    Hacker Pelipoika : Used rainbowme.sp script (tf_glow)
    Leadkiller : He is GMod Pro, gave me some idea
    javalia : His GravityGun plugins, idea
    Known Bugs:
    When Demoman or Medic equip the physics gun, the viewmodel will fading. (Because Demo and medic think physics gun is melee weapon..)
    Github (Source code):
    https://github.com/BattlefieldDuck/TF2_PhysicsGun
    Attached Files
    File Type: smx TF2_PhysicsGun.smx (23.6 KB, 1121 views)
    __________________

    Last edited by Dr.Doctor; 05-31-2018 at 13:59.
    Dr.Doctor is offline
    FlaminSarge
    Veteran Member
    Join Date: Jul 2010
    Old 03-10-2018 , 05:17   Re: [TF2] Physics Gun (v1.0, 2018/2/25)
    Reply With Quote #2

    I think you're probably better off removing the TF2Items GiveWeapon dependency and just having the entity creation code for the builder entity in the plugin (giveweapon has a lot of quirks and 'fixes' that you don't necessarily need if you're only giving the builder; in particular, giveweapon's usage of the TF2_CalcIsAttackCritical forward causes the server to have 'fake crits', and I think it's the reason the weapon fades out on Demo/Medic).

    Other than that, nice job.
    __________________
    Bread EOTL GunMettle Invasion Jungle Inferno will break everything. Don't even ask.

    All plugins: Randomizer/GiveWeapon, ModelManager, etc.
    Post in plugin threads with questions.
    Steam is for playing games.
    You will be fed to javalia otherwise.
    Psyduck likes replays.

    Last edited by FlaminSarge; 03-10-2018 at 05:19.
    FlaminSarge is offline
    Reply


    Thread Tools
    Display Modes

    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 18:51.


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