Jump to content
Sign in to follow this  
das attorney

ScopeFX - Dynamic scopes - including TrackIR support

Recommended Posts

Love the new wip vid. I have one suggestion, maybe a lite version with the scope effects alone without the onscreen mag and safety/fire selector etc.

Regards

Bp

Share this post


Link to post
Share on other sites

This! Great idea, if it isn't too much work of course...

BTW I really like the blurred effect.

Until of course we get "real" scopes with render-to-texture (like RO2)

Share this post


Link to post
Share on other sites

Update:

v1.1 Changelog:

[FIXED] - On larger resolutions, ammo counter will show up at edge of screen.

[FIXED] - Fire mode selector shows up when gunner in vehicles.

[CHANGED] - Scope resources now preloaded.

[CHANGED] - Zeroing UI now displays for 3 seconds before disappearing.

[CHANGED] - Made some adjustments to internal scripts - should be slightly more efficient for user.

Download link on first post updated.

Please report any bugs/problems in this thread.

@Bigpickle: You can disable the zeroing UI by changing the options in the userconfig file. Your userconfig should look like this to disable it:

// If set to 0 then disable TIRScope Zeroing UI


HORDE_TIR_allow_zeroing = 0;


// uncomment if not using the TIRScope Zeroing UI


#define HORDE_TIRSCOPE_SHOW_DEFAULT_ZEROING_UI

To disable the check mag option, just set the hotkey to something obscure like:

class HORDE_TIR_sys_core
{
class HORDE_TIR_check_magazine      // This changes the key used to check magazine
{
	key = 88;  // << F1
	shift = 1;  // << Press shift
	ctrl = 1;  // << Press CTRL
	alt = 1;  // << Press Alt
};

class HORDE_TIR_reset_cqb_sights    // Debug command (only need to use in the rare event of
                                       // teamswitching into someone who is in a different opticsMode)
{
	key = 25;  // << P
	shift = 1; // press Shift
	ctrl = 1; // press Ctrl
	alt = 0;
};
};

There isn't an option to disable the firemode UI at the moment. Maybe I will put one in when all immediate issues are resolved.

Share this post


Link to post
Share on other sites

I found an error, it shows when I get to game.

Error in expression <eep;

};

};

};

sleep HORDE_TIR_sleep;

};

};

HORDE_TIR_detect_script_done = true;>

Error position: <};

HORDE_TIR_detect_script_done = true;>

Error Chybí {

File ScopeFX\Scripts\Mechanics\detect.sqf, line 209

Edited by kllrt

Share this post


Link to post
Share on other sites

Thanks for the heads-up Kllrt, much appreciated :)

v1.11 Changelog:

[FIXED] - Script error introduced in last version.

Download updated in first post.

Edited by Das Attorney

Share this post


Link to post
Share on other sites

Still, that image for firemode switching is not showing for me.

Share this post


Link to post
Share on other sites

I had to switch it off when ACE is running as it won't work properly. I think ACE made some changes to the muzzles so I'll have to find a workaround for it. Will keep you posted though as I'll most likely be able to figure it out. :)

I'm uploading a new build later today or tomorrow that should run a bit better. There isn't any new features, but the code has been reworked to be more efficient and the recoil is a bit snappier for single shots.

Share this post


Link to post
Share on other sites

Hello Das Attorney,

I have a question about the KeyCodes.

What is the Keycode for the single quote [ ' ]?

I have looked around an I have came across 222, 39 . However neither of those work.. 39 is bound to another letter ..

My goal is to bind it to the same key that ACE has for Check mags.. which for me is , single quote '.

Any hints?

BTW's lovely mod!!

Share this post


Link to post
Share on other sites

Thanks :)

The key codes are all at the bottom of the userconfig file. For convenience, see below:

ESC = 1

F1 = 59

F2 = 60

F3 = 61

F4 = 62

F5 = 63

F6 = 64

F7 = 65

F8 = 66

F9 = 67

F10 = 68

F11 = 87

F12 = 88

PRINT = 183

SCROLL = 70

PAUSE = 197

^ = 41

1 = 2

2 = 3

3 = 4

4 = 5

5 = 6

6 = 7

7 = 8

8 = 9

9 = 10

0 = 11

ß = 12

´ = 13

Ü = 26

Ö = 39

Ä = 40

# = 43

< = 86

, = 51

. = 52

- = 53

+ = NOT DEFINED

POS1 = 199

TAB = 15

ENTER = 28

DELETE = 211

BACKSPACE = 14

INSERT = 210

END = 207

PAGEUP = 201

PAGEDOWN = 209

CAPS = 58

A = 30

B = 48

C = 46

D = 32

E = 18

F = 33

G = 34

H = 35

I = 23

J = 36

K = 37

L = 38

M = 50

N = 49

O = 24

P = 25

Q = 16

U = 22

R = 19

S = 31

T = 20

V = 47

W = 17

X = 45

Y = 44

Z = 21

SHIFTL = 42

SHIFTR = 54

UP = 200

DOWN = 208

LEFT = 203

RIGHT = 205

NUM_0 = 82

NUM_1 = 79

NUM_2 = 80

NUM_3 = 81

NUM_4 = 75

NUM_5 = 76

NUM_6 = 77

NUM_7 = 71

NUM_8 = 72

NUM_9 = 73

NUM_+ = 78

NUM = 69

NUM_/ = 181

NUM_* = 55

NUM_- = 74

NUM_, = 83

NUM_ENTER = 156

STRGL = 29

STRGR = 157

WINL = 220

WINR = 219

ALT = 56

SPACE = 57

ALTGR = 184

APP = 221

Keycode for quote key is 13 I think.

Share this post


Link to post
Share on other sites

i looked , however the single quote looking thing that is = 13, is not the single quote.

what i did was sift thew the acesettings.hpp in the userconfig folder. and found the CBA_ blah blah roundcount, 40; .. so the round count (single quote) key is 40 ..

in your keycodes 40 is listed as A with the Umlout(sp)..

Once I changed the key code in the scopefx.hpp to 40. I get your mag icon, and text for roundcount when I press the single quite key ' .. However, it completely overrides the ace roundcount, there is no mag pull, and no icon or text in the upper lefthand corner. Sucky

Thanks anyways!! Still Love the mod.. I will just add shift to the scopefx keybind

Edited by Lordprimate

Share this post


Link to post
Share on other sites
What's your screen resolution and do you use a custom FOV?
I don't have cutsom FOV and my screen resolution is 1280x1024

Share this post


Link to post
Share on other sites

This error appeared when shooting with MAAWS

Error in expression <t 0;

_correction_x = _recoil_multiplier select 1;

_correction_y = _recoil_multip>

Error position: <select 1;

_correction_y = _recoil_multip>

Error Dělení nulou

File ScopeFX\Scripts\IO_TrackIR\setScopeRound_1.sqf, line 48

Share this post


Link to post
Share on other sites

When switching to the secondary sight on one of the scoped weapons that don't include a secondary scope (arma 2 vanilla scopes) the scope effect disappear.

I hope I'm clear enough :)

Share this post


Link to post
Share on other sites

Very nice mod, we just added it in our community mod pack :)

But, we have a problem - with ScopeFX player can't see which moa he has now, when he in looking in scope and press up & down arrows (it's ACE feature). Now it's avaible with shift+v only.

Any chance if it will be fixed in future versions?

Share this post


Link to post
Share on other sites

Update:

v1.12 Changelog:

[CHANGED] - More changes to code for efficiency.

[CHANGED] - Zeroing scripts updated so will work with non-standard zeroing.

[CHANGED] - Userconfig updated (version number is 3 now).

[CHANGED] - Recoil for single shots made snappier.

[FIXED] - Firemode UI, Magazine UI and Zeroing UI now positioned with SafeZones to fit all screen resolutions.

[FIXED] - Variable corrupted in setScope script (led to zero divisor error).

Please be aware that you will need to use the new userconfig in the download (version 3).

Dropbox download link on first post updated. Emails have been sent to Armaholic and SB to update their files. Please use Dropbox for now.

Please report any bugs/problems in this thread.

@skiline5 - Thanks for gettting back to me. Hopefully, this addresses the interface size issues permanently. Please carry on using "NORMAL" interface size as I have not updated the scope resources to the safezone format.

@Kllrt - The issue with the MAAWS should be fixed as well. Thanks for posting the rpt code, it helped and I learnt a little bit of Czech (I think) as well :)

@ Variable, I can't do anything about the problem you highlighted right now, it's a known issue (see first post) but I will look at it again when I have time. For now just press the secondary sight button again and the scope will magically reappear :)

@TheChaos, I will definitely check that out for you. I wasn't aware of that ACE feature, but will have a look when time permits. I think it's just a simple layer issue for the resources, so it shouldn't be hard to fix.

Enjoy!

Edited by Das Attorney

Share this post


Link to post
Share on other sites

I'll need a bit more detail to go on so I can fix it up.

Are you playing SP, MP? If MP then dedi or locally hosted?

Are you playing with mods?

What mission are you playing? (Give me a link if you can so I can download it and test).

Thanks

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×