Post: Code Question
10-05-2011, 08:39 PM #1
oNiiTrOx
Do a barrel roll!
(adsbygoogle = window.adsbygoogle || []).push({}); What would i have to do to this code here to make the aim assist toggle on and off? i put toggle and when im in-game it seems to just want to stay on and i want to be able to turn it on and off, how can i do this?

    bind BUTTON_RSHLDR "+attack"
bind BUTTON_LSHLDR "+speed_throw"
bind BUTTON_RTRIG "+frag"
bind BUTTON_LTRIG "+smoke"
bind BUTTON_RSTICK "+stance"
bind BUTTON_LSTICK "+breath_sprint"
bind BUTTON_A "+gostand"
bind BUTTON_B "+melee"
bind BUTTON_X "+usereload"
bind BUTTON_Y "weapnext"
bind DPAD_UP "vstr Aim"
bind DPAD_DOWN "vstr Uav"
bind DPAD_LEFT "+actionslot 3"
bind DPAD_RIGHT "+actionslot 4"
bind BUTTON_START "togglemenu"
bind BUTTON_BACK "togglescores"

//codes
set Aim "aimSpreadScale 0; toggle aim_autoaim_enabled 1; toggle aim_autoaim_lerp 100; toggle aim_autoaim_region_height 999999999; toggle aim_autoaim_region_width 999999999; toggle aim_autoAimRangeScale 2; toggle aim_lockon_enabled 1; toggle aim_lockon_region_height 0; toggle aim_lockon_region_width 5500; toggle aim_lockon_strength 1; toggle aim_lockon_deflection 0.05; toggle aim_input_graph_debug 0; toggle aim_input_graph_enabled 1; toggle aim_aimAssistRangeScale 1;bind DPAD_UP vstr NoAIM;^0AIMBOT_^2ON"
set NoAIM "aimSpreadScale 0; toggle aim_autoaim_enabled 1; toggle aim_autoaim_lerp 100; toggle aim_autoaim_region_height 999999999; toggle aim_autoaim_region_width 999999999; toggle aim_autoAimRangeScale 2; toggle aim_lockon_enabled 1; toggle aim_lockon_region_height 0; toggle aim_lockon_region_width 5500; toggle aim_lockon_strength 1; toggle aim_lockon_deflection 0.05; toggle aim_input_graph_debug 0; toggle aim_input_graph_enabled 1; toggle aim_aimAssistRangeScale 1;bind DPAD_UP vstr Aim;^0AIMBOT_^1OFF"
set Uav "g_compassShowEnemies 1;bind DPAD_DOWN vstr NoUAV;^0UAV_^2ON"
set NoUAV "g_compassShowEnemies 0;bind DPAD_DOWN vstr Uav;^0UAV_^1OFF"
(adsbygoogle = window.adsbygoogle || []).push({});
10-05-2011, 09:06 PM #2
Rea
Banned
Originally posted by oNiiTrOx View Post
What would i have to do to this code here to make the aim assist toggle on and off? i put toggle and when im in-game it seems to just want to stay on and i want to be able to turn it on and off, how can i do this?

    bind BUTTON_RSHLDR "+attack"
bind BUTTON_LSHLDR "+speed_throw"
bind BUTTON_RTRIG "+frag"
bind BUTTON_LTRIG "+smoke"
bind BUTTON_RSTICK "+stance"
bind BUTTON_LSTICK "+breath_sprint"
bind BUTTON_A "+gostand"
bind BUTTON_B "+melee"
bind BUTTON_X "+usereload"
bind BUTTON_Y "weapnext"
bind DPAD_UP "vstr Aim"
bind DPAD_DOWN "vstr Uav"
bind DPAD_LEFT "+actionslot 3"
bind DPAD_RIGHT "+actionslot 4"
bind BUTTON_START "togglemenu"
bind BUTTON_BACK "togglescores"

//codes
set Aim "aimSpreadScale 0; toggle aim_autoaim_enabled 1; toggle aim_autoaim_lerp 100; toggle aim_autoaim_region_height 999999999; toggle aim_autoaim_region_width 999999999; toggle aim_autoAimRangeScale 2; toggle aim_lockon_enabled 1; toggle aim_lockon_region_height 0; toggle aim_lockon_region_width 5500; toggle aim_lockon_strength 1; toggle aim_lockon_deflection 0.05; toggle aim_input_graph_debug 0; toggle aim_input_graph_enabled 1; toggle aim_aimAssistRangeScale 1;bind DPAD_UP vstr NoAIM;^0AIMBOT_^2ON"
set NoAIM "aimSpreadScale 0; toggle aim_autoaim_enabled 1; toggle aim_autoaim_lerp 100; toggle aim_autoaim_region_height 999999999; toggle aim_autoaim_region_width 999999999; toggle aim_autoAimRangeScale 2; toggle aim_lockon_enabled 1; toggle aim_lockon_region_height 0; toggle aim_lockon_region_width 5500; toggle aim_lockon_strength 1; toggle aim_lockon_deflection 0.05; toggle aim_input_graph_debug 0; toggle aim_input_graph_enabled 1; toggle aim_aimAssistRangeScale 1;bind DPAD_UP vstr Aim;^0AIMBOT_^1OFF"
set Uav "g_compassShowEnemies 1;bind DPAD_DOWN vstr NoUAV;^0UAV_^2ON"
set NoUAV "g_compassShowEnemies 0;bind DPAD_DOWN vstr Uav;^0UAV_^1OFF"


aim assist toggle code:
    set Aim "toggle aimSpreadScale 0; toggle aim_slowdown_pitch_scale 0.4; toggle aim_slowdown_yaw_scale 0.4; toggle aim_slowdown_yaw_scale_ads 0.5; toggle aim_slowdown_pitch_scale_ads 0.5; toggle aim_slowdown_debug 1 0; toggle aim_slowdown_region_height 2.85 0; toggle aim_slowdown_region_width 2.85 0; toggle aim_aimAssistRangeScale 1; toggle aim_autoaim_enabled 1 0; toggle aim_lockon_region_height 90; toggle aim_lockon_region_width 90; toggle aim_lockon_enabled 1; toggle aim_lockon_strength 9999 0.6; toggle aim_lockon_deflection 0.0005 0.05; toggle aim_lockon_debug 0; toggle aim_autoaim_lerp 999 40; toggle aim_autoaim_region_height 999 120; toggle aim_autoaim_region_width 5000 160; toggle aim_autoAimRangeScale 2 1; toggle aim_input_graph_debug 0; toggle aim_input_graph_enabled 1"
10-05-2011, 09:08 PM #3
oNiiTrOx
Do a barrel roll!
Originally posted by Rea View Post
aim assist toggle code:
    set Aim "toggle aimSpreadScale 0; toggle aim_slowdown_pitch_scale 0.4; toggle aim_slowdown_yaw_scale 0.4; toggle aim_slowdown_yaw_scale_ads 0.5; toggle aim_slowdown_pitch_scale_ads 0.5; toggle aim_slowdown_debug 1 0; toggle aim_slowdown_region_height 2.85 0; toggle aim_slowdown_region_width 2.85 0; toggle aim_aimAssistRangeScale 1; toggle aim_autoaim_enabled 1 0; toggle aim_lockon_region_height 90; toggle aim_lockon_region_width 90; toggle aim_lockon_enabled 1; toggle aim_lockon_strength 9999 0.6; toggle aim_lockon_deflection 0.0005 0.05; toggle aim_lockon_debug 0; toggle aim_autoaim_lerp 999 40; toggle aim_autoaim_region_height 999 120; toggle aim_autoaim_region_width 5000 160; toggle aim_autoAimRangeScale 2 1; toggle aim_input_graph_debug 0; toggle aim_input_graph_enabled 1"


im wanting to know how i need to change my code to make it toggleable, i want the aim assist i have which is zflavours.
10-05-2011, 09:12 PM #4
Rea
Banned
Originally posted by oNiiTrOx View Post
im wanting to know how i need to change my code to make it toggleable, i want the aim assist i have which is zflavours.


Wow... Ok...
bind BUTTON_RSHLDR "+attack"
bind BUTTON_LSHLDR "+speed_throw"
bind BUTTON_RTRIG "+frag"
bind BUTTON_LTRIG "+smoke"
bind BUTTON_RSTICK "+stance"
bind BUTTON_LSTICK "+breath_sprint"
bind BUTTON_A "+gostand"
bind BUTTON_B "+melee"
bind BUTTON_X "+usereload"
bind BUTTON_Y "weapnext"
bind DPAD_UP "vstr Aim"
bind DPAD_DOWN "vstr Uav"
bind DPAD_LEFT "+actionslot 3"
bind DPAD_RIGHT "+actionslot 4"
bind BUTTON_START "togglemenu"
bind BUTTON_BACK "togglescores"

set Aim "toggle aimSpreadScale 0; toggle aim_slowdown_pitch_scale 0.4; toggle aim_slowdown_yaw_scale 0.4; toggle aim_slowdown_yaw_scale_ads 0.5; toggle aim_slowdown_pitch_scale_ads 0.5; toggle aim_slowdown_debug 1 0; toggle aim_slowdown_region_height 2.85 0; toggle aim_slowdown_region_width 2.85 0; toggle aim_aimAssistRangeScale 1; toggle aim_autoaim_enabled 1 0; toggle aim_lockon_region_height 90; toggle aim_lockon_region_width 90; toggle aim_lockon_enabled 1; toggle aim_lockon_strength 9999 0.6; toggle aim_lockon_deflection 0.0005 0.05; toggle aim_lockon_debug 0; toggle aim_autoaim_lerp 999 40; toggle aim_autoaim_region_height 999 120; toggle aim_autoaim_region_width 5000 160; toggle aim_autoAimRangeScale 2 1; toggle aim_input_graph_debug 0; toggle aim_input_graph_enabled 1"

set Uav "toggle scr_game_forceuav 1 0; toggle compass_show_enemies 1 0; toggle g_compassShowEnemies 1 0; toggle compassEnemyFootstepEnabled 1 0; toggle compassEnemyFootstepMaxZ 99999 100; toggle compassRadarUpdateTime 0.001 4; toggle compassFastRadarUpdateTime 2; toggle compassEnemyFootstepMinSpeed 0 140; toggle compassEnemyFootstepMaxRange 99999 500"


That's the correct way, that toggles both uav and aim assist properly.
10-05-2011, 09:19 PM #5
oNiiTrOx
Do a barrel roll!
Originally posted by Rea View Post
Wow... Ok...
bind BUTTON_RSHLDR "+attack"
bind BUTTON_LSHLDR "+speed_throw"
bind BUTTON_RTRIG "+frag"
bind BUTTON_LTRIG "+smoke"
bind BUTTON_RSTICK "+stance"
bind BUTTON_LSTICK "+breath_sprint"
bind BUTTON_A "+gostand"
bind BUTTON_B "+melee"
bind BUTTON_X "+usereload"
bind BUTTON_Y "weapnext"
bind DPAD_UP "vstr Aim"
bind DPAD_DOWN "vstr Uav"
bind DPAD_LEFT "+actionslot 3"
bind DPAD_RIGHT "+actionslot 4"
bind BUTTON_START "togglemenu"
bind BUTTON_BACK "togglescores"

set Aim "toggle aimSpreadScale 0; toggle aim_slowdown_pitch_scale 0.4; toggle aim_slowdown_yaw_scale 0.4; toggle aim_slowdown_yaw_scale_ads 0.5; toggle aim_slowdown_pitch_scale_ads 0.5; toggle aim_slowdown_debug 1 0; toggle aim_slowdown_region_height 2.85 0; toggle aim_slowdown_region_width 2.85 0; toggle aim_aimAssistRangeScale 1; toggle aim_autoaim_enabled 1 0; toggle aim_lockon_region_height 90; toggle aim_lockon_region_width 90; toggle aim_lockon_enabled 1; toggle aim_lockon_strength 9999 0.6; toggle aim_lockon_deflection 0.0005 0.05; toggle aim_lockon_debug 0; toggle aim_autoaim_lerp 999 40; toggle aim_autoaim_region_height 999 120; toggle aim_autoaim_region_width 5000 160; toggle aim_autoAimRangeScale 2 1; toggle aim_input_graph_debug 0; toggle aim_input_graph_enabled 1"

set Uav "toggle scr_game_forceuav 1 0; toggle compass_show_enemies 1 0; toggle g_compassShowEnemies 1 0; toggle compassEnemyFootstepEnabled 1 0; toggle compassEnemyFootstepMaxZ 99999 100; toggle compassRadarUpdateTime 0.001 4; toggle compassFastRadarUpdateTime 2; toggle compassEnemyFootstepMinSpeed 0 140; toggle compassEnemyFootstepMaxRange 99999 500"


That's the correct way, that toggles both uav and aim assist properly.


Ok no, i get that but youre giving me a different aim assist, i dont want that aim assist i want the stronger one that i have the code for. i just want to know what to change it to to make it so i can toggle it on and off.
10-05-2011, 09:28 PM #6
Rea
Banned
Originally posted by oNiiTrOx View Post
Ok no, i get that but youre giving me a different aim assist, i dont want that aim assist i want the stronger one that i have the code for. i just want to know what to change it to to make it so i can toggle it on and off.


ok, make sure there's a "toggle" before the code :carling:
your code doesn't have 2 options, it only has 1. you need to make the original code after the altered one, so you have 2 choices: on, or off Awesome face

like this - "toggle aim_autoaim_lerp 999 40"
the 999 is the modded one, the value: 40, is the original. you see? just find the original values to those codes, and add them after the modded one.

your welcome :carling:
10-05-2011, 10:02 PM #7
oNiiTrOx
Do a barrel roll!
Originally posted by Rea View Post
ok, make sure there's a "toggle" before the code :carling:
your code doesn't have 2 options, it only has 1. you need to make the original code after the altered one, so you have 2 choices: on, or off Awesome face

like this - "toggle aim_autoaim_lerp 999 40"
the 999 is the modded one, the value: 40, is the original. you see? just find the original values to those codes, and add them after the modded one.

your welcome :carling:


Would this work then?


bind BUTTON_RSHLDR "+attack"
bind BUTTON_LSHLDR "+speed_throw"
bind BUTTON_RTRIG "+frag"
bind BUTTON_LTRIG "+smoke"
bind BUTTON_RSTICK "+stance"
bind BUTTON_LSTICK "+breath_sprint"
bind BUTTON_A "+gostand"
bind BUTTON_B "+melee"
bind BUTTON_X "+usereload"
bind BUTTON_Y "weapnext"
bind DPAD_UP "vstr Aim"
bind DPAD_DOWN "vstr Uav"
bind DPAD_LEFT "+actionslot 3"
bind DPAD_RIGHT "+actionslot 4"
bind BUTTON_START "togglemenu"
bind BUTTON_BACK "togglescores"

//codes
set Aim "toggle aimSpreadScale 0; toggle aim_autoaim_enabled 1 0; toggle aim_autoaim_lerp 100 40; toggle aim_autoaim_region_height 999999999 120; toggle aim_autoaim_region_width 999999999 160; toggle aim_autoAimRangeScale 2 1; toggle aim_lockon_enabled 1; toggle aim_lockon_region_height 0 90; toggle aim_lockon_region_width 5500 90; toggle aim_lockon_strength 1 0.6; toggle aim_lockon_deflection 0.05; toggle aim_input_graph_debug 0; toggle aim_input_graph_enabled 1; toggle aim_aimAssistRangeScale 1;bind DPAD_UP vstr NoAIM;^0AIMBOT_^2ON"
set NoAIM "toggle aimSpreadScale 0; toggle aim_autoaim_enabled 1 0; toggle aim_autoaim_lerp 100 40; toggle aim_autoaim_region_height 999999999 120; toggle aim_autoaim_region_width 999999999 160; toggle aim_autoAimRangeScale 2 1; toggle aim_lockon_enabled 1; toggle aim_lockon_region_height 0 90; toggle aim_lockon_region_width 5500 90; toggle aim_lockon_strength 1 0.6; toggle aim_lockon_deflection 0.05; toggle aim_input_graph_debug 0; toggle aim_input_graph_enabled 1; toggle aim_aimAssistRangeScale 1;bind DPAD_UP vstr Aim;^0AIMBOT_^1OFF"
set Uav "g_compassShowEnemies 1;bind DPAD_DOWN vstr NoUAV;^0UAV_^2ON"
set NoUAV "g_compassShowEnemies 0;bind DPAD_DOWN vstr Uav;^0UAV_^1OFF"

---------- Post added at 04:02 PM ---------- Previous post was at 03:53 PM ----------

Question answered, thank you rea Smile rep+ you, helped a lot. sorry im a noob to coding xD mod you can close the thread now.
10-05-2011, 10:07 PM #8
Rea
Banned
Originally posted by oNiiTrOx View Post
Would this work then?


bind BUTTON_RSHLDR "+attack"
bind BUTTON_LSHLDR "+speed_throw"
bind BUTTON_RTRIG "+frag"
bind BUTTON_LTRIG "+smoke"
bind BUTTON_RSTICK "+stance"
bind BUTTON_LSTICK "+breath_sprint"
bind BUTTON_A "+gostand"
bind BUTTON_B "+melee"
bind BUTTON_X "+usereload"
bind BUTTON_Y "weapnext"
bind DPAD_UP "vstr Aim"
bind DPAD_DOWN "vstr Uav"
bind DPAD_LEFT "+actionslot 3"
bind DPAD_RIGHT "+actionslot 4"
bind BUTTON_START "togglemenu"
bind BUTTON_BACK "togglescores"

//codes
set Aim "toggle aimSpreadScale 0; toggle aim_autoaim_enabled 1 0; toggle aim_autoaim_lerp 100 40; toggle aim_autoaim_region_height 999999999 120; toggle aim_autoaim_region_width 999999999 160; toggle aim_autoAimRangeScale 2 1; toggle aim_lockon_enabled 1; toggle aim_lockon_region_height 0 90; toggle aim_lockon_region_width 5500 90; toggle aim_lockon_strength 1 0.6; toggle aim_lockon_deflection 0.05; toggle aim_input_graph_debug 0; toggle aim_input_graph_enabled 1; toggle aim_aimAssistRangeScale 1;bind DPAD_UP vstr NoAIM;^0AIMBOT_^2ON"
set NoAIM "toggle aimSpreadScale 0; toggle aim_autoaim_enabled 1 0; toggle aim_autoaim_lerp 100 40; toggle aim_autoaim_region_height 999999999 120; toggle aim_autoaim_region_width 999999999 160; toggle aim_autoAimRangeScale 2 1; toggle aim_lockon_enabled 1; toggle aim_lockon_region_height 0 90; toggle aim_lockon_region_width 5500 90; toggle aim_lockon_strength 1 0.6; toggle aim_lockon_deflection 0.05; toggle aim_input_graph_debug 0; toggle aim_input_graph_enabled 1; toggle aim_aimAssistRangeScale 1;bind DPAD_UP vstr Aim;^0AIMBOT_^1OFF"
set Uav "g_compassShowEnemies 1;bind DPAD_DOWN vstr NoUAV;^0UAV_^2ON"
set NoUAV "g_compassShowEnemies 0;bind DPAD_DOWN vstr Uav;^0UAV_^1OFF"

---------- Post added at 04:02 PM ---------- Previous post was at 03:53 PM ----------

Question answered, thank you rea Smile rep+ you, helped a lot. sorry im a noob to coding xD mod you can close the thread now.


You don't need the vstr "NoAim" if it's a toggle, you just press down twice. And thanks Awesome face
10-06-2011, 03:47 AM #9
oNiiTrOx
Do a barrel roll!
Originally posted by Rea View Post
You don't need the vstr "NoAim" if it's a toggle, you just press down twice. And thanks Awesome face


i only did that so it says ON/OFF when i toggle it ;o
10-06-2011, 03:54 AM #10
Rea
Banned
Originally posted by oNiiTrOx View Post
i only did that so it says ON/OFF when i toggle it ;o


Oh, okay then Winky Winky

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo