RC22 working. Press a button to take off your scope, then press again to equip the scope back.
(also RC18, 19, 21, should work)
This mod makes it possible to quickly toggle on and off the scope. The game will remember what scope you last equipped on the gun, then when you press the button, take it off. Press the button again, to put the scope back on.
If you want toggle a different scope, manually attach the scope to your weapon by using inventory before pressing the button.
-----
Only working for main weapon slot!
--------
HOW TO INSTALL:
Open the folder til you see "gamedata", drag the gamedata folder into your root install directory for anomaly. Then load the game.
You must go into the game and see Setting and Keybinds (look for weapon keybinds) and put a keybind for kb_scope
------
WARNING:
conflict with ANY mod which gives you a ui_keybinding.xml for it.
--------
TO FIX CONFLICT:
open config\ui\ui_keybinding.xml with a text editor, and find:
<command id="kb_suppressor" exe="custom13"/>
Put a new line below:
<command id="kb_scope" exe="custom25"/>
And save the file.
Then you must go to gamedata\script\quick_scope_equipping and where you see "key_bindings.kCUSTOM25"
If you already have custom25 in use from some other mod, you can try custom24 instead when editing the ui_keybinding.xml and quick_scope_equipping.script.
Then save the file.
You must go into Setting and Keybinds (look for weapon keybinds) and put a keybind for kb_scope
If other mods are taking ALL your keybinds from 20 to 25, then you can't do it. The game is only supporting custom commands until custom25 currently.
------
Good idea, thanks.
I'll add something to remember the fire mode also soon.
Your mods are great, can you make the starting equipment for the RC22?
great
When I press the key, it eats loaded grenades from the grenade launcher. I also use Anomaly Magazines, it that matters. AEK attached grenade launcher, didn't try an integrated one.
It might do something to the ammo (setting it to 1), but that could be problems between RC22 & Anomaly Magazines.
It's a problem in vanilla also, because when you equip the gun again it's giving you an unloaded grenade launcher, even if you put a grenade into it. I'll look into this
Yeah, I think I remember something like that in the series. And the ammo eating bug might be an issue on my side (R22 or who knows), so I prefer not complain about something that's not your fault and might lead you to waste time.
If you can solve the grenade-eating bug, you will be remembered as a god among men, sir. Because I switch often between scopes, and I always use rifle with grenade launcher, this (vanilla) bug it's like a curse. Because of that, I often stick with groza, which isn't great, but at least it's immune to this bug (because grenade launcher is not removable).
Hi, the ammo counter system is dealt with by the game engine. Not something I can change with a script yet. As soon as it is available, I will fix it. I already asked one of the engine devs
On Rc 19 didn't work. I also did what suggested on "try to fix" section but it didn't work :(
Did you bind the key ingame? And do you have any other mod using the custom keybinds?
1) Yes 2) No
Show me your gamedata/configs/ui/ui_keybinding.xml in a pastebin or something
I didn't even have an"ui" folder before your mod. Anyway, here it's the pastebin: Pastebin.com