Left 4 Dead 2

Left 4 Dead 2

Nescius' button binder base
Doc903 2 Dec, 2024 @ 2:44pm
Assistance or Example?
So, question. I am trying to make a config that deals with aiming, and I have this added into it:

crosshair 0 alias +fovzoom "fov_desired 45; +speed; cl_viewmodelfovsurvivor 37; bind Mouse2 +fovzoom; crosshair 1" alias -fovzoom "fov_desired 90; -speed; cl_viewmodelfovsurvivor 74; -duck; crosshair 0" bind Mouse2 "+fovzoom"

It makes it so the player's fov zooms in upon right-click, acting as a sort of aiming system similar to WWZ; something missing, however, is increased accuracy to allow the aim to actually function.

Is there a function related to a weapon's bullet spread that I would be able to use this with to create the more accurate aiming boost?
< >
Showing 1-3 of 3 comments
Nescius  [developer] 3 Dec, 2024 @ 3:04pm 
Other than giving weapon a laser not aware of a way to make a gun more accurate via vscript
Last edited by Nescius; 3 Dec, 2024 @ 3:04pm
Doc903 5 Dec, 2024 @ 8:35am 
Originally posted by Nescius:
Other than giving weapon a laser not aware of a way to make a gun more accurate via vscript
I decided to go ahead with that, since it had the perfect "in-between" accuracy between standing and crouching alone. Though, how would I set this up in a way that one wouldn't need cheats for?
Nescius  [developer] 5 Dec, 2024 @ 8:58am 
Example how you would use this addon assuming you have scripting knowledge:

let's say in director_base_addon.nut you have something like this

local function zoom( player ) { printl("handle of the player that used the command: " + player); } NesciusButtonBinder.RegisterFunction("commandname", zoom);

when you have above code setup then players connected to your game can bind it to 'g' key like this:

bind g "setinfo nescmd commandname; taunt; nescmd 0"
< >
Showing 1-3 of 3 comments
Per page: 1530 50