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

[L4D2] Survivor Thirdperson (1.9) [11-Dec-2022]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Plugin ID:
2962
Plugin Version:
1.9
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    25 
    Plugin Description:
    Creates a command for survivors to use thirdperson view.
    Old 05-20-2012 , 05:51   [L4D2] Survivor Thirdperson (1.9) [11-Dec-2022]
    Reply With Quote #1

    About:
    • Enables thirdperson view for survivors on command.


    Player Commands:

    PHP Code:
    sm_3rdon   // Turns thirdperson view on.
    sm_3rdoff  // Turns thirdperson view off.
    sm_3rd     // Toggles thirdperson view.
    sm_tp      // Toggles thirdperson view.
    sm_third   // Toggles thirdperson view. 


    Cvars:

    Saved to l4d2_third.cfg in your servers \cfg\sourcemod\ folder.

    PHP Code:
    // 0=Plugin off, 1=Plugin on.
    l4d2_third_allow "1"

    // Turn on the plugin in these game modes, separate by commas (no spaces). (Empty = all).
    l4d2_third_modes ""

    // Turn off the plugin in these game modes, separate by commas (no spaces). (Empty = off).
    l4d2_third_modes_off ""

    // Turn on the plugin in these game modes. 0=All, 1=Coop, 2=Survival, 4=Versus, 8=Scavenge. Add numbers together.
    l4d2_third_modes_tog "0"

    // Survivor Thirdperson plugin version.
    l4d2_third_version 


    Changes:
    Code:
    1.9 (11-Dec-2022)
        - Changes to fix compile warnings on SourceMod 1.11.
    
    1.8 (23-Feb-2021)
        - Fixed the Charger resetting a Survivors thirdperson view after punching them. Thanks to "psisan" for reporting.
    
    1.7 (24-Sep-2020)
        - Fixed the Charger resetting a Survivors thirdperson view after charging into them. Thanks to "Pelee" for reporting.
    
    1.6 (10-May-2020)
        - Extra checks to prevent "IsAllowedGameMode" throwing errors.
        - Various changes to tidy up code.
    
    1.5 (06-Apr-2020)
        - Fixed mounted guns causing the players model to rotate in thirdperson. Thanks to "Alex101192" for reporting.
    
    1.4 (01-Apr-2020)
        - Fixed "IsAllowedGameMode" from throwing errors when the "_tog" cvar was changed before MapStart.
    
    1.3 (12-Oct-2019)
        - Added commands "sm_3rdon" and "sm_3rdoff" to explicitly set the view.
    
    1.2 (05-May-2018)
        - Converted plugin source to the latest syntax utilizing methodmaps. Requires SourceMod 1.8 or newer.
    
    1.1 (21-May-2012)
        - Removed admin only access from the commands, they are now usable by all survivors.
    
    1.0 (20-May-2012)
        - Initial release.


    Installation:
    1. Click "Get Plugin" and put the .smx file into your servers \addons\sourcemod\plugins\ folder.
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d2_thirdperson.sp - 1032 views - 14.7 KB)
    __________________

    Last edited by Silvers; 12-10-2022 at 19:24.
    Silvers is offline
    Blazen123
    Junior Member
    Join Date: Jul 2011
    Old 05-20-2012 , 07:22   Re: [L4D2] Survivor Thirdperson (1.0) [20-May-2012]
    Reply With Quote #2

    Thank you, all works.
    Blazen123 is offline
    irogue
    Senior Member
    Join Date: Jan 2011
    Location: Australia
    Old 05-21-2012 , 04:42   Re: [L4D2] Survivor Thirdperson (1.0) [20-May-2012]
    Reply With Quote #3

    Thanks, 1 thing i noticed was the cmd is for root access only in the spource file, as seen below:

    PHP Code:
        RegAdminCmd("sm_3rd",            CmdThird,        ADMFLAG_ROOT,     "Toggles thirdperson view.");
        
    RegAdminCmd("sm_tp",            CmdThird,        ADMFLAG_ROOT,     "Toggles thirdperson view.");
        
    RegAdminCmd("sm_third",            CmdThird,        ADMFLAG_ROOT,     "Toggles thirdperson view."); 
    what would the code be to alter this for any player to have use of those commands, that way i could let any client utilise the cmd please.

    Would it be the following lines below instead of the above?

    Sorry i cannot code i just saw in other source code the regconsolecmd in another sourcemod plugin vs the regadmincmd and the admflag_root in this plugin and figured these are the differences for public use or private admin use?

    PHP Code:
        RegConsoleCmd("sm_3rd",            CmdThird,             "Toggles thirdperson view.");
        
    RegConsoleCmd("sm_tp",            CmdThird,             "Toggles thirdperson view.");
        
    RegConsoleCmd("sm_third",            CmdThird,             "Toggles thirdperson view."); 
    irogue is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 05-21-2012 , 04:54   Re: [L4D2] Survivor Thirdperson (1.0) [20-May-2012]
    Reply With Quote #4

    Yeah that's correct, I forgot to double check and remove those admin commands.

    Alternatively for those that do not want to edit the source files, you can use the override the command access and make the commands public.

    EDIT: Updated.
    __________________

    Last edited by Silvers; 05-21-2012 at 05:03.
    Silvers is offline
    irogue
    Senior Member
    Join Date: Jan 2011
    Location: Australia
    Old 05-21-2012 , 11:27   Re: [L4D2] Survivor Thirdperson (1.1) [21-May-2012]
    Reply With Quote #5

    BTW i forgot to add that when i or another player got jockeyed i think also smoker (will have ot test and get back to you on smoker, it is 2am atm im off to catch some zz's) we lost our thrid person view in versus mode and had to type !tp again twice as it still assumed we were in 3rd person still.

    And thanks for the fast reply mate.

    Last edited by irogue; 05-21-2012 at 11:28.
    irogue is offline
    JeungHun
    Junior Member
    Join Date: Apr 2012
    Old 05-21-2012 , 11:42   Re: [L4D2] Survivor Thirdperson (1.1) [21-May-2012]
    Reply With Quote #6

    Is this work in Versus mod?
    JeungHun is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 05-21-2012 , 12:22   Re: [L4D2] Survivor Thirdperson (1.1) [21-May-2012]
    Reply With Quote #7

    Quote:
    Originally Posted by irogue View Post
    BTW i forgot to add that when i or another player got jockeyed i think also smoker (will have ot test and get back to you on smoker, it is 2am atm im off to catch some zz's) we lost our thrid person view in versus mode and had to type !tp again twice as it still assumed we were in 3rd person still.

    And thanks for the fast reply mate.
    Hmm I cannot replicate that bug. I tested with the special infected before release but never lost the thirdperson. In Coop and Versus.


    Quote:
    Originally Posted by JeungHun View Post
    Is this work in Versus mod?
    Yes.
    __________________
    Silvers is offline
    SseRDG
    Junior Member
    Join Date: Jul 2011
    Old 05-21-2012 , 17:11   Re: [L4D2] Survivor Thirdperson (1.1) [21-May-2012]
    Reply With Quote #8

    it is possible to make a sight? not clearly where you shoot
    SseRDG is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 05-21-2012 , 17:43   Re: [L4D2] Survivor Thirdperson (1.1) [21-May-2012]
    Reply With Quote #9

    Quote:
    Originally Posted by SseRDG View Post
    it is possible to make a sight? not clearly where you shoot
    Nope
    __________________
    Silvers is offline
    JeungHun
    Junior Member
    Join Date: Apr 2012
    Old 05-21-2012 , 22:30   Re: [L4D2] Survivor Thirdperson (1.1) [21-May-2012]
    Reply With Quote #10

    It is very good work in All mod.

    But, I think so Ahswiungeot about no shoot aimpoint.

    Thank you though.

    Last edited by JeungHun; 05-21-2012 at 22:32.
    JeungHun 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 13:32.


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