MrUnknown
Active member
- Joined
- Oct 24, 2013
- Messages
- 140
- Reaction score
- 4
I just wanted to know if it's possible.
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.
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.