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