CLEO Help Country Rifle sniper scope?

CLEO related
Status
Not open for further replies.

MrUnknown

Active member
Joined
Oct 24, 2013
Messages
140
Reaction score
4
I just wanted to know if it's possible.


Code:
// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}

//-------------MAIN---------------
thread 'SSS' 
0A8C: write_memory 5497627 size 4 value -1869574000 virtual_protect 1 
0A8C: write_memory 5497631 size 1 value 144 virtual_protect 1 
0A8C: write_memory 5826307 size 4 value -1869574000 virtual_protect 1 
0A8C: write_memory 5826311 size 4 value -1869574000 virtual_protect 1 
0A8C: write_memory 5826315 size 1 value 144 virtual_protect 1 
0390: load_txd_dictionary 'SNIPER' 
038F: load_texture "Scope" as 1 // Load dictionary with 0390 first 

:SSS_109
wait 0 
if and
   Player.Defined($PLAYER_CHAR)
   not Actor.Driving($PLAYER_ACTOR)
else_jump @SSS_109 
if 
02D8:   actor $PLAYER_ACTOR current_weapon == 33 
else_jump @SSS_109 
0@ = 11989032 
0@ += 372 
0@ += 12 
0A8D: 0@ = read_memory 0@ size 2 virtual_protect 0 
if 
  0@ == 7 
else_jump @SSS_109 
03F0: enable_text_draw 1 
03E3: set_texture_to_be_drawn_antialiased 1 
038D: draw_texture 1 position 320.0 224.0 size 448.0 448.0 RGBA 255 255 255 255 
03F0: enable_text_draw 0 
jump @SSS_109

I've looked into this cleo which is replacing the original sniper scope on the sniper rifle to this:

[img=500x400]http://cs2.gamemodding.net/images/7ddca2235f2a5d46129cd86bb5eca76619b7ac8f50a78e99c97ba47307ea4e1b.jpg[/img]

My question is now, is it possible to do this to the country rifle? Speaking about the "sniper" rifle that has no scope.
 

MrUnknown

Active member
Joined
Oct 24, 2013
Messages
140
Reaction score
4
veysileth said:
02D8:   actor $PLAYER_ACTOR current_weapon == 33

Dunno.  Try to put rifle id instead of sniper id.

That's the rifle ID, I've tried that already.

But the cleo only activates when going into this "Scope" mode, just like with the camera. Where you can zoom and stuff
 
Joined
Dec 31, 2015
Messages
712
Reaction score
27
I assume this one goes for scoping mode check
0@ = 11989032
0@ += 372
0@ += 12
0A8D: 0@ = read_memory 0@ size 2 virtual_protect 0
if
0@ == 7
 
Status
Not open for further replies.
Top