Raised This Month: $51 Target: $400
 12% 

[TF2] Real Thirdperson


Post New Thread Reply   
 
Thread Tools Display Modes
Author
EHG
Senior Member
Join Date: May 2009
Location: 127.0.0.1
Plugin ID:
2775
Plugin Version:
1.3
Plugin Category:
Fun Stuff
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Allows usage of real thridperson in TF2
    Unapprover:
    Reason for Unapproving:
    Author request
    Old 01-13-2012 , 10:47   [TF2] Real Thirdperson
    Reply With Quote #1

    OUTDATED:Use the following instead:
    https://forums.alliedmods.net/showthread.php?t=183456


    TF2 Real Thirdperson



    Description

    This allows usage of the real thirdperson provided in the source engine.
    Thirdperson strictly relies on sv_cheats being set to 1 on the client thus there are many plugins out there to work around this by changing the camera or setting yourself as your own spectator and such.
    However in TF2 many player cosmetics do not render on your own player without sv_cheats 1 and real thirdperson.

    IMPORTANT NOTE: This script sends the sv_cheats value of 1 to the client without setting it on the server. This allows the client to use the thirdperson command however it also opens access to commands that can be used for the purpose of cheating. For example wireframe mode. This plugins was written with non competative trade servers in mind.


    Misc Fixes: There are a few cases where thirdperson is disabled. These include a camera bug on spawn and going back to firstperson after taunting. I have included fixes for both of these.
    There is also a check for the host_timescale cvar being altered on server so that sv_cheats 0 is not sent to the client in case you have something like slowmo that relies on it.


    COMMANDS
    sm_thirdperson Enable the tiny elf that floats over your head with a camera
    sm_firstperson Murder said elf and hold the camera yourself.


    CVARS

    sm_thirdperson_taunt_delay "0.4" Delay before thirdperson is enabled again after a taunt.

    ACCESS OVERRIDES

    By default everyone has access to the commands. Set the override sm_real_thirdperson_access to change this. (This is not a cvar or existing command, just an override you have to set in admin_overrides.cfg)

    Changelog

    1.3 - Using TF2_OnConditionRemoved and replaced access cvar with CheckCommandAccess
    1.2 - Missed a few valid client checks on timers.
    1.1 - Added convar for admin flag. Added detection of action slot taunts.
    1.0 - Initial release.
    Attached Files
    File Type: sp Get Plugin or Get Source (tf2_real_thirdperson.sp - 1288 views - 4.5 KB)

    Last edited by EHG; 04-30-2012 at 19:58.
    EHG is offline
    xomp
    BANNED
    Join Date: Jul 2008
    Old 01-13-2012 , 15:08   Re: [TF2] Real Thirdperson
    Reply With Quote #2

    Awesome! Thanks for the fixes!
    xomp is offline
    Send a message via Skype™ to xomp
    404UserNotFound
    BANNED
    Join Date: Dec 2011
    Old 01-13-2012 , 15:54   Re: [TF2] Real Thirdperson
    Reply With Quote #3

    Theoretically, you could use this plugin in conjunction with SourceMod Anti-Cheat, and just set up all the commands/CVARs that could be used for cheating so that SMAC kicks/bans a player for trying them.

    Simple!

    I'm not touching this plugin with a 50 foot clown pole, though.

    Last edited by 404UserNotFound; 01-13-2012 at 15:55.
    404UserNotFound is offline
    Skyrider
    AMX Mod X Beta Tester
    Join Date: May 2005
    Location: Netherlands
    Old 01-14-2012 , 08:01   Re: [TF2] Real Thirdperson
    Reply With Quote #4

    Good plugin, just 1 issue. When using the firstperson command (and in taunt) the camera turns a little bit in a weird way when going to thirdperson. Can this be fixed by any chance? It's like a 90 degrees (going around the class) turn.
    __________________

    Last edited by Skyrider; 01-14-2012 at 08:02.
    Skyrider is offline
    Send a message via AIM to Skyrider Send a message via MSN to Skyrider Send a message via Yahoo to Skyrider
    resin
    Member
    Join Date: Dec 2008
    Location: Valve's Underbelly
    Old 01-15-2012 , 13:07   Re: [TF2] Real Thirdperson
    Reply With Quote #5

    Thanks for this! However, is there a cvar that allows non-admins to use !thirdperson?
    __________________
    resin is offline
    DarthNinja
    SourceMod Plugin Approver
    Join Date: Mar 2009
    Location: PreThinkHook()
    Old 01-15-2012 , 16:08   Re: [TF2] Real Thirdperson
    Reply With Quote #6

    http://wiki.alliedmods.net/Overridin...ess_(SourceMod)
    __________________
    DarthNinja is offline
    Skyrider
    AMX Mod X Beta Tester
    Join Date: May 2005
    Location: Netherlands
    Old 01-15-2012 , 17:00   Re: [TF2] Real Thirdperson
    Reply With Quote #7

    ^ I just noticed that only admins can use this on a custom flag (5) not mentioned in the first post.. :-\ would be nice if you'd notified people about it. I installed this plugin a few days ago, and I just recently noticed no one was able to use the third person command.
    __________________

    Last edited by Skyrider; 01-15-2012 at 17:03.
    Skyrider is offline
    Send a message via AIM to Skyrider Send a message via MSN to Skyrider Send a message via Yahoo to Skyrider
    DarthNinja
    SourceMod Plugin Approver
    Join Date: Mar 2009
    Location: PreThinkHook()
    Old 01-15-2012 , 23:54   Re: [TF2] Real Thirdperson
    Reply With Quote #8

    Yeah, because skimming the source before installing things is hard.
    __________________
    DarthNinja is offline
    Skyrider
    AMX Mod X Beta Tester
    Join Date: May 2005
    Location: Netherlands
    Old 01-16-2012 , 02:43   Re: [TF2] Real Thirdperson
    Reply With Quote #9

    Quote:
    Originally Posted by DarthNinja View Post
    Yeah, because skimming the source before installing things is hard.
    Why would I check through the source of every plugin I download? I just assumed it would be a public command, especially with the text Description & note of the first post.
    __________________

    Last edited by Skyrider; 01-16-2012 at 02:44.
    Skyrider is offline
    Send a message via AIM to Skyrider Send a message via MSN to Skyrider Send a message via Yahoo to Skyrider
    EHG
    Senior Member
    Join Date: May 2009
    Location: 127.0.0.1
    Old 01-16-2012 , 17:01   Re: [TF2] Real Thirdperson
    Reply With Quote #10

    Updated to version 1.1
    Added convar for admin flag. Added detection of action slot taunts.


    Quote:
    Originally Posted by Skyrider View Post
    Why would I check through the source of every plugin I download?
    It is a VERY good idea to check the source of every plugin you install. Don't want to accidentally install a malicious plugin. They are quickly sniffed out in most cases however you wouldn't want to find out the hard way. You don't even have to be a dev to ctrl-f and find a rogue ServerCommand function.
    EHG is offline
    Reply



    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 23:21.


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