Page 1 of 1

Can someone help me with a CS:GO script?

Posted: 24 Nov 2017, 18:53
by juandeagforpig
I need just some simple help, I have a scrip which works great for csgo recoil control can someone help me clean it up to where it is just the ak47 recoil control nothing else, it seems to have been used for several guns but I just need the ak47, also help me clean up the sound toggles there was for the script aswell, thanks!

Code: Select all

;Recoil weapon switch system
loop
{
GetKeyState, state, F1
if state = D
{
SoundPlay, %A_ScriptDir%\1.wav
ak:=true
m4a1:=false
m4a4:=false
famas:=false
galil:=false
ump:=false
}

GetKeyState, state, F3
if state = D
{
SoundPlay, %A_ScriptDir%\2.wav
m4a1:=true
ak:=false
m4a4:=false
famas:=false
galil:=false
ump:=false
}

GetKeyState, state, F2
if state = D
{
SoundPlay, %A_ScriptDir%\3.wav
m4a4:=true
ak:=false
m4a1:=false
famas:=false
galil:=false
ump:=false
}

GetKeyState, state, HOME
if state = D
{
SoundPlay, %A_ScriptDir%\4.mp3
famas:=true
ak:=false
m4a1:=false
m4a4:=false
galil:=false
ump:=false
}

GetKeyState, state, HOME
if state = D
{
SoundPlay, %A_ScriptDir%\5.mp3
galil:=true
ak:=false
m4a1:=false
m4a4:=false
famas:=false

Re: Can someone help me with a CS:GO script?

Posted: 27 Nov 2017, 00:37
by Laggin
This will accomplish this same thing the original script does with only the AK-47 recoil.

Code: Select all

F1::
    SoundPlay, %A_ScriptDir%\1.wav
    ak := True
    Return