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

[L4D2]Auto Thirdperson Melee


Post New Thread Reply   
 
Thread Tools Display Modes
Author
MasterMind420
BANNED
Join Date: Nov 2010
Plugin ID:
5182
Plugin Version:
1.0
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Delete This Thread
    Unapprover:
    Reason for Unapproving:
    No source code / plugin, upload source and use the Report Post button for a new review.
    Old 05-09-2016 , 15:47   [L4D2]Auto Thirdperson Melee
    Reply With Quote #1

    I got the idea from Silver's Thirdperson plugin, I liked it, however it's useless for shooting guns because there is no crosshair. So I said hey this would be great just for melee use, who doesn't like thirdperson melee and why not make it automatic, right.

    What this plugin does is automatically switches a players view to thirdperson when using a melee weapon. If you switch to any other weapon you go back to firstperson.

    By default Auto Thirdperson Melee is disabled for new clients, that way no gripes from people who don't want to use it.

    CHAT COMMAND: !tm - Enables/Disables Auto Thirdperson Melee

    VERSION 1.1
    Corrected an invalid edict error message.

    VERSION 1.2
    Actually fixed the invalid edict error message.
    Added l4d2_thirdperson_melee.cfg and convar l4d2_tm_slot
    which allows you to change the melee slot the plugin supports,
    for those of us that don't use the standard melee slot.

    VERSION 1.3
    Added the chainsaw.

    VERSION 1.4
    Added cookie support for saving auto thirdperson melee preference.
    Added convar to enable/disable saving preferences.
    DONT FORGET TO DELETE YOUR OLD CFG!!!

    VERSION 1.5
    Added support for splitscreen players using the preference saving system.

    VERSION 1.6
    Fixed a bug when you drop your melee weapon in thirdperson it would lock your view
    into thirdperson regardless of what weapon you would switch to.
    Also slightly shrunk and optimized the code...

    VERSION 1.7
    Converted to new syntax

    Will not be including the .smx file, just use get plugin to compile.
    Please report any bugs and i'll fix them as soon as I can.

    -MY PLUGINS-
    Auto Thirdperson Melee v1.6 - https://forums.alliedmods.net/showthread.php?t=282543
    Improved Prevent M60 Drop v1.1 - https://forums.alliedmods.net/showthread.php?p=2446651
    Pistol Reloading v1.0 - https://forums.alliedmods.net/showthread.php?t=286695

    Last edited by DarkDeviL; 10-18-2021 at 09:06. Reason: Restore to previous version.
    MasterMind420 is offline
    MasterMind420
    BANNED
    Join Date: Nov 2010
    Old 05-09-2016 , 23:35   Re: [L4D2]Auto Thirdperson Melee
    Reply With Quote #2

    VERSION 1.1
    Corrected an invalid edict error message.
    MasterMind420 is offline
    cravenge
    Veteran Member
    Join Date: Nov 2015
    Location: Chocolate Factory
    Old 05-10-2016 , 01:41   Re: [L4D2]Auto Thirdperson Melee
    Reply With Quote #3

    Hmmm, it seems it conflicts with the addon from GameMaps called "L4D2 Third Person View".
    cravenge is offline
    MasterMind420
    BANNED
    Join Date: Nov 2010
    Old 05-10-2016 , 07:58   Re: [L4D2]Auto Thirdperson Melee
    Reply With Quote #4

    Quote:
    Originally Posted by cravenge View Post
    Hmmm, it seems it conflicts with the addon from GameMaps called "L4D2 Third Person View".
    i'll look into it...a possible fix would be to open the vpk with gcfscape and manually apply the settings to your autoexec.cfg, bypass using the vpk, if possible. This does work with thirdpersonshoulder command.
    MasterMind420 is offline
    SELL
    Junior Member
    Join Date: Feb 2016
    Old 05-10-2016 , 14:41   Re: [L4D2]Auto Thirdperson Melee
    Reply With Quote #5

    L 05/10/2016 - 21:21:07: [SM] [0] Line 40, C:\Desktop\l4d2_auto_thirdperson_melee.sp::On GameFrame()
    L 05/10/2016 - 21:21:07: [SM] Native "GetEdictClassname" reported: Invalid edict (-1 - -1)
    SELL is offline
    MasterMind420
    BANNED
    Join Date: Nov 2010
    Old 05-10-2016 , 16:05   Re: [L4D2]Auto Thirdperson Melee
    Reply With Quote #6

    Quote:
    Originally Posted by SELL View Post
    L 05/10/2016 - 21:21:07: [SM] [0] Line 40, C:\Desktop\l4d2_auto_thirdperson_melee.sp::On GameFrame()
    L 05/10/2016 - 21:21:07: [SM] Native "GetEdictClassname" reported: Invalid edict (-1 - -1)
    hmm, and you updated to v 1.1? I discovered that last night and corrected it, but maybe not properly...just confirm your not using the first version I released...
    MasterMind420 is offline
    MasterMind420
    BANNED
    Join Date: Nov 2010
    Old 05-10-2016 , 19:36   Re: [L4D2]Auto Thirdperson Melee
    Reply With Quote #7

    ok so i just double checked and the invalid edict error is still there, i'll fix it asap, thanks for the report Sell.
    MasterMind420 is offline
    MasterMind420
    BANNED
    Join Date: Nov 2010
    Old 05-10-2016 , 20:03   Re: [L4D2]Auto Thirdperson Melee
    Reply With Quote #8

    Ok this is just for cravenge to test out, to see if it fixes his problems...
    I know the c_thirdpersonshoulder convarquerycheck works, however the other two may not...
    Attached Files
    File Type: smx l4d2_auto_thirdperson_melee.smx (5.5 KB, 543 views)
    File Type: sp Get Plugin or Get Source (l4d2_auto_thirdperson_melee.sp - 1136 views - 3.1 KB)

    Last edited by MasterMind420; 05-10-2016 at 20:30.
    MasterMind420 is offline
    MasterMind420
    BANNED
    Join Date: Nov 2010
    Old 05-10-2016 , 21:47   Re: [L4D2]Auto Thirdperson Melee
    Reply With Quote #9

    I can already see right now that while i may have corrected your problem, also in doing so I broke the enable disable option...so an update is needed...either tonight or tomorrow. Either way let me know your results?

    Last edited by MasterMind420; 05-10-2016 at 21:47.
    MasterMind420 is offline
    MasterMind420
    BANNED
    Join Date: Nov 2010
    Old 05-10-2016 , 22:36   Re: [L4D2]Auto Thirdperson Melee
    Reply With Quote #10

    VERSION 1.2 Uploaded.
    Cravenge sorry for the screw up but I uploaded the other version with my own melee slot set to 6. I'm sure you figured it out, but the new version I posted will not include the changes I made for you, I need confirmation they work before i'll apply them, and on top of that it'll require some modifications to work as I originally intended, disabled by default for clients, which the version I gave you does not do that...it'll take some tinkering. Either that or i'll maintain 2 seperate versions...

    Last edited by MasterMind420; 05-10-2016 at 22:37.
    MasterMind420 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 08:43.


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