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