| ammo=new Array(0,11,4,15,20,30,7,30,30,10,0,0,0,20,10,20,20,50,100000000000,5,4,30,14,65,0,0,0,6);
btypes=new Array(0,0,1,3,2,4,2,5,4,2,1,0,0,0,4,3,4,4,2,0,7,6,0,5,0,0,0,0,8); |
| btype 0 | Fist / Baseball Bat / Switch Blade / Night Stick | |
| btype 1 | Pistol / Silenced Pistol | |
| btype 2 | Uzi / CQB / Silenced Mp5 / UMP-45 | |
| btype 3 | Shotgun / Saiga | |
| btype 4 | M16 / M60 / AK-47 / Steyr Aug / L85 | |
| btype 5 | Desert Eagle / Automag | |
| btype 6 | Rocket Launcher | |
| btype 7 | Railgun | |
| btype 8 | Grenade Launcher |
| gunkick=new Array(0,0,20,40,15,50,35,45,60,30,20,0,0,0,30,40,30,20,25,40,60,40,0,30,0,0,0,0,50,0,0,0,0);
gunforce=new Array(0,0,10,25,10,18,8,15,30,18,10,0,0,0,18,25,10,10,12,25,30,0,0,20,0,0,0,0,0,0,0,0,0); gundamage=new Array(0,0,1,1,1,2,.75,2,2.5,.75,1,0,0,0,2,1,1.5,1.25,1.5,2,3,0,0,3,0,0,0,0,0,0,0,0,0); gunblood=new Array(0,0,1,2,1,3,1,2,3,1,1,0,0,0,2,2,2,2,2,2,3,0,3,0,0,0,0,0,0,0,0,0); shelltype=new Array(0,0,1,3,1,2,1,1,2,1,1,0,0,0,2,3,2,2,1,1,7,0,0,1,0,0,0,0,8,0,0,0,0); flashtype=new Array(0,0,1,3,1,2,1,1,2,1,1,0,0,0,3,3,2,2,1,3,4,3,0,1,0,0,0,0,3,0,0,0,0); usepoints=new Array(2,3,4,5,6,5,3,8,5,4,4,5,4,5,5,5,5,5,6,7,7,6,3,2,4,0,0,4,6,6,6,6); storetype=new Array(0,0,0,1,0,1,1,0,1,1,0,1,0,1,1,1,1,1,1,1,1,1,1,0,0,1,0,0,1,1,1,1,1); gunnames=new Array("Null","Hand","Pistol","Shotgun","Uzi","M16","CQB","Desert Eagle","M60","Silenced MP5", "Silenced Pistol","Baseball Bat","Switchblade","Nightstick","AK-47","Saiga","Steyr Aug","L85","UMP-45", "Minigun","Railgun","Rocket Launcher","Flamethrower","Automag","Tazer","Axe","Jetpack", "Suicide bomb","Grenade Launcher","Urinal","Urinal","Urinal","Urinal"); |
| if (ammo>0) {
//uzi uzitimer--; if (uzifiring>0 && uzitimer<0) { uzitimer=2*_root.runspeed; uzifiring--; shoot(arot); } //cbq if (cfire) { cftimer--; if (cftimer<0) { cftimer=_root.runspeed; shoot(arot); } } //smg if (sfire) { sftimer--; if (sftimer<0) { sftimer=_root.runspeed; shoot(arot);  } //ak47 if (akfire) { aktimer--; if (aktimer<0) { aktimer=3*_root.runspeed; shoot(arot); } } //L85 if (lfire) { ltimer--; if (ltimer<0) { ltimer=2*_root.runspeed; shoot(arot); } } //UMP45 if (ufire) { utimer--; if (utimer<0) { utimer=_root.runspeed; shoot(arot); } } //chaingun if (cgfire) { cgtimer--; if (cgtimer<0) { cgtimer=_root.runspeed-1; shoot(arot); } } //flamethrower if (flamefire) { flametimer--; if (flametimer<0) { flametimer=2*_root.runspeed-1; _root.level++; duplicateMovieClip(_root.flame,"flame"+_root.level,_root.level); flame=eval("_root.flame"+_root.level); flame._x=pt0.x; flame._y=pt0.y; userad=arad+.05-Math.random()*.1 flame.xv=Math.cos(userad)*10; flame.yv=Math.sin(userad)*10; flame.gen=false; flame.hmn=_parent.hmn; if (_parent.hmn) _root.clip.fire(); if (!_parent.hmn || !_root.infammo) ammo--; } } //automag if (autofire) { autotimer--; if (autotimer<0) { autotimer=3*_root.runspeed; shoot(arot); } } if (tfire) { if (_parent.hmn) _root.clip.fire(); if (!_parent.hmn || !_root.infammo) ammo--; } //m60fire if (m60fire>0) { m60timer--; if (m60timer<0) { m60fire--; m60timer=2*_root.runspeed; shoot(arot); } } } else if (cfire || sfire || akfire || lfire || ufire || cgfire || flamefire || autofire || tfire || m60fire) { stopfire(true); } |
| //#GUN#
if (#FIRE#) { #TIMER#--; if (#TIMER#<0) { #TIMER=#SLOW#*_root.runspeed; shoot(arot); } } |
| if ((_parent.guntype==12 || _parent.guntype==25) && n<3) {
//knifin' around t.knife(txc/hv,tyc/hv,fdir*dir,hv,headshot,pt.x,pt.y); } |
| if ((_parent.guntype==12 || _parent.guntype==25 || _parent.guntype==32) && n<3) {
//knifin' around t.knife(txc/hv,tyc/hv,fdir*dir,hv,headshot,pt.x,pt.y); } |
| if (n==0 && (_currentframe==11 || _currentframe==24)) {
if (_currentframe==11) { sticktype=1; } else (_currentframe==24) { sticktype=2; } |
| if (n==0 && (_currentframe==11 || _currentframe==24 || _currentframe==32)) {
if (_currentframe==11) { sticktype=1; } else (_currentframe==24) { sticktype=2; } else (_currentframe==32) { sticktype=3; } |
| onClipEvent(enterFrame){
if(_parent.guntype == #GUN#){ this._visible = false; } else{ this._visible = true; } } |
| onClipEvent(enterFrame){
if(_parent.guntype == #GUN# || _parent.guntype == #GUN#){ this._visible = false; } else{ this._visible = true; } } |
| if (Key.isDown(_root.keys[_root.ki["switch"]]) && switchtimer<0) {
switchtimer=5 tempgun=_parent.guntype; tempammo=ammo; _parent.guntype=resgun; ammo=resammo; resgun=tempgun; resammo=tempammo; |
| if (Key.isDown(_root.keys[_root.ki["switch"]]) && switchtimer<0) {
switchtimer=5 tempgun=_parent.guntype; tempammo=ammo; _parent.guntype=resgun; ammo=resammo; resgun=tempgun; resammo=tempammo; tempgun2 = _parent.guntype; tempammo2 = ammo; _parent.guntype = resgun2; ammo = resammo2; resgun2 = tempgun2; resammo2 = tempammo2; |
| resgun=1; //secondary weapon
resammo=0; |
| resgun=1;
resammo=0; resgun2=1; resammo2=0; |