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:- Click "Get Plugin" and put the .smx file into your servers \addons\sourcemod\plugins\ folder.