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

[ANY] Thirdperson


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Plugin ID:
2761
Plugin Version:
1.2.0
Plugin Category:
Fun Stuff
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    74 
    Plugin Description:
    Allows users to go into thirdperson mode
    Unapprover:
    Reason for Unapproving:
    Author request
    Old 01-04-2012 , 18:01   [ANY] Thirdperson
    Reply With Quote #1

    [ANY] Thirdperson

    v1.2.0

    Don't use this plugin, use this one instead.

    Description:
    I've seen this on a lot of servers, but never found it here. So here it is. Allows users to type !thirdperson to go into thirdperson mode. This will send the client sv_cheats 1, which allows them to use r_drawothermodels 2 and other client-side cheats. This is mainly written for trade servers where this is not a problem. Use at your own risk.

    Commands:
    sm_thirdperson - sends a client into thirdperson mode
    sm_firstperson - sends a client into firstperson mode

    Cvars:
    sm_thirdperson_version - plugin version
    sm_thirdperson_enabled (1) - enables or disables the plugin

    Installation:
    Put thirdperson.smx into /addons/sourcemod/plugins and reboot your server or type "sm plugins load thirdperson" into your console or rcon.

    Auto Update:
    Install Updater. The plugin will be autoupdated according to your Updater settings. It'll work without Updater.

    Changelog:
    • v1.2.0 (4/22/12)
      • Plugin is now unsupported and Updater support was removed
    • v1.1.0 (1/10/12)
      • Added sm_thirdperson_enabled cvar
      • Changed sm_thirdperson's reply when the client is dead
    • v1.0.0 (1/4/12)
      • Initial release
    Attached Files
    File Type: sp Get Plugin or Get Source (thirdperson.sp - 2277 views - 3.0 KB)
    __________________

    Last edited by Dr. McKay; 04-22-2012 at 01:37.
    Dr. McKay is offline
    Fearts
    ferts of daeth
    Join Date: Oct 2008
    Old 01-04-2012 , 18:03   Re: [ANY] Thirdperson
    Reply With Quote #2

    Isn't r_drawothermodels a client side cheat?
    __________________
    Fearts is offline
    Dr. McKay
    Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
    Join Date: Aug 2011
    Location: Atlantis
    Old 01-04-2012 , 18:22   Re: [ANY] Thirdperson
    Reply With Quote #3

    Quote:
    Originally Posted by Fearts View Post
    Isn't r_drawothermodels a client side cheat?
    True. You can use SMAC's ConVar Checker to prevent wallhacks using r_drawothermodels 2. This plugin is mainly written for trade servers.
    __________________

    Last edited by Dr. McKay; 01-04-2012 at 18:36.
    Dr. McKay is offline
    Unreal1
    AlliedModders Donor
    Join Date: Dec 2010
    Old 01-04-2012 , 21:22   Re: [ANY] Thirdperson
    Reply With Quote #4

    The old one was removed. I don't know why, but I know it had a lot of security errors with it. Which is why allowing client sv_cheats is bad. Even on trade servers this will get abusive and annoying. Is there a way to not enable cheats?
    Unreal1 is offline
    Dr. McKay
    Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
    Join Date: Aug 2011
    Location: Atlantis
    Old 01-04-2012 , 23:02   Re: [ANY] Thirdperson
    Reply With Quote #5

    Quote:
    Originally Posted by Unreal1 View Post
    The old one was removed. I don't know why, but I know it had a lot of security errors with it. Which is why allowing client sv_cheats is bad. Even on trade servers this will get abusive and annoying. Is there a way to not enable cheats?
    Not that I know of. But I'm sure there are plenty of plugins to block client-side cheats even with sv_cheats enabled client-side.
    __________________
    Dr. McKay is offline
    MasterMind420
    BANNED
    Join Date: Nov 2010
    Old 01-05-2012 , 07:07   Re: [ANY] Thirdperson
    Reply With Quote #6

    Admin cheats allows using cheat commands on server without sv_cheats enabled, not sure if its something you can use to help, but figured i'd throw that out there, not only that but, Achievements Trophy also forces clients into thirdperson when they get an achievment, just something for you to look into...
    MasterMind420 is offline
    Dr. McKay
    Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
    Join Date: Aug 2011
    Location: Atlantis
    Old 01-05-2012 , 16:19   Re: [ANY] Thirdperson
    Reply With Quote #7

    Quote:
    Originally Posted by MasterMind420 View Post
    Admin cheats allows using cheat commands on server without sv_cheats enabled, not sure if its something you can use to help, but figured i'd throw that out there, not only that but, Achievements Trophy also forces clients into thirdperson when they get an achievment, just something for you to look into...
    I looked into Achievements Trophy, but the command it uses appears to only be present on L4D. And I think you can only remove the cheat flag from server-side commands.
    __________________
    Dr. McKay is offline
    Peace-Maker
    SourceMod Plugin Approver
    Join Date: Aug 2008
    Location: Germany
    Old 01-05-2012 , 17:00   Re: [ANY] Thirdperson
    Reply With Quote #8

    This stock works fine for CS:S. Don't know about other games though.
    PHP Code:
    stock SetThirdPersonView(clientbool:third)
    {
        if(
    third)
        {
            
    SetEntPropEnt(clientProp_Send"m_hObserverTarget"0); 
            
    SetEntProp(clientProp_Send"m_iObserverMode"1);
            
    SetEntProp(clientProp_Send"m_bDrawViewmodel"0);
            
    SetEntProp(clientProp_Send"m_iFOV"120);
        }
        else
        {
            
    SetEntPropEnt(clientProp_Send"m_hObserverTarget", -1);
            
    SetEntProp(clientProp_Send"m_iObserverMode"0);
            
    SetEntProp(clientProp_Send"m_bDrawViewmodel"1);
            
    SetEntProp(clientProp_Send"m_iFOV"90);
        }

    __________________
    Peace-Maker is offline
    Dr. McKay
    Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
    Join Date: Aug 2011
    Location: Atlantis
    Old 01-05-2012 , 22:48   Re: [ANY] Thirdperson
    Reply With Quote #9

    Quote:
    Originally Posted by Peace-Maker View Post
    This stock works fine for CS:S. Don't know about other games though.
    PHP Code:
    stock SetThirdPersonView(clientbool:third)
    {
        if(
    third)
        {
            
    SetEntPropEnt(clientProp_Send"m_hObserverTarget"0); 
            
    SetEntProp(clientProp_Send"m_iObserverMode"1);
            
    SetEntProp(clientProp_Send"m_bDrawViewmodel"0);
            
    SetEntProp(clientProp_Send"m_iFOV"120);
        }
        else
        {
            
    SetEntPropEnt(clientProp_Send"m_hObserverTarget", -1);
            
    SetEntProp(clientProp_Send"m_iObserverMode"0);
            
    SetEntProp(clientProp_Send"m_bDrawViewmodel"1);
            
    SetEntProp(clientProp_Send"m_iFOV"90);
        }

    Alright, I'll add that in for CS:S first chance I get, and completely rewrite it if it works in other games. I mainly wrote this for TF2, and I haven't found a way to do it in TF2 yet without sv_cheats.
    __________________
    Dr. McKay is offline
    Unreal1
    AlliedModders Donor
    Join Date: Dec 2010
    Old 01-10-2012 , 18:48   Re: [ANY] Thirdperson
    Reply With Quote #10

    Can you add the ability to enable or disable the plugin? Because on my went server, I don't want people usig third person during certain events.
    Unreal1 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 01:29.


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