AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D2] Survivor Thirdperson (1.9) [11-Dec-2022] (https://forums.alliedmods.net/showthread.php?t=185664)

Silvers 05-20-2012 05:51

[L4D2] Survivor Thirdperson (1.9) [11-Dec-2022]
 
9 Attachment(s)
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.

Blazen123 05-20-2012 07:22

Re: [L4D2] Survivor Thirdperson (1.0) [20-May-2012]
 
Thank you, all works.

irogue 05-21-2012 04:42

Re: [L4D2] Survivor Thirdperson (1.0) [20-May-2012]
 
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."); 


Silvers 05-21-2012 04:54

Re: [L4D2] Survivor Thirdperson (1.0) [20-May-2012]
 
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.

irogue 05-21-2012 11:27

Re: [L4D2] Survivor Thirdperson (1.1) [21-May-2012]
 
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.

JeungHun 05-21-2012 11:42

Re: [L4D2] Survivor Thirdperson (1.1) [21-May-2012]
 
Is this work in Versus mod?

Silvers 05-21-2012 12:22

Re: [L4D2] Survivor Thirdperson (1.1) [21-May-2012]
 
Quote:

Originally Posted by irogue (Post 1713684)
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 (Post 1713697)
Is this work in Versus mod?

Yes.

SseRDG 05-21-2012 17:11

Re: [L4D2] Survivor Thirdperson (1.1) [21-May-2012]
 
it is possible to make a sight? not clearly where you shoot

Silvers 05-21-2012 17:43

Re: [L4D2] Survivor Thirdperson (1.1) [21-May-2012]
 
Quote:

Originally Posted by SseRDG (Post 1713927)
it is possible to make a sight? not clearly where you shoot

Nope

JeungHun 05-21-2012 22:30

Re: [L4D2] Survivor Thirdperson (1.1) [21-May-2012]
 
It is very good work in All mod.

But, I think so Ahswiungeot about no shoot aimpoint.

Thank you though.


All times are GMT -4. The time now is 13:23.

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