I've created an XM8 (silenced/unsilenced) with modified EAI G36CSD Animations and added all the necessary animations for the ALT Weapon transitions (put on the silencer/take it off) and edited all the muzzleflash options, anims, switch to ALT key, and various other things. BUT, when I use it in game, when I press the 'X' key (I set the switch to ALT key to 45, which is 'X') nothing happens at all. Here's the gunspec:
;//GUN Model File Requirements
;//GUN Settings
poolammo = 556NATO
altpoolammo = 556NATO
muzzlecolorR = 252
muzzlecolorG = 150
muzzlecolorB = 54
alt muzzlecolorR = 252
alt muzzlecolorG = 150
alt muzzlecolorB = 54
muzzleflash = 94
muzzlesize = 145
brass = 4
alt brass = 4
smoke = gunsmoke
damage = 65
damagetype = 1
scorchtype = 2
reloadqty = 30
accuracy = 4
simplezoomacc = 0.1
zoomaccuracy = 4
firerate = 4
altfirerate = 4
burst = 0
range = 15000
altmuzzleflash = 94
;//HUD muzzleflash position
horiz = 0
vert = 0
forward = 0
alignx = 6
aligny = -5.5
alignz = 40
zoomalignx = 0
zoomaligny = -6
zoomalignz = 20
altalignx = 6
altaligny = -5.5
altalignz = 40
alt zoomalignx = 0
alt zoomaligny = -6
alt zoomalignz = 20
;//GUN Visuals
effect = effectbank\bumpcubereflectilluminate\bumpcubereflectilluminate.fx
transparency = 1
weapontype = 3
;//GUN Sounds
sound1 = fire.wav
sound2 = reload.wav
sound3 = dryfire.wav
sound4 = putaway.wav
sound5 = melee.wav
sound6 = tacreload.wav
altsound1 = altfire.wav
fireloop = 8000
soundstrength = 100
;//HUD ANIMATION
select = 1,13
idle = 26,49
move = 51,73
start fire = 76,77
automatic fire = 78,84
end fire = 85,90
reload = 300,354
useempty=1
empty reload = 91,169
putaway = 172,180
;//Sights
zoomto = 200,205
zoomfrom = 206,211
zoom idle = 223,249
zoom move = 251,273
zoom start fire = 277,277
zoom automatic fire = 278,284
zoom end fire = 285,290
;//Alt Mode Anims
alt start fire = 626,627
alt automatic fire =
alt end fire = 628,629
alt idle = 576,599
alt move = 601,623
alt reload = 850,904
altfrom = 450,499
altto = 400,449
alt select = 551,563
alt putaway = 722,730
alt useempty = 1
alt empty reload = 641,719
;//Alt Sights
alt zoomto = 750,755
alt zoomfrom = 756,761
alt zoom idle = 773,799
alt zoom move = 801,823
alt zoom start fire = 827,827
alt zoom automatic fire = 828,834
alt zoom end fire = 835,840
;//HUD sound frames list
soundframes = 16
sframe0 = 76,1
sframe1 = 377,2
sframe2 = 3,4
sframe3 = 692,8
sframe4 = 506,4
sframe5 = 355,5
sframe6 = 440,4
sframe7 = 92,2
sframe8 = 141,6
sframe9 = 578,7
sframe10 = 594,7
sframe11 = 305,5
sframe12 = 567,4
sframe13 = 506,4
sframe14 = 821,2
sframe15 = 870,6
;//Mod/118
alternateisflak = 0
alt reloadqty = 32
noautoreload = 0
nofullreload = 1
chamberedround = 0
forcezoomout = 1
addtospare = 1
alt noautoreload = 0
alt nofullreload = 1
alt chamberedround = 0
alt forcezoomout = 1
alt addtospare = 1
runx = 0
runy = -1.5
runacc = 20
alt runx = 0
alt runy = -1.5
alt runacc = 20
disablemovespeedmod = 0
disablerunandshoot = 0
alt disablemovespeedmod = 0
alt disablerunandshoot = 0
recoily = 40
recoilyreturn = 80
recoilx = 10
recoilxreturn = 80
zoomrecoily = 10
zoomrecoilyreturn = 98
zoomrecoilx = 4
zoomrecoilxreturn = 95
altrecoily = 40
altrecoilyreturn = 80
altrecoilx = 10
altrecoilxreturn = 80
alt zoomrecoily = 10
alt zoomrecoilyreturn= 98
alt zoomrecoilx = 4
alt zoomrecoilxreturn= 95
gunlagspeed = 7
gunlagxmax = 3
gunlagymax = 3
alt gunlagspeed = 7
alt gunlagxmax = 3
alt gunlagymax = 3
zoomwalkspeed = 0.5
zoomturnspeed = 0.2
zoomgunlagspeed = 5
zoomgunlagxmax = 2
zoomgunlagymax = 2
alt zoomwalkspeed = 0.5
alt zoomturnspeed = 0.2
alt zoomgunlagspeed= 5
alt zoomgunlagxmax= 2
alt zoomgunlagymax= 2
simplezoom = 1
simplezoommod = 0
simplezoomx = 0
simplezoomy = 0
simplezoomspeed = 7
simplezoomanim = 1
simplezoomflash = 1
alt simplezoom = 1
alt simplezoommod = 0
alt simplezoomx = 0
alt simplezoomy = 0
alt simplezoomspeed = 7
alt simplezoomanim = 1
alt simplezoomflash = 1
melee range = 50
melee damage = 65
melee noscorch = 1
alt melee range = 50
alt melee damage = 65
alt melee noscorch = 1
;// press [T] to melee
melee key = 20
;//Press [X] to switch fire modes
switchtoalt = 45
Does anybody know where I went wrong?