TKC-Community
Hacking and Art => Vietcong 1 & 2 => Topic started by: [TKC]cptnhankey on June 26, 2008, 04:28:23 pm
-
Hello i was wondering is there a way to change the gun zoom like have a (M16) but have a zoom like a (Sniper)/(M1 Grand) thankyou...
Cheers then i can start my hacks :icon_cool2
-
yes, you can.
-
Yes, there is a way! There are actually several ways you could do it. The easiest way is to mess with the cbf files: rav3n's tutorial (http://tkc-community.net/forum/index.php?topic=4086.0).
A more "pro" method is to take the zoom value for the gun in your hand (you could find it in the cbf file), search for it in memory (tsearch, cheatengine, etc), set a breakpoint on it, and see which instructions read from it when you right-click your weapon (aim & zoom). If you've never used tsearch or cheat engine, look through the tutorials (http://tkc-community.net/forum/index.php?action=downloads;cat=2). You won't get it right away, but if you keep at it, eventually everything will click and make perfect sense.
-
Just for reference, my M16 :
//-- -----------------------------------------------------------------------------------
//M16
//-------------------------------------------------------------------------------------
`w_new 1 2201 7941
`w_animgroup A
`w_slot 3
`w_model VvH_M16
`w_use 1 0 0
`w_magazine 0 1 1000 3.32
`w_ext .5 1.5 5
`w_hud 1 42 3 1
`w_tracer 3 255 255 136 1
`w_reload_signal 10 0.5
`w_flashrot 120
`w_pickinfo 0 0 0
//--------------------------
`w_b_new 1 2751
`w_b_heardist 50 1 1
`w_b_repeat 10000
`w_b_magazine 0 1
`w_b_ai_use 0 0 0.1 0.3 0.2 10
`w_b_ai_use -1 -1 0.1 3.0 0.0 10
`w_b_ai_use 0 10 0.0 0.8 0.0 1
`w_b_ai_use 10 20 0.1 0.3 0.2 4
`w_b_ai_use 10 20 0.1 0.5 0.0 1
`w_b_ai_use 20 100 0.1 0.1 0.3 3
`w_b_ai_use 100 10800 0.1 0.3 0.0 1
`w_b_accur_run 0.0 0.0
`w_b_accur_walk 0.0 0.0
`w_b_accur_stand 0.0 0.0 0 0
`w_b_accur_crouch 0.0 0.0 0 0
`w_b_accur_lie 0.0 0.0 0 0
`w_b_accur_aimmove 0.0 0.0
`w_b_accur_aimstand 0.0 0.0 0 0
`w_b_accur_aimcrouch 0.0 0.0 0 0
`w_b_accur_aimlie 0.0 0.0 0 0
`w_b_accur_firechng 2.81
`w_b_accur_timechng 3.05
`w_b_shot 0 14 0 3 0.1
`w_b_shot 0 14 0 3 0.1
`w_b_shot 0 14 0 3 0.1
`w_b_shot 0 14 0 3 0.1
`w_b_shot 0 14 0 3 0.1
`w_b_shot_snd 2
`w_b_snd 12000
`w_b_shot_snd_rev 362
`w_b_shot_light 255 240 200 3.0 0.1 0 0 0.1 0.05 0.2 0.0
//--------------------------
`w_b_new 0 2750
`w_b_heardist 50 1 1
`w_b_repeat 13 0
`w_b_magazine 0 2
`w_b_accur_run 0.0 0.0
`w_b_accur_walk 0.0 0.0
`w_b_accur_stand 0.0 0.0 0 0
`w_b_accur_crouch 0.0 0.0 0 0
`w_b_accur_lie 0.0 0.0 0 0
`w_b_accur_aimmove 0.0 0.0
`w_b_accur_aimstand 0.0 0.0 0 0
`w_b_accur_aimcrouch 0.0 0.0 0 0
`w_b_accur_aimlie 0.0 0.0 0 0
`w_b_accur_firechng 2.85
`w_b_accur_timechng 4.35
`w_b_shot 0 14 0 1 0.1
`w_b_shot_snd 2
`w_b_snd 1000
`w_b_shot_snd_rev 362
`w_b_shot_light 255 240 200 3.0 0.1 0 0 0.1 0.05 0.2 0.0
/--------------------------
`w_b_new 1 2751
`w_b_heardist 20 1 1
`w_b_repeat 2.13 0
`w_b_magazine 0 1
`w_b_accur_run 0.0 0.0
`w_b_accur_walk 0.0 0.0
`w_b_accur_stand 0.0 0.0 0 0
`w_b_accur_crouch 0.0 0.0 0 0
`w_b_accur_lie 0.0 0.0 0 0
`w_b_accur_aimmove 0.0 0.0
`w_b_accur_aimstand 0.0 0.0 0 0
`w_b_accur_aimcrouch 0.0 0.0 0 0
`w_b_accur_aimlie 0.0 0.0 0 0
`w_b_accur_firechng 20
`w_b_accur_timechng 12
`w_b_shot 0 17 0 1 0.03
`w_b_shot_snd 9
`w_b_shot_snd_rev 0
`w_b_shot_light 255 240 200 3.0 0.1 0 0 0.1 0.05 0.2 0.0
Now, with the number that is bold, simply change the value. For instance on the M1 Garand I think the value is 15? The larger the value the farther you zoom. If you're familiar with editing VC values you would understand what I mean.
-
it would look like this:
//-------------------------------------------------------------------------------------
//M16
//-------------------------------------------------------------------------------------
`w_new 1 2201 7941
`w_animgroup A
`w_slot 3
`w_model VvH_M16
`w_use 1 0 0
`w_magazine 0 1 1000 3.32
`w_ext .5 15 5
`w_hud 1 42 3 1
`w_tracer 3 255 255 136 1
`w_reload_signal 10 0.5
`w_flashrot 120
`w_pickinfo 0 0 0
-
Thankyou Lasher for ur help and Mesengr great work and ty for repling so quick... :icon_thumbsup
-
I told you this on MSN yesterday, was this before or after you made this thread?
-
I think its been answered but a crude way but works is to use Cheat engine then go to advanced options(bottom left) then direct x mess select ur vc exe,leave params blank then toggle with the zoom functions then start ur vc exe,this works with any dx8 game i think