AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D & L4D2] Scope Level Adjust v2.4 [12-April-2023] (https://forums.alliedmods.net/showthread.php?t=341112)

NoroHime 01-01-2023 07:13

[L4D & L4D2] Scope Level Adjust v2.4 [12-April-2023]
 
17 Attachment(s)
about
  • using forward key and back key to adjust scope level or config yourself
  • can loop level between min and max
  • can hold key to adjust or adjust if not holding key
  • option to allow which non-scopable weapon using scope, with zoom animation
  • tested on l4d1 and l4d2
  • experimental: use mouse wheels to adjust scope level without binding keys


ConVar

PHP Code:


// max fov zoom level, greater mean see nearer
// higher than 90 will cause 'ultra wide angle' and view can throuth the wall
scope_level_max "89"

// min fov zoom level, less mean see farer, dont suggest less than 1
scope_level_min "1"

// zoom animating step, 5=linear fov but weird animating
// -20=calc to linear scope level by 20%
scope_level_step "-33"

// key to decrease level 16=Back(s), 0=disabled
scope_level_dec "16"

// key to increase level 8=Forward(w) 0=disabled 32=Use(e)
scope_level_inc "8"

// hold key to adjust level, negative is reverse logic
// 131072=most hold shift -131072=if not hold shift key
// see more key on /include/entity_prop_stocks.inc
scope_level_hold "0"

// when zoom level reached bound value, reset level to cause loop
scope_level_loop "0"

// key to cancel zoom level 2048=shove 8192=reload 1=attack 2=jump
scope_level_cancel "10242"

// does enable fake scope on all non-scopable weapon 0=disabled 40=enabled with 40 initial fov
scope_level_fake "40"

// weapon list of fake scope feature, separate by comma, no spaces
scope_level_fake_list "weapon_rifle,weapon_rifle_m60,weapon_rifle_ak47,weapon_smg,weapon_smg_silenced,weapon_smg_mp5"

// add extra zoom sound when open zoom, to fix vanilla game only play on cancel zoom
scope_level_sound "1"

// announce types 0=dont announce 1=center 2=chat 4=hint. add numbers together you want
scope_level_announce "2"

// expermental feature, speculate mouse wheels to adjust scope level,
// prevent weapon switch, 1=enabled if speculation failed increase level
// 2=same as 1 but decrease 0=disabled
scope_level_wheels "1" 

changelog
  • v1.0 just releases; 1-January-2023
  • v1.1 new features and fix:
    - new ConVar *_hold to control which key hold to adjust scope level or vice versa,
    - new ConVar *_inc, *_dec to specify which key to adjust, defaults is forward and back,
    - new ConVar *_loop to allow loop zoom level when reached bound level, usually combined use when set *_inc only or *_dec only,
    - fix sg552 wrong scope level,
    - to cancel zoom dont have to tap zoom key twice anymore; 7-January-2023
  • v2.0 new features and fixes:
    - add ConVar *_cancel to fix scope level wont cancel when reload/shove/jump, this option can use for support '[L4D & L4D2] Unscope Sniper On Shoot' if add 1=attack,
    - new ConVar *_fake to allow non-scopable weapon using scope with animation,
    - new ConVar *_fake_list to control which weapon allow access *_fake feature,
    - new ConVar *_sound to add extra zoom sound when open scope, to fix vanilla game only play on cancel zoom; 13-January-2023
  • v2.1 new feature and fix:
    - support scope adjust hint on pickup available weapon and translation,
    - new ConVar *_announce to control pickup hint text position,
    - optimize fake scope logic to fix sometime work unexpected,
    - version tested on l4d1 and l4d2; 21-January-2023
  • v2.1.1 fixes:
    - fix fake scope features not cancel properly by player being attacked,
    - fix *_cancel not included game default behavior keys cause issue; 21-January-2023
  • v2.2 new features:
    - new experimental feature use mouse wheels to adjust level, but these speculation
    - new ConVar *_wheels to enabled mouse wheels features, 1=increase when failed speculation, 2=decrease,
    - fix pick hint message sometime not happen; 22-January-2023
  • v2.3 new feature:
    - add negative value range for *_step, if set -20 will calc FOV as linear scope level automatically by 20%; 27-January-2023
  • v2.3.1 for fake scope feature: cancel scope when auto-reload or be hurt, to make close to vanilla sniper behavior; 8-February-2023
  • v2.4 new command sm_zoomout to allow user run key binding script (see thread) to using modern game feature: hold to open scope and release to cancel the scope on available weapons; 12-April-2023

.cfg scripts make scoping like modern game
PHP Code:

// right click: hold to zoom, wheel key is 'mouse3'
bind mouse2 "+zooms";
alias +zooms "+zoom";
alias -zooms "-zoom;sm_zoomout";
// v key: shove, not requirement
bind v +attack2

todo
  • i try make non-scopable weapons view model appear on screen if these can be


Installation
  • put l4d_scope_level.smx on /plugins/
  • put l4d_scope_level.phrases.txt on /translations/

replay_84 01-01-2023 14:46

Re: [L4D & L4D2] Scope Level Adjust [1-January-2023]
 
Sounds cool. Thanks for sharing.

SDArt 01-05-2023 15:43

Re: [L4D & L4D2] Scope Level Adjust [1-January-2023]
 
Tested on l4d2 sg552 zoom is locked and doesn't allow me to walk without zooming also here is an idea since you binded keys to zoom in/out properly the plugin could be modified resemble the CSS/1.6 zoom e.g: Binding 'e' key to adjust scope level twice after zoom.
I think people will find it amusing & great job as always.

replay_84 01-06-2023 04:14

Re: [L4D & L4D2] Scope Level Adjust [1-January-2023]
 
And what about a "hold to zoom" feature like in most other games. Scripts for this never seem to work well.

NoroHime 01-06-2023 19:07

Re: [L4D & L4D2] Scope Level Adjust [1-January-2023]
 
Quote:

Originally Posted by replay_84 (Post 2796624)
And what about a "hold to zoom" feature like in most other games. Scripts for this never seem to work well.

infact I wrote newer version, that hold extra key to adjust, or adjust when not holding, but i want listen more idea to know people real needed,
and another mode that use one key only, when adjust to border value then reset scope level, how these sounds?

replay_84 01-06-2023 20:10

Re: [L4D & L4D2] Scope Level Adjust [1-January-2023]
 
Quote:

Originally Posted by NoroHime (Post 2796662)
infact I wrote newer version, that hold extra key to adjust, or adjust when not holding, but i want listen more idea to know people real needed,
and another mode that use one key only, when adjust to border value then reset scope level, how these sounds?

Ah sorry, I did not mean to change zoom while holding , but to actually go to zoom while holding e.g mouse2.

What I had to address when using your plugin is that I can't go out of the zoom mode anymore when using melee attack. But on the other hand, I probably never had to get used to this behaviour when a hold to aim/zoom would exsist in L4D. (as it would just zoom out again when releasing mouse2)

NoroHime 01-06-2023 21:19

Re: [L4D & L4D2] Scope Level Adjust [1-January-2023]
 
Quote:

Originally Posted by replay_84 (Post 2796664)
Ah sorry, I did not mean to change zoom while holding , but to actually go to zoom while holding e.g mouse2.

What I had to address when using your plugin is that I can't go out of the zoom mode anymore when using melee attack. But on the other hand, I probably never had to get used to this behaviour when a hold to aim/zoom would exsist in L4D. (as it would just zoom out again when releasing mouse2)

infact i dont really understand your mean, anyway i updated it more optional, hope that help for you
Quote:

ConVar

PHP Code:

// key to decrease level 16=Back(s), 0=disabled
scope_level_dec "16"

// key to increase level 8=Forward(w) 0=disabled 32=Use(e)
scope_level_inc "8"

// hold key to make adjust level available, negative is reverse logic
// 131072=most hold shift -131072=if not hold shift key
//  see more key on /include/entity_prop_stocks.inc
scope_level_hold "131072"

// when zoom level reached bound value, reset level to cause loop
scope_level_loop "1" 

changelog
  • v1.1 new features and fix:
    - new ConVar *_hold to control which key hold to adjust scope level or vice versa,
    - new ConVar *_inc, *_dec to specify which key to adjust, defaults is forward and back,
    - new ConVar *_loop to allow loop zoom level when reached bound level, usually combined use when set *_inc only or *_dec only,
    - fix sg552 wrong scope level,
    - to cancel zoom dont have to tap zoom key twice anymore; 7-January-2023


replay_84 01-07-2023 04:25

Re: [L4D & L4D2] Scope Level Adjust [1-January-2023]
 
Quote:

Originally Posted by NoroHime (Post 2796665)
infact i dont really understand your mean, anyway i updated it more optional, hope that help for you

I'm talking about holding vs. clicking feature. https://www.youtube.com/watch?v=s3AaQzBqd1M

All modern games support that for a while. But it's a missing game feature and probably a bit unreleated to your plugin. I was just curious if it's possible to do with plugins (as you already added features I didn't see before anyway)

swiftswing1 01-09-2023 18:04

Re: [L4D & L4D2] Scope Level Adjust v1.1 [7-January-2023]
 
i guess i have a similar issue to the person above - is there a way to exit zoom when reloading?

by default, if in zoom with sniper or sg552 and you input reload (or melee-mouse2), it exits the scope and goes back to first person pov. however, when using this mod and in custom/adjusted zoom view, when you reload/melee, you still retain scope view instead of exiting it like normal. is there a way to go back to first person?

other than that, really really great plugin! very nice! :D

EDIT: personally would be nice to include chat hints?

NoroHime 01-11-2023 03:57

Re: [L4D & L4D2] Scope Level Adjust [1-January-2023]
 
Quote:

Originally Posted by replay_84 (Post 2796675)
I'm talking about holding vs. clicking feature. https://www.youtube.com/watch?v=s3AaQzBqd1M

All modern games support that for a while. But it's a missing game feature and probably a bit unreleated to your plugin. I was just curious if it's possible to do with plugins (as you already added features I didn't see before anyway)

i was think similar idea past time, here must few point to known:
1)we shouldnt change right click bahavior to another that will prevent player shove, so might requires player bind other keys
2)you might meaning ADS experience, actually it better using a model to instead script, but we just have very few mods, i only found two "awp,magnum" ADS model
3)to handles the custom view model on L4D2 using plugin i think very hard, the solution i can think is register sm command, it only scope, not any model change like AIMING on screen center

NoroHime 01-11-2023 04:00

Re: [L4D & L4D2] Scope Level Adjust v1.1 [7-January-2023]
 
Quote:

Originally Posted by swiftswing1 (Post 2796811)
i guess i have a similar issue to the person above - is there a way to exit zoom when reloading?

by default, if in zoom with sniper or sg552 and you input reload (or melee-mouse2), it exits the scope and goes back to first person pov. however, when using this mod and in custom/adjusted zoom view, when you reload/melee, you still retain scope view instead of exiting it like normal. is there a way to go back to first person?

other than that, really really great plugin! very nice! :D

EDIT: personally would be nice to include chat hints?

ah you mean cancel scope on reload, and translation support, i got it add on plan

NoroHime 01-12-2023 19:14

Re: [L4D & L4D2] Scope Level Adjust v2.0 [13-January-2023]
 
overhaul update i think

ConVar

PHP Code:

// key to cancel zoom level 2048=shove 8192=reload 1=attack 2=jump
scope_level_cancel "10242"

// does enable fake scope on all non-scopable weapon 0=disabled 40=enabled with 40 initial fov
scope_level_fake "40"

// weapon list of fake scope feature, separate by comma, no spaces
scope_level_fake_list "weapon_rifle,weapon_rifle_m60,weapon_rifle_ak47,weapon_smg,weapon_smg_silenced,weapon_smg_mp5"

// add extra zoom sound when open zoom, to fix vanilla game only play on cancel zoom
scope_level_sound "1"

// hold key to adjust level, negative is reverse logic
// 131072=most hold shift -131072=if not hold shift key
// see more key on /include/entity_prop_stocks.inc
scope_level_hold "0"

// max fov zoom level, greater mean see nearer
// higher than 90 will cause 'ultra wide angle' and view can throuth the wall
scope_level_max "89"

// min fov zoom level, less mean see farer, dont suggest less than 1
scope_level_min "1" 

changelog
  • v2.0 new features and fixes:
    - add ConVar *_cancel to fix scope level wont cancel when reload/shove/jump, this option can use for support '[L4D & L4D2] Unscope Sniper On Shoot' if add 1=attack,
    - new ConVar *_fake to allow non-scopable weapon using scope with animation,
    - new ConVar *_fake_list to control which weapon allow access *_fake feature,
    - new ConVar *_sound to add extra zoom sound when open scope, to fix vanilla game only play on cancel zoom; 13-January-2023
    - changed some ConVars default value and description

swiftswing1 01-13-2023 08:50

Re: [L4D & L4D2] Scope Level Adjust v2.0 [13-January-2023]
 
you are brilliant! thanks for the additions :D everything seems to be working!

SDArt 01-14-2023 23:10

Re: [L4D & L4D2] Scope Level Adjust v2.0 [13-January-2023]
 
Here to report with this cvars:

scope_level_max "89"

scope_level_min "1"

scope_level_step "5"

scope_level_dec "0"

scope_level_inc "32"

scope_level_hold "-131072"

scope_level_loop "0"

scope_level_cancel "10240"

scope_level_fake "40"

"weapon_rifle_desert,weapon_grenade_launcher, weapon_rifle,weapon_rifle_m60,weapon_rifle_ak 47,weapon_smg,weapon_smg_silenced,weapon_smg_ mp5"

scope_level_sound "1"


Fake scope feature has the following kinks- when getting damage you can't unscope or scope at all, if you scope then pick other main weapon it'll remain in zoom until you switch weapon.

NoroHime 01-20-2023 12:45

Re: [L4D & L4D2] Scope Level Adjust v2.0 [13-January-2023]
 
Quote:

Originally Posted by SDArt (Post 2797169)
Here to report with this cvars:

scope_level_max "89"

scope_level_min "1"

scope_level_step "5"

scope_level_dec "0"

scope_level_inc "32"

scope_level_hold "-131072"

scope_level_loop "0"

scope_level_cancel "10240"

scope_level_fake "40"

"weapon_rifle_desert,weapon_grenade_launcher, weapon_rifle,weapon_rifle_m60,weapon_rifle_ak 47,weapon_smg,weapon_smg_silenced,weapon_smg_ mp5"

scope_level_sound "1"


Fake scope feature has the following kinks- when getting damage you can't unscope or scope at all, if you scope then pick other main weapon it'll remain in zoom until you switch weapon.

thanks, updated

Quote:

ConVar

PHP Code:

// announce types 0=dont announce 1=center 2=chat 4=hint. add numbers together you want
scope_level_announce "2" 

changelog
  • v2.1 new feature and fix:
    - support scope adjust hint on pickup available weapon and translation,
    - new ConVar *_announce to control pickup hint text position,
    - optimize fake scope logic to fix sometime work unexpected,
    - version tested on l4d1 and l4d2; 21-January-2023

Installation
  • put l4d_scope_level.smx on /plugins/
  • put l4d_scope_level.phrases.txt on /translations/


swiftswing1 01-20-2023 18:47

Re: [L4D & L4D2] Scope Level Adjust v2.1 [21-January-2023]
 
you forgot to upload the translation file :)

SDArt 01-20-2023 23:42

Re: [L4D & L4D2] Scope Level Adjust v2.1 [21-January-2023]
 
Tested new version have the following bugs with fake scope- While scoping and reloading a weapon you can't undo the scope, when getting damage while scoping you can't scope out with mouse key using this may be the problem?

NoroHime 01-21-2023 06:39

Re: [L4D & L4D2] Scope Level Adjust v2.1 [21-January-2023]
 
Quote:

Originally Posted by SDArt (Post 2797625)
Tested new version have the following bugs with fake scope- While scoping and reloading a weapon you can't undo the scope, when getting damage while scoping you can't scope out with mouse key using this may be the problem?

ah i was uploaded it but not appear on attachment list, anyway i reupload it again.
i check your config you remove jump key on *_cancel, these sounds weird i cant copy the issue again
---
finally issue found, looks zoom event happen when player has m_hZoomOwner, and this also trigger by non-scopable weapons.

updated

Quote:

  • v2.1.1 fixes:
    - fix fake scope features not cancel properly by player being attacked,
    - fix *_cancel not included game default behavior keys cause issue; 21-January-2023


NoroHime 01-21-2023 21:19

Re: [L4D & L4D2] Scope Level Adjust v2.1.1 [21-January-2023]
 
update 2.2, finally can use mouse wheels to adjust that, but work method is speculation, if player only 2 weapons or less, speculation will failed because wheel up same as wheel down, then mouse wheel will follow ConVar *_wheels to increases or decreases

Quote:


ConVar

PHP Code:

// expermental feature, speculate mouse wheels to adjust scope level,
// prevent weapon switch, 1=enabled if speculation failed increase level
// 2=same as 1 but decrease 0=disabled
scope_level_wheels "1" 

change log
  • v2.2 new features:
    - new experimental feature use mouse wheels to adjust level, but these is speculation
    - new ConVar *_wheels to enabled mouse wheels features, 1=increase when failed speculation, 2=decrease,
    - fix pick hint message sometime not happen; 22-January-2023


SDArt 01-24-2023 18:00

Re: [L4D & L4D2] Scope Level Adjust v2.2 [22-January-2023]
 
This version works great thanks for the dilligence.

NoroHime 01-26-2023 23:58

Re: [L4D & L4D2] Scope Level Adjust v2.2 [22-January-2023]
 
got a method to adjust scope level linear, rather than simple fov add/reduce, from chatting with my sister who is six years younger than me haha.
if set *_step to -20 then mean fov -= 20%

update
Quote:


PHP Code:

// zoom animating step, 5=linear fov but weird animating
// -20=calc to linear scope level by 20%
scope_level_step "-33" 

changelog
  • v2.3 new feature:
    - add negative value range for *_step, if set -20 will calc FOV as linear scope level automatically by 20%; 27-January-2023


swiftswing1 02-02-2023 03:43

Re: [L4D & L4D2] Scope Level Adjust v2.3 [27-January-2023]
 
i still get stuck in custom scope view when i get hit by infected.

also it seems when i'm in custom scope view -> finish clip then autoreload, the scope still remains. any solutions? using latest version. thanks in advance.

PHP Code:

// announce types 0=dont announce 1=center 2=chat 4=hint. add numbers together you want
// -
// Default: "2"
scope_level_announce "0"

// key to cancel zoom level 2048=shove 8192=reload 1=attack 2=jump
// -
// Default: "10242"
scope_level_cancel "10242"

// key to decrease level 16=Back(s), 0=disabled
// -
// Default: "16"
scope_level_dec "16"

// does enable fake scope on all non-scopable weapon 0=disabled 40=enabled with 40 initial fov
// -
// Default: "40"
scope_level_fake "40"

// weapon list of fake scope feature, separate by comma, no spaces
// -
// Default: "weapon_rifle,weapon_rifle_m60,weapon_rifle_ak47,weapon_smg,weapon_smg_silenced,weapon_smg_mp5"
scope_level_fake_list ""

// hold key to adjust level, negative is reverse logic
// 131072=most hold shift -131072=if not hold shift key
// see more key on /include/entity_prop_stocks.inc
// -
// Default: "0"
scope_level_hold "131072"

// key to increase level 8=Forward(w) 0=disabled 32=Use(e)
// -
// Default: "8"
scope_level_inc "8"

// when zoom level reached bound value, reset level to cause loop
// -
// Default: "1"
scope_level_loop "0"

// max fov zoom level, greater mean see nearer
// higher than 90 will cause 'ultra wide angle' and view can throuth the wall
// -
// Default: "89"
scope_level_max "69"

// min fov zoom level, less mean see farer, dont suggest less than 1
// -
// Default: "1"
scope_level_min "1"

// add extra zoom sound when open zoom, to fix vanilla game only play on cancel zoom
// -
// Default: "1"
scope_level_sound "1"

// zoom animating step, 5=linear fov but weird animating
// -20=calc to linear scope level by 20%
// -
// Default: "-33"
scope_level_step "2

// expermental feature, speculate mouse wheels to adjust scope level,
// prevent weapon switch, 1=enabled if speculation failed increase level
// 2=same as 1 but decrease 0=disabled
// -
// Default: "
1"
scope_level_wheels "
0


NoroHime 02-07-2023 12:37

Re: [L4D & L4D2] Scope Level Adjust v2.3 [27-January-2023]
 
Quote:

Originally Posted by swiftswing1 (Post 2798455)
i still get stuck in custom scope view when i get hit by infected.

also it seems when i'm in custom scope view -> finish clip then autoreload, the scope still remains. any solutions? using latest version. thanks in advance.

PHP Code:

// announce types 0=dont announce 1=center 2=chat 4=hint. add numbers together you want
// -
// Default: "2"
scope_level_announce "0"

// key to cancel zoom level 2048=shove 8192=reload 1=attack 2=jump
// -
// Default: "10242"
scope_level_cancel "10242"

// key to decrease level 16=Back(s), 0=disabled
// -
// Default: "16"
scope_level_dec "16"

// does enable fake scope on all non-scopable weapon 0=disabled 40=enabled with 40 initial fov
// -
// Default: "40"
scope_level_fake "40"

// weapon list of fake scope feature, separate by comma, no spaces
// -
// Default: "weapon_rifle,weapon_rifle_m60,weapon_rifle_ak47,weapon_smg,weapon_smg_silenced,weapon_smg_mp5"
scope_level_fake_list ""

// hold key to adjust level, negative is reverse logic
// 131072=most hold shift -131072=if not hold shift key
// see more key on /include/entity_prop_stocks.inc
// -
// Default: "0"
scope_level_hold "131072"

// key to increase level 8=Forward(w) 0=disabled 32=Use(e)
// -
// Default: "8"
scope_level_inc "8"

// when zoom level reached bound value, reset level to cause loop
// -
// Default: "1"
scope_level_loop "0"

// max fov zoom level, greater mean see nearer
// higher than 90 will cause 'ultra wide angle' and view can throuth the wall
// -
// Default: "89"
scope_level_max "69"

// min fov zoom level, less mean see farer, dont suggest less than 1
// -
// Default: "1"
scope_level_min "1"

// add extra zoom sound when open zoom, to fix vanilla game only play on cancel zoom
// -
// Default: "1"
scope_level_sound "1"

// zoom animating step, 5=linear fov but weird animating
// -20=calc to linear scope level by 20%
// -
// Default: "-33"
scope_level_step "2

// expermental feature, speculate mouse wheels to adjust scope level,
// prevent weapon switch, 1=enabled if speculation failed increase level
// 2=same as 1 but decrease 0=disabled
// -
// Default: "
1"
scope_level_wheels "
0


updated, well these is intentional, but it make you confusing so changed it now

Quote:

  • v2.3.1 for fake scope feature: cancel scope when auto-reload or be hurt, to make close to vanilla sniper behavior; 8-February-2023


swiftswing1 02-08-2023 08:46

Re: [L4D & L4D2] Scope Level Adjust v2.3 [27-January-2023]
 
Quote:

Originally Posted by NoroHime (Post 2798983)
updated, well these is intentional, but it make you confusing so changed it now

ah! didn't realise it was intentional! my bad, but the update is to my liking :) many thanks!

Sunyata 02-26-2023 05:32

Re: [L4D & L4D2] Scope Level Adjust v2.3.1 [8-February-2023]
 
NoroHime, I must say, you have a fantastic plugin here. I was inquiring about a scope for the M16 [link here] and was graciously directed to this thread.

I'm wondering if you have any plans to incorporate a 'scope' animation for the M16 rifle and SMG, which would function similarly to the animation used when looking through the hunting rifle scope. I'm interested in knowing more about this in particular.

Regards,

Sunyata.

Sunyata 03-04-2023 06:07

Re: [L4D & L4D2] Scope Level Adjust v2.3.1 [8-February-2023]
 
1 Attachment(s)
Despite the fact that the author's plugin functions flawlessly with SM 1.10 builds on my L4D1 and L4D2 servers, it did fail to work on one of my older L4D1 servers that still operates using an SM 1.8 build. As a result, I had to make some slight modifications to the author's script to ensure that it would function properly on my older server.

The code block I had to change is here:
Code:


static const char sWeaponsScopable[][] =

{
        "weapon_rifle", //Sunyata note - had to add this l4d1 weapon code for SM 1.8 builds -although its not needed for SM 1.10 build or higher
        "weapon_smg", //Sunyata note - had to add this l4d1 weapon code for SM 1.8 builds -although its not needed for SM 1.10 build or higher
        "weapon_rifle_sg552",
        "weapon_hunting_rifle",
        "weapon_sniper_military",
        "weapon_sniper_scout",
        "weapon_sniper_awp"
}


NoroHime 04-11-2023 17:58

Re: [L4D & L4D2] Scope Level Adjust v2.4 [12-April-2023]
 
small update
Quote:

changelog
  • v2.4 new command sm_zoomout to allow user run key binding script (see thread) to using modern game feature: hold to open scope and release to cancel the scope on available weapons; 12-April-2023

.cfg scripts make scoping like modern game
PHP Code:

// right click: hold to zoom, wheel key is 'mouse3'
bind mouse2 "+zooms";
alias +zooms "+zoom";
alias -zooms "-zoom;sm_zoomout";
// v key: shove, not requirement
bind v +attack2



replay_84 04-12-2023 16:19

Re: [L4D & L4D2] Scope Level Adjust v2.4 [12-April-2023]
 
Quote:

Originally Posted by NoroHime (Post 2802585)
small update



Sounds good, but how to set it up? I only want to use scope (1 zoom mode) on the hunting rifle. And use "hold to zoom" Possible?

A quick test installing the latest version of this plugin and adding the zoom stuff to autoexec did not work for me. It just opens the scope and zooms in and out clicking mouse2. No unscope. I checked in console and it seems mouse2 is properly set to "+zooms"

NoroHime 04-12-2023 17:08

Re: [L4D & L4D2] Scope Level Adjust v2.4 [12-April-2023]
 
Quote:

Originally Posted by replay_84 (Post 2802640)
Sounds good, but how to set it up? I only want to use scope (1 zoom mode) on the hunting rifle. And use "hold to zoom" Possible?

A quick test installing the latest version of this plugin and adding the zoom stuff to autoexec did not work for me. It just opens the scope and zooms in and out clicking mouse2. No unscope. I checked in console and it seems mouse2 is properly set to "+zooms"

these shoulnt be happen, did you see the console notice message? like
Unknown command: sm_zoomout

NoroHime 04-13-2023 06:29

Re: [L4D & L4D2] Scope Level Adjust v2.4 [12-April-2023]
 
Quote:

Originally Posted by replay_84 (Post 2802640)
Sounds good, but how to set it up? I only want to use scope (1 zoom mode) on the hunting rifle. And use "hold to zoom" Possible?

A quick test installing the latest version of this plugin and adding the zoom stuff to autoexec did not work for me. It just opens the scope and zooms in and out clicking mouse2. No unscope. I checked in console and it seems mouse2 is properly set to "+zooms"

i've re-thinking your issue, you might wrong the scripts intent,
the key mouse2 is right click, if you want override wheel key just bind "mouse3".
anyway i edit that description

replay_84 04-13-2023 15:59

Re: [L4D & L4D2] Scope Level Adjust v2.4 [12-April-2023]
 
Don't know why you talk about mousewheel. I even don't use a mousewheel (gamepad user with mouse&keyboard emulation software)

And of course mouse2 is right click. I tried the said feature with using the mouse only.



"game feature: hold to open scope and release to cancel the scope on available weapons"

That sounds like "hold to aim" . opposite to "click to aim" Something that l4d games can't do. And scripts for this a buggy as hell. So I thought you found a solution.

NoroHime 04-15-2023 03:36

Re: [L4D & L4D2] Scope Level Adjust v2.4 [12-April-2023]
 
Quote:

Originally Posted by replay_84 (Post 2802695)
Don't know why you talk about mousewheel. I even don't use a mousewheel (gamepad user with mouse&keyboard emulation software)

And of course mouse2 is right click. I tried the said feature with using the mouse only.



"game feature: hold to open scope and release to cancel the scope on available weapons"

That sounds like "hold to aim" . opposite to "click to aim" Something that l4d games can't do. And scripts for this a buggy as hell. So I thought you found a solution.

i actually used these hold to aim feature a while time.
i dont kown why you cant use, but here another scripts can use that feature without plugin support, but impefect,
PHP Code:

bind mouse2 "+zooms";
alias +zooms "+zoom;wait 15;-zoom;";
alias -zooms "+zoom;wait 15;-zoom;"


Shimo 01-06-2024 07:28

Re: [L4D & L4D2] Scope Level Adjust v2.4 [12-April-2023]
 
This plugin causes me to not be able to cancel scope. i use the default settings and only switching weapons allows me to cancel scope


All times are GMT -4. The time now is 21:30.

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