Description

Press a key to attach, detach, or change your scope quickly while preserving firing mode.

Preview
[1.5.1/1.5.2] ToggleScope
Post comment Comments  (0 - 50 of 75)
BigotGaming
BigotGaming - - 65 comments

nice

Reply Good karma Bad karma+2 votes
Uxie
Uxie - - 10 comments

Is it impossible to fix the issue of the first slot weapon being unequipped? It's super annoying even for standard gameplay. Let alone when you need to hide behind a tree and switch a long range scope onto your AK because you spotted a controller in the distance.

Reply Good karma Bad karma+2 votes
Ishmaeel Author
Ishmaeel - - 282 comments

Edited: The fix is ready. Download the new version please.

Reply Good karma+1 vote
manzmnl
manzmnl - - 485 comments

Also when using Anomaly Magazines (maybe even without it?) and you attach/detach the scope, not only the weapon gets unequipped, but also the magazine inside will disappear into the void. Happens also without your mod. I couldn't fix it, but I'm not that skilled with LUA. Maybe you or anyone else can get it to work :)

btw, a few days back a similar addon has been released. Isn't it yours?

Reply Good karma Bad karma+3 votes
☣GenezisO☢
☣GenezisO☢ - - 2,268 comments

i noticed the same thing, I got 3 45-bullet mags sucked when detaching scope from first weapon slot and wondered where all my mags went

Reply Good karma Bad karma+1 vote
Ishmaeel Author
Ishmaeel - - 282 comments

I wasn't even able to reproduce this issue, but if it also happens without my addon as manzmnl said, I don't see how I can do anything about it.

Reply Good karma+1 vote
tenacious79
tenacious79 - - 97 comments

This is nice but we already have this Moddb.com .

Reply Good karma Bad karma+3 votes
Ishmaeel Author
Ishmaeel - - 282 comments

Yes, that is the big brother of my mod. I just needed something that selected a scope by itself and tried to preserve the firing mode. Rather than pestering him with feature requests, I wanted to try my hand at scribbling this.

Reply Good karma+4 votes
massimogrecoab
massimogrecoab - - 515 comments

You are a god among man! If you only can also fix the grenade launcher eating grenade (when add/remove a scope) you will be a legend, truly! 10/10.

Reply Good karma Bad karma+1 vote
Ishmaeel Author
Ishmaeel - - 282 comments

More experienced people are working on *that* problem, but as I understand it, the engine makes no provisions to fix it. Fingers crossed.

Reply Good karma+3 votes
massimogrecoab
massimogrecoab - - 515 comments

Wow, i hope that they find a solution.

Reply Good karma Bad karma+2 votes
massimogrecoab
massimogrecoab - - 515 comments

Maybe the solution could be to attach (from the start) a grenade launcher to all weapons that support that, and made impossible to remove it. Because grozas, the only weapons that have a undetachble grenade launcher, are unaffected by this horrible bug.

Reply Good karma Bad karma+1 vote
Ishmaeel Author
Ishmaeel - - 282 comments

It's a little bit more involved than that. The way the scopes are implemented is like this: When you attach/detach a scope, the game creates an entirely new weapon (a scoped/unscoped version) with the original weapon's stats and deletes the old weapon. For all practical purposes, the old weapon is gone forever and you are given a brand new weapon with *most* stats copied over. Problem is, the engine fails to copy *some* values and provides no mechanisms to work around the issue. As a result, there is very little that can be done by the modders to fix those.

Reply Good karma+2 votes
captainfriendo
captainfriendo - - 25 comments

Keeping the firing mode is the bomb. Nicely done! Although sometimes it resets it (from single fire back to auto) when switching levels and the scope is equipped. Not always, sometimes.

Reply Good karma Bad karma+2 votes
Ishmaeel Author
Ishmaeel - - 282 comments

Thanks. To be honest, I've not even tried to handle resets during game loads and level changes. I just wanted to keep it from changing while in combat and frankly that's enough for me for now.

Reply Good karma+1 vote
DaveIsDead
DaveIsDead - - 11 comments

Great mod. Slight conflict with Moddb.com
Both (obviously) use ui_keybinding.xml and their bind is written under custom25.
Sure, it takes few seconds to merge them, but I'd rather let you know.

Reply Good karma Bad karma+2 votes
Ishmaeel Author
Ishmaeel - - 282 comments

Update: Latest version no longer uses ui_keybinding.xml and allows setting the hotkey via MCM.

Reply Good karma+2 votes
DaveIsDead
DaveIsDead - - 11 comments

I just tested few things and it appears that Galil and it's scope (wpn_addon_scope_galil) is not working as it should. It's the only one that's refusing to attach/detach after pressing the hotkey. I checked it out on a modless new game with only your addon present.

Reply Good karma Bad karma+2 votes
Ishmaeel Author
Ishmaeel - - 282 comments

Thanks for the report. Galil and a few other affected weapons are fixed with version 1.1. Please download again.

Reply Good karma+2 votes
DaveIsDead
DaveIsDead - - 11 comments

Works like a charm. Thanks for updating it, as I can't live without my Galil.

Reply Good karma Bad karma+2 votes
tenacious79
tenacious79 - - 97 comments

Can i ask if there is a way to have this mod and the quick knife attack mod together ?

Reply Good karma Bad karma+1 vote
Ishmaeel Author
Ishmaeel - - 282 comments

That's not something I use, so no promises, but I can take a look if you link the exact mod in question.

Reply Good karma+1 vote
tenacious79
tenacious79 - - 97 comments

Ah ty and no worries if it/s not possible , the mod I mean is this one Moddb.com .
I think it as they both alter keybinds but I have no idea how to merge stuff so any help advice welcome and apricated :)

Reply Good karma Bad karma+1 vote
Ishmaeel Author
Ishmaeel - - 282 comments

Yes, it's a keybind conflict and it looks like an easy fix. Try the file below and let me know if it works.

Gist.githubusercontent.com

Edit: This is no longer relevant with the latest version. Please use MCM to choose a key for ToggleScope.

Reply Good karma+1 vote
tenacious79
tenacious79 - - 97 comments

It works !!! Thank you for this. and so quickly too :)

happy stalking !!

Reply Good karma Bad karma+1 vote
ImSimClown
ImSimClown - - 68 comments

scope cycling? I love you.

Reply Good karma Bad karma+1 vote
Ishmaeel Author
Ishmaeel - - 282 comments

😊

Reply Good karma+2 votes
tenacious79
tenacious79 - - 97 comments

Oh Wow , not only do you make this mod play nice with others , Now I log in to find scope cycling as well.

Man your a credit to the Zone !

Reply Good karma Bad karma+2 votes
Ishmaeel Author
Ishmaeel - - 282 comments

Thankies!

Reply Good karma+2 votes
manzmnl
manzmnl - - 485 comments

This is great! Since you've fixed that the second weapon slot gets unequipped upon scope toggle, it also doesn't loose the magazine anymore (when using Anomaly Mags). Well done :)

Reply Good karma Bad karma+2 votes
Ishmaeel Author
Ishmaeel - - 282 comments

To be honest, I don't see how working around the second slot bug would fix the magazine issue because all I'm doing is catching the new weapon mid air and putting it into the correct slot. If you say it works, then I'm glad it works but be careful with your mags for a while, just in case. :)

Reply Good karma+1 vote
ImSimClown
ImSimClown - - 68 comments

possible bug when pressing the cycle scope key without a scope in inventory it locks up some of the controls.

Reply Good karma Bad karma+2 votes
Ishmaeel Author
Ishmaeel - - 282 comments

Good catch, thankies. Gonna release a fix soon.

Edit: fix released.

Reply Good karma+2 votes
ImSimClown
ImSimClown - - 68 comments

That was fast! Thank you again for continuing your efforts to update!

Reply Good karma Bad karma+2 votes
captainfriendo
captainfriendo - - 25 comments

Scope cycling? Sweet!

ps. Sorry for posting this here, but is there a way for moddb to message me when addons I use/like get updated?

Reply Good karma Bad karma+1 vote
Ishmaeel Author
Ishmaeel - - 282 comments

You can follow authors from their profile page and you will be notified when they release/update their mods. You can also follow games so that all new addons for that game will end up in your notifications.

Reply Good karma+1 vote
GabeCPB0
GabeCPB0 - - 354 comments

Anxious about trying this one!

Thanks for your work! Cheers!

Reply Good karma Bad karma+2 votes
Ishmaeel Author
Ishmaeel - - 282 comments

Thanks, I hope you enjoy it.

Reply Good karma+1 vote
ImSimClown
ImSimClown - - 68 comments

At some point i would really love to see a similar switching system for the scopes applied to detectors. being able to flip through them would cut down on menu navigation (which i'm always a fan of) That would be it's own separate addon though and i'm sure your already busy with other projects. (or even updating this one) Fingers crossed and looking forward to your next work :D

Reply Good karma Bad karma+3 votes
Noxilian
Noxilian - - 65 comments

I still have the secondary weapon unequipping happening when I use the drag & drop functionality in the inventory (either when adding a scope without an existing one, or swapping scopes).

EDIT: On further investigation, what seems to be happening is it's trying to move it to the main slot when you attach/swap scopes. If the main slot is full, it unequips it. Otherwise, it moves to the main slot when attaching/swapping the scope.

Reply Good karma Bad karma+2 votes
Ishmaeel Author
Ishmaeel - - 282 comments

Well, I had fixed it, but apparently I later unfixed it while doing something else. I'll re-fix it soon. Thankies.

Edit: fixed now.

Reply Good karma+2 votes
Redroycemac
Redroycemac - - 87 comments

this addon is brutal, and very useful well done Ishmaeel

Reply Good karma Bad karma+2 votes
Ishmaeel Author
Ishmaeel - - 282 comments

Thankies!

Reply Good karma+1 vote
mrsoysauceiii
mrsoysauceiii - - 64 comments

I have a soft bug here, every time I load the game it defaults to numpad + and not the mcm button I set it to. Only conflict I have is the optional ammo check from anomaly mags redux: Moddb.com
Update: Disabling ammo check does not resolve the issue. Basically the problem I am having is I need to set a new key every time I enter a new area or load my save again, or set a key, then set my old one for it to not be numpad +.

Reply Good karma Bad karma+3 votes
Ishmaeel Author
Ishmaeel - - 282 comments

Thanks for catching this issue I missed. Please update, it should work now.

Reply Good karma+1 vote
mrsoysauceiii
mrsoysauceiii - - 64 comments

Thank you! Definitely a must have mod for me now who likes long + short range engagements but is too heavy most of the time to suffice.

Reply Good karma Bad karma+1 vote
Guest
Guest - - 689,966 comments

I have the same problem! Just edit "ish_toggle_scope_mcm.script" with notepad++ and go to line 5, replace "DIK_ADD -- KeyPad Plus" with any key you want, the extra dashes and words are not needed. I changed it to "DIK_TAB" that will replace the default in MCM so you can basically ignore the menu option..

Reply Good karma Bad karma+1 vote
Ishmaeel Author
Ishmaeel - - 282 comments

The issue is now fixed, just update to 1.9.1. Thanks for writing out the workaround.

Reply Good karma+1 vote
L4U6H1N6-LUN4T1C
L4U6H1N6-LUN4T1C - - 1,163 comments

"Last but not least, you can now drag a scope onto an already-scoped weapon without having to remove the existing scope first."
THIS!!!!!
10/10 from me my friend!

Reply Good karma Bad karma+3 votes
Ishmaeel Author
Ishmaeel - - 282 comments

Thankies!

Reply Good karma+2 votes
Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account: