Left 4 Dead 2

Left 4 Dead 2

Third Person Aim Fix [Type B]
 This topic has been pinned, so it's probably important
PLUIE  [developer] 11 May @ 8:42am
Full custom script for Type B (Not A)
( Mouse wheel ): Zooms in and out the camera.

( V ): Switches between first-person and third-person views.

( Mouse middle click ): When the weapon has a scope, it activates first-person scope zoom from third person view. (If no scope is equipped, It switches between first-person and third-person views.)

( P ): Smooth Cam *ON *OFF*

( O ): Reset setting

///The modified version of H.U.N.K'S THIRDPERSON REMAKE EDITION, adjusted for Type B //▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰ Execute zoom from thirdperson to firstperson view★new function★(*For weapons without a scope, only the perspective changes.) bind "Mouse3" "zoom_switch" alias "zoom_switch" "zoom_switch+" alias "zoom_switch+" "firstperson; +zoom;wait 9; -zoom; alias zoom_switch zoom_switch-" alias "zoom_switch-" "+zoom;wait 9; -zoom; thirdpersonshoulder; alias zoom_switch zoom_switch+" //▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰ AIM SECTION: ★ //// AIM SECTION_Left ⬆️ bind "OFF" "+aim" alias "+aim" "alias +aim -aim" alias "+aim" "+speed; +fov; cam_idealdist 27; crosshair 1;cam_ideallag 4;wait 10;cam_ideallag 0;unbind V; unbind uparrow; unbind downarrow; unbind leftarrow; unbind rightarrow" alias "-aim" "-speed; -fov ; cam_idealdist 1000;c_thirdpersonshoulderheight 0;c_thirdpersonshoulderoffset -14; crosshair 1;cam_ideallag 4;wait 10;cam_ideallag 0;bind V thirdperson-; bind uparrow up; bind downarrow down; bind leftarrow left; bind rightarrow right" //// AIM SECTION_Right ⬇️ bind "OFF" "+aim2" alias "+aim2" "alias +aim2 -aim2" alias "+aim2" "+speed; +fov; cam_idealdist 27 ; crosshair 1;cam_ideallag 4;wait 10;cam_ideallag 0;unbind V; unbind uparrow; unbind downarrow; unbind leftarrow; unbind rightarrow" alias "-aim2" "-speed; -fov ;cam_idealdist 1000;c_thirdpersonshoulderheight 0;c_thirdpersonshoulderoffset 19; crosshair 1;cam_ideallag 4;wait 10;cam_ideallag 0;bind V thirdperson-2; bind uparrow up; bind downarrow down; bind leftarrow left; bind rightarrow right" //// AIM SECTION_Right ⬅️ bind "OFF" "+aim3" alias "+aim3" "alias +aim3 -aim3" alias "+aim3" "+speed; +fov; cam_idealdist 27; crosshair 1;cam_ideallag 4;wait 10;cam_ideallag 0;unbind V; unbind uparrow; unbind downarrow; unbind leftarrow; unbind rightarrow" alias "-aim3" "-speed; -fov ;cam_idealdist 1000;c_thirdpersonshoulderheight 0; c_thirdpersonshoulderoffset 21; crosshair 1;cam_ideallag 4;wait 10;cam_ideallag 0;bind V thirdperson-3; bind uparrow up; bind downarrow down; bind leftarrow left; bind rightarrow right" //// AIM SECTION_Right ➡️ bind "OFF" "+aim4" alias "+aim4" "alias +aim4 -aim4" alias "+aim4" "+speed; +fov; cam_idealdist 27; crosshair 1;cam_ideallag 4;wait 10;cam_ideallag 0;unbind V; unbind uparrow; unbind downarrow; unbind leftarrow; unbind rightarrow" alias "-aim4" "-speed; -fov ;cam_idealdist 1000;c_thirdpersonshoulderheight 0; c_thirdpersonshoulderoffset 25; crosshair 1;cam_ideallag 4;wait 10;cam_ideallag 0;bind V thirdperson-4; bind uparrow up; bind downarrow down; bind leftarrow left; bind rightarrow right" ▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰ SWITCH CAM TYPE: //// alias "up" "bind shift +aim; -aim; playgamesound Magnum.Slideback" alias "down" "bind shift +aim2; -aim2; playgamesound Magnum.Slideback" alias "left" "bind shift +aim3; -aim3; playgamesound Magnum.Slideback" alias "right" "bind shift +aim4; -aim4; playgamesound Magnum.Slideback" unbind "uparrow" unbind "downarrow" unbind "leftarrow" unbind "rightarrow" //▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰ THIRDPERSON/FIRSTPERSON CAM ////*DON'T TOUCH THESE IF YOU DON'T KNOW WHAT YOU ARE DOING!* //// This (thirdperson+) controls which "BUTTON" will activate the thirdperson camera (just change the "v" to whatever key you want to) //// ⬆️ bind "V" "thirdperson+" alias "thirdperson+" "thirdpersonshoulder; crosshair 1; bind shift +aim; bind V thirdperson-; bind uparrow up; bind downarrow down; bind leftarrow left; bind rightarrow right;" alias "thirdperson-" "thirdpersonshoulder; crosshair 1; bind V thirdperson+; unbind uparrow; unbind downarrow; unbind leftarrow; unbind rightarrow" //alias "thirdperson-" "firstperson; crosshair 1; bind shift +speed; bind V thirdperson+; unbind uparrow; unbind downarrow; unbind leftarrow; unbind rightarrow" //// ⬇️ bind "off" "thirdperson+2" alias "thirdperson+2" "thirdpersonshoulder; crosshair 1; bind shift +aim2; bind V thirdperson-2; bind uparrow up; bind downarrow down; bind leftarrow left; bind rightarrow right;" alias "thirdperson-2" "thirdpersonshoulder; crosshair 1; bind V thirdperson+2; unbind uparrow; unbind downarrow; unbind leftarrow; unbind rightarrow" //// ⬅️ bind "off" "thirdperson+3" alias "thirdperson+3" "thirdpersonshoulder; crosshair 1; bind shift +aim3; bind V thirdperson-3; bind uparrow up; bind downarrow down; bind leftarrow left; bind rightarrow right;" alias "thirdperson-3" "thirdpersonshoulder; crosshair 1; bind V thirdperson+3; unbind uparrow; unbind downarrow; unbind leftarrow; unbind rightarrow" //// ➡️ bind "off" "thirdperson+4" alias "thirdperson+4" "thirdpersonshoulder; crosshair 1; bind shift +aim4; bind V thirdperson-4; bind uparrow up; bind downarrow down; bind leftarrow left; bind rightarrow right;" alias "thirdperson-4" "thirdpersonshoulder; crosshair 1; bind V thirdperson+4; unbind uparrow; unbind downarrow; unbind leftarrow; unbind rightarrow" //▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰ FOV SECTION: //// bind "OFF" "+fov" alias "+fov" "alias +fov -fov" alias "+fov" "fov_desired 0; cl_viewmodelfovsurvivor 77; playgamesound Magnum.SlideForward;" alias "-fov" "fov_desired 95; cl_viewmodelfovsurvivor 87; // playgamesound Magnum.Slideback;" "fov_desired" "95" //▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰ SMOOTH CAM: //// (ON:cam_snapto 0) (OFF:cam_snapto 1) bind "p" "+smooth_cam" alias "+smooth_cam -smooth_cam" alias "+smooth_cam" "cam_snapto 1;bind p -smooth_cam;playgamesound Menu.Select" alias "-smooth_cam" "cam_snapto 0; bind p +smooth_cam;playgamesound Menu.Select" "cam_snapto" "0" //▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰ THIRDPERSON AIM ACCURACY: //// *DONT TOUCH THESE*) "c_thirdpersonshoulderaimdist" "100000" //▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰ CAM DISTANCE: //// bind "mwheelup" "cam_40" alias "cam_40" "c_maxdistance 40;cam_idealdist 40; bind mwheeldown cam_50; unbind mwheelup; playgamesound Menu.Select" alias "cam_50" "c_maxdistance 50;cam_idealdist 50; bind mwheeldown cam_60; bind mwheelup cam_40; playgamesound Menu.Select" alias "cam_60" "c_maxdistance 60;cam_idealdist 60; bind mwheeldown cam_70; bind mwheelup cam_50; playgamesound Menu.Select" alias "cam_70" "c_maxdistance 70;cam_idealdist 70; bind mwheeldown cam_80; bind mwheelup cam_60; playgamesound Menu.Select" alias "cam_80" "c_maxdistance 80;cam_idealdist 80; bind mwheeldown cam_90; bind mwheelup cam_70; playgamesound Menu.Select" alias "cam_90" "c_maxdistance 90;cam_idealdist 90; bind mwheeldown cam_100; bind mwheelup cam_80; playgamesound Menu.Select" alias "cam_100" "c_maxdistance 100;cam_idealdist 100; unbind mwheeldown; bind mwheelup cam_90;" "cam_40" //▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰ CAM HEIGHT: //// *Should also be tweaked on the "AIM SECTION"* c_thirdpersonshoulderheight 0 //▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰ MISC *DONT TOUCH THESE*: //// "cam_ideallag" "0" "c_mindistance" "20" "c_thirdpersonshoulderdist" "720" "crosshair" "1" firstperson //// RESET SECTION: //// bind "o" "exec autoexec.cfg; playgamesound Menu.Select" //▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰ user custom 🔽🔽🔽🔽
Last edited by PLUIE; 30 May @ 8:27am