Raised This Month: $32 Target: $400
 8% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
NoroHime
Veteran Member
Join Date: Aug 2016
Location: bed
Old 01-11-2023 , 04:00   Re: [L4D & L4D2] Scope Level Adjust v1.1 [7-January-2023]
Reply With Quote #11

Quote:
Originally Posted by swiftswing1 View Post
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!

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 is offline
NoroHime
Veteran Member
Join Date: Aug 2016
Location: bed
Old 01-12-2023 , 19:14   Re: [L4D & L4D2] Scope Level Adjust v2.0 [13-January-2023]
Reply With Quote #12

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
__________________

Last edited by NoroHime; 01-12-2023 at 19:20.
NoroHime is offline
swiftswing1
Member
Join Date: Oct 2020
Old 01-13-2023 , 08:50   Re: [L4D & L4D2] Scope Level Adjust v2.0 [13-January-2023]
Reply With Quote #13

you are brilliant! thanks for the additions everything seems to be working!
swiftswing1 is offline
SDArt
Member
Join Date: Aug 2019
Old 01-14-2023 , 23:10   Re: [L4D & L4D2] Scope Level Adjust v2.0 [13-January-2023]
Reply With Quote #14

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.
SDArt is offline
NoroHime
Veteran Member
Join Date: Aug 2016
Location: bed
Old 01-20-2023 , 12:45   Re: [L4D & L4D2] Scope Level Adjust v2.0 [13-January-2023]
Reply With Quote #15

Quote:
Originally Posted by SDArt View Post
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/
__________________

Last edited by NoroHime; 01-20-2023 at 12:50.
NoroHime is offline
swiftswing1
Member
Join Date: Oct 2020
Old 01-20-2023 , 18:47   Re: [L4D & L4D2] Scope Level Adjust v2.1 [21-January-2023]
Reply With Quote #16

you forgot to upload the translation file
swiftswing1 is offline
SDArt
Member
Join Date: Aug 2019
Old 01-20-2023 , 23:42   Re: [L4D & L4D2] Scope Level Adjust v2.1 [21-January-2023]
Reply With Quote #17

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?
SDArt is offline
NoroHime
Veteran Member
Join Date: Aug 2016
Location: bed
Old 01-21-2023 , 06:39   Re: [L4D & L4D2] Scope Level Adjust v2.1 [21-January-2023]
Reply With Quote #18

Quote:
Originally Posted by SDArt View Post
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
__________________

Last edited by NoroHime; 01-21-2023 at 07:07.
NoroHime is offline
NoroHime
Veteran Member
Join Date: Aug 2016
Location: bed
Old 01-21-2023 , 21:19   Re: [L4D & L4D2] Scope Level Adjust v2.1.1 [21-January-2023]
Reply With Quote #19

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
__________________

Last edited by NoroHime; 01-21-2023 at 21:23.
NoroHime is offline
SDArt
Member
Join Date: Aug 2019
Old 01-24-2023 , 18:00   Re: [L4D & L4D2] Scope Level Adjust v2.2 [22-January-2023]
Reply With Quote #20

This version works great thanks for the dilligence.
SDArt 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 14:00.


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