Combined Code
frame 1 {
function deadClick() {}
function qualityChange() {
getURL('http://www.kprotutorials.com', '_top');
}
function hqualityChange() {
_root._quality = 'high';
}
function mqualityChange() {
_root._quality = 'medium';
}
function lqualityChange() {
_root._quality = 'low';
}
_root.saveData = SharedObject.getLocal('presponsor_superwickedawesome');
saveresetFunction = function () {
_root.cutscene1 = false;
_root.saveData.data.cutscene1 = _root.cutscene1;
_root.cutscene2 = false;
_root.saveData.data.cutscene2 = _root.cutscene2;
_root.cutscene3 = false;
_root.saveData.data.cutscene3 = _root.cutscene3;
_root.cutscene4 = false;
_root.saveData.data.cutscene4 = _root.cutscene4;
_root.cutscene5 = false;
_root.saveData.data.cutscene5 = _root.cutscene5;
_root.cutscene6 = false;
_root.saveData.data.cutscene6 = _root.cutscene6;
_root.lvl1 = true;
_root.saveData.data.lvl1 = _root.lvl1;
_root.lvl2 = false;
_root.saveData.data.lvl2 = _root.lvl2;
_root.lvl3 = false;
_root.saveData.data.lvl3 = _root.lvl3;
_root.lvl4 = false;
_root.saveData.data.lvl4 = _root.lvl4;
_root.lvl5 = false;
_root.saveData.data.lvl5 = _root.lvl5;
_root.lvl6 = false;
_root.saveData.data.lvl6 = _root.lvl6;
_root.lvl7 = false;
_root.saveData.data.lvl7 = _root.lvl7;
_root.lvl8 = false;
_root.saveData.data.lvl8 = _root.lvl8;
_root.medal_1 = false;
_root.saveData.data.medal_1 = _root.medal_1;
_root.medal_2 = false;
_root.saveData.data.medal_2 = _root.medal_2;
_root.medal_3 = false;
_root.saveData.data.medal_3 = _root.medal_3;
_root.medal_4 = false;
_root.saveData.data.medal_4 = _root.medal_4;
_root.medal_5 = false;
_root.saveData.data.medal_5 = _root.medal_5;
_root.medal_6 = false;
_root.saveData.data.medal_6 = _root.medal_6;
_root.medal_7 = false;
_root.saveData.data.medal_7 = _root.medal_7;
_root.medal_8 = false;
_root.saveData.data.medal_8 = _root.medal_8;
_root.medal_9 = false;
_root.saveData.data.medal_9 = _root.medal_9;
_root.medal_10 = false;
_root.saveData.data.medal_10 = _root.medal_10;
_root.medal_11 = false;
_root.saveData.data.medal_11 = _root.medal_11;
_root.medal_12 = false;
_root.saveData.data.medal_12 = _root.medal_12;
_root.player_headchoice = 1;
_root.saveData.data.player_headchoice = _root.player_headchoice;
_root.options_difficulty = 'medium';
_root.saveData.data.options_difficulty = _root.options_difficulty;
_root.collectedstars = 0;
_root.saveData.data.collectedstars = _root.collectedstars;
_root.totalkills = 0;
_root.saveData.data.totalkills = _root.totalkills;
_root.totalpoints = 0;
_root.saveData.data.totalpoints = _root.totalpoints;
_root.shotsfiredtotal = 0;
_root.saveData.data.shotsfiredtotal = _root.shotsfiredtotal;
_root.totalcivkills = 0;
_root.saveData.data.totalcivkills = _root.totalcivkills;
_root.music_mute = false;
_root.saveData.data.music_mute = _root.music_mute;
_root.explosioncount = 0;
_root.saveData.data.explosioncount = _root.explosioncount;
_root.weaponsetArray = new Array();
_root.weaponammoArray = new Array();
_root.weapontypeArray = new Array();
_root.weaponsetArray = ['usp'];
_root.weaponammoArray = [50];
_root.weapontypeArray = ['gun'];
_root.saveData.data.weaponsetArray = _root.weaponsetArray;
_root.saveData.data.weaponammoArray = _root.weaponammoArray;
_root.saveData.data.weapontypeArray = _root.weapontypeArray;
_root.ul_usp = true;
_root.ul_lazergun = false;
_root.ul_glock = false;
_root.ul_uzi = false;
_root.ul_revolver = false;
_root.ul_crossbow = false;
_root.ul_musket = false;
_root.ul_mossberg = false;
_root.ul_mp5 = false;
_root.ul_lazerblaster = false;
_root.ul_m4 = false;
_root.ul_deserteagle = false;
_root.ul_aa_12 = false;
_root.ul_ak_47 = false;
_root.ul_scar = false;
_root.ul_ranger = false;
_root.ul_tar_21 = false;
_root.ul_vector = false;
_root.ul_flamethrower = false;
_root.ul_goldengun = false;
_root.ul_intervention = false;
_root.ul_thumper = false;
_root.ul_rpg_7 = false;
_root.ul_chaingun = false;
_root.saveData.data.ul_usp = _root.ul_usp;
_root.saveData.data.ul_lazergun = _root.ul_lazergun;
_root.saveData.data.ul_glock = _root.ul_glock;
_root.saveData.data.ul_uzi = _root.ul_uzi;
_root.saveData.data.ul_revolver = _root.ul_revolver;
_root.saveData.data.ul_crossbow = _root.ul_crossbow;
_root.saveData.data.ul_musket = _root.ul_musket;
_root.saveData.data.ul_mossberg = _root.ul_mossberg;
_root.saveData.data.ul_mp5 = _root.ul_mp5;
_root.saveData.data.ul_lazerblaster = _root.ul_lazerblaster;
_root.saveData.data.ul_m4 = _root.ul_m4;
_root.saveData.data.ul_deserteagle = _root.ul_deserteagle;
_root.saveData.data.ul_aa_12 = _root.ul_aa_12;
_root.saveData.data.ul_ak_47 = _root.ul_ak_47;
_root.saveData.data.ul_scar = _root.ul_scar;
_root.saveData.data.ul_ranger = _root.ul_ranger;
_root.saveData.data.ul_tar_21 = _root.ul_tar_21;
_root.saveData.data.ul_vector = _root.ul_vector;
_root.saveData.data.ul_flamethrower = _root.ul_flamethrower;
_root.saveData.data.ul_goldengun = _root.ul_goldengun;
_root.saveData.data.ul_intervention = _root.ul_intervention;
_root.saveData.data.ul_thumper = _root.ul_thumper;
_root.saveData.data.ul_rpg_7 = _root.ul_rpg_7;
_root.saveData.data.ul_chaingun = _root.ul_chaingun;
_root.saveData.flush();
};
if (_root.saveData.data.exists == 1) {
_root.cutscene1 = _root.saveData.data.cutscene1;
_root.cutscene2 = _root.saveData.data.cutscene2;
_root.cutscene3 = _root.saveData.data.cutscene3;
_root.cutscene4 = _root.saveData.data.cutscene4;
_root.cutscene5 = _root.saveData.data.cutscene5;
_root.cutscene6 = _root.saveData.data.cutscene6;
_root.lvl1 = _root.saveData.data.lvl1;
_root.lvl2 = _root.saveData.data.lvl2;
_root.lvl3 = _root.saveData.data.lvl3;
_root.lvl4 = _root.saveData.data.lvl4;
_root.lvl5 = _root.saveData.data.lvl5;
_root.lvl6 = _root.saveData.data.lvl6;
_root.lvl7 = _root.saveData.data.lvl7;
_root.lvl8 = _root.saveData.data.lvl8;
_root.medal_1 = _root.saveData.data.medal_1;
_root.medal_2 = _root.saveData.data.medal_2;
_root.medal_3 = _root.saveData.data.medal_3;
_root.medal_4 = _root.saveData.data.medal_4;
_root.medal_5 = _root.saveData.data.medal_5;
_root.medal_6 = _root.saveData.data.medal_6;
_root.medal_7 = _root.saveData.data.medal_7;
_root.medal_8 = _root.saveData.data.medal_8;
_root.medal_9 = _root.saveData.data.medal_9;
_root.medal_10 = _root.saveData.data.medal_10;
_root.medal_11 = _root.saveData.data.medal_11;
_root.medal_12 = _root.saveData.data.medal_12;
_root.player_headchoice = _root.saveData.data.player_headchoice;
_root.options_difficulty = _root.saveData.data.options_difficulty;
_root.collectedstars = _root.saveData.data.collectedstars;
_root.totalkills = _root.saveData.data.totalkills;
_root.totalpoints = _root.saveData.data.totalpoints;
_root.shotsfiredtotal = _root.saveData.data.shotsfiredtotal;
_root.totalcivkills = _root.saveData.data.totalcivkills;
_root.music_mute = _root.saveData.data.music_mute;
_root.explosioncount = _root.saveData.data.explosioncount;
_root.weaponsetArray = _root.saveData.data.weaponsetArray;
_root.weaponammoArray = _root.saveData.data.weaponammoArray;
_root.weapontypeArray = _root.saveData.data.weapontypeArray;
_root.ul_usp = _root.saveData.data.ul_usp;
_root.ul_lazergun = _root.saveData.data.ul_lazergun;
_root.ul_glock = _root.saveData.data.ul_glock;
_root.ul_uzi = _root.saveData.data.ul_uzi;
_root.ul_revolver = _root.saveData.data.ul_revolver;
_root.ul_crossbow = _root.saveData.data.ul_crossbow;
_root.ul_musket = _root.saveData.data.ul_musket;
_root.ul_mossberg = _root.saveData.data.ul_mossberg;
_root.ul_mp5 = _root.saveData.data.ul_mp5;
_root.ul_lazerblaster = _root.saveData.data.ul_lazerblaster;
_root.ul_m4 = _root.saveData.data.ul_m4;
_root.ul_deserteagle = _root.saveData.data.ul_deserteagle;
_root.ul_aa_12 = _root.saveData.data.ul_aa_12;
_root.ul_ak_47 = _root.saveData.data.ul_ak_47;
_root.ul_scar = _root.saveData.data.ul_scar;
_root.ul_ranger = _root.saveData.data.ul_ranger;
_root.ul_tar_21 = _root.saveData.data.ul_tar_21;
_root.ul_vector = _root.saveData.data.ul_vector;
_root.ul_flamethrower = _root.saveData.data.ul_flamethrower;
_root.ul_goldengun = _root.saveData.data.ul_goldengun;
_root.ul_intervention = _root.saveData.data.ul_intervention;
_root.ul_thumper = _root.saveData.data.ul_thumper;
_root.ul_rpg_7 = _root.saveData.data.ul_rpg_7;
_root.ul_chaingun = _root.saveData.data.ul_chaingun;
} else {
_root.saveData.data.exists = 1;
saveresetFunction();
}
saveitFunction = function () {
_root.saveData.data.cutscene1 = _root.cutscene1;
_root.saveData.data.cutscene2 = _root.cutscene2;
_root.saveData.data.cutscene3 = _root.cutscene3;
_root.saveData.data.cutscene4 = _root.cutscene4;
_root.saveData.data.cutscene5 = _root.cutscene5;
_root.saveData.data.cutscene6 = _root.cutscene6;
_root.saveData.data.lvl1 = _root.lvl1;
_root.saveData.data.lvl2 = _root.lvl2;
_root.saveData.data.lvl3 = _root.lvl3;
_root.saveData.data.lvl4 = _root.lvl4;
_root.saveData.data.lvl5 = _root.lvl5;
_root.saveData.data.lvl6 = _root.lvl6;
_root.saveData.data.lvl7 = _root.lvl7;
_root.saveData.data.lvl8 = _root.lvl8;
_root.saveData.data.medal_1 = _root.medal_1;
_root.saveData.data.medal_2 = _root.medal_2;
_root.saveData.data.medal_3 = _root.medal_3;
_root.saveData.data.medal_4 = _root.medal_4;
_root.saveData.data.medal_5 = _root.medal_5;
_root.saveData.data.medal_6 = _root.medal_6;
_root.saveData.data.medal_7 = _root.medal_7;
_root.saveData.data.medal_8 = _root.medal_8;
_root.saveData.data.medal_9 = _root.medal_9;
_root.saveData.data.medal_10 = _root.medal_10;
_root.saveData.data.medal_11 = _root.medal_11;
_root.saveData.data.medal_12 = _root.medal_12;
_root.saveData.data.player_headchoice = _root.player_headchoice;
_root.saveData.data.options_difficulty = _root.options_difficulty;
_root.saveData.data.collectedstars = _root.collectedstars;
_root.saveData.data.totalpoints = _root.totalpoints;
_root.saveData.data.shotsfiredtotal = _root.shotsfiredtotal;
_root.saveData.data.totalkills = _root.totalkills;
_root.saveData.data.totalcivkills = _root.totalcivkills;
_root.saveData.data.music_mute = _root.music_mute;
_root.saveData.data.explosioncount = _root.explosioncount;
_root.saveData.data.weaponsetArray = _root.weaponsetArray;
_root.saveData.data.weaponammoArray = _root.weaponammoArray;
_root.saveData.data.weapontypeArray = _root.weapontypeArray;
_root.saveData.data.ul_usp = _root.ul_usp;
_root.saveData.data.ul_lazergun = _root.ul_lazergun;
_root.saveData.data.ul_glock = _root.ul_glock;
_root.saveData.data.ul_uzi = _root.ul_uzi;
_root.saveData.data.ul_revolver = _root.ul_revolver;
_root.saveData.data.ul_crossbow = _root.ul_crossbow;
_root.saveData.data.ul_musket = _root.ul_musket;
_root.saveData.data.ul_mossberg = _root.ul_mossberg;
_root.saveData.data.ul_mp5 = _root.ul_mp5;
_root.saveData.data.ul_lazerblaster = _root.ul_lazerblaster;
_root.saveData.data.ul_m4 = _root.ul_m4;
_root.saveData.data.ul_deserteagle = _root.ul_deserteagle;
_root.saveData.data.ul_aa_12 = _root.ul_aa_12;
_root.saveData.data.ul_ak_47 = _root.ul_ak_47;
_root.saveData.data.ul_scar = _root.ul_scar;
_root.saveData.data.ul_ranger = _root.ul_ranger;
_root.saveData.data.ul_tar_21 = _root.ul_tar_21;
_root.saveData.data.ul_vector = _root.ul_vector;
_root.saveData.data.ul_flamethrower = _root.ul_flamethrower;
_root.saveData.data.ul_goldengun = _root.ul_goldengun;
_root.saveData.data.ul_intervention = _root.ul_intervention;
_root.saveData.data.ul_thumper = _root.ul_thumper;
_root.saveData.data.ul_rpg_7 = _root.ul_rpg_7;
_root.saveData.data.ul_chaingun = _root.ul_chaingun;
_root.saveData.flush();
};
var levelkills = 0;
var totaltimebonus = 0;
var levelpoints = 0;
var destructionpoints = 0;
var leveltotal = 0;
var levelcivkills = 0;
_root.killwallxArray = new Array();
_root.killwallyArray = new Array();
_root.kwallkillsArray = new Array();
var bulletArray = new Array();
var enebulletArray = new Array();
var particleArray = new Array();
var weaponpickupArray = new Array();
var starsArray = new Array();
var enemynameArray = new Array();
var scoretextArray = new Array();
var trashArray = new Array();
_root.chargedmelee = 0;
_root.elife = 120;
_root.mlife = 100;
_root.hlife = 85;
_root.createEmptyMovieClip('sfxMC', 1001);
ricochet0 = new Sound(sfxMC);
ricochet0.attachSound('ric0');
ricochet1 = new Sound(sfxMC);
ricochet1.attachSound('ric1');
ricochet2 = new Sound(sfxMC);
ricochet2.attachSound('ric2');
ricochet3 = new Sound(sfxMC);
ricochet3.attachSound('ric3');
crate0 = new Sound(sfxMC);
crate0.attachSound('crate0');
crate1 = new Sound(sfxMC);
crate1.attachSound('crate1');
dink = new Sound(sfxMC);
dink.attachSound('dink');
chkchk = new Sound(sfxMC);
chkchk.attachSound('chkchk');
slice1 = new Sound(sfxMC);
slice1.attachSound('slice1');
slice0 = new Sound(sfxMC);
slice0.attachSound('slice0');
earm = new Sound(sfxMC);
earm.attachSound('earm');
outofammo = new Sound(sfxMC);
outofammo.attachSound('outofammo');
explosion = new Sound(sfxMC);
explosion.attachSound('explosion');
roll = new Sound(sfxMC);
roll.attachSound('roll');
death1 = new Sound(sfxMC);
death1.attachSound('death1');
death2 = new Sound(sfxMC);
death2.attachSound('death2');
death3 = new Sound(sfxMC);
death3.attachSound('death3');
death4 = new Sound(sfxMC);
death4.attachSound('death4');
death5 = new Sound(sfxMC);
death5.attachSound('death5');
death6 = new Sound(sfxMC);
death6.attachSound('death6');
death7 = new Sound(sfxMC);
death7.attachSound('death7');
death8 = new Sound(sfxMC);
death8.attachSound('death8');
death9 = new Sound(sfxMC);
death9.attachSound('death9');
electrocuted0 = new Sound(sfxMC);
electrocuted0.attachSound('electrocuted0');
electrocuted1 = new Sound(sfxMC);
electrocuted1.attachSound('electrocuted1');
flamed0 = new Sound(sfxMC);
flamed0.attachSound('flamed0');
flamed1 = new Sound(sfxMC);
flamed1.attachSound('flamed1');
chicken1 = new Sound(sfxMC1);
chicken1.attachSound('chicken1');
chicken2 = new Sound(sfxMC1);
chicken2.attachSound('chicken2');
pausesfx = new Sound(sfxMC1);
pausesfx.attachSound('pausesfx');
biglaser = new Sound(sfxMC1);
biglaser.attachSound('biglaser');
Gun_lazershot = new Sound(sfxMC1);
Gun_lazershot.attachSound('Gun_lazershot');
button_over = new Sound(sfxMC);
button_over.attachSound('button_over');
button_press = new Sound(sfxMC);
button_press.attachSound('button_press');
_root.createEmptyMovieClip('sfxMC1', 1002);
flame = new Sound(sfxMC1);
flame.attachSound('flame');
chainguncharge = new Sound(sfxMC1);
chainguncharge.attachSound('chainguncharge');
chaingunshoot = new Sound(sfxMC1);
chaingunshoot.attachSound('chaingunshoot');
var totalsongs = 4;
_root.createEmptyMovieClip('musicMC', 1003);
Music0 = new Sound(musicMC);
Music0.attachSound('Music0');
Music1 = new Sound(musicMC);
Music1.attachSound('Music1');
Music2 = new Sound(musicMC);
Music2.attachSound('Music2');
Music3 = new Sound(musicMC);
Music3.attachSound('Music3');
Music4 = new Sound(musicMC);
Music4.attachSound('Music4');
Music_unicorn = new Sound(musicMC);
Music_unicorn.attachSound('Music_unicorn');
boss_music2 = new Sound(musicMC);
boss_music2.attachSound('boss_music2');
boss_music3 = new Sound(musicMC);
boss_music3.attachSound('boss_music3');
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
var jaycredit = new ContextMenuItem('Art + Code: Jay Armstrong', deadClick);
var seancredit = new ContextMenuItem('Art: Sean Parnell', deadClick);
var hqualityChange = new ContextMenuItem('High Quality', hqualityChange);
hqualityChange.separatorBefore = true;
var mqualityChange = new ContextMenuItem('Medium Quality', mqualityChange);
var lqualityChange = new ContextMenuItem('Low Quality', lqualityChange);
myMenu.customItems.push(hqualityChange, mqualityChange, lqualityChange);
_root.menu = myMenu;
'usp';
'lazergun';
'glock';
'uzi';
'revolver';
'crossbow';
'musket';
'mossberg';
'mp5';
'lazerblaster';
'm4';
'deserteagle';
'aa-12';
'ak-47';
'scar';
'ranger';
'tar-21';
'vector';
'flamethrower';
'goldengun';
'intervention';
'thumper';
'rpg-7';
'chaingun';
weaponunlockingsimple = function (ulvariable, price, weapon1, weapontype1, ammo1) {
if (_root.reset_mc._currentframe == 1 && ulvariable == false && _root.totalpoints >= price && _root.hero.activated == true && _root.hero._currentframe != 7 && _root.weaponunlocks._currentframe == 1) {
_root.weaponunlocks.gotoAndPlay(2);
_root.weaponunlocks.unlocked = weapon1;
_root.weaponunlocks.unlockedtype = weapontype1;
_root['ul_' + weapon1] = true;
_root.weaponsetArray.push(weapon1);
_root.weapontypeArray.push(weapontype1);
_root.weaponammoArray.push(ammo1);
_root.hero.ammo = ammo1;
}
};
weaponunlocking = function () {
weaponunlockingsimple(ul_lazergun, 1000, 'lazergun', 'gun', 50);
weaponunlockingsimple(ul_glock, 3000, 'glock', 'gun', 70);
weaponunlockingsimple(ul_uzi, 5000, 'uzi', 'gun', 70);
weaponunlockingsimple(ul_revolver, 7000, 'revolver', 'gun', 40);
weaponunlockingsimple(ul_crossbow, 9000, 'crossbow', 'gun', 50);
weaponunlockingsimple(ul_musket, 11000, 'musket', 'gun', 50);
weaponunlockingsimple(ul_mossberg, 13000, 'mossberg', 'gun', 50);
weaponunlockingsimple(ul_mp5, 15000, 'mp5', 'gun', 70);
weaponunlockingsimple(ul_lazerblaster, 17000, 'lazerblaster', 'gun', 70);
weaponunlockingsimple(ul_m4, 190000, 'm4', 'gun', 70);
weaponunlockingsimple(ul_deserteagle, 21000, 'deserteagle', 'gun', 50);
weaponunlockingsimple(ul_aa_12, 22000, 'aa_12', 'gun', 60);
weaponunlockingsimple(ul_ak_47, 24000, 'ak_47', 'gun', 70);
weaponunlockingsimple(ul_rpg_7, 26000, 'rpg_7', 'gun', 20);
weaponunlockingsimple(ul_scar, 28000, 'scar', 'gun', 70);
weaponunlockingsimple(ul_ranger, 30000, 'ranger', 'gun', 50);
weaponunlockingsimple(ul_tar_21, 32000, 'tar_21', 'gun', 65);
weaponunlockingsimple(ul_vector, 34000, 'vector', 'gun', 75);
weaponunlockingsimple(ul_flamethrower, 36000, 'flamethrower', 'gun', 100);
weaponunlockingsimple(ul_goldengun, 38000, 'goldengun', 'gun', 30);
weaponunlockingsimple(ul_intervention, 40000, 'intervention', 'gun', 60);
weaponunlockingsimple(ul_thumper, 42000, 'thumper', 'gun', 30);
weaponunlockingsimple(ul_chaingun, 44000, 'chaingun', 'chaingun', 200);
if (Key.isDown(84) && Key.isDown(72) && Key.isDown(65) && Key.isDown(78) && Key.isDown(69)) {
trace('Cheat: All Levels!');
_root.lvl1 = true;
_root.lvl2 = true;
_root.lvl3 = true;
_root.lvl4 = true;
_root.lvl5 = true;
_root.lvl6 = true;
_root.lvl7 = true;
_root.lvl8 = true;
}
if (Key.isDown(71) && Key.isDown(85) && Key.isDown(78) && Key.isDown(83)) {
trace('Cheat: All Weapons!');
weaponsetArray = ['usp', 'lazergun', 'glock', 'uzi', 'revolver', 'crossbow', 'musket', 'mossberg', 'mp5', 'lazerblaster', 'm4', 'deserteagle', 'aa_12', 'ak_47', 'scar', 'ranger', 'tar_21', 'vector', 'flamethrower', 'goldengun', 'intervention', 'thumper', 'rpg_7', 'chaingun'];
weaponammoArray = [999, 999, 999, 999, 999, 999, 999, 999, 999, 999, 999, 999, 999, 999, 999, 999, 999, 999, 999, 999, 999, 999, 999, 999, 999, 999, 999, 999, 999];
weapontypeArray = ['gun', 'gun', 'gun', 'gun', 'gun', 'gun', 'gun', 'gun', 'gun', 'gun', 'gun', 'gun', 'gun', 'gun', 'gun', 'gun', 'gun', 'gun', 'gun', 'gun', 'gun', 'gun', 'gun', 'chaingun'];
ul_usp = true;
ul_lazergun = true;
ul_glock = true;
ul_uzi = true;
ul_revolver = true;
ul_crossbow = true;
ul_musket = true;
ul_mossberg = true;
ul_mp5 = true;
ul_lazerblaster = true;
ul_m4 = true;
ul_deserteagle = true;
ul_aa_12 = true;
ul_ak_47 = true;
ul_scar = true;
ul_ranger = true;
ul_tar_21 = true;
ul_vector = true;
ul_flamethrower = true;
ul_goldengun = true;
ul_intervention = true;
ul_thumper = true;
ul_rpg_7 = true;
ul_chaingun = true;
}
};
medalsunlocking = function () {
if (_root.weaponunlocks._currentframe == 1) {
if (_root.totalkills > 0 && _root.medal_1 != true) {
_root.weaponunlocks.medaltitle = 'first blood';
_root.medal_1 = true;
_root.weaponunlocks.gotoAndPlay(190);
}
if (_root.totalkills > 99 && _root.medal_4 != true) {
_root.weaponunlocks.medaltitle = 'cold killer';
_root.medal_4 = true;
_root.weaponunlocks.gotoAndPlay(190);
}
if (_root.totalkills > 499 && _root.medal_2 != true) {
_root.weaponunlocks.medaltitle = 'genocidal maniac';
_root.medal_2 = true;
_root.weaponunlocks.gotoAndPlay(190);
}
if (_root.medal_3 != true && _root.acidmedal == true) {
_root.weaponunlocks.medaltitle = 'poor swimmer';
_root.medal_3 = true;
_root.weaponunlocks.gotoAndPlay(190);
}
if (_root.medal_5 != true && _root.kfcmedal == true) {
_root.weaponunlocks.medaltitle = 'finger lickin!';
_root.medal_5 = true;
_root.weaponunlocks.gotoAndPlay(190);
}
if (_root.medal_6 != true && _root.collectedstars > 199) {
_root.weaponunlocks.medaltitle = 'star gazer';
_root.medal_6 = true;
_root.weaponunlocks.gotoAndPlay(190);
}
if (_root.medal_10 != true && _root.explosioncount > 24) {
_root.weaponunlocks.medaltitle = 'demolition expert';
_root.medal_10 = true;
_root.weaponunlocks.gotoAndPlay(190);
}
if (_root.medal_11 != true && _root.weaponsetArray.length > 23) {
_root.weaponunlocks.medaltitle = 'gun nut';
_root.medal_11 = true;
_root.weaponunlocks.gotoAndPlay(190);
}
}
};
levelresetFunction = function () {
_root.saveitFunction();
_root.hud.removeMovieClip();
_root.hero.removeMovieClip();
_root.enemy1.removeMovieClip();
_root.enemy2.removeMovieClip();
_root.enemy3.removeMovieClip();
_root.enemy4.removeMovieClip();
_root.enemy5.removeMovieClip();
_root.enemy6.removeMovieClip();
_root.enemy7.removeMovieClip();
_root.c1.removeMovieClip();
_root.c2.removeMovieClip();
_root.c3.removeMovieClip();
_root.c4.removeMovieClip();
_root.c5.removeMovieClip();
_root.c6.removeMovieClip();
_root.c7.removeMovieClip();
_root.c8.removeMovieClip();
_root.c9.removeMovieClip();
_root.c10.removeMovieClip();
_root.weaponunlocks.removeMovieClip();
i = 0;
while (i < _root.weaponpickupArray.length) {
_root.weaponpickupArray[i].removeMovieClip();
++i;
}
i = 0;
while (i < _root.trashArray.length) {
_root.trashArray[i].removeMovieClip();
++i;
}
i = 0;
while (i < _root.bulletArray.length) {
_root.bulletArray[i].removeMovieClip();
++i;
}
i = 0;
while (i < _root.enebulletArray.length) {
_root.enebulletArray[i].removeMovieClip();
++i;
}
i = 0;
while (i < _root.particleArray.length) {
_root.particleArray[i].removeMovieClip();
++i;
}
_root.trashArray = [];
_root.particleArray = [];
_root.enebulletArray = [];
_root.scoretextArray = [];
_root.bulletArray = [];
_root.weaponpickupArray = [];
};
particlesFunction = function (subject) {
if (subject.hitTest(_root.vcam)) {
subject._visible = true;
} else {
subject._visible = false;
}
--subject.remove;
if (subject.remove < 1) {
subject._alpha -= 3;
if (subject._alpha < 20) {
subject.removeMovieClip();
}
}
};
scoretextFunction = function (subject1) {
if (subject1._name != 'scoretextOrig') {
subject1._y -= 2;
subject1._alpha -= 3;
if (subject1._alpha < 20) {
subject1.removeMovieClip();
}
}
};
cowboyboss_electrocutepplFunction = function (subject1) {
if (subject1.hit.hitTest(_root.hero) && _root.hero._currentframe != 7 && _root.hero._currentframe != 8) {
_root.hero.gotoAndStop('explosion');
_root.hero.life -= 25;
_root.hero.grav = 20;
if (_root.enemy1._x - _root.hero._x < 0) {
_root.hero.xSpeed = 8 + random(3);
}
if (_root.enemy1._x - _root.hero._x > 0) {
_root.hero.xSpeed = -(8 + random(3));
}
}
};
electrocutepplFunction = function (subject1) {
if (subject1.hit.hitTest(_root.hero) && _root.hero._currentframe != 7) {
}
i = 1;
while (i < 12) {
if (subject1.hit.hitTest(_root['enemy' + i].bound) && _root['enemy' + i]._currentframe != 7) {
_root['enemy' + i].gotoAndStop(7);
_root['enemy' + i].death.gotoAndPlay('lazerhazarddeath');
}
++i;
}
i = 1;
while (i < 20) {
if (subject1.hit.hitTest(_root['c' + i]) && _root['c' + i]._currentframe < 24) {
_root['c' + i].gotoAndPlay('death');
}
++i;
}
};
stopmusicFunction = function () {
_root.Music0.stop('Music0');
_root.Music1.stop('Music1');
_root.Music2.stop('Music2');
_root.Music3.stop('Music3');
_root.Music4.stop('Music4');
_root.Music_unicorn.stop('Music_unicorn');
_root.boss_music1.stop('boss_music1');
_root.boss_music2.stop('boss_music2');
_root.boss_music3.stop('boss_music3');
};
setmusicvolumeFunction = function (voltoset) {
_root.Music0.setVolume(voltoset);
_root.Music1.setVolume(voltoset);
_root.Music2.setVolume(voltoset);
_root.Music3.setVolume(voltoset);
_root.Music4.setVolume(voltoset);
_root.Music_unicorn.setVolume(voltoset);
_root.boss_music1.setVolume(voltoset);
_root.boss_music2.setVolume(voltoset);
_root.boss_music3.setVolume(voltoset);
};
musicFunction = function () {
if (Key.isDown(80) && _root.hero.activated == true && _root.reset_mc._currentframe == 1) {
_root.reset_mc.gotoAndPlay('pause');
}
if (_root.hero.activated == false) {
_root.chaingunshoot.stop('chaingunshoot');
_root.chainguncharge.stop('chainguncharge');
_root.chaingunshootplaying = false;
_root.chaingunchargeplaying = false;
_root.flame.stop('flame');
_root.flamesoundplaying = false;
}
};
killwallFunction = function () {
if (kwallkillsArray[_root.kwall] != undefined) {
_root.kwallstat = _root.levelkills + '/' + _root.kwallkillsArray[_root.kwall];
} else {
_root.kwallstat = _root.levelkills;
}
if (_root.levelkills >= _root.kwallkillsArray[_root.kwall] && _root.hero.activated && _root.r_limit._x != _root.finishline._x) {
++_root.kwall;
_root.hud.gohand.gotoAndPlay(2);
if (_root.kwall > _root.killwallxArray.length - 1) {
_root.ground.killwall.swapDepths(_root.ground.getNextHighestDepth());
_root.ground.killwall.removeMovieClip();
_root.r_limit._x = _root.finishline._x;
} else {
_root.ground.killwall._x = _root.killwallxArray[_root.kwall];
_root.ground.killwall._y = _root.killwallyArray[_root.kwall];
_root.r_limit._x = _root.ground.killwall._x + _root.ground._x;
}
}
if (_root.hero.bound.hitTest(_root.finishline) && _root.hero.activated == true && _root.hud.showscore._currentframe == 1) {
_root.hud.showscore.gotoAndPlay('win');
_root.hud.swapDepths(_root.getNextHighestDepth());
_root.hero.activated = false;
_root.hero.life = 0;
_root.hero.controllable = false;
}
};
explode = function (subject) {
subject.explosion = _root.bloodOrig.duplicateMovieClip('explosion' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
subject.explosion.gotoAndStop('explosion');
subject.explosion._x = subject._x;
subject.explosion._y = subject._y;
subject.explosion._rotation = subject._rotation;
subject.removeMovieClip();
};
hitbyexplosion = function (subject, subject2) {
if (subject.life > 0) {
subject.life -= 25;
_root.hud.enemylifebar.play();
_root.hud.enemylifebar.life = subject.life;
_root.hud.enemylifebar.totallife = subject.totallife;
subject.gotoAndStop('explosion');
if (subject._x - subject2._x < 0) {
subject.xSpeed = -(8 + random(3));
}
if (subject._x - subject2._x > 0) {
subject.xSpeed = 8 + random(3);
}
subject.grav = 12 + random(5);
}
};
starsFunction = function (subject1, place) {
if (subject1.hitTest(_root.hero.bound)) {
subject1.gotoAndStop(4);
_root.starsArray.splice(place, 1);
}
};
bulletFunction = function (subject) {
subject._x += Math.cos(subject._rotation * 3.141593 / 180) * subject.bulletSpeed;
subject._y += Math.sin(subject._rotation * 3.141593 / 180) * subject.bulletSpeed;
if (subject._y - _root.hero._y > _root.vcam._height) {
subject.removeMovieClip();
}
if (subject._y - _root.hero._y < -_root.vcam._height) {
subject.removeMovieClip();
}
if (subject._x - _root.hero._x > _root.vcam._width * 0.75) {
subject.removeMovieClip();
}
if (subject._x - _root.hero._x < -_root.vcam._width * 0.75) {
subject.removeMovieClip();
}
if (_root.ground.hitTest(subject._x, subject._y, true)) {
subject.newBlood = _root.bloodOrig.duplicateMovieClip('newBlood' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
subject.newBlood._x = subject._x;
subject.newBlood._rotation = subject._rotation;
if (subject._currentframe == 3) {
subject.newBlood._y = subject._y;
subject.newBlood.gotoAndStop('arrow');
} else {
if (subject._currentframe == 9) {
subject.newBlood._y = subject._y;
subject.newBlood.gotoAndStop(12);
} else {
subject.newBlood._y = subject._y - subject._height / 2;
subject.newBlood.gotoAndStop('ricochet');
}
}
subject.removeMovieClip();
}
};
acidFunction = function (subject1) {
if (subject1.bound.hitTest(_root.hero.bound) && _root.hero._currentframe != 7) {
_root.hero.activated = false;
_root.hero.gotoAndStop('death');
_root.hero.death.gotoAndPlay('acid');
}
if (subject1.bound.hitTest(_root.enemy1.bound) && _root.enemy1._currentframe != 7) {
_root.enemy1.activated = false;
_root.enemy1.gotoAndStop('death');
_root.enemy1.death.gotoAndPlay('acid');
}
if (subject1.bound.hitTest(_root.enemy2.bound) && _root.enemy2._currentframe != 7) {
_root.enemy2.activated = false;
_root.enemy2.gotoAndStop('death');
_root.enemy2.death.gotoAndPlay('acid');
}
if (subject1.bound.hitTest(_root.enemy3.bound) && _root.enemy3._currentframe != 7) {
_root.enemy3.activated = false;
_root.enemy3.gotoAndStop('death');
_root.enemy3.death.gotoAndPlay('acid');
}
if (subject1.bound.hitTest(_root.enemy4.bound) && _root.enemy4._currentframe != 7) {
_root.enemy4.activated = false;
_root.enemy4.gotoAndStop('death');
_root.enemy4.death.gotoAndPlay('acid');
}
if (subject1.bound.hitTest(_root.enemy4.bound) && _root.enemy5._currentframe != 7) {
_root.enemy5.activated = false;
_root.enemy5.gotoAndStop('death');
_root.enemy5.death.gotoAndPlay('acid');
}
};
waterFunction = function (subject1) {
if (subject1.bound.hitTest(_root.hero.bound) && _root.hero._currentframe != 7) {
_root.hero.activated = false;
_root.hero.gotoAndStop('death');
_root.hero.death.gotoAndPlay('drown');
}
if (subject1.bound.hitTest(_root.enemy1.bound) && _root.enemy1._currentframe != 7) {
_root.enemy1.activated = false;
_root.enemy1.gotoAndStop('death');
_root.enemy1.death.gotoAndPlay('drown');
}
if (subject1.bound.hitTest(_root.enemy2.bound) && _root.enemy2._currentframe != 7) {
_root.enemy2.activated = false;
_root.enemy2.gotoAndStop('death');
_root.enemy2.death.gotoAndPlay('drown');
}
if (subject1.bound.hitTest(_root.enemy3.bound) && _root.enemy3._currentframe != 7) {
_root.enemy3.activated = false;
_root.enemy3.gotoAndStop('death');
_root.enemy3.death.gotoAndPlay('drown');
}
if (subject1.bound.hitTest(_root.enemy4.bound) && _root.enemy4._currentframe != 7) {
_root.enemy4.activated = false;
_root.enemy4.gotoAndStop('death');
_root.enemy4.death.gotoAndPlay('drown');
}
if (subject1.bound.hitTest(_root.enemy4.bound) && _root.enemy5._currentframe != 7) {
_root.enemy5.activated = false;
_root.enemy5.gotoAndStop('death');
_root.enemy5.death.gotoAndPlay('drown');
}
};
spikesFunction = function (subject1) {
if (subject1.bound.hitTest(_root.hero.bound) && _root.hero._currentframe != 7) {
_root.hero.activated = false;
_root.hero.gotoAndStop('death');
_root.hero.death.gotoAndPlay('spikedeath');
}
if (subject1.bound.hitTest(_root.enemy1.bound) && _root.enemy1._currentframe != 7) {
_root.enemy1.activated = false;
_root.enemy1.gotoAndStop('death');
_root.enemy1.death.gotoAndPlay('spikedeath');
}
if (subject1.bound.hitTest(_root.enemy2.bound) && _root.enemy2._currentframe != 7) {
_root.enemy2.activated = false;
_root.enemy2.gotoAndStop('death');
_root.enemy2.death.gotoAndPlay('spikedeath');
}
if (subject1.bound.hitTest(_root.enemy3.bound) && _root.enemy3._currentframe != 7) {
_root.enemy3.activated = false;
_root.enemy3.gotoAndStop('death');
_root.enemy3.death.gotoAndPlay('spikedeath');
}
if (subject1.bound.hitTest(_root.enemy4.bound) && _root.enemy4._currentframe != 7) {
_root.enemy4.activated = false;
_root.enemy4.gotoAndStop('death');
_root.enemy4.death.gotoAndPlay('spikedeath');
}
if (subject1.bound.hitTest(_root.enemy4.bound) && _root.enemy5._currentframe != 7) {
_root.enemy5.activated = false;
_root.enemy5.gotoAndStop('death');
_root.enemy5.death.gotoAndPlay('spikedeath');
}
};
destructablesFunction = function (subject1) {
if (subject1.hitTest(_root.vcam)) {
subject1._visible = true;
} else {
subject1._visible = false;
}
if (subject1._currentframe == 1) {
if (subject1.life < 1) {
subject1.gotoAndPlay(2);
} else {
if (_root.bulletArray.length > 0 && subject1.life > 0) {
i = 0;
while (i < _root.bulletArray.length) {
if (subject1.bound.hitTest(_root.bulletArray[i]._x, _root.bulletArray[i]._y, true)) {
subject1.newBlood = _root.bloodOrig.duplicateMovieClip('newBlood' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
subject1.newBlood._x = _root.bulletArray[i]._x;
subject1.newBlood._y = _root.bulletArray[i]._y;
subject1.newBlood._rotation = _root.bulletArray[i]._rotation;
subject1.newBlood.gotoAndStop(2);
if (_root.bulletArray[i]._currentframe == 1) {
subject1.life -= 1.5;
} else {
if (_root.bulletArray[i]._currentframe == 2) {
subject1.life -= 2;
} else {
if (_root.bulletArray[i]._currentframe == 6) {
subject1.life -= 3;
} else {
if (_root.bulletArray[i]._currentframe == 7) {
subject1.life -= 4;
} else {
if (_root.bulletArray[i]._currentframe == 3) {
subject1.life -= 4;
} else {
if (_root.bulletArray[i]._currentframe == 4) {
subject1.life -= 12;
} else {
if (_root.bulletArray[i]._currentframe == 5) {
subject1.life -= 12;
} else {
if (_root.bulletArray[i]._currentframe == 8) {
subject1.life -= 1.5;
} else {
if (_root.bulletArray[i]._currentframe == 9) {
subject1.life -= 2;
if (subject1.life > 0) {
subject1.newBlood.gotoAndStop('flameout');
}
}
}
}
}
}
}
}
}
}
_root.bulletArray[i].removeMovieClip();
_root.hud.enemylifebar.play();
_root.hud.enemylifebar.life = subject1.life;
_root.hud.enemylifebar.totallife = subject1.totallife;
}
++i;
}
}
if (_root.enebulletArray.length > 0 && subject1.life > 0) {
i = 0;
while (i < _root.enebulletArray.length) {
if (subject1.bound.hitTest(_root.enebulletArray[i]._x, _root.enebulletArray[i]._y, true)) {
subject1.newBlood = _root.bloodOrig.duplicateMovieClip('newBlood' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
subject1.newBlood._x = _root.enebulletArray[i]._x;
subject1.newBlood._y = _root.enebulletArray[i]._y;
subject1.newBlood._rotation = _root.enebulletArray[i]._rotation;
subject1.newBlood.gotoAndStop(2);
if (_root.enebulletArray[i]._currentframe == 1) {
subject1.life -= 1.5;
} else {
if (_root.enebulletArray[i]._currentframe == 2) {
subject1.life -= 2;
} else {
if (_root.enebulletArray[i]._currentframe == 6) {
subject1.life -= 3;
} else {
if (_root.enebulletArray[i]._currentframe == 7) {
subject1.life -= 4;
} else {
if (_root.enebulletArray[i]._currentframe == 3) {
subject1.life -= 4;
} else {
if (_root.enebulletArray[i]._currentframe == 4) {
subject1.life -= 12;
} else {
if (_root.enebulletArray[i]._currentframe == 5) {
subject1.life -= 12;
} else {
if (_root.enebulletArray[i]._currentframe == 8) {
subject1.life -= 1.5;
} else {
if (_root.enebulletArray[i]._currentframe == 9) {
subject1.life -= 2;
if (subject1.life > 0) {
subject1.newBlood.gotoAndStop('flameout');
}
}
}
}
}
}
}
}
}
}
_root.enebulletArray[i].removeMovieClip();
_root.hud.enemylifebar.play();
_root.hud.enemylifebar.life = subject1.life;
_root.hud.enemylifebar.totallife = subject1.totallife;
}
++i;
}
}
}
}
};
civFunction = function (subject1) {
if (subject1.hitTest(_root.vcam)) {
subject1._visible = true;
} else {
subject1._visible = false;
}
if (subject1._currentframe == 1 && _root.civpanic == true) {
subject1.gotoAndPlay('panic');
}
if (subject1._currentframe < 24 && subject1._currentframe > 1 && _root.hero.activated == true) {
subject1._x += subject1._xscale / 25;
if (_root.ground.hitTest(subject1._x + (subject1._width / 2) * (subject1._xscale / 100), subject1._y + 20, true)) {
subject1._xscale *= -1;
}
if (_root.ground.hitTest(subject1._x + (subject1._width / 2) * (subject1._xscale / 100), subject1._y + 35, true) == 0) {
subject1._xscale *= -1;
}
}
if (subject1._currentframe < 24) {
if (_root.bulletArray.length > 0 && subject1.life > 0) {
i = 0;
while (i < _root.bulletArray.length) {
if (subject1.bound.hitTest(_root.bulletArray[i]._x, _root.bulletArray[i]._y, true)) {
subject1.newBlood = _root.bloodOrig.duplicateMovieClip('newBlood' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
subject1.newBlood._x = _root.bulletArray[i]._x;
subject1.newBlood._y = _root.bulletArray[i]._y;
subject1.newBlood._rotation = _root.bulletArray[i]._rotation;
subject1.newBlood.gotoAndStop(1);
if (_root.bulletArray[i]._currentframe == 1) {
subject1.life -= 1.5;
} else {
if (_root.bulletArray[i]._currentframe == 2) {
subject1.life -= 2;
} else {
if (_root.bulletArray[i]._currentframe == 6) {
subject1.life -= 3;
} else {
if (_root.bulletArray[i]._currentframe == 7) {
subject1.life -= 4;
} else {
if (_root.bulletArray[i]._currentframe == 3) {
subject1.life -= 4;
} else {
if (_root.bulletArray[i]._currentframe == 4) {
subject1.life -= 12;
} else {
if (_root.bulletArray[i]._currentframe == 5) {
subject1.life -= 12;
} else {
if (_root.bulletArray[i]._currentframe == 8) {
subject1.life -= 1.5;
} else {
if (_root.bulletArray[i]._currentframe == 9) {
subject1.life -= 2;
if (subject1.life > 0) {
subject1.newBlood.gotoAndStop('flameout');
} else {
subject1.medal_5kfc = true;
}
}
}
}
}
}
}
}
}
}
if (subject1.life < 1) {
subject1.gotoAndPlay('death');
if (_root.bulletArray[i]._x - subject1._x < 0) {
subject1._xscale = -100;
} else {
subject1._xscale = 100;
}
}
_root.bulletArray[i].removeMovieClip();
_root.hud.enemylifebar.play();
_root.hud.enemylifebar.life = subject1.life;
_root.hud.enemylifebar.totallife = subject1.totallife;
}
++i;
}
}
if (_root.enebulletArray.length > 0 && subject1.life > 0) {
i = 0;
while (i < _root.enebulletArray.length) {
if (subject1.bound.hitTest(_root.enebulletArray[i]._x, _root.enebulletArray[i]._y, true)) {
subject1.newBlood = _root.bloodOrig.duplicateMovieClip('newBlood' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
subject1.newBlood._x = _root.enebulletArray[i]._x;
subject1.newBlood._y = _root.enebulletArray[i]._y;
subject1.newBlood._rotation = _root.enebulletArray[i]._rotation;
subject1.newBlood.gotoAndStop(2);
if (_root.enebulletArray[i]._currentframe == 1) {
subject1.life -= 1.5;
} else {
if (_root.enebulletArray[i]._currentframe == 2) {
subject1.life -= 2;
} else {
if (_root.enebulletArray[i]._currentframe == 6) {
subject1.life -= 3;
} else {
if (_root.enebulletArray[i]._currentframe == 7) {
subject1.life -= 4;
} else {
if (_root.enebulletArray[i]._currentframe == 3) {
subject1.life -= 4;
} else {
if (_root.enebulletArray[i]._currentframe == 4) {
subject1.life -= 12;
} else {
if (_root.enebulletArray[i]._currentframe == 5) {
subject1.life -= 12;
} else {
if (_root.enebulletArray[i]._currentframe == 8) {
subject1.life -= 1.5;
} else {
if (_root.enebulletArray[i]._currentframe == 9) {
subject1.life -= 2;
if (subject1.life > 0) {
subject1.newBlood.gotoAndStop('flameout');
}
}
}
}
}
}
}
}
}
}
if (subject1.life < 1) {
subject1.gotoAndPlay('death');
if (_root.enebulletArray[i]._x - subject1._x < 0) {
subject1._xscale = -100;
} else {
subject1._xscale = 100;
}
}
_root.enebulletArray[i].removeMovieClip();
_root.hud.enemylifebar.play();
_root.hud.enemylifebar.life = subject1.life;
_root.hud.enemylifebar.totallife = subject1.totallife;
}
++i;
}
}
}
};
weaponpickupFunction = function (subject) {
if (subject.hitTest(_root.vcam)) {
subject._visible = true;
} else {
subject._visible = false;
}
if (subject.frame != _root._currentframe) {
subject.removeMovieClip();
}
if (subject.hitTest(_root.hero) && Key.isDown(83) && _root.hero.controllable == true && _root.hero.activated == true && _root.hero.newweapontimer < 1 && subject.ammo > 0) {
_root.chaingunshoot.stop('chaingunshoot');
_root.chainguncharge.stop('chainguncharge');
_root.chaingunchargeplaying = false;
_root.chaingunshootplaying = false;
_root.flame.stop('flame');
_root.flamesoundplaying = false;
if (_root.hero.currentweapon != 'none' && _root.hero.currentweapon != subject.currentweapon) {
subject.newGunpickup = _root.gunpickupOrig.duplicateMovieClip('newGunpickup' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
subject.newGunpickup._x = _root.hero._x;
subject.newGunpickup._y = _root.hero._y - _root.hero._height / 2;
subject.newGunpickup.xSpeed = random(10) - random(10);
subject.newGunpickup.ySpeed = 10;
subject.newGunpickup.gundisplay.gotoAndStop(_root.hero.currentweapon);
subject.newGunpickup.currentweapon = _root.hero.currentweapon;
subject.newGunpickup.weapontype = _root.hero.weapontype;
subject.newGunpickup.ammo = _root.hero.ammo;
}
if (_root.hero.currentweapon == subject.currentweapon) {
_root.hero.ammo += subject.ammo;
subject.score = _root.scoretextOrig.duplicateMovieClip('scoretext' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
subject.score._x = subject._x;
subject.score._y = subject._y;
subject.score.scoretext = '+Ammo!';
} else {
_root.hero.ammo = subject.ammo;
subject.score = _root.scoretextOrig.duplicateMovieClip('scoretext' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
subject.score._x = subject._x;
subject.score._y = subject._y;
subject.score.scoretext = subject.currentweapon;
}
_root.hero.newweapontimer = 20;
_root.hero.currentweapon = subject.currentweapon;
_root.hero.weapontype = subject.weapontype;
_root.hero.walk.gun.gotoAndStop(subject.currentweapon);
_root.hero.jump_mc.gun.gotoAndStop(subject.currentweapon);
_root.hero.recoil = 5;
_root.chkchk.start(0, 0);
_root.chkchk.setVolume(200);
subject.removeMovieClip();
}
if (subject.onGround == true) {
if (subject.ammo > 0) {
subject._rotation = 0;
subject.play();
} else {
subject.removeMovieClip();
}
}
};
bouncePhysics = function (subject, slowspeed) {
if (!subject.onGround) {
subject._rotation += subject.xSpeed * 4;
--subject.grav;
subject._y = subject._y - subject.grav - subject.ySpeed;
subject._x += subject.xSpeed;
if (_root.ground.hitTest(subject._x, subject._y, true) || _root.platform.hitTest(subject._x, subject._y, true)) {
subject.grav = 0;
subject._y -= subject._height / 2;
subject.ySpeed *= -0.8;
}
if (_root.ground.hitTest(subject._x, subject._y - subject._height / 2, true) || _root.platform.hitTest(subject._x, subject._y - subject._height / 2, true)) {
subject.grav = 0;
subject._y -= subject._height;
subject.ySpeed *= -0.8;
}
if (subject.ySpeed < slowspeed && subject.ySpeed > -slowspeed) {
if (_root.ground.hitTest(subject._x, subject._y + 3, true) || _root.platform.hitTest(subject._x, subject._y + 3, true)) {
subject.onGround = true;
}
}
if (_root.ground.hitTest(subject._x - subject._width / 2, subject._y - subject._height / 2, true)) {
subject._x += subject._width + 2;
subject.xSpeed *= -0.6;
}
if (_root.ground.hitTest(subject._x + subject._width / 2, subject._y - subject._height / 2, true)) {
subject._x -= subject._width - 2;
subject.xSpeed *= -0.6;
}
}
};
unicornFunction = function (subject1, subject2) {
if (_root.hero.activated == true) {
_root.heroShot(subject1);
subject1._x += subject1.xSpeed * Math.cos((subject1._rotation / 180) * 3.141593);
subject1._y += subject1.xSpeed * Math.sin((subject1._rotation / 180) * 3.141593);
for (;;) {
if (!(_root.ground.hitTest(_root.rwall._x, _root.rwall._y, true) || _root.crates.hitTest(_root.rwall._x, _root.rwall._y, true))) break;
subject1._x -= 1;
_root.rwall._x -= 1;
subject1.xSpeed = 0;
}
for (;;) {
if (!(_root.ground.hitTest(_root.lwall._x, _root.lwall._y, true) || _root.crates.hitTest(_root.lwall._x, _root.lwall._y, true))) break;
subject1._x += 1;
_root.lwall._x += 1;
subject1.xSpeed = 0;
}
for (;;) {
if (!(_root.ground.walls.hitTest(_root.rwall._x, _root.rwall._y, true) || _root.crates.hitTest(_root.rwall._x, _root.rwall._y, true))) break;
subject1._x -= 1;
_root.rwall._x -= 1;
subject1.xSpeed = 0;
}
for (;;) {
if (!(_root.ground.walls.hitTest(_root.lwall._x, _root.lwall._y, true) || _root.crates.hitTest(_root.lwall._x, _root.lwall._y, true))) break;
subject1._x += 1;
_root.lwall._x += 1;
subject1.xSpeed = 0;
}
if (subject1.onGround == false) {
if (subject1._rotation > 0) {
subject1._rotation -= 0.5;
}
if (subject1._rotation < 0) {
subject1._rotation += 0.5;
}
}
if (subject1.grav > -60) {
--subject1.grav;
}
subject1._y -= subject1.grav;
if (subject1.xSpeed > 0) {
subject1.xSpeed -= 1;
}
if (subject1.xSpeed < 0) {
subject1.xSpeed += 1;
}
if (subject1.addspeed > 0) {
subject1.addspeed -= 1;
}
if (subject1.addspeed < 0) {
subject1.addspeed += 1;
}
if (Key.isDown(_root.hero.right)) {
subject1._xscale = 100;
if (subject1.onGround == true) {
subject1.gotoAndStop(2);
if (Math.abs(subject1.xSpeed) < 13) {
subject1.xSpeed += 3;
}
} else {
subject1.gotoAndStop(4);
if (Math.abs(subject1.xSpeed) < 13) {
subject1.xSpeed += 1.5;
}
}
}
if (Key.isDown(_root.hero.left)) {
subject1._xscale = -100;
if (subject1.onGround == true) {
if (Math.abs(subject1.xSpeed) < 13) {
subject1.xSpeed -= 3;
}
subject1.gotoAndStop(2);
} else {
subject1.gotoAndStop(4);
if (Math.abs(subject1.xSpeed) < 13) {
subject1.xSpeed -= 1.5;
}
}
}
if (subject1.onGround == true && Key.isDown(_root.hero.right) == 0 && Key.isDown(_root.hero.left) == 0) {
if (subject1.onGround == true) {
subject1.gotoAndStop(3);
} else {
subject1.gotoAndStop(4);
}
}
if (Key.isDown(_root.hero.up) && subject1.onGround == true && subject1._currentframe == 2) {
subject1.gotoAndStop(4);
subject1.onGround = false;
subject1.grav = 12;
subject1._y -= 10;
}
if (subject2.hitTest(_root.dward._x, _root.dward._y, true) || _root.crates.hitTest(_root.dward._x, _root.dward._y, true)) {
subject1.onGround = true;
} else {
subject1.onGround = false;
}
for (;;) {
if (!(subject2.hitTest(subject1._x + subject1.bound._x + 3 * (subject1._xscale / 100) * Math.sin(subject1._rotation * 0.0174533), subject1._y + subject1.bound._y + 0 * Math.cos((subject1._rotation + 180) * 0.0174533), true) || _root.crates.hitTest(subject1._x + subject1.bound._x + 3 * (subject1._xscale / 100) * Math.sin(subject1._rotation * 0.0174533), subject1._y + subject1.bound._y + 0 * Math.cos((subject1._rotation + 180) * 0.0174533), true))) break;
subject1.grav = 0;
subject1._y -= 1 * Math.cos(subject1._rotation * 0.0174533);
subject1._x += 1 * Math.sin(subject1._rotation * 0.0174533);
}
if (subject1.recoil > 0) {
--subject1.recoil;
}
if (_root.msdown == true && subject1.recoil == 0) {
subject1.angle = Math.atan2(subject1._y - 65 - _root._ymouse, subject1._x - _root._xmouse) * 180 / 3.141593;
subject1.newBullet = _root.bulletOrig.duplicateMovieClip('bulletflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.Gun_lazershot.start(0, 0);
_root.Gun_lazershot.setVolume(80);
if (subject1._xscale == -100) {
subject1.newBullet._x = _root.lwall._x;
subject1.newBullet._y = _root.lwall._y;
}
if (subject1._xscale == 100) {
subject1.newBullet._x = _root.rwall._x;
subject1.newBullet._y = _root.rwall._y;
}
subject1.newBullet.bulletSpeed = 25;
subject1.newBullet._rotation = (180 - subject1.angle) * -1;
subject1.newBullet1 = _root.flashOrig.duplicateMovieClip('bulletflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
subject1.newBullet1._x = subject1.newBullet._x;
subject1.newBullet1._y = subject1.newBullet._y;
subject1.newBullet1._rotation = subject1.newBullet._rotation;
subject1.recoil = 7;
}
}
};
minecartFunction = function (subject1, subject2) {
if (_root.hero.activated == true) {
if (subject1.angle < 90 && subject1.angle > -90) {
subject1._xscale = 100;
} else {
subject1._xscale = -100;
}
if (subject1.recoil > 0) {
--subject1.recoil;
}
if (_root.msdown == false) {
_root.chaingunshoot.stop('chaingunshoot');
_root.chaingunshootplaying = false;
_root.chainguncharge.stop('chainguncharge');
_root.chaingunchargeplaying = false;
subject1.walk.gun.gun2.gotoAndStop(1);
subject1.jump_mc.gun.gun2.gotoAndStop(1);
subject1.chainguncharge = 0;
}
if (_root.hero.activated == false) {
subject1.walk.gun.gun2.gotoAndStop(1);
subject1.jump_mc.gun.gun2.gotoAndStop(1);
}
if (_root.msdown == true) {
if (subject1.chainguncharge < 35) {
_root.chaingunshoot.stop('chaingunshoot');
_root.chaingunshootplaying = false;
if (_root.chaingunchargeplaying != true) {
_root.chainguncharge.start(0, 99);
_root.chaingunchargeplaying = true;
}
subject1.walk.gun.gun2.gotoAndStop(2);
subject1.jump_mc.gun.gun2.gotoAndStop(2);
++subject1.chainguncharge;
} else {
_root.chainguncharge.stop('chainguncharge');
_root.chaingunchargeplaying = false;
if (_root.chaingunshootplaying != true) {
_root.chaingunshoot.start(0, 99);
_root.chaingunshootplaying = true;
}
subject1.walk.gun.gun2.gotoAndStop(3);
subject1.jump_mc.gun.gun2.gotoAndStop(3);
}
}
subject1.angle = Math.atan2(subject1.walk._y + subject1.walk.gun._y + subject1.walk.gun.gun2._y + subject1._y - _root._ymouse, subject1.walk._x + subject1.walk.gun._x + subject1.walk.gun.gun2._x + subject1._x - _root._xmouse) * 180 / 3.141593;
if (subject1._xscale == 100) {
subject1.walk.gun.gun2._rotation = subject1.angle - subject1._rotation;
if (subject1.angle < 80 && subject1.angle > -80) {
subject1.walk.head._rotation = (180 - subject1.angle) * -1;
}
}
if (subject1._xscale == -100) {
subject1.walk.gun.gun2._rotation = 180 - subject1.angle + subject1._rotation;
if (subject1.angle > 80 || subject1.angle < -80) {
subject1.walk.head._rotation = subject1.angle * -1;
}
}
_root.dward._x = subject1._x + subject1.bound._x - 1 * Math.sin((subject1._rotation + 90) * 0.0174533) - -7 * Math.sin((subject1._rotation + 180) * 0.0174533);
_root.dward._y = subject1._y + subject1.bound._y + 1 * Math.cos((subject1._rotation + 90) * 0.0174533) + -7 * Math.cos((subject1._rotation + 180) * 0.0174533);
subject1.wheels1._rotation += (subject1.xSpeed + subject1.addspeed) * 2;
subject1.wheels2._rotation += (subject1.xSpeed + subject1.addspeed) * 2;
subject1.wheels3._rotation += (subject1.xSpeed + subject1.addspeed) * 2;
subject1._x += (subject1.xSpeed + subject1.addspeed) * Math.cos((subject1._rotation / 180) * 3.141593);
subject1._y += (subject1.xSpeed + subject1.addspeed) * Math.sin((subject1._rotation / 180) * 3.141593);
while (_root.ground.hitTest(_root.rwall._x, _root.rwall._y, true)) {
subject1._x -= 1;
_root.rwall._x -= 1;
subject1.xSpeed = 0;
}
while (_root.ground.hitTest(_root.lwall._x, _root.lwall._y, true)) {
subject1._x += 1;
_root.lwall._x += 1;
subject1.xSpeed = 0;
}
if (subject1.onGround == false) {
if (subject1._rotation > 0) {
subject1._rotation -= 0.5;
}
if (subject1._rotation < 0) {
subject1._rotation += 0.5;
}
}
if (subject1.grav > -60) {
--subject1.grav;
}
subject1._y -= subject1.grav;
if (subject1.xSpeed > 0) {
subject1.xSpeed -= 0.5;
}
if (subject1.xSpeed < 0) {
subject1.xSpeed += 0.5;
}
if (subject1.addspeed > 0) {
subject1.addspeed -= 0.5;
}
if (subject1.addspeed < 0) {
subject1.addspeed += 0.5;
}
if (Math.abs(subject1.xSpeed) < 30) {
if (subject1._rotation > 0 && Key.isDown(_root.hero.left)) {
subject1.xSpeed += subject1._rotation / 120;
} else {
if (subject1._rotation < 0 && Key.isDown(_root.hero.right)) {
subject1.xSpeed += subject1._rotation / 120;
} else {
subject1.xSpeed += subject1._rotation / 25;
}
}
}
if (Math.abs(subject1.addspeed) < 5) {
if (Key.isDown(_root.hero.right)) {
subject1.addspeed += 1.5;
}
if (Key.isDown(_root.hero.left)) {
subject1.addspeed -= 1.5;
}
}
if (subject2.hitTest(_root.dward._x, _root.dward._y, true)) {
subject1.onGround = true;
} else {
subject1.onGround = false;
}
while (subject2.hitTest(subject1._x + subject1.bound._x + 3 * (subject1._xscale / 100) * Math.sin(subject1._rotation * 0.0174533), subject1._y + subject1.bound._y + 0 * Math.cos((subject1._rotation + 180) * 0.0174533), true)) {
subject1.grav = 0;
subject1._y -= 1 * Math.cos(subject1._rotation * 0.0174533);
subject1._x += 1 * Math.sin(subject1._rotation * 0.0174533);
}
}
};
cratesFunction = function (subject1) {
if (subject1._currentframe == 2) {
if (subject1.hitTest(_root.vcam)) {
subject1._visible = true;
if (_root.bulletArray.length > 0 && subject1.life > 0) {
i = 0;
while (i < _root.bulletArray.length) {
if (subject1.hitTest(_root.bulletArray[i]._x, _root.bulletArray[i]._y, true)) {
subject1.newBlood = _root.bloodOrig.duplicateMovieClip('newBlood' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
subject1.newBlood._x = _root.bulletArray[i]._x;
subject1.newBlood._y = _root.bulletArray[i]._y;
subject1.newBlood._rotation = _root.bulletArray[i]._rotation;
subject1.newBlood.gotoAndStop(2);
if (_root.bulletArray[i]._currentframe == 1) {
subject1.life -= 1.5;
} else {
if (_root.bulletArray[i]._currentframe == 2) {
subject1.life -= 2;
} else {
if (_root.bulletArray[i]._currentframe == 6) {
subject1.life -= 3;
} else {
if (_root.bulletArray[i]._currentframe == 7) {
subject1.life -= 4;
} else {
if (_root.bulletArray[i]._currentframe == 3) {
subject1.life -= 4;
} else {
if (_root.bulletArray[i]._currentframe == 4) {
subject1.life -= 12;
} else {
if (_root.bulletArray[i]._currentframe == 5) {
subject1.life -= 12;
} else {
if (_root.bulletArray[i]._currentframe == 8) {
subject1.life -= 1.5;
} else {
if (_root.bulletArray[i]._currentframe == 9) {
subject1.life -= 2;
if (subject1.life > 0) {
subject1.newBlood.gotoAndStop('flameout');
}
}
}
}
}
}
}
}
}
}
_root.bulletArray[i].removeMovieClip();
subject1.gotoAndPlay(3);
}
++i;
}
}
if (_root.enebulletArray.length > 0 && subject1.life > 0) {
i = 0;
while (i < _root.enebulletArray.length) {
if (subject1.hitTest(_root.enebulletArray[i]._x, _root.enebulletArray[i]._y, true)) {
subject1.newBlood = _root.bloodOrig.duplicateMovieClip('newBlood' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
subject1.newBlood._x = _root.enebulletArray[i]._x;
subject1.newBlood._y = _root.enebulletArray[i]._y;
subject1.newBlood._rotation = _root.enebulletArray[i]._rotation;
subject1.newBlood.gotoAndStop(2);
if (_root.enebulletArray[i]._currentframe == 1) {
subject1.life -= 1.5;
} else {
if (_root.enebulletArray[i]._currentframe == 2) {
subject1.life -= 2;
} else {
if (_root.enebulletArray[i]._currentframe == 6) {
subject1.life -= 3;
} else {
if (_root.enebulletArray[i]._currentframe == 7) {
subject1.life -= 4;
} else {
if (_root.enebulletArray[i]._currentframe == 3) {
subject1.life -= 4;
} else {
if (_root.enebulletArray[i]._currentframe == 4) {
subject1.life -= 12;
} else {
if (_root.enebulletArray[i]._currentframe == 5) {
subject1.life -= 12;
} else {
if (_root.enebulletArray[i]._currentframe == 8) {
subject1.life -= 1.5;
} else {
if (_root.enebulletArray[i]._currentframe == 9) {
subject1.life -= 2;
if (subject1.life > 0) {
subject1.newBlood.gotoAndStop('flameout');
}
}
}
}
}
}
}
}
}
}
_root.enebulletArray[i].removeMovieClip();
subject1.gotoAndPlay(3);
}
++i;
}
}
} else {
subject1._visible = false;
}
}
};
gettingshotSmart = function (subject, ricorblood) {
if (subject.bound.hitTest(_root.hero.melee.hit) && subject.life > 0 && _root.hero.life > 0) {
subject.life -= 5 + _root.chargedmelee;
subject.xSpeed += _root.hero.xSpeed * 1.8;
subject.gotoAndStop('stunned');
_root.hud.enemylifebar.play();
_root.hud.enemylifebar.life = subject.life;
_root.hud.enemylifebar.totallife = subject.totallife;
subject.newBlood = _root.bloodOrig.duplicateMovieClip('newBlood' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
subject.newBlood._x = subject._x;
subject.newBlood._y = subject._y - subject._height / 2;
subject.newBlood.gotoAndStop(8);
subject.newBlood._xscale = _root.hero._xscale;
subject.randomslice = random(2);
_root['slice' + subject.randomslice].start(0, 0);
_root['slice' + subject.randomslice].setVolume(200);
}
if (_root.bulletArray.length > 0 && subject.life > 0) {
i = 0;
while (i < _root.bulletArray.length) {
if (subject.bound.hitTest(_root.bulletArray[i]._x, _root.bulletArray[i]._y, true) && subject._currentframe != 7) {
subject.newBlood = _root.bloodOrig.duplicateMovieClip('newBlood' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
subject.newBlood._x = _root.bulletArray[i]._x;
subject.newBlood._y = _root.bulletArray[i]._y;
subject.newBlood._rotation = _root.bulletArray[i]._rotation;
subject.newBlood.gotoAndStop(ricorblood);
if (_root.bulletArray[i]._currentframe == 1) {
subject.life -= 1.5;
if (subject.life < 1) {
subject.gotoAndStop('death');
subject.death.gotoAndPlay('lazerdeath');
}
} else {
if (_root.bulletArray[i]._currentframe == 2) {
subject.life -= 2;
if (subject.life < 1) {
subject.gotoAndStop('death');
subject.death.gotoAndPlay('death' + (random(4) + 1));
}
} else {
if (_root.bulletArray[i]._currentframe == 6) {
subject.life -= 3;
if (subject.life < 1) {
subject.gotoAndStop('death');
subject.death.gotoAndPlay('death' + (random(4) + 1));
}
} else {
if (_root.bulletArray[i]._currentframe == 7) {
subject.life -= 4;
if (subject.life < 1) {
subject.gotoAndStop('death');
subject.death.gotoAndPlay('death' + (random(4) + 1));
}
} else {
if (_root.bulletArray[i]._currentframe == 3) {
subject.life -= 4;
if (subject.life < 1) {
subject.gotoAndStop('death');
subject.death.gotoAndPlay('crossbowdeath' + (random(2) + 1));
}
} else {
if (_root.bulletArray[i]._currentframe == 4) {
subject.life -= 12;
if (subject.life < 1) {
subject.gotoAndStop('death');
subject.death.gotoAndPlay('death' + (random(4) + 1));
}
} else {
if (_root.bulletArray[i]._currentframe == 5) {
subject.life -= 12;
if (subject.life < 1) {
subject.gotoAndStop('death');
subject.death.gotoAndPlay('death' + (random(4) + 1));
}
} else {
if (_root.bulletArray[i]._currentframe == 8) {
subject.life -= 1;
if (subject.life < 1) {
subject.gotoAndStop('death');
subject.death.gotoAndPlay('death' + (random(4) + 1));
}
} else {
if (_root.bulletArray[i]._currentframe == 9) {
subject.life -= 1;
if (subject.life > 0) {
subject.newBlood.gotoAndStop('flameout');
} else {
subject.gotoAndStop('death');
subject.death.gotoAndPlay('firedeath' + (random(3) + 1));
}
}
}
}
}
}
}
}
}
}
_root.bulletArray[i].removeMovieClip();
_root.hud.enemylifebar.play();
_root.hud.enemylifebar.life = subject.life;
_root.hud.enemylifebar.totallife = subject.totallife;
}
++i;
}
}
};
eneinitFunction = function (subject1) {
if (_root.options_difficulty == 'easy') {
subject1.life = 6;
subject1.totallife = 6;
}
if (_root.options_difficulty == 'medium') {
subject1.life = 8;
subject1.totallife = 8;
}
if (_root.options_difficulty == 'hard') {
subject1.life = 10;
subject1.totallife = 10;
}
subject1.jump = -15;
subject1.falling = true;
subject1.lifeOrig = 8;
subject1.grav = 0;
subject1.xSpeed = 0;
subject1.ySpeed = 0;
subject1.moveSpeed = 1.5;
subject1.xdist = 0;
subject1.eyeSight = 1450;
subject1.onGround = false;
subject1.whatweapon = random(2);
if (subject1.whatweapon == 1) {
subject1.currentweapon = 'm16';
}
if (subject1.whatweapon == 0) {
subject1.currentweapon = 'shotgun';
}
subject1.gotoAndStop(9);
};
enemyPhysics = function (subject1, subject2, subject3) {
--subject1.grav;
subject1._y = subject1._y - subject1.grav + subject1.ySpeed;
for (;;) {
if (!(_root.ground.hitTest(subject1._x, subject1._y + 0, true) || _root.platform.hitTest(subject1._x, subject1._y + 0, true) || _root.crates.hitTest(subject1._x, subject1._y + 0, true))) break;
subject1.grav = 0;
--subject1._y;
}
if (_root.ground.hitTest(subject1._x, subject1._y + 5, true) || _root.platform.hitTest(subject1._x, subject1._y + 5, true) || _root.crates.hitTest(subject1._x, subject1._y + 5, true)) {
subject1.onGround = true;
} else {
subject1.onGround = false;
}
for (;;) {
if (!(_root.ground.hitTest(subject1._x - subject1.bound._width / 2, subject1._y - subject1._height / 2, true) || _root.crates.hitTest(subject1._x - subject1.bound._width / 2, subject1._y - subject1._height / 2, true))) break;
++subject1._x;
subject1.xSpeed = 0;
}
for (;;) {
if (!(_root.ground.hitTest(subject1._x + subject1.bound._width / 2, subject1._y - subject1._height / 2, true) || _root.crates.hitTest(subject1._x + subject1.bound._width / 2, subject1._y - subject1._height / 2, true))) break;
--subject1._x;
subject1.xSpeed = 0;
}
for (;;) {
if (!(_root.ground.hitTest(subject1._x, subject1._y - subject1.bound._height / 2, true) || _root.crates.hitTest(subject1._x, subject1._y - subject1.bound._height / 2, true))) break;
++subject1._y;
subject1.grav = -5;
subject1.ySpeed = 0;
}
if (_root.ground.hitTest(subject1._x + 20 + 2, subject1._y - 35, true) || _root.crates.hitTest(subject1._x + 20 + 2, subject1._y - 35, true)) {
subject1.onRightWall = true;
} else {
subject1.onRightWall = false;
}
if (_root.ground.hitTest(subject1._x - 20 - 2, subject1._y - 35, true) || _root.crates.hitTest(subject1._x - 20 - 2, subject1._y - 35, true)) {
subject1.onLeftWall = true;
} else {
subject1.onLeftWall = false;
}
};
enemyJumping = function (subject1) {
if (subject1.onLeftWall == true && subject1.onGround && subject1._currentframe == 2) {
subject1.gotoAndStop(3);
}
if (subject1.onRightWall == true && subject1.onGround && subject1._currentframe == 2) {
subject1.gotoAndStop(3);
}
if (subject1.onGround && subject1._currentframe == 3 && subject1.jp._currentframe > 5) {
subject1.gotoAndStop(1);
subject1.ySpeed = 0;
}
if (subject1.onGround && subject1._currentframe != 3) {
subject1.ySpeed = 0;
}
};
enemyShooting = function (subject1, subject2) {
if (subject1._currentframe == 4) {
subject1.angle = -Math.atan2(subject1.walk._y + subject1.walk.gun._y + subject1.walk.gun.gun2._y + subject1._y - (subject2._y - subject2._height / 2), subject1.walk._x + subject1.walk.gun._x + subject1.walk.gun.gun2._x + subject1._x - subject2._x) * 180 / 3.141593;
if (subject1.angle < 90 && subject1.angle > -90) {
subject1._xscale = -100;
} else {
subject1._xscale = 100;
}
if (subject1._xscale == -100) {
subject1.walk.gun.gun2._rotation = subject1.angle;
subject1.walk.head._rotation = subject1.angle;
}
if (subject1._xscale == 100) {
subject1.walk.gun.gun2._rotation = 180 - subject1.angle;
subject1.walk.head._rotation = 180 - subject1.angle;
}
}
if (subject1._currentframe < 3 && subject1.life > 0 && subject2.life > 0 && _root.hero.activated == true) {
subject1.randomattack = random(150);
if (subject1.randomattack == 1) {
subject1.gotoAndStop(4);
}
}
};
enemyMoving = function (subject1) {
if (subject1.life > 0 && _root.hero.life > 0 && _root.hero.activated) {
if (subject1._currentframe < 4) {
if (subject1.ydist < subject1.eyeSight / 2 && subject1.ydist > -subject1.eyeSight / 2) {
if (subject1.xdist < subject1.eyeSight && subject1.xdist > 0) {
if (subject1.xSpeed > -subject1.moveSpeed) {
--subject1.xSpeed;
subject1._xscale = -100;
if (subject1._currentframe != 3) {
subject1.gotoAndStop(2);
}
}
}
if (subject1.xdist > -subject1.eyeSight && subject1.xdist < 0) {
if (subject1.xSpeed < subject1.moveSpeed) {
++subject1.xSpeed;
subject1._xscale = 100;
if (subject1._currentframe != 3) {
subject1.gotoAndStop(2);
}
}
}
}
}
}
if (subject1.xSpeed > 0) {
subject1._x += subject1.xSpeed;
if (subject1._currentframe != 6) {
subject1.xSpeed -= 0.5;
}
}
if (subject1.xSpeed < 0) {
subject1._x += subject1.xSpeed;
if (subject1._currentframe != 6) {
subject1.xSpeed += 0.5;
}
}
};
enemyRemoval = function (subject1) {
subject1.xdist = subject1._x - _root.hero._x;
subject1.ydist = subject1._y - _root.hero._y;
if (subject1._x - _root.vcam._x > _root.ene_limit && subject1._currentframe != 6 && subject1._currentframe != 7) {
_root.enemynameArray.push(subject1._name);
subject1.removeMovieClip();
}
if (subject1._x - _root.vcam._x < -_root.ene_limit && subject1._currentframe != 7) {
_root.enemynameArray.push(subject1._name);
subject1.removeMovieClip();
}
if (subject1._y - _root.vcam._y > _root.ene_limit && subject1._currentframe != 7) {
_root.enemynameArray.push(subject1._name);
subject1.removeMovieClip();
}
if (subject1._y - _root.vcam._y < -_root.ene_limit && subject1._currentframe != 7) {
_root.enemynameArray.push(subject1._name);
subject1.removeMovieClip();
}
if (subject1.hitTest(_root.vcam)) {
subject1._visible = true;
} else {
subject1._visible = false;
}
if (_root.hero.life < 1) {
subject1.removeMovieClip();
_root.enemynameArray.push(subject1._name);
}
};
enemyBundle = function (subject1) {
_root.gettingshotSmart(subject1, 1);
_root.enemyPhysics(subject1);
_root.enemyJumping(subject1);
_root.enemyShooting(subject1, _root.hero);
_root.enemyMoving(subject1);
_root.enemyRemoval(subject1);
};
vcamFunction = function (subject1) {
if (subject1._xscale < subject1.targetxscale) {
++subject1._xscale;
++subject1._yscale;
}
if (subject1._xscale > subject1.targetxscale) {
--subject1._xscale;
--subject1._yscale;
}
subject1._y = subject1._y + (subject1.target._y - subject1._y) / 5 - 10;
subject1._x = subject1._x + (subject1.target._x - subject1._x) / 10 - subject1.xadjust;
if (subject1.xadjust < subject1.xadjustreq) {
++subject1.xadjust;
}
if (subject1.xadjust > subject1.xadjustreq) {
--subject1.xadjust;
}
if (subject1.target._xscale == 100) {
subject1.xadjustreq = 7;
} else {
subject1.xadjustreq = -7;
}
if (subject1._x + subject1._width / 2 > _root.r_limit._x) {
subject1._x = _root.r_limit._x - subject1._width / 2;
}
if (subject1._x - subject1._width / 2 < _root.l_limit._x) {
subject1._x = _root.l_limit._x + subject1._width / 2;
}
if (subject1._y + subject1._height / 2 > _root.d_limit._y) {
subject1._y = _root.d_limit._y - subject1._height / 2;
}
if (subject1._y - subject1._height / 2 < _root.u_limit._y) {
subject1._y = _root.u_limit._y + subject1._height / 2;
}
_root.bg._x = subject1._x;
_root.bg._y = subject1._y;
_root.bg._xscale = subject1._xscale;
_root.bg._yscale = subject1._yscale;
_root.bg1._x = subject1._x / 1.1;
_root.bg1._y = subject1._y / 1.1;
_root.bg2._x = subject1._x / 2;
_root.bg2._y = subject1._y / 2;
_root.hud._x = subject1._x;
_root.hud._y = subject1._y;
_root.hud._xscale = subject1._xscale;
_root.hud._yscale = subject1._yscale;
_root.reset_mc._x = subject1._x;
_root.reset_mc._y = subject1._y;
_root.reset_mc._xscale = subject1._xscale;
_root.reset_mc._yscale = subject1._yscale;
_root.weaponunlocks._x = subject1._x;
_root.weaponunlocks._y = subject1._y;
_root.weaponunlocks._xscale = subject1._xscale;
_root.weaponunlocks._yscale = subject1._yscale;
};
heroWeapons = function (subject1) {
if (subject1.newweapontimer != 0) {
--subject1.newweapontimer;
}
if (subject1._currentframe < 4 && (subject1.weapontype == 'gun' || subject1.weapontype == 'chaingun')) {
if (subject1.angle < 90 && subject1.angle > -90) {
subject1._xscale = 100;
} else {
subject1._xscale = -100;
}
}
if (subject1.recoil > 0) {
--subject1.recoil;
}
if (subject1.weapontype == 'chaingun') {
if (_root.msdown == false) {
_root.chaingunshoot.stop('chaingunshoot');
_root.chaingunshootplaying = false;
_root.chainguncharge.stop('chainguncharge');
_root.chaingunchargeplaying = false;
subject1.walk.gun.gun2.gotoAndStop(1);
subject1.jump_mc.gun.gun2.gotoAndStop(1);
subject1.chainguncharge = 0;
}
if (_root.hero.activated == false) {
subject1.walk.gun.gun2.gotoAndStop(1);
subject1.jump_mc.gun.gun2.gotoAndStop(1);
}
if (_root.msdown == true) {
if (subject1.chainguncharge < 35) {
_root.chaingunshoot.stop('chaingunshoot');
_root.chaingunshootplaying = false;
if (_root.chaingunchargeplaying != true) {
_root.chainguncharge.start(0, 99);
_root.chaingunchargeplaying = true;
}
subject1.walk.gun.gun2.gotoAndStop(2);
subject1.jump_mc.gun.gun2.gotoAndStop(2);
++subject1.chainguncharge;
} else {
_root.chainguncharge.stop('chainguncharge');
_root.chaingunchargeplaying = false;
if (_root.chaingunshootplaying != true) {
_root.chaingunshoot.start(0, 99);
_root.chaingunshootplaying = true;
}
subject1.walk.gun.gun2.gotoAndStop(3);
subject1.jump_mc.gun.gun2.gotoAndStop(3);
}
}
if (subject1._currentframe < 4) {
subject1.angle = Math.atan2(_root.hero.walk._y + _root.hero.walk.gun._y + _root.hero.walk.gun.gun2._y + subject1._y - _root._ymouse, _root.hero.walk._x + _root.hero.walk.gun._x + _root.hero.walk.gun.gun2._x + subject1._x - _root._xmouse) * 180 / 3.141593;
if (subject1._xscale == 100) {
_root.hero.walk.gun.gun2._rotation = subject1.angle;
if (subject1.angle < 80 && subject1.angle > -80) {
_root.hero.walk.head._rotation = (180 - subject1.angle) * -1;
}
}
if (subject1._xscale == -100) {
_root.hero.walk.gun.gun2._rotation = 180 - subject1.angle;
if (subject1.angle > 80 || subject1.angle < -80) {
_root.hero.walk.head._rotation = subject1.angle * -1;
}
}
}
if (subject1._currentframe == 4) {
subject1.angle = Math.atan2(_root.hero.jump_mc._y + _root.hero.jump_mc.gun._y + _root.hero.jump_mc.gun.gun2._y + subject1._y - _root._ymouse, _root.hero.jump_mc._x + _root.hero.jump_mc.gun._x + _root.hero.jump_mc.gun.gun2._x + subject1._x - _root._xmouse) * 180 / 3.141593;
_root.hero.jump_mc.gun.gun2._rotation = subject1.angle;
if (subject1._xscale == 100) {
_root.hero.jump_mc.gun.gun2._rotation = subject1.angle;
if (subject1.angle < 80 && subject1.angle > -80) {
_root.hero.jump_mc.head._rotation = (180 - subject1.angle) * -1;
}
}
if (subject1._xscale == -100) {
_root.hero.jump_mc.gun.gun2._rotation = 180 - subject1.angle;
if (subject1.angle > 80 || subject1.angle < -80) {
_root.hero.jump_mc.head._rotation = subject1.angle * -1;
}
}
}
}
if (subject1.weapontype == 'gun') {
if (subject1._currentframe < 4) {
subject1.angle = Math.atan2(_root.hero.walk._y + _root.hero.walk.gun._y + _root.hero.walk.gun.gun2._y + subject1._y - _root._ymouse, _root.hero.walk._x + _root.hero.walk.gun._x + _root.hero.walk.gun.gun2._x + subject1._x - _root._xmouse) * 180 / 3.141593;
if (subject1._xscale == 100) {
_root.hero.walk.gun.gun2._rotation = subject1.angle;
if (subject1.angle < 80 && subject1.angle > -80) {
_root.hero.walk.head._rotation = (180 - subject1.angle) * -1;
}
}
if (subject1._xscale == -100) {
_root.hero.walk.gun.gun2._rotation = 180 - subject1.angle;
if (subject1.angle > 80 || subject1.angle < -80) {
_root.hero.walk.head._rotation = subject1.angle * -1;
}
}
if (_root.msdown == true && subject1.recoil < 1) {
_root.hero.walk.gun.gun2.play();
}
}
if (subject1._currentframe == 4) {
subject1.angle = Math.atan2(_root.hero.jump_mc._y + _root.hero.jump_mc.gun._y + _root.hero.jump_mc.gun.gun2._y + subject1._y - _root._ymouse, _root.hero.jump_mc._x + _root.hero.jump_mc.gun._x + _root.hero.jump_mc.gun.gun2._x + subject1._x - _root._xmouse) * 180 / 3.141593;
_root.hero.jump_mc.gun.gun2._rotation = subject1.angle;
if (subject1._xscale == 100) {
_root.hero.jump_mc.gun.gun2._rotation = subject1.angle;
if (subject1.angle < 80 && subject1.angle > -80) {
_root.hero.jump_mc.head._rotation = (180 - subject1.angle) * -1;
}
}
if (subject1._xscale == -100) {
_root.hero.jump_mc.gun.gun2._rotation = 180 - subject1.angle;
if (subject1.angle > 80 || subject1.angle < -80) {
_root.hero.jump_mc.head._rotation = subject1.angle * -1;
}
}
if (_root.msdown == true && subject1.recoil < 1) {
_root.hero.jump_mc.gun.gun2.play();
}
}
if (subject1.ammo < 1 && _root.msdown == true) {
subject1.gundrop = _root.gunpickupOrig.duplicateMovieClip('newGunpickup' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
subject1.gundrop._x = _root.hero._x;
subject1.gundrop._y = _root.hero._y - _root.hero._height / 2;
subject1.gundrop.xSpeed = random(10) - random(10);
subject1.gundrop.ySpeed = 10;
subject1.gundrop.gundisplay.gotoAndStop(_root.hero.currentweapon);
subject1.gundrop.currentweapon = _root.hero.currentweapon;
subject1.gundrop.weapontype = _root.hero.weapontype;
_root.chaingunshoot.stop('chaingunshoot');
_root.chainguncharge.stop('chainguncharge');
_root.flame.stop('flame');
_root.outofammo.start(0, 0);
_root.outofammo.setVolume(250);
_root.hero.currentweapon = 'none';
_root.hero.weapontype = 'none';
_root.hero.walk.gun.gotoAndStop(subject1.currentweapon);
_root.hero.jump_mc.gun.gotoAndStop(subject1.currentweapon);
}
if (_root.hero.currentweapon == 'flamethrower') {
if (_root.msdown == true) {
if (_root.flamesoundplaying != true) {
_root.flame.start(0, 99);
_root.flame.setVolume(80);
_root.flamesoundplaying = true;
}
}
if (_root.msdown == false) {
_root.flame.stop('flame');
_root.flamesoundplaying = false;
}
} else {
if (_root.flamesoundplaying == true) {
_root.flame.stop('flame');
_root.flamesoundplaying = false;
}
}
if (_root.hero.activated != true) {
_root.flame.stop('flame');
_root.flamesoundplaying = false;
}
}
if (subject1.weapontype == 'melee') {
subject1.angle = Math.atan2(subject1._y - _root._ymouse, subject1._x - _root._xmouse) * 180 / 3.141593;
if (subject1.ammo < 1 && _root.msdown == true) {
subject1.gundrop = _root.gunpickupOrig.duplicateMovieClip('newGunpickup' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
subject1.gundrop._x = _root.hero._x;
subject1.gundrop._y = _root.hero._y - _root.hero._height / 2;
subject1.gundrop.xSpeed = random(10) - random(10);
subject1.gundrop.ySpeed = 10;
subject1.gundrop.gundisplay.gotoAndStop(_root.hero.currentweapon);
subject1.gundrop.currentweapon = _root.hero.currentweapon;
gundrop.weapontype = _root.hero.weapontype;
_root.hero.currentweapon = 'none';
_root.hero.weapontype = 'none';
_root.hero.walk.gun.gotoAndStop(subject1.currentweapon);
}
if (subject1._currentframe < 4 && subject1.onGround == true) {
if (_root._xmouse < subject1._x) {
subject1._xscale = 100;
}
if (_root._xmouse > subject1._x) {
subject1._xscale = -100;
}
if (_root.msdown == true) {
subject1.gotoAndStop('melee');
subject1.melee.gotoAndPlay('combo' + subject1.jay);
++subject1.jay;
if (subject1.jay > 2) {
subject1.jay = 1;
}
}
}
if (subject1._currentframe == 4 && subject1.jump_mc._currentframe < 52 && subject1.doubleJumpThres1 == 0) {
if (_root.msdown == true) {
if (_root._xmouse < subject1._x) {
subject1._xscale = 100;
}
if (_root._xmouse > subject1._x) {
subject1._xscale = -100;
}
subject1.gotoAndStop('melee');
subject1.melee.gotoAndPlay('jumpattack');
}
}
}
};
heroPhysics = function (subject1) {
--subject1.grav;
subject1._y -= subject1.grav;
for (;;) {
if (!(_root.ground.hitTest(subject1._x + subject1.bound._x, subject1._y + subject1.bound._y + 0, true) || _root.platform.hitTest(subject1._x + subject1.bound._x, subject1._y + subject1.bound._y + 0, true) || _root.crates.hitTest(subject1._x + subject1.bound._x, subject1._y + subject1.bound._y + 0, true))) break;
subject1.grav = 0;
--subject1._y;
}
if (_root.ground.hitTest(subject1._x + subject1.bound._x, subject1._y + subject1.bound._y + 2, true) || _root.platform.hitTest(subject1._x + subject1.bound._x, subject1._y + subject1.bound._y + 2, true) || _root.crates.hitTest(subject1._x + subject1.bound._x, subject1._y + subject1.bound._y + 2, true)) {
subject1.onGround = true;
} else {
subject1.onGround = false;
}
for (;;) {
if (!(_root.ground.hitTest(subject1._x + subject1.bound._x - subject1.bound._width / 2, subject1._y + subject1.bound._y - subject1.bound._height / 2, true) || _root.crates.hitTest(subject1._x + subject1.bound._x - subject1.bound._width / 2, subject1._y + subject1.bound._y - subject1.bound._height / 2, true))) break;
++subject1._x;
subject1.xSpeed = 0;
}
for (;;) {
if (!(_root.ground.hitTest(subject1._x + subject1.bound._x + subject1.bound._width / 2, subject1._y + subject1.bound._y - subject1.bound._height / 2, true) || _root.crates.hitTest(subject1._x + subject1.bound._x + subject1.bound._width / 2, subject1._y + subject1.bound._y - subject1.bound._height / 2, true))) break;
--subject1._x;
subject1.xSpeed = 0;
}
for (;;) {
if (!(_root.ground.hitTest(subject1._x + subject1.bound._x, subject1._y + subject1.bound._y - subject1.bound._height, true) || _root.crates.hitTest(subject1._x + subject1.bound._x, subject1._y + subject1.bound._y - subject1.bound._height, true))) break;
++subject1._y;
subject1.grav = -5;
}
if (_root.ground.hitTest(subject1._x + subject1.bound._x + 20 + 2, subject1._y + subject1.bound._y - 40, true) || _root.crates.hitTest(subject1._x + subject1.bound._x + 20 + 2, subject1._y + subject1.bound._y - 40, true)) {
subject1.onRightWall = true;
} else {
subject1.onRightWall = false;
}
if (_root.ground.hitTest(subject1._x + subject1.bound._x - 20 - 2, subject1._y + subject1.bound._y - 40, true) || _root.crates.hitTest(subject1._x + subject1.bound._x - 20 - 2, subject1._y + subject1.bound._y - 40, true)) {
subject1.onLeftWall = true;
} else {
subject1.onLeftWall = false;
}
if (subject1.xSpeed > 0) {
if (subject1._currentframe != 7 && subject1._currentframe != 8) {
subject1.xSpeed -= 0.5;
subject1.xSpeed -= 0.5;
}
subject1._x += subject1.xSpeed;
}
if (subject1.xSpeed < 0) {
if (subject1._currentframe != 7 && subject1._currentframe != 8) {
subject1.xSpeed += 0.5;
subject1.xSpeed += 0.5;
}
subject1._x += subject1.xSpeed;
}
if (subject1.onGround) {
if (subject1.xSpeed > 0 && subject1.xSpeed < 1) {
subject1.xSpeed = 0;
}
if (subject1.xSpeed < 0 && subject1.xSpeed > -1) {
subject1.xSpeed = 0;
}
}
};
heroMovement = function (subject1) {
if (subject1._currentframe != 8) {
if (!subject1.onLeftWall) {
if (Key.isDown(subject1.left)) {
if (subject1.onGround) {
if (subject1.weapontype == 'none') {
subject1._xscale = 100;
}
if (subject1._currentframe < 5) {
if (subject1._xscale == 100) {
subject1.gotoAndStop(2);
}
if (subject1._xscale == -100) {
subject1.gotoAndStop(3);
}
}
} else {
if (subject1.jump_mc._currentframe < 39) {
subject1._xscale = 100;
}
}
if (subject1.xSpeed > -subject1.moveSpeed && subject1._currentframe != 5 && subject1._currentframe != 7) {
if (subject1.onGround) {
subject1.xSpeed -= 2;
} else {
if (subject1._xscale == 100) {
subject1.xSpeed -= 2;
} else {
subject1.xSpeed -= 1.5;
}
}
}
}
}
if (!subject1.onRightWall) {
if (Key.isDown(subject1.right)) {
if (subject1.onGround) {
if (subject1.weapontype == 'none') {
subject1._xscale = -100;
}
if (subject1._currentframe < 5) {
if (subject1._xscale == -100) {
subject1.gotoAndStop(2);
}
if (subject1._xscale == 100) {
subject1.gotoAndStop(3);
}
}
} else {
if (subject1.jump_mc._currentframe < 39) {
subject1._xscale = -100;
}
}
if (subject1.xSpeed < subject1.moveSpeed && subject1._currentframe != 5 && subject1._currentframe != 7) {
if (subject1.onGround) {
subject1.xSpeed += 2;
} else {
if (subject1._xscale == -100) {
subject1.xSpeed += 2;
} else {
subject1.xSpeed += 1.5;
}
}
}
}
}
}
if (subject1.onGround) {
if (Key.isDown(subject1.right) && Key.isDown(subject1.left)) {
if (subject1.xSpeed < 2 && subject1.xSpeed > -2) {
subject1.xSpeed = 0;
subject1.walk.gotoAndStop(1);
}
}
}
};
heroJumping = function (subject1) {
if (subject1._currentframe != 8) {
if (!(Key.isDown(subject1.jump) != 0 | Key.isDown(subject1.up) != 0)) {
subject1.jumpButtonOn = false;
}
if (subject1.onGround) {
if (Key.isDown(subject1.jump) != 0 | Key.isDown(subject1.up) != 0 && !subject1.jumpButtonOn && subject1._currentframe < 5) {
subject1.doubleJumpThres = 100;
subject1.doubleJumpThres1 = 100;
subject1.grav = subject1.jumpheight;
subject1.gotoAndStop('jump');
subject1.jump_mc.gotoAndPlay(1);
subject1.jumpButtonOn = true;
}
}
if (!subject1.onGround && subject1.jumpFromAttack == 0) {
if (subject1.doubleJumpThres > 0) {
--subject1.doubleJumpThres;
}
if (subject1.doubleJumpThres1 > 0) {
--subject1.doubleJumpThres1;
}
}
if (subject1.doubleJumpThres == 0 && Key.isDown(subject1.jump) != 0 | Key.isDown(subject1.up) != 0 && !subject1.jumpButtonOn) {
if (subject1.grav <= 13) {
subject1.grav = 10;
}
subject1.gotoAndStop('jump');
subject1.jump_mc.gotoAndPlay('double');
subject1.doubleJumpThres = 100;
subject1.jumpButtonOn = true;
}
if (subject1.onGround == true) {
if (subject1.jump_mc._currentframe > 3) {
subject1.gotoAndStop(1);
}
subject1.doubleJumpThres = 10;
subject1.doubleJumpThres1 = 10;
}
if (!subject1.onGround) {
if (Key.isDown(subject1.jump) != 0 | Key.isDown(subject1.up) != 0 && subject1.jump_mc._currentframe > 5 && subject1.jump._currentframe <= 20) {
if (subject1.onLeftWall && Key.isDown(subject1.left) != 0 | Key.isDown(subject1.right) != 0) {
subject1.doubleJumpThres = 100;
subject1.grav = 10;
subject1._xscale = -100;
subject1.jump_mc.gotoAndPlay('walljump');
}
if (subject1.onRightWall && Key.isDown(subject1.left) != 0 | Key.isDown(subject1.right) != 0) {
subject1.doubleJumpThres = 100;
subject1.grav = 10;
subject1._xscale = 100;
subject1.jump_mc.gotoAndPlay('walljump');
}
}
if (subject1.jump_mc._currentframe > 38) {
if (subject1._xscale == -100) {
subject1.xSpeed = 10;
} else {
subject1.xSpeed = -10;
}
}
if (subject1._currentframe == 1 && !subject1.onGround && subject1.walk._currentframe < 45) {
if (_root.ground.hitTest(subject1._x, subject1._y + 30, true)) {
} else {
subject1.gotoAndStop(3);
}
if (_root.platforms.hitTest(subject1._x, subject1._y + 30, true)) {
} else {
subject1.gotoAndStop(3);
}
}
}
}
};
heroShot = function (subject1) {
if (_root.enebulletArray.length > 0 && subject1.life > 0) {
i = 0;
while (i < _root.enebulletArray.length) {
if (subject1.bound.hitTest(_root.enebulletArray[i]._x, _root.enebulletArray[i]._y, true)) {
subject1.newBlood = _root.bloodOrig.duplicateMovieClip('newBlood' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
subject1.newBlood._x = _root.enebulletArray[i]._x;
subject1.newBlood._y = _root.enebulletArray[i]._y;
subject1.newBlood._rotation = _root.enebulletArray[i]._rotation;
subject1.newBlood.gotoAndStop(1);
if (_root.enebulletArray[i]._currentframe == 1) {
_root.hero.life -= 1.5;
} else {
if (_root.enebulletArray[i]._currentframe == 2) {
_root.hero.life -= 2;
if (_root.hero._currentframe != 7 && _root.hero.life < 1 && _root.hud.showscore._currentframe == 1) {
_root.minecart.gotoAndStop(1);
_root.hero._visible = true;
_root.hero.activated = false;
_root.hero.controllable = false;
_root.hero.gotoAndStop(7);
if (_root.hero.onGround == true) {
_root.hero.death.gotoAndPlay(1);
} else {
_root.hero.death.gotoAndPlay('gundeathinair');
}
_root.randomdeathsound = random(9) + 1;
_root['death' + randomdeathsound].start(0, 0);
_root['death' + randomdeathsound].setVolume(100);
}
} else {
if (_root.enebulletArray[i]._currentframe == 6) {
_root.hero.life -= 3;
} else {
if (_root.enebulletArray[i]._currentframe == 7) {
_root.hero.life -= 4;
} else {
if (_root.enebulletArray[i]._currentframe == 3) {
_root.hero.life -= 4;
} else {
if (_root.enebulletArray[i]._currentframe == 4) {
_root.hero.life -= 12;
} else {
if (_root.enebulletArray[i]._currentframe == 5) {
_root.hero.life -= 12;
} else {
if (_root.enebulletArray[i]._currentframe == 8) {
_root.hero.life -= 1.5;
} else {
if (_root.enebulletArray[i]._currentframe == 10) {
subject1.life -= 5;
} else {
if (_root.enebulletArray[i]._currentframe == 9) {
_root.hero.life -= 2;
if (subject1.life > 0) {
subject1.newBlood.gotoAndStop('flameout');
}
}
}
}
}
}
}
}
}
}
}
_root.enebulletArray[i].removeMovieClip();
}
++i;
}
}
};
stop();
onEnterFrame = function () {
_root.loading_bar._xscale = Math.floor((_root.getBytesLoaded() / getBytesTotal()) * 100);
if (_root.getBytesLoaded() == getBytesTotal()) {
delete this.onEnterFrame;
gotoAndStop(2);
}
};
}
movieClip 47 {
}
movieClip 48 {
}
movieClip 52 {
}
movieClip 54 {
}
movieClip 56 {
}
frame 2 {
stop();
}
movieClip 61 {
}
movieClip 62 {
frame 26 {
stop();
}
frame 32 {
stop();
}
frame 38 {
gotoAndStop(26);
}
}
instance of movieClip 62 {
onClipEvent (rollOver) {
if (_currentframe == 26) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(27);
}
}
onClipEvent (rollOut) {
gotoAndPlay(33);
}
onClipEvent (release) {
if (_currentframe > 25) {
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
_root.gotoAndPlay('logos');
}
}
}
frame 3 {
if (_root.cutscene2 != true) {
_root.gotoAndStop('cutscene2');
}
}
frame 4 {
enemynameArray = ['enemy1', 'enemy2', 'enemy3'];
levelpoints = 0;
levelkills = 0;
shotsfired = 0;
destructionpoints = 0;
leveltotal = 0;
levelcivkills = 0;
_root.kwall = 0;
_root.kwallkillsArray = [-1, 10, 20, 30];
_root.killwallxArray = [1880, 1880, 2614, 3687];
_root.killwallyArray = [-165, -165, -832, -409];
_root.civpanic = false;
_root.ene_limit = 450;
_root.stopmusicFunction();
randomMusic = random(_root.totalsongs);
_root['Music' + randomMusic].start(0, 99);
if (_root.music_mute == false) {
_root['Music' + randomMusic].setVolume(85);
}
if (_root.music_mute == true) {
_root['Music' + randomMusic].setVolume(0);
}
}
frame 5 {
_root.lvl2 = true;
stop();
_root.ground._visible = false;
_root.platform._visible = false;
_root.u_limit._visible = false;
_root.d_limit._visible = false;
_root.r_limit._visible = false;
_root.l_limit._visible = false;
_root.bg2.cacheAsBitmap = true;
onMouseDown = function () {
msdown = true;
};
onMouseUp = function () {
msdown = false;
};
onEnterFrame = function () {
if (_root.hero.activated == true) {
_root.instructionstxt._visible = true;
} else {
_root.instructionstxt._visible = false;
}
_root.vcamFunction(_root.vcam);
_root.vcam.camControl();
_root.musicFunction();
_root.weaponunlocking();
_root.medalsunlocking();
if (_root.hero.activated == true) {
_root.heroWeapons(_root.hero);
_root.heroPhysics(_root.hero);
_root.heroMovement(_root.hero);
_root.heroJumping(_root.hero);
_root.heroShot(_root.hero);
}
if (_root.hero.activated == true) {
if (_root.bulletArray.length > 0) {
i = 0;
while (i < _root.bulletArray.length) {
_root.bulletFunction(_root.bulletArray[i]);
if (_root.bulletArray[i].alive == undefined) {
_root.bulletArray.splice(i, 1);
}
++i;
}
}
if (_root.enebulletArray.length > 0) {
i = 0;
while (i < _root.enebulletArray.length) {
_root.bulletFunction(_root.enebulletArray[i]);
if (_root.enebulletArray[i].alive == undefined) {
_root.enebulletArray.splice(i, 1);
}
++i;
}
}
}
i = 0;
while (i < _root.particleArray.length) {
_root.particlesFunction(_root.particleArray[i]);
if (_root.particleArray[i].onGround != true) {
_root.bouncePhysics(_root.particleArray[i], 3);
} else {
_root.onGroundPhysics(_root.particleArray[i]);
}
if (_root.particleArray[i].alive == undefined) {
_root.particleArray.splice(i, 1);
}
++i;
}
if (_root.scoretextArray.length > 0) {
i = 0;
while (i < _root.scoretextArray.length) {
_root.scoretextFunction(_root.scoretextArray[i]);
if (_root.scoretextArray[i].alive == undefined) {
_root.scoretextArray.splice(i, 1);
}
++i;
}
}
i = 0;
while (i < _root.starsArray.length) {
if (_root.starsArray[i]._x - _root.vcam._x < 350 && _root.starsArray[i]._x - _root.vcam._x > -350) {
if (_root.starsArray[i]._currentframe == 2) {
_root.starsArray[i].gotoAndStop(3);
}
if (_root.starsArray[i]._currentframe == 3) {
_root.starsFunction(_root.starsArray[i], i);
}
} else {
if (_root.starsArray[i]._currentframe == 3) {
_root.starsArray[i].gotoAndStop(2);
}
}
++i;
}
i = 0;
while (i < _root.weaponpickupArray.length) {
if (_root.weaponpickupArray[i].onGround != true) {
_root.bouncePhysics(_root.weaponpickupArray[i], 5);
}
_root.weaponpickupFunction(_root.weaponpickupArray[i]);
if (_root.weaponpickupArray[i].alive == undefined) {
_root.weaponpickupArray.splice(i, 1);
}
++i;
}
_root.killwallFunction();
_root.civFunction(_root.c1);
_root.civFunction(_root.c2);
_root.civFunction(_root.c3);
_root.acidFunction(_root.acid1);
if (_root.hero._x > 880) {
chance = random(45);
if (chance == 1 && _root.enemynameArray.length > 0 && _root.hero.activated) {
newEne = _root.ene.duplicateMovieClip(_root.enemynameArray[0], _root.getNextHighestDepth());
_root.enemynameArray.splice(0, 1);
side = random(2);
if (side == 1) {
newEne._x = _root.hero._x - 300;
} else {
newEne._x = _root.hero._x + 300;
}
newEne._y = _root.hero._y;
}
}
_root.enemyBundle(_root.enemy1);
_root.enemyBundle(_root.enemy2);
_root.enemyBundle(_root.enemy3);
_root.enemyBundle(_root.enemy4);
};
}
movieClip 65 {
}
movieClip 66 {
}
movieClip 68 {
}
movieClip 70 {
}
movieClip 71 {
}
movieClip 74 {
}
movieClip 78 {
}
movieClip 80 {
}
movieClip 84 {
}
movieClip 87 {
}
movieClip 91 {
}
movieClip 93 {
}
movieClip 95 {
}
movieClip 98 {
}
movieClip 100 {
}
movieClip 102 {
}
movieClip 104 {
}
movieClip 108 {
frame 1 {
_visible = false;
}
}
movieClip 113 {
}
movieClip 114 {
}
movieClip 155 {
frame 1 {
life = 6;
totallife = 6;
this.bound._visible = false;
stop();
}
frame 2 {
if (_root.hero.activated == true) {
this.swapDepths(_root.getNextHighestDepth());
}
if (_root.hero.life < 1) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
frame 13 {
gotoAndPlay('panic');
}
frame 24 {
_root.civpanic = true;
_root.levelcivkills += 1;
_root.totalcivkills += 1;
}
frame 106 {
_root.destructionpoints += 50;
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
movieClip 183 {
frame 7 {
var chickenai = random(55);
if (chickenai > -1 && chickenai < 2) {
gotoAndPlay('lookaround');
} else {
if (chickenai > 1 && chickenai < 5) {
gotoAndPlay('switch');
} else {
if (chickenai > 4 && chickenai < 6) {
gotoAndPlay('peck');
} else {
gotoAndPlay(1);
}
}
}
}
frame 46 {
gotoAndPlay(1);
}
frame 57 {
_parent._xscale *= -1;
}
frame 66 {
gotoAndPlay(1);
}
frame 141 {
gotoAndPlay(1);
}
}
movieClip 205 {
frame 1 {
life = 3;
totallife = 3;
this.bound._visible = false;
stop();
}
frame 2 {
if (_root.hero.activated == true) {
this.swapDepths(_root.getNextHighestDepth());
}
if (_root.hero.life < 1) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
frame 13 {
gotoAndPlay('panic');
}
frame 24 {
_root.civpanic = true;
if (medal_5kfc == true && _root.medal_5 != true) {
_root.kfcmedal = true;
}
_root.levelcivkills += 1;
_root.totalcivkills += 1;
var whichsound = random(2);
if (whichsound == 0) {
_root.chicken1.start(0, 0);
_root.chicken1.setVolume(200);
}
if (whichsound == 1) {
_root.chicken2.start(0, 0);
_root.chicken2.setVolume(200);
}
}
frame 101 {
_root.destructionpoints += 50;
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
movieClip 208 {
}
movieClip 209 {
}
movieClip 211 {
}
movieClip 215 {
}
movieClip 227 {
frame 1 {
if (_root.hero.life < _root.hero.totallife) {
if (_root.options_difficulty == 'easy') {
_root.hero.life += 5;
}
if (_root.options_difficulty == 'medium') {
_root.hero.life += 2;
}
if (_root.options_difficulty == 'hard') {
_root.hero.life += 1;
}
}
_root.levelpoints += 25;
_root.totalpoints += 25;
++_root.collectedstars;
}
frame 15 {
_parent.swapDepths(_root.getNextHighestDepth());
_parent.removeMovieClip();
}
}
movieClip 229 {
frame 1 {
_root.starsArray.push(this);
}
frame 2 {
stop();
}
}
movieClip 234 {
}
movieClip 235 {
frame 1 {
replenish = 15;
}
frame 2 {
stop();
onEnterFrame = function () {
if (this._x - _root.vcam._x < 350 && this._x - _root.vcam._x > -350) {
this.gotoAndStop(3);
}
};
}
frame 3 {
stop();
onEnterFrame = function () {
if (_root.hero.activated == true) {
if (replenish > 0) {
--replenish;
}
if (replenish < 1) {
newGunpickup = _root.gunpickupOrig.duplicateMovieClip('newGunpickup' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newGunpickup._x = _x;
newGunpickup._y = _y;
gunchoice = random(_root.weaponsetArray.length);
newGunpickup.currentweapon = _root.weaponsetArray[gunchoice];
newGunpickup.weapontype = _root.weapontypeArray[gunchoice];
newGunpickup.ammo = _root.weaponammoArray[gunchoice];
newGunpickup.gundisplay.gotoAndStop(newGunpickup.currentweapon);
newGunpickup.gotoAndPlay(8);
gotoAndStop(4);
}
}
};
}
frame 4 {
onEnterFrame = function () {
if (newGunpickup._x != _x) {
replenish = 90;
gotoAndStop(3);
}
if (this._x - _root.vcam._x > 350 || this._x - _root.vcam._x < -350) {
replenish = 1;
newGunpickup.removeMovieClip();
this.gotoAndStop(2);
}
};
}
}
movieClip 251 {
frame 1 {
stop();
}
frame 2 {
var gunlength = 43.5;
var gunheight = 4.8;
var __reg1 = _root.hero.angle;
_root.hero._xscale >= 0 ? null : __reg1;
__reg1 += 90;
newFlash = _root.flashOrig.duplicateMovieClip('newflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
if (_root.hero._currentframe < 4) {
newFlash._y = _root.hero._y + _root.hero.walk._y + _root.hero.walk.gun._y + _root.hero.walk.gun.gun2._y + (gunlength + gunheight) * Math.cos(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
newFlash._y = _root.hero._y + _root.hero.jump_mc._y + _root.hero.jump_mc.gun._y + _root.hero.jump_mc.gun.gun2._y + (gunlength + gunheight) * Math.cos(__reg1 * 0.0174533);
}
if (_root.hero._xscale == 100) {
if (_root.hero._currentframe < 4) {
newFlash._x = _root.hero._x + _root.hero.walk._x + _root.hero.walk.gun._x + _root.hero.walk.gun.gun2._x - gunlength * Math.sin(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
newFlash._x = _root.hero._x + _root.hero.jump_mc._x + _root.hero.jump_mc.gun._x + _root.hero.jump_mc.gun.gun2._x - gunlength * Math.sin(__reg1 * 0.0174533);
}
newFlash._xscale = -100;
newFlash._rotation = _root.hero.angle;
} else {
if (_root.hero._currentframe < 4) {
newFlash._x = _root.hero._x + _root.hero.walk._x + _root.hero.walk.gun._x + _root.hero.walk.gun.gun2._x + gunlength * Math.sin(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
newFlash._x = _root.hero._x + _root.hero.jump_mc._x + _root.hero.jump_mc.gun._x + _root.hero.jump_mc.gun.gun2._x + gunlength * Math.sin(__reg1 * 0.0174533);
}
newFlash._xscale = 100;
newFlash._rotation = (180 - _root.hero.angle) * -1;
}
_root.bulletOrig.newBullet1 = _root.bulletOrig.duplicateMovieClip('bulletflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.bulletOrig.newBullet1._rotation = 180 - _root.hero.angle * -1;
_root.bulletOrig.newBullet1._x = newFlash._x;
_root.bulletOrig.newBullet1._y = newFlash._y;
_root.bulletOrig.newBullet1.bulletSpeed = 20;
_root.bulletOrig.newBullet1.gotoAndStop('bullet');
_root.bulletOrig.newBullet1.damage = 1;
_root.hero.ammo -= 1;
_root.hero.recoil = 5;
_root.shotsfired += 1;
newGore = _root.gutsOrig.duplicateMovieClip('newGore' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newGore._x = _root.hero._x;
newGore._y = _root.hero._y - _root.hero._height / 2;
newGore.gotoAndStop(10);
newGore.ySpeed = 5 + random(8);
newGore.xSpeed = ((3 + random(5)) / 100) * _root.hero._xscale;
}
frame 4 {
stop();
}
}
movieClip 257 {
frame 1 {
stop();
}
frame 3 {
var gunlength = 32;
var gunheight = 6;
var __reg1 = _root.hero.angle;
_root.hero._xscale >= 0 ? null : __reg1;
__reg1 += 90;
newFlash = _root.flashOrig.duplicateMovieClip('newflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
if (_root.hero._currentframe < 4) {
newFlash._y = _root.hero._y + _root.hero.walk._y + _root.hero.walk.gun._y + _root.hero.walk.gun.gun2._y + 35 * Math.cos(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
newFlash._y = _root.hero._y + _root.hero.jump_mc._y + _root.hero.jump_mc.gun._y + _root.hero.jump_mc.gun.gun2._y + 35 * Math.cos(__reg1 * 0.0174533);
}
if (_root.hero._xscale == 100) {
if (_root.hero._currentframe < 4) {
newFlash._x = _root.hero._x + _root.hero.walk._x + _root.hero.walk.gun._x + _root.hero.walk.gun.gun2._x - 35 * Math.sin(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
newFlash._x = _root.hero._x + _root.hero.jump_mc._x + _root.hero.jump_mc.gun._x + _root.hero.jump_mc.gun.gun2._x - 35 * Math.sin(__reg1 * 0.0174533);
}
newFlash._xscale = -100;
newFlash._rotation = _root.hero.angle;
} else {
if (_root.hero._currentframe < 4) {
newFlash._x = _root.hero._x + _root.hero.walk._x + _root.hero.walk.gun._x + _root.hero.walk.gun.gun2._x + 35 * Math.sin(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
newFlash._x = _root.hero._x + _root.hero.jump_mc._x + _root.hero.jump_mc.gun._x + _root.hero.jump_mc.gun.gun2._x + 35 * Math.sin(__reg1 * 0.0174533);
}
newFlash._xscale = 100;
newFlash._rotation = (180 - _root.hero.angle) * -1;
}
_root.bulletOrig.newBullet1 = _root.bulletOrig.duplicateMovieClip('bulletflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.bulletOrig.newBullet1._rotation = 180 - _root.hero.angle * -1;
_root.bulletOrig.newBullet1._x = newFlash._x;
_root.bulletOrig.newBullet1._y = newFlash._y;
_root.bulletOrig.newBullet1.bulletSpeed = 20;
_root.bulletOrig.newBullet1.gotoAndStop('4power');
_root.bulletOrig.newBullet1.damage = 1.5;
_root.hero.ammo -= 1;
_root.hero.recoil = 15;
_root.shotsfired += 1;
}
frame 7 {
stop();
}
}
movieClip 263 {
frame 1 {
stop();
}
frame 3 {
newFlash.gotoAndStop(1);
var gunlength = 50;
var gunheight = 6;
var __reg1 = _root.hero.angle;
_root.hero._xscale >= 0 ? null : __reg1;
__reg1 += 90;
newFlash = _root.flashOrig.duplicateMovieClip('newflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newFlash._yscale = 150;
if (_root.hero._currentframe < 4) {
newFlash._y = _root.hero._y + _root.hero.walk._y + _root.hero.walk.gun._y + _root.hero.walk.gun.gun2._y + (gunlength + gunheight) * Math.cos(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
newFlash._y = _root.hero._y + _root.hero.jump_mc._y + _root.hero.jump_mc.gun._y + _root.hero.jump_mc.gun.gun2._y + (gunlength + gunheight) * Math.cos(__reg1 * 0.0174533);
}
if (_root.hero._xscale == 100) {
if (_root.hero._currentframe < 4) {
newFlash._x = _root.hero._x + _root.hero.walk._x + _root.hero.walk.gun._x + _root.hero.walk.gun.gun2._x - gunlength * Math.sin(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
newFlash._x = _root.hero._x + _root.hero.jump_mc._x + _root.hero.jump_mc.gun._x + _root.hero.jump_mc.gun.gun2._x - gunlength * Math.sin(__reg1 * 0.0174533);
}
newFlash._xscale = -100;
newFlash._rotation = _root.hero.angle;
} else {
if (_root.hero._currentframe < 4) {
newFlash._x = _root.hero._x + _root.hero.walk._x + _root.hero.walk.gun._x + _root.hero.walk.gun.gun2._x + gunlength * Math.sin(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
newFlash._x = _root.hero._x + _root.hero.jump_mc._x + _root.hero.jump_mc.gun._x + _root.hero.jump_mc.gun.gun2._x + gunlength * Math.sin(__reg1 * 0.0174533);
}
newFlash._xscale = 100;
newFlash._rotation = (180 - _root.hero.angle) * -1;
}
_root.bulletOrig.newBullet1 = _root.bulletOrig.duplicateMovieClip('bulletflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.bulletOrig.newBullet1._rotation = 175 - _root.hero.angle * -1;
_root.bulletOrig.newBullet1._x = newFlash._x;
_root.bulletOrig.newBullet1._y = newFlash._y;
_root.bulletOrig.newBullet1.bulletSpeed = 20;
_root.bulletOrig.newBullet1.gotoAndStop('bullet');
_root.bulletOrig.newBullet1.damage = 1;
_root.bulletOrig.newBullet2 = _root.bulletOrig.duplicateMovieClip('bulletflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.bulletOrig.newBullet2._rotation = 180 - _root.hero.angle * -1;
_root.bulletOrig.newBullet2._x = newFlash._x;
_root.bulletOrig.newBullet2._y = newFlash._y;
_root.bulletOrig.newBullet2.bulletSpeed = 20;
_root.bulletOrig.newBullet2.gotoAndStop('bullet');
_root.bulletOrig.newBullet2.damage = 1;
_root.bulletOrig.newBullet3 = _root.bulletOrig.duplicateMovieClip('bulletflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.bulletOrig.newBullet3._rotation = 185 - _root.hero.angle * -1;
_root.bulletOrig.newBullet3._x = newFlash._x;
_root.bulletOrig.newBullet3._y = newFlash._y;
_root.bulletOrig.newBullet3.bulletSpeed = 20;
_root.bulletOrig.newBullet3.gotoAndStop('bullet');
_root.bulletOrig.newBullet3.damage = 1;
_root.hero.ammo -= 1;
_root.hero.recoil = 30;
_root.shotsfired += 1;
newGore = _root.gutsOrig.duplicateMovieClip('newGore' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newGore._x = _root.hero._x;
newGore._y = _root.hero._y - _root.hero._height / 2;
newGore._xscale = 125;
newGore._yscale = 125;
newGore.gotoAndStop(9);
newGore.ySpeed = 5 + random(8);
newGore.xSpeed = ((3 + random(5)) / 100) * _root.hero._xscale;
}
frame 9 {
stop();
}
}
movieClip 269 {
frame 1 {
stop();
}
frame 3 {
var gunlength = 35;
var gunheight = 5;
var __reg1 = _root.hero.angle;
_root.hero._xscale >= 0 ? null : __reg1;
__reg1 += 90;
newFlash = _root.flashOrig.duplicateMovieClip('newflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
if (_root.hero._currentframe < 4) {
newFlash._y = _root.hero._y + _root.hero.walk._y + _root.hero.walk.gun._y + _root.hero.walk.gun.gun2._y + (gunlength + gunheight) * Math.cos(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
newFlash._y = _root.hero._y + _root.hero.jump_mc._y + _root.hero.jump_mc.gun._y + _root.hero.jump_mc.gun.gun2._y + (gunlength + gunheight) * Math.cos(__reg1 * 0.0174533);
}
if (_root.hero._xscale == 100) {
if (_root.hero._currentframe < 4) {
newFlash._x = _root.hero._x + _root.hero.walk._x + _root.hero.walk.gun._x + _root.hero.walk.gun.gun2._x - gunlength * Math.sin(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
newFlash._x = _root.hero._x + _root.hero.jump_mc._x + _root.hero.jump_mc.gun._x + _root.hero.jump_mc.gun.gun2._x - gunlength * Math.sin(__reg1 * 0.0174533);
}
newFlash._xscale = -100;
newFlash._rotation = _root.hero.angle;
} else {
if (_root.hero._currentframe < 4) {
newFlash._x = _root.hero._x + _root.hero.walk._x + _root.hero.walk.gun._x + _root.hero.walk.gun.gun2._x + gunlength * Math.sin(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
newFlash._x = _root.hero._x + _root.hero.jump_mc._x + _root.hero.jump_mc.gun._x + _root.hero.jump_mc.gun.gun2._x + gunlength * Math.sin(__reg1 * 0.0174533);
}
newFlash._xscale = 100;
newFlash._rotation = (180 - _root.hero.angle) * -1;
}
_root.bulletOrig.newBullet1 = _root.bulletOrig.duplicateMovieClip('bulletflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.bulletOrig.newBullet1._rotation = 180 - _root.hero.angle * -1;
_root.bulletOrig.newBullet1._x = newFlash._x;
_root.bulletOrig.newBullet1._y = newFlash._y;
_root.bulletOrig.newBullet1.bulletSpeed = 20;
_root.bulletOrig.newBullet1.gotoAndStop('bigbullet');
_root.hero.ammo -= 1;
_root.hero.recoil = 15;
_root.shotsfired += 1;
newGore = _root.gutsOrig.duplicateMovieClip('newGore' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newGore._x = _root.hero._x;
newGore._y = _root.hero._y - _root.hero._height / 2;
newGore.gotoAndStop(9);
newGore.ySpeed = 5 + random(8);
newGore.xSpeed = ((3 + random(5)) / 100) * _root.hero._xscale;
}
frame 7 {
stop();
}
}
movieClip 276 {
frame 1 {
stop();
}
frame 3 {
var __reg1 = _root.hero.angle;
_root.hero._xscale >= 0 ? null : __reg1;
__reg1 += 90;
_root.bulletOrig.newBullet1 = _root.bulletOrig.duplicateMovieClip('bulletflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
var gunlength = 52;
var gunheight = 0.5;
if (_root.hero._currentframe < 4) {
_root.bulletOrig.newBullet1._y = _root.hero._y + _root.hero.walk._y + _root.hero.walk.gun._y + _root.hero.walk.gun.gun2._y + (gunlength + gunheight) * Math.cos(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
_root.bulletOrig.newBullet1._y = _root.hero._y + _root.hero.jump_mc._y + _root.hero.jump_mc.gun._y + _root.hero.jump_mc.gun.gun2._y + (gunlength + gunheight) * Math.cos(__reg1 * 0.0174533);
}
if (_root.hero._xscale == 100) {
if (_root.hero._currentframe < 4) {
_root.bulletOrig.newBullet1._x = _root.hero._x + _root.hero.walk._x + _root.hero.walk.gun._x + _root.hero.walk.gun.gun2._x - gunlength * Math.sin(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
_root.bulletOrig.newBullet1._x = _root.hero._x + _root.hero.jump_mc._x + _root.hero.jump_mc.gun._x + _root.hero.jump_mc.gun.gun2._x - gunlength * Math.sin(__reg1 * 0.0174533);
}
} else {
if (_root.hero._currentframe < 4) {
_root.bulletOrig.newBullet1._x = _root.hero._x + _root.hero.walk._x + _root.hero.walk.gun._x + _root.hero.walk.gun.gun2._x + gunlength * Math.sin(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
_root.bulletOrig.newBullet1._x = _root.hero._x + _root.hero.jump_mc._x + _root.hero.jump_mc.gun._x + _root.hero.jump_mc.gun.gun2._x + gunlength * Math.sin(__reg1 * 0.0174533);
}
}
_root.bulletOrig.newBullet1._rotation = 180 - _root.hero.angle * -1;
_root.bulletOrig.newBullet1.bulletSpeed = 25;
_root.bulletOrig.newBullet1.gotoAndStop('arrow');
_root.hero.ammo -= 1;
_root.hero.recoil = 13;
_root.shotsfired += 1;
}
frame 7 {
stop();
}
}
movieClip 280 {
frame 1 {
stop();
}
frame 2 {
var gunheight = 7;
var gunlength = 55;
var __reg1 = _root.hero.angle;
_root.hero._xscale >= 0 ? null : __reg1;
__reg1 += 90;
newFlash = _root.flashOrig.duplicateMovieClip('newflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
if (_root.hero._currentframe < 4) {
newFlash._y = _root.hero._y + _root.hero.walk._y + _root.hero.walk.gun._y + _root.hero.walk.gun.gun2._y + (gunlength + gunheight) * Math.cos(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
newFlash._y = _root.hero._y + _root.hero.jump_mc._y + _root.hero.jump_mc.gun._y + _root.hero.jump_mc.gun.gun2._y + (gunlength + gunheight) * Math.cos(__reg1 * 0.0174533);
}
if (_root.hero._xscale == 100) {
if (_root.hero._currentframe < 4) {
newFlash._x = _root.hero._x + _root.hero.walk._x + _root.hero.walk.gun._x + _root.hero.walk.gun.gun2._x - gunlength * Math.sin(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
newFlash._x = _root.hero._x + _root.hero.jump_mc._x + _root.hero.jump_mc.gun._x + _root.hero.jump_mc.gun.gun2._x - gunlength * Math.sin(__reg1 * 0.0174533);
}
newFlash._xscale = -100;
newFlash._rotation = _root.hero.angle;
} else {
if (_root.hero._currentframe < 4) {
newFlash._x = _root.hero._x + _root.hero.walk._x + _root.hero.walk.gun._x + _root.hero.walk.gun.gun2._x + gunlength * Math.sin(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
newFlash._x = _root.hero._x + _root.hero.jump_mc._x + _root.hero.jump_mc.gun._x + _root.hero.jump_mc.gun.gun2._x + gunlength * Math.sin(__reg1 * 0.0174533);
}
newFlash._xscale = 100;
newFlash._rotation = (180 - _root.hero.angle) * -1;
}
_root.bulletOrig.newBullet1 = _root.bulletOrig.duplicateMovieClip('bulletflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.bulletOrig.newBullet1._rotation = 180 - _root.hero.angle * -1;
_root.bulletOrig.newBullet1._x = newFlash._x;
_root.bulletOrig.newBullet1._y = newFlash._y;
_root.bulletOrig.newBullet1.bulletSpeed = 20;
_root.bulletOrig.newBullet1.gotoAndStop('lazer');
_root.bulletOrig.newBullet1.damage = 1;
_root.hero.ammo -= 1;
_root.hero.recoil = 7;
_root.shotsfired += 1;
}
frame 4 {
stop();
}
}
movieClip 286 {
frame 1 {
stop();
}
frame 3 {
_root.hero.xSpeed -= Math.cos(_root.hero.angle * 3.141593 / 180) * 20;
_root.hero.grav += Math.sin(_root.hero.angle * 3.141593 / 180) * 20;
var __reg1 = _root.hero.angle;
_root.hero._xscale >= 0 ? null : __reg1;
__reg1 += 90;
newFlash = _root.bloodOrig.duplicateMovieClip('newflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newFlash.gotoAndStop(6);
newFlash._yscale = 100;
if (_root.hero._currentframe < 4) {
newFlash._y = _root.hero._y + _root.hero.walk._y + _root.hero.walk.gun._y + _root.hero.walk.gun.gun2._y + 35 * Math.cos(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
newFlash._y = _root.hero._y + _root.hero.jump_mc._y + _root.hero.jump_mc.gun._y + _root.hero.jump_mc.gun.gun2._y + 35 * Math.cos(__reg1 * 0.0174533);
}
if (_root.hero._xscale == 100) {
if (_root.hero._currentframe < 4) {
newFlash._x = _root.hero._x + _root.hero.walk._x + _root.hero.walk.gun._x + _root.hero.walk.gun.gun2._x - 35 * Math.sin(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
newFlash._x = _root.hero._x + _root.hero.jump_mc._x + _root.hero.jump_mc.gun._x + _root.hero.jump_mc.gun.gun2._x - 35 * Math.sin(__reg1 * 0.0174533);
}
newFlash._xscale = -100;
newFlash._rotation = _root.hero.angle;
} else {
if (_root.hero._currentframe < 4) {
newFlash._x = _root.hero._x + _root.hero.walk._x + _root.hero.walk.gun._x + _root.hero.walk.gun.gun2._x + 35 * Math.sin(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
newFlash._x = _root.hero._x + _root.hero.jump_mc._x + _root.hero.jump_mc.gun._x + _root.hero.jump_mc.gun.gun2._x + 35 * Math.sin(__reg1 * 0.0174533);
}
newFlash._xscale = 100;
newFlash._rotation = (180 - _root.hero.angle) * -1;
}
_root.hero.ammo -= 1;
_root.hero.recoil = 30;
_root.shotsfired += 1;
}
frame 4 {
newSparkle = _root.bloodOrig.duplicateMovieClip('newSparkle' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newSparkle._x = _root.hero._x;
newSparkle._y = _root.hero._y;
newSparkle._xscale = _root.hero._xscale;
newSparkle.gotoAndStop(5);
}
frame 6 {
newSparkle = _root.bloodOrig.duplicateMovieClip('newSparkle' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newSparkle._x = _root.hero._x;
newSparkle._y = _root.hero._y;
newSparkle._xscale = _root.hero._xscale;
newSparkle.gotoAndStop(5);
}
frame 8 {
newSparkle = _root.bloodOrig.duplicateMovieClip('newSparkle' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newSparkle._x = _root.hero._x;
newSparkle._y = _root.hero._y;
newSparkle._xscale = _root.hero._xscale;
newSparkle.gotoAndStop(5);
}
frame 10 {
newSparkle = _root.bloodOrig.duplicateMovieClip('newSparkle' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newSparkle._x = _root.hero._x;
newSparkle._y = _root.hero._y;
newSparkle._xscale = _root.hero._xscale;
newSparkle.gotoAndStop(5);
}
frame 11 {
stop();
}
}
movieClip 291 {
frame 1 {
stop();
}
frame 2 {
var __reg1 = _root.hero.angle;
_root.hero._xscale >= 0 ? null : __reg1;
__reg1 += 90;
newFlash = _root.flashOrig.duplicateMovieClip('newflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
var gunlength = 48;
var gunheight = 4.5;
if (_root.hero._currentframe < 4) {
newFlash._y = _root.hero._y + _root.hero.walk._y + _root.hero.walk.gun._y + _root.hero.walk.gun.gun2._y + (gunlength + gunheight) * Math.cos(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
newFlash._y = _root.hero._y + _root.hero.jump_mc._y + _root.hero.jump_mc.gun._y + _root.hero.jump_mc.gun.gun2._y + (gunlength + gunheight) * Math.cos(__reg1 * 0.0174533);
}
if (_root.hero._xscale == 100) {
if (_root.hero._currentframe < 4) {
newFlash._x = _root.hero._x + _root.hero.walk._x + _root.hero.walk.gun._x + _root.hero.walk.gun.gun2._x - gunlength * Math.sin(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
newFlash._x = _root.hero._x + _root.hero.jump_mc._x + _root.hero.jump_mc.gun._x + _root.hero.jump_mc.gun.gun2._x - gunlength * Math.sin(__reg1 * 0.0174533);
}
newFlash._xscale = -100;
newFlash._rotation = _root.hero.angle;
} else {
if (_root.hero._currentframe < 4) {
newFlash._x = _root.hero._x + _root.hero.walk._x + _root.hero.walk.gun._x + _root.hero.walk.gun.gun2._x + gunlength * Math.sin(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
newFlash._x = _root.hero._x + _root.hero.jump_mc._x + _root.hero.jump_mc.gun._x + _root.hero.jump_mc.gun.gun2._x + gunlength * Math.sin(__reg1 * 0.0174533);
}
newFlash._xscale = 100;
newFlash._rotation = (180 - _root.hero.angle) * -1;
}
_root.bulletOrig.newBullet1 = _root.bulletOrig.duplicateMovieClip('bulletflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.bulletOrig.newBullet1._rotation = 180 - _root.hero.angle * -1;
_root.bulletOrig.newBullet1._x = newFlash._x;
_root.bulletOrig.newBullet1._y = newFlash._y;
_root.bulletOrig.newBullet1.bulletSpeed = 20;
_root.bulletOrig.newBullet1.gotoAndStop('bullet');
_root.bulletOrig.newBullet1.damage = 1;
_root.hero.ammo -= 1;
_root.hero.recoil = 3;
_root.shotsfired += 1;
newGore = _root.gutsOrig.duplicateMovieClip('newGore' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newGore._x = _root.hero._x;
newGore._y = _root.hero._y - _root.hero._height / 2;
newGore.gotoAndStop(10);
newGore.ySpeed = 5 + random(8);
newGore.xSpeed = ((3 + random(5)) / 100) * _root.hero._xscale;
}
frame 4 {
stop();
}
}
movieClip 296 {
frame 1 {
stop();
}
frame 2 {
gunlength = 30;
gunheight = 5;
var __reg1 = _root.hero.angle;
_root.hero._xscale >= 0 ? null : __reg1;
__reg1 += 90;
newFlash = _root.flashOrig.duplicateMovieClip('newflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
if (_root.hero._currentframe < 4) {
newFlash._y = _root.hero._y + _root.hero.walk._y + _root.hero.walk.gun._y + _root.hero.walk.gun.gun2._y + (gunlength + gunheight) * Math.cos(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
newFlash._y = _root.hero._y + _root.hero.jump_mc._y + _root.hero.jump_mc.gun._y + _root.hero.jump_mc.gun.gun2._y + (gunlength + gunheight) * Math.cos(__reg1 * 0.0174533);
}
if (_root.hero._xscale == 100) {
if (_root.hero._currentframe < 4) {
newFlash._x = _root.hero._x + _root.hero.walk._x + _root.hero.walk.gun._x + _root.hero.walk.gun.gun2._x - gunlength * Math.sin(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
newFlash._x = _root.hero._x + _root.hero.jump_mc._x + _root.hero.jump_mc.gun._x + _root.hero.jump_mc.gun.gun2._x - gunlength * Math.sin(__reg1 * 0.0174533);
}
newFlash._xscale = -100;
newFlash._rotation = _root.hero.angle;
} else {
if (_root.hero._currentframe < 4) {
newFlash._x = _root.hero._x + _root.hero.walk._x + _root.hero.walk.gun._x + _root.hero.walk.gun.gun2._x + gunlength * Math.sin(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
newFlash._x = _root.hero._x + _root.hero.jump_mc._x + _root.hero.jump_mc.gun._x + _root.hero.jump_mc.gun.gun2._x + gunlength * Math.sin(__reg1 * 0.0174533);
}
newFlash._xscale = 100;
newFlash._rotation = (180 - _root.hero.angle) * -1;
}
_root.bulletOrig.newBullet1 = _root.bulletOrig.duplicateMovieClip('bulletflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.bulletOrig.newBullet1._rotation = 180 - _root.hero.angle * -1;
_root.bulletOrig.newBullet1._x = newFlash._x;
_root.bulletOrig.newBullet1._y = newFlash._y;
_root.bulletOrig.newBullet1.bulletSpeed = 20;
_root.bulletOrig.newBullet1.gotoAndStop('bullet');
_root.bulletOrig.newBullet1.damage = 1;
_root.hero.ammo -= 1;
_root.hero.recoil = 5;
_root.shotsfired += 1;
newGore = _root.gutsOrig.duplicateMovieClip('newGore' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newGore._x = _root.hero._x;
newGore._y = _root.hero._y - _root.hero._height / 2;
newGore.gotoAndStop(10);
newGore.ySpeed = 5 + random(8);
newGore.xSpeed = ((3 + random(5)) / 100) * _root.hero._xscale;
}
frame 4 {
stop();
}
}
movieClip 302 {
frame 1 {
stop();
}
frame 3 {
newFlash.gotoAndStop(1);
var gunheight = 7;
var gunlength = 48;
var __reg1 = _root.hero.angle;
_root.hero._xscale >= 0 ? null : __reg1;
__reg1 += 90;
newFlash = _root.flashOrig.duplicateMovieClip('newflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newFlash._yscale = 150;
if (_root.hero._currentframe < 4) {
newFlash._y = _root.hero._y + _root.hero.walk._y + _root.hero.walk.gun._y + _root.hero.walk.gun.gun2._y + (gunheight + gunlength) * Math.cos(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
newFlash._y = _root.hero._y + _root.hero.jump_mc._y + _root.hero.jump_mc.gun._y + _root.hero.jump_mc.gun.gun2._y + (gunheight + gunlength) * Math.cos(__reg1 * 0.0174533);
}
if (_root.hero._xscale == 100) {
if (_root.hero._currentframe < 4) {
newFlash._x = _root.hero._x + _root.hero.walk._x + _root.hero.walk.gun._x + _root.hero.walk.gun.gun2._x - gunlength * Math.sin(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
newFlash._x = _root.hero._x + _root.hero.jump_mc._x + _root.hero.jump_mc.gun._x + _root.hero.jump_mc.gun.gun2._x - gunlength * Math.sin(__reg1 * 0.0174533);
}
newFlash._xscale = -100;
newFlash._rotation = _root.hero.angle;
} else {
if (_root.hero._currentframe < 4) {
newFlash._x = _root.hero._x + _root.hero.walk._x + _root.hero.walk.gun._x + _root.hero.walk.gun.gun2._x + 35 * Math.sin(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
newFlash._x = _root.hero._x + _root.hero.jump_mc._x + _root.hero.jump_mc.gun._x + _root.hero.jump_mc.gun.gun2._x + 35 * Math.sin(__reg1 * 0.0174533);
}
newFlash._xscale = 100;
newFlash._rotation = (180 - _root.hero.angle) * -1;
}
_root.bulletOrig.newBullet1 = _root.bulletOrig.duplicateMovieClip('bulletflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.bulletOrig.newBullet1._rotation = 175 - _root.hero.angle * -1;
_root.bulletOrig.newBullet1._x = newFlash._x;
_root.bulletOrig.newBullet1._y = newFlash._y;
_root.bulletOrig.newBullet1.bulletSpeed = 20;
_root.bulletOrig.newBullet1.gotoAndStop('bullet');
_root.bulletOrig.newBullet1.damage = 1;
_root.bulletOrig.newBullet2 = _root.bulletOrig.duplicateMovieClip('bulletflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.bulletOrig.newBullet2._rotation = 180 - _root.hero.angle * -1;
_root.bulletOrig.newBullet2._x = newFlash._x;
_root.bulletOrig.newBullet2._y = newFlash._y;
_root.bulletOrig.newBullet2.bulletSpeed = 20;
_root.bulletOrig.newBullet2.gotoAndStop('bullet');
_root.bulletOrig.newBullet2.damage = 1;
_root.bulletOrig.newBullet3 = _root.bulletOrig.duplicateMovieClip('bulletflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.bulletOrig.newBullet3._rotation = 185 - _root.hero.angle * -1;
_root.bulletOrig.newBullet3._x = newFlash._x;
_root.bulletOrig.newBullet3._y = newFlash._y;
_root.bulletOrig.newBullet3.bulletSpeed = 20;
_root.bulletOrig.newBullet3.gotoAndStop('bullet');
_root.bulletOrig.newBullet3.damage = 1;
_root.hero.ammo -= 1;
_root.hero.recoil = 15;
_root.shotsfired += 1;
newGore = _root.gutsOrig.duplicateMovieClip('newGore' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newGore._x = _root.hero._x;
newGore._y = _root.hero._y - _root.hero._height / 2;
newGore._xscale = 125;
newGore._yscale = 125;
newGore.gotoAndStop(9);
newGore.ySpeed = 5 + random(8);
newGore.xSpeed = ((3 + random(5)) / 100) * _root.hero._xscale;
}
frame 9 {
stop();
}
}
movieClip 306 {
frame 1 {
stop();
}
frame 3 {
gunlength = 35;
gunheight = 5;
var __reg1 = _root.hero.angle;
_root.hero._xscale >= 0 ? null : __reg1;
__reg1 += 90;
newFlash = _root.flashOrig.duplicateMovieClip('newflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
if (_root.hero._currentframe < 4) {
newFlash._y = _root.hero._y + _root.hero.walk._y + _root.hero.walk.gun._y + _root.hero.walk.gun.gun2._y + (gunlength + gunheight) * Math.cos(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
newFlash._y = _root.hero._y + _root.hero.jump_mc._y + _root.hero.jump_mc.gun._y + _root.hero.jump_mc.gun.gun2._y + (gunlength + gunheight) * Math.cos(__reg1 * 0.0174533);
}
if (_root.hero._xscale == 100) {
if (_root.hero._currentframe < 4) {
newFlash._x = _root.hero._x + _root.hero.walk._x + _root.hero.walk.gun._x + _root.hero.walk.gun.gun2._x - gunlength * Math.sin(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
newFlash._x = _root.hero._x + _root.hero.jump_mc._x + _root.hero.jump_mc.gun._x + _root.hero.jump_mc.gun.gun2._x - gunlength * Math.sin(__reg1 * 0.0174533);
}
newFlash._xscale = -100;
newFlash._rotation = _root.hero.angle;
} else {
if (_root.hero._currentframe < 4) {
newFlash._x = _root.hero._x + _root.hero.walk._x + _root.hero.walk.gun._x + _root.hero.walk.gun.gun2._x + gunlength * Math.sin(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
newFlash._x = _root.hero._x + _root.hero.jump_mc._x + _root.hero.jump_mc.gun._x + _root.hero.jump_mc.gun.gun2._x + gunlength * Math.sin(__reg1 * 0.0174533);
}
newFlash._xscale = 100;
newFlash._rotation = (180 - _root.hero.angle) * -1;
}
_root.bulletOrig.newBullet1 = _root.bulletOrig.duplicateMovieClip('bulletflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.bulletOrig.newBullet1._rotation = 180 - _root.hero.angle * -1;
_root.bulletOrig.newBullet1._x = newFlash._x;
_root.bulletOrig.newBullet1._y = newFlash._y;
_root.bulletOrig.newBullet1.bulletSpeed = 20;
_root.bulletOrig.newBullet1.gotoAndStop('lazer');
_root.bulletOrig.newBullet1.damage = 1.5;
_root.hero.ammo -= 1;
_root.hero.recoil = 8;
_root.shotsfired += 1;
}
frame 7 {
stop();
}
}
movieClip 311 {
frame 1 {
stop();
}
frame 3 {
newFlash.gotoAndStop(1);
var __reg1 = _root.hero.angle;
_root.hero._xscale >= 0 ? null : __reg1;
__reg1 += 90;
newFlash = _root.flashOrig.duplicateMovieClip('newflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
if (_root.hero._currentframe < 4) {
newFlash._y = _root.hero._y + _root.hero.walk._y + _root.hero.walk.gun._y + _root.hero.walk.gun.gun2._y + 35 * Math.cos(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
newFlash._y = _root.hero._y + _root.hero.jump_mc._y + _root.hero.jump_mc.gun._y + _root.hero.jump_mc.gun.gun2._y + 35 * Math.cos(__reg1 * 0.0174533);
}
if (_root.hero._xscale == 100) {
if (_root.hero._currentframe < 4) {
newFlash._x = _root.hero._x + _root.hero.walk._x + _root.hero.walk.gun._x + _root.hero.walk.gun.gun2._x - 35 * Math.sin(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
newFlash._x = _root.hero._x + _root.hero.jump_mc._x + _root.hero.jump_mc.gun._x + _root.hero.jump_mc.gun.gun2._x - 35 * Math.sin(__reg1 * 0.0174533);
}
newFlash._xscale = -100;
newFlash._rotation = _root.hero.angle;
} else {
if (_root.hero._currentframe < 4) {
newFlash._x = _root.hero._x + _root.hero.walk._x + _root.hero.walk.gun._x + _root.hero.walk.gun.gun2._x + 35 * Math.sin(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
newFlash._x = _root.hero._x + _root.hero.jump_mc._x + _root.hero.jump_mc.gun._x + _root.hero.jump_mc.gun.gun2._x + 35 * Math.sin(__reg1 * 0.0174533);
}
newFlash._xscale = 100;
newFlash._rotation = (180 - _root.hero.angle) * -1;
}
_root.bulletOrig.newBullet1 = _root.bulletOrig.duplicateMovieClip('bulletflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.bulletOrig.newBullet1._rotation = 180 - _root.hero.angle * -1;
_root.bulletOrig.newBullet1._x = newFlash._x;
_root.bulletOrig.newBullet1._y = newFlash._y;
_root.bulletOrig.newBullet1.bulletSpeed = 20;
_root.bulletOrig.newBullet1.gotoAndStop('bullet');
_root.bulletOrig.newBullet1.damage = 1.5;
_root.hero.ammo -= 1;
_root.hero.recoil = 15;
_root.shotsfired += 1;
}
frame 7 {
stop();
}
}
movieClip 315 {
frame 1 {
stop();
}
frame 2 {
newFlash.gotoAndStop(1);
var __reg1 = _root.hero.angle;
_root.hero._xscale >= 0 ? null : __reg1;
__reg1 += 90;
newFlash = _root.flashOrig.duplicateMovieClip('newflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
var gunlength = 70;
var gunheight = 10;
if (_root.opt_recoilshake == true) {
_root.vcam._x += 0.2 * _root.hero._xscale;
}
if (_root.hero._currentframe < 4) {
newFlash._y = _root.hero._y + _root.hero.walk._y + _root.hero.walk.gun._y + _root.hero.walk.gun.gun2._y + (gunlength + gunheight) * Math.cos(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
newFlash._y = _root.hero._y + _root.hero.jump_mc._y + _root.hero.jump_mc.gun._y + _root.hero.jump_mc.gun.gun2._y + (gunlength + gunheight) * Math.cos(__reg1 * 0.0174533);
}
if (_root.hero._xscale == 100) {
if (_root.hero._currentframe < 4) {
newFlash._x = _root.hero._x + _root.hero.walk._x + _root.hero.walk.gun._x + _root.hero.walk.gun.gun2._x - gunlength * Math.sin(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
newFlash._x = _root.hero._x + _root.hero.jump_mc._x + _root.hero.jump_mc.gun._x + _root.hero.jump_mc.gun.gun2._x - gunlength * Math.sin(__reg1 * 0.0174533);
}
newFlash._xscale = -150;
newFlash._yscale = -150;
newFlash._rotation = _root.hero.angle;
} else {
if (_root.hero._currentframe < 4) {
newFlash._x = _root.hero._x + _root.hero.walk._x + _root.hero.walk.gun._x + _root.hero.walk.gun.gun2._x + gunlength * Math.sin(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
newFlash._x = _root.hero._x + _root.hero.jump_mc._x + _root.hero.jump_mc.gun._x + _root.hero.jump_mc.gun.gun2._x + gunlength * Math.sin(__reg1 * 0.0174533);
}
newFlash._xscale = 150;
newFlash._yscale = 150;
newFlash._rotation = (180 - _root.hero.angle) * -1;
}
_root.bulletOrig.newBullet1 = _root.bulletOrig.duplicateMovieClip('bulletflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.bulletOrig.newBullet1._rotation = 180 - _root.hero.angle * -1;
_root.bulletOrig.newBullet1._x = newFlash._x;
_root.bulletOrig.newBullet1._y = newFlash._y;
_root.bulletOrig.newBullet1.bulletSpeed = 35;
_root.bulletOrig.newBullet1.gotoAndStop('sniperbullet');
_root.hero.ammo -= 1;
_root.hero.recoil = 30;
_root.shotsfired += 1;
newGore = _root.gutsOrig.duplicateMovieClip('newGore' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newGore._x = _root.hero._x;
newGore._y = _root.hero._y - _root.hero._height / 2;
newGore._xscale = 125;
newGore._yscale = 125;
newGore.gotoAndStop(9);
newGore.ySpeed = 5 + random(8);
newGore.xSpeed = ((3 + random(5)) / 100) * _root.hero._xscale;
}
frame 6 {
stop();
}
}
movieClip 320 {
frame 1 {
stop();
}
frame 2 {
newFlash.gotoAndStop(1);
var __reg1 = _root.hero.angle;
_root.hero._xscale >= 0 ? null : __reg1;
__reg1 += 90;
newFlash = _root.flashOrig.duplicateMovieClip('newflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
var gunlength = 45;
var gunheight = 15;
if (_root.hero._currentframe < 4) {
newFlash._y = _root.hero._y + _root.hero.walk._y + _root.hero.walk.gun._y + _root.hero.walk.gun.gun2._y + (gunlength + gunheight) * Math.cos(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
newFlash._y = _root.hero._y + _root.hero.jump_mc._y + _root.hero.jump_mc.gun._y + _root.hero.jump_mc.gun.gun2._y + (gunlength + gunheight) * Math.cos(__reg1 * 0.0174533);
}
if (_root.hero._xscale == 100) {
if (_root.hero._currentframe < 4) {
newFlash._x = _root.hero._x + _root.hero.walk._x + _root.hero.walk.gun._x + _root.hero.walk.gun.gun2._x - gunlength * Math.sin(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
newFlash._x = _root.hero._x + _root.hero.jump_mc._x + _root.hero.jump_mc.gun._x + _root.hero.jump_mc.gun.gun2._x - gunlength * Math.sin(__reg1 * 0.0174533);
}
newFlash._xscale = -100;
newFlash._yscale = -100;
newFlash._rotation = _root.hero.angle;
} else {
if (_root.hero._currentframe < 4) {
newFlash._x = _root.hero._x + _root.hero.walk._x + _root.hero.walk.gun._x + _root.hero.walk.gun.gun2._x + gunlength * Math.sin(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
newFlash._x = _root.hero._x + _root.hero.jump_mc._x + _root.hero.jump_mc.gun._x + _root.hero.jump_mc.gun.gun2._x + gunlength * Math.sin(__reg1 * 0.0174533);
}
newFlash._xscale = 100;
newFlash._yscale = 100;
newFlash._rotation = (180 - _root.hero.angle) * -1;
}
_root.bulletOrig.newBullet1 = _root.bulletOrig.duplicateMovieClip('bulletflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.bulletOrig.newBullet1._rotation = 180 - _root.hero.angle * -1;
_root.bulletOrig.newBullet1._x = newFlash._x;
_root.bulletOrig.newBullet1._y = newFlash._y;
_root.bulletOrig.newBullet1.bulletSpeed = 20;
_root.bulletOrig.newBullet1.gotoAndStop('bullet');
_root.bulletOrig.newBullet1.damage = 1;
_root.hero.ammo -= 1;
_root.hero.recoil = 6;
_root.shotsfired += 1;
newGore = _root.gutsOrig.duplicateMovieClip('newGore' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newGore._x = _root.hero._x;
newGore._y = _root.hero._y - _root.hero._height / 2;
newGore.gotoAndStop(10);
newGore.ySpeed = 5 + random(8);
newGore.xSpeed = ((3 + random(5)) / 100) * _root.hero._xscale;
}
frame 4 {
stop();
}
}
movieClip 324 {
frame 1 {
stop();
}
frame 2 {
newFlash.gotoAndStop(1);
var __reg1 = _root.hero.angle;
_root.hero._xscale >= 0 ? null : __reg1;
__reg1 += 90;
newFlash = _root.flashOrig.duplicateMovieClip('newflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
var gunlength = 30;
var gunheight = 10;
if (_root.hero._currentframe < 4) {
newFlash._y = _root.hero._y + _root.hero.walk._y + _root.hero.walk.gun._y + _root.hero.walk.gun.gun2._y + (gunlength + gunheight) * Math.cos(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
newFlash._y = _root.hero._y + _root.hero.jump_mc._y + _root.hero.jump_mc.gun._y + _root.hero.jump_mc.gun.gun2._y + (gunlength + gunheight) * Math.cos(__reg1 * 0.0174533);
}
if (_root.hero._xscale == 100) {
if (_root.hero._currentframe < 4) {
newFlash._x = _root.hero._x + _root.hero.walk._x + _root.hero.walk.gun._x + _root.hero.walk.gun.gun2._x - gunlength * Math.sin(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
newFlash._x = _root.hero._x + _root.hero.jump_mc._x + _root.hero.jump_mc.gun._x + _root.hero.jump_mc.gun.gun2._x - gunlength * Math.sin(__reg1 * 0.0174533);
}
newFlash._xscale = -100;
newFlash._yscale = -100;
newFlash._rotation = _root.hero.angle;
} else {
if (_root.hero._currentframe < 4) {
newFlash._x = _root.hero._x + _root.hero.walk._x + _root.hero.walk.gun._x + _root.hero.walk.gun.gun2._x + gunlength * Math.sin(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
newFlash._x = _root.hero._x + _root.hero.jump_mc._x + _root.hero.jump_mc.gun._x + _root.hero.jump_mc.gun.gun2._x + gunlength * Math.sin(__reg1 * 0.0174533);
}
newFlash._xscale = 100;
newFlash._yscale = 100;
newFlash._rotation = (180 - _root.hero.angle) * -1;
}
_root.bulletOrig.newBullet1 = _root.bulletOrig.duplicateMovieClip('bulletflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.bulletOrig.newBullet1._rotation = 180 - _root.hero.angle * -1;
_root.bulletOrig.newBullet1._x = newFlash._x;
_root.bulletOrig.newBullet1._y = newFlash._y;
_root.bulletOrig.newBullet1.bulletSpeed = 20;
_root.bulletOrig.newBullet1.gotoAndStop('bullet');
_root.bulletOrig.newBullet1.damage = 1;
_root.hero.ammo -= 1;
_root.hero.recoil = 4;
_root.shotsfired += 1;
newGore = _root.gutsOrig.duplicateMovieClip('newGore' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newGore._x = _root.hero._x;
newGore._y = _root.hero._y - _root.hero._height / 2;
newGore.gotoAndStop(10);
newGore.ySpeed = 5 + random(8);
newGore.xSpeed = ((3 + random(5)) / 100) * _root.hero._xscale;
}
frame 4 {
stop();
}
}
movieClip 328 {
frame 1 {
stop();
}
frame 3 {
newFlash.gotoAndStop(1);
var __reg1 = _root.hero.angle;
_root.hero._xscale >= 0 ? null : __reg1;
__reg1 += 90;
newFlash = _root.flashOrig.duplicateMovieClip('newflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
gunlength = 34;
gunheight = 8;
if (_root.hero._currentframe < 4) {
newFlash._y = _root.hero._y + _root.hero.walk._y + _root.hero.walk.gun._y + _root.hero.walk.gun.gun2._y + (gunlength + gunheight) * Math.cos(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
newFlash._y = _root.hero._y + _root.hero.jump_mc._y + _root.hero.jump_mc.gun._y + _root.hero.jump_mc.gun.gun2._y + (gunlength + gunheight) * Math.cos(__reg1 * 0.0174533);
}
if (_root.hero._xscale == 100) {
if (_root.hero._currentframe < 4) {
newFlash._x = _root.hero._x + _root.hero.walk._x + _root.hero.walk.gun._x + _root.hero.walk.gun.gun2._x - gunlength * Math.sin(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
newFlash._x = _root.hero._x + _root.hero.jump_mc._x + _root.hero.jump_mc.gun._x + _root.hero.jump_mc.gun.gun2._x - gunlength * Math.sin(__reg1 * 0.0174533);
}
newFlash._xscale = -100;
newFlash._rotation = _root.hero.angle;
} else {
if (_root.hero._currentframe < 4) {
newFlash._x = _root.hero._x + _root.hero.walk._x + _root.hero.walk.gun._x + _root.hero.walk.gun.gun2._x + gunlength * Math.sin(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
newFlash._x = _root.hero._x + _root.hero.jump_mc._x + _root.hero.jump_mc.gun._x + _root.hero.jump_mc.gun.gun2._x + gunlength * Math.sin(__reg1 * 0.0174533);
}
newFlash._xscale = 100;
newFlash._rotation = (180 - _root.hero.angle) * -1;
}
_root.bulletOrig.newBullet1 = _root.bulletOrig.duplicateMovieClip('bulletflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.bulletOrig.newBullet1._rotation = 180 - _root.hero.angle * -1;
_root.bulletOrig.newBullet1._x = newFlash._x;
_root.bulletOrig.newBullet1._y = newFlash._y;
_root.bulletOrig.newBullet1.bulletSpeed = 20;
_root.bulletOrig.newBullet1.gotoAndStop('2power');
_root.bulletOrig.newBullet1.damage = 1.5;
_root.hero.ammo -= 1;
_root.hero.recoil = 20;
_root.shotsfired += 1;
}
frame 7 {
stop();
}
}
movieClip 333 {
frame 1 {
stop();
}
frame 2 {
newFlash.gotoAndStop(1);
gunheight = 5.5;
gunlength = 60;
var __reg1 = _root.hero.angle;
_root.hero._xscale >= 0 ? null : __reg1;
__reg1 += 90;
newFlash = _root.flashOrig.duplicateMovieClip('newflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
if (_root.hero._currentframe < 4) {
newFlash._y = _root.hero._y + _root.hero.walk._y + _root.hero.walk.gun._y + _root.hero.walk.gun.gun2._y + (gunlength + gunheight) * Math.cos(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
newFlash._y = _root.hero._y + _root.hero.jump_mc._y + _root.hero.jump_mc.gun._y + _root.hero.jump_mc.gun.gun2._y + (gunlength + gunheight) * Math.cos(__reg1 * 0.0174533);
}
if (_root.hero._xscale == 100) {
if (_root.hero._currentframe < 4) {
newFlash._x = _root.hero._x + _root.hero.walk._x + _root.hero.walk.gun._x + _root.hero.walk.gun.gun2._x - gunlength * Math.sin(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
newFlash._x = _root.hero._x + _root.hero.jump_mc._x + _root.hero.jump_mc.gun._x + _root.hero.jump_mc.gun.gun2._x - gunlength * Math.sin(__reg1 * 0.0174533);
}
newFlash._xscale = -100;
newFlash._rotation = _root.hero.angle;
} else {
if (_root.hero._currentframe < 4) {
newFlash._x = _root.hero._x + _root.hero.walk._x + _root.hero.walk.gun._x + _root.hero.walk.gun.gun2._x + gunlength * Math.sin(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
newFlash._x = _root.hero._x + _root.hero.jump_mc._x + _root.hero.jump_mc.gun._x + _root.hero.jump_mc.gun.gun2._x + gunlength * Math.sin(__reg1 * 0.0174533);
}
newFlash._xscale = 100;
newFlash._rotation = (180 - _root.hero.angle) * -1;
}
_root.bulletOrig.newBullet1 = _root.bulletOrig.duplicateMovieClip('bulletflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.bulletOrig.newBullet1._rotation = 180 - _root.hero.angle * -1;
_root.bulletOrig.newBullet1._x = newFlash._x;
_root.bulletOrig.newBullet1._y = newFlash._y;
_root.bulletOrig.newBullet1.bulletSpeed = 20;
_root.bulletOrig.newBullet1.gotoAndStop('bullet');
_root.bulletOrig.newBullet1.damage = 1;
_root.hero.ammo -= 1;
_root.hero.recoil = 4;
_root.shotsfired += 1;
newGore = _root.gutsOrig.duplicateMovieClip('newGore' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newGore._x = _root.hero._x;
newGore._y = _root.hero._y - _root.hero._height / 2;
newGore.gotoAndStop(10);
newGore.ySpeed = 5 + random(8);
newGore.xSpeed = ((3 + random(5)) / 100) * _root.hero._xscale;
}
frame 4 {
stop();
}
}
movieClip 339 {
frame 1 {
stop();
}
frame 2 {
newFlash.gotoAndStop(1);
var __reg1 = _root.hero.angle;
_root.hero._xscale >= 0 ? null : __reg1;
__reg1 += 90;
newFlash = _root.flashOrig.duplicateMovieClip('newflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
var gunlength = 55;
var gunheight = 6;
if (_root.hero._currentframe < 4) {
newFlash._y = _root.hero._y + _root.hero.walk._y + _root.hero.walk.gun._y + _root.hero.walk.gun.gun2._y + (gunlength + gunheight) * Math.cos(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
newFlash._y = _root.hero._y + _root.hero.jump_mc._y + _root.hero.jump_mc.gun._y + _root.hero.jump_mc.gun.gun2._y + (gunlength + gunheight) * Math.cos(__reg1 * 0.0174533);
}
if (_root.hero._xscale == 100) {
if (_root.hero._currentframe < 4) {
newFlash._x = _root.hero._x + _root.hero.walk._x + _root.hero.walk.gun._x + _root.hero.walk.gun.gun2._x - gunlength * Math.sin(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
newFlash._x = _root.hero._x + _root.hero.jump_mc._x + _root.hero.jump_mc.gun._x + _root.hero.jump_mc.gun.gun2._x - gunlength * Math.sin(__reg1 * 0.0174533);
}
newFlash._xscale = -150;
newFlash._yscale = -150;
newFlash._rotation = _root.hero.angle;
} else {
if (_root.hero._currentframe < 4) {
newFlash._x = _root.hero._x + _root.hero.walk._x + _root.hero.walk.gun._x + _root.hero.walk.gun.gun2._x + gunlength * Math.sin(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
newFlash._x = _root.hero._x + _root.hero.jump_mc._x + _root.hero.jump_mc.gun._x + _root.hero.jump_mc.gun.gun2._x + gunlength * Math.sin(__reg1 * 0.0174533);
}
newFlash._xscale = 150;
newFlash._yscale = 150;
newFlash._rotation = (180 - _root.hero.angle) * -1;
}
_root.hero.ammo -= 1;
_root.hero.recoil = 45;
_root.shotsfired += 1;
newGore = _root.gutsOrig.duplicateMovieClip('newGore' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newGore._x = newFlash._x;
newGore._y = newFlash._y;
newGore.gotoAndStop(22);
newGore.xSpeed = Math.cos((180 - _root.hero.angle) * 3.141593 / 180) * 20;
newGore.ySpeed = Math.sin((180 - _root.hero.angle) * 3.141593 / 180) * 20;
}
frame 6 {
stop();
}
}
movieClip 346 {
frame 1 {
stop();
}
frame 4 {
newFlash.gotoAndStop(1);
var __reg1 = _root.hero.angle;
_root.hero._xscale >= 0 ? null : __reg1;
__reg1 += 90;
newFlash = _root.flashOrig.duplicateMovieClip('newflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
var gunlength = 40;
if (_root.hero._currentframe < 4) {
newFlash._y = _root.hero._y + _root.hero.walk._y + _root.hero.walk.gun._y + _root.hero.walk.gun.gun2._y + gunlength * Math.cos(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
newFlash._y = _root.hero._y + _root.hero.jump_mc._y + _root.hero.jump_mc.gun._y + _root.hero.jump_mc.gun.gun2._y + gunlength * Math.cos(__reg1 * 0.0174533);
}
if (_root.hero._xscale == 100) {
if (_root.hero._currentframe < 4) {
newFlash._x = _root.hero._x + _root.hero.walk._x + _root.hero.walk.gun._x + _root.hero.walk.gun.gun2._x - gunlength * Math.sin(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
newFlash._x = _root.hero._x + _root.hero.jump_mc._x + _root.hero.jump_mc.gun._x + _root.hero.jump_mc.gun.gun2._x - gunlength * Math.sin(__reg1 * 0.0174533);
}
newFlash._xscale = -150;
newFlash._yscale = -150;
newFlash._rotation = _root.hero.angle;
} else {
if (_root.hero._currentframe < 4) {
newFlash._x = _root.hero._x + _root.hero.walk._x + _root.hero.walk.gun._x + _root.hero.walk.gun.gun2._x + gunlength * Math.sin(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
newFlash._x = _root.hero._x + _root.hero.jump_mc._x + _root.hero.jump_mc.gun._x + _root.hero.jump_mc.gun.gun2._x + gunlength * Math.sin(__reg1 * 0.0174533);
}
newFlash._xscale = 150;
newFlash._yscale = 150;
newFlash._rotation = (180 - _root.hero.angle) * -1;
}
_root.altbulletsOrig.newBullet1 = _root.altbulletsOrig.duplicateMovieClip('bulletflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.altbulletsOrig.newBullet1._rotation = 180 - _root.hero.angle * -1;
_root.altbulletsOrig.newBullet1._x = newFlash._x;
_root.altbulletsOrig.newBullet1._y = newFlash._y;
_root.altbulletsOrig.newBullet1.bulletSpeed = 25;
_root.altbulletsOrig.newBullet1.gotoAndStop(2);
_root.hero.ammo -= 1;
_root.hero.recoil = 45;
_root.shotsfired += 1;
}
frame 11 {
stop();
}
}
movieClip 351 {
frame 1 {
stop();
}
frame 2 {
var __reg1 = _root.hero.angle;
_root.hero._xscale >= 0 ? null : __reg1;
__reg1 += 90;
newFlash = _root.flashOrig.duplicateMovieClip('newflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
var gunlength = 55;
var gunheight = 5;
if (_root.hero._currentframe < 4) {
newFlash._y = _root.hero._y + _root.hero.walk._y + _root.hero.walk.gun._y + _root.hero.walk.gun.gun2._y + (gunlength + gunheight) * Math.cos(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
newFlash._y = _root.hero._y + _root.hero.jump_mc._y + _root.hero.jump_mc.gun._y + _root.hero.jump_mc.gun.gun2._y + (gunlength + gunheight) * Math.cos(__reg1 * 0.0174533);
}
if (_root.hero._xscale == 100) {
if (_root.hero._currentframe < 4) {
newFlash._x = _root.hero._x + _root.hero.walk._x + _root.hero.walk.gun._x + _root.hero.walk.gun.gun2._x - gunlength * Math.sin(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
newFlash._x = _root.hero._x + _root.hero.jump_mc._x + _root.hero.jump_mc.gun._x + _root.hero.jump_mc.gun.gun2._x - gunlength * Math.sin(__reg1 * 0.0174533);
}
newFlash._xscale = -150;
newFlash._yscale = -150;
newFlash._rotation = _root.hero.angle;
} else {
if (_root.hero._currentframe < 4) {
newFlash._x = _root.hero._x + _root.hero.walk._x + _root.hero.walk.gun._x + _root.hero.walk.gun.gun2._x + gunlength * Math.sin(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
newFlash._x = _root.hero._x + _root.hero.jump_mc._x + _root.hero.jump_mc.gun._x + _root.hero.jump_mc.gun.gun2._x + gunlength * Math.sin(__reg1 * 0.0174533);
}
newFlash._xscale = 150;
newFlash._yscale = 150;
newFlash._rotation = (180 - _root.hero.angle) * -1;
}
_root.bulletOrig.newBullet1 = _root.bulletOrig.duplicateMovieClip('bulletflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.bulletOrig.newBullet1._rotation = 180 - _root.hero.angle * -1;
_root.bulletOrig.newBullet1._x = newFlash._x;
_root.bulletOrig.newBullet1._y = newFlash._y;
_root.bulletOrig.newBullet1.bulletSpeed = 20;
_root.bulletOrig.newBullet1.gotoAndStop('bullet');
_root.bulletOrig.newBullet1.damage = 1;
_root.hero.ammo -= 1;
_root.hero.recoil = 5;
_root.shotsfired += 1;
newGore = _root.gutsOrig.duplicateMovieClip('newGore' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newGore._x = _root.hero._x;
newGore._y = _root.hero._y - _root.hero._height / 2;
newGore.gotoAndStop(10);
newGore.ySpeed = 5 + random(8);
newGore.xSpeed = ((3 + random(5)) / 100) * _root.hero._xscale;
}
frame 4 {
stop();
}
}
movieClip 406 {
frame 1 {
stop();
}
frame 3 {
var __reg1 = _root.hero.angle;
_root.hero._xscale >= 0 ? null : __reg1;
__reg1 += 90;
newFlash = _root.flashOrig.duplicateMovieClip('newflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
var gunlength = 35;
var gunheight = 8;
newFlash._yscale = 150;
if (_root.hero._currentframe < 4) {
newFlash._y = _root.hero._y + _root.hero.walk._y + _root.hero.walk.gun._y + _root.hero.walk.gun.gun2._y + (gunlength + gunheight) * Math.cos(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
newFlash._y = _root.hero._y + _root.hero.jump_mc._y + _root.hero.jump_mc.gun._y + _root.hero.jump_mc.gun.gun2._y + (gunlength + gunheight) * Math.cos(__reg1 * 0.0174533);
}
if (_root.hero._xscale == 100) {
if (_root.hero._currentframe < 4) {
newFlash._x = _root.hero._x + _root.hero.walk._x + _root.hero.walk.gun._x + _root.hero.walk.gun.gun2._x - gunlength * Math.sin(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
newFlash._x = _root.hero._x + _root.hero.jump_mc._x + _root.hero.jump_mc.gun._x + _root.hero.jump_mc.gun.gun2._x - gunlength * Math.sin(__reg1 * 0.0174533);
}
newFlash._xscale = -100;
newFlash._rotation = _root.hero.angle;
} else {
if (_root.hero._currentframe < 4) {
newFlash._x = _root.hero._x + _root.hero.walk._x + _root.hero.walk.gun._x + _root.hero.walk.gun.gun2._x + 35 * Math.sin(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
newFlash._x = _root.hero._x + _root.hero.jump_mc._x + _root.hero.jump_mc.gun._x + _root.hero.jump_mc.gun.gun2._x + 35 * Math.sin(__reg1 * 0.0174533);
}
newFlash._xscale = 100;
newFlash._rotation = (180 - _root.hero.angle) * -1;
}
_root.bulletOrig.newBullet1 = _root.bulletOrig.duplicateMovieClip('bulletflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.bulletOrig.newBullet1._rotation = 175 - _root.hero.angle * -1;
_root.bulletOrig.newBullet1._x = newFlash._x;
_root.bulletOrig.newBullet1._y = newFlash._y;
_root.bulletOrig.newBullet1.bulletSpeed = 20;
_root.bulletOrig.newBullet1.gotoAndStop('pellet');
_root.bulletOrig.newBullet2 = _root.bulletOrig.duplicateMovieClip('bulletflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.bulletOrig.newBullet2._rotation = 180 - _root.hero.angle * -1;
_root.bulletOrig.newBullet2._x = newFlash._x;
_root.bulletOrig.newBullet2._y = newFlash._y;
_root.bulletOrig.newBullet2.bulletSpeed = 20;
_root.bulletOrig.newBullet2.gotoAndStop('pellet');
_root.bulletOrig.newBullet3 = _root.bulletOrig.duplicateMovieClip('bulletflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.bulletOrig.newBullet3._rotation = 185 - _root.hero.angle * -1;
_root.bulletOrig.newBullet3._x = newFlash._x;
_root.bulletOrig.newBullet3._y = newFlash._y;
_root.bulletOrig.newBullet3.bulletSpeed = 20;
_root.bulletOrig.newBullet3.gotoAndStop('pellet');
_root.hero.ammo -= 1;
_root.hero.recoil = 60;
_root.shotsfired += 1;
newGore = _root.gutsOrig.duplicateMovieClip('newGore' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newGore._x = _root.hero._x;
newGore._y = _root.hero._y - _root.hero._height / 2;
newGore._xscale = 125;
newGore._yscale = 125;
newGore.gotoAndStop(9);
newGore.ySpeed = 5 + random(8);
newGore.xSpeed = ((3 + random(5)) / 100) * _root.hero._xscale;
}
frame 4 {
_root.bulletOrig.newBullet1 = _root.bulletOrig.duplicateMovieClip('bulletflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.bulletOrig.newBullet1._rotation = 170 - _root.hero.angle * -1;
_root.bulletOrig.newBullet1._x = newFlash._x;
_root.bulletOrig.newBullet1._y = newFlash._y;
_root.bulletOrig.newBullet1.bulletSpeed = 20;
_root.bulletOrig.newBullet1.gotoAndStop('pellet');
_root.bulletOrig.newBullet2 = _root.bulletOrig.duplicateMovieClip('bulletflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.bulletOrig.newBullet2._rotation = 182 - _root.hero.angle * -1;
_root.bulletOrig.newBullet2._x = newFlash._x;
_root.bulletOrig.newBullet2._y = newFlash._y;
_root.bulletOrig.newBullet2.bulletSpeed = 20;
_root.bulletOrig.newBullet2.gotoAndStop('pellet');
_root.bulletOrig.newBullet3 = _root.bulletOrig.duplicateMovieClip('bulletflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.bulletOrig.newBullet3._rotation = 190 - _root.hero.angle * -1;
_root.bulletOrig.newBullet3._x = newFlash._x;
_root.bulletOrig.newBullet3._y = newFlash._y;
_root.bulletOrig.newBullet3.bulletSpeed = 20;
_root.bulletOrig.newBullet3.gotoAndStop('pellet');
}
frame 73 {
stop();
}
}
movieClip 409 {
frame 1 {
stop();
}
frame 3 {
var __reg1 = _root.hero.angle;
_root.hero._xscale >= 0 ? null : __reg1;
__reg1 += 90;
newBullet1 = _root.bulletOrig.duplicateMovieClip('bulletflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newBullet1._rotation = 180 - _root.hero.angle * -1;
newBullet1.bulletSpeed = 3;
newBullet1.gotoAndStop('flame');
var gunlength = 70;
var gunheight = 0;
if (_root.hero._currentframe < 4) {
newBullet1._y = _root.hero._y + _root.hero.walk._y + _root.hero.walk.gun._y + _root.hero.walk.gun.gun2._y + (gunlength + gunheight) * Math.cos(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
newBullet1._y = _root.hero._y + _root.hero.jump_mc._y + _root.hero.jump_mc.gun._y + _root.hero.jump_mc.gun.gun2._y + (gunlength + gunheight) * Math.cos(__reg1 * 0.0174533);
}
if (_root.hero._xscale == 100) {
if (_root.hero._currentframe < 4) {
newBullet1._x = _root.hero._x + _root.hero.walk._x + _root.hero.walk.gun._x + _root.hero.walk.gun.gun2._x - gunlength * Math.sin(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
newBullet1._x = _root.hero._x + _root.hero.jump_mc._x + _root.hero.jump_mc.gun._x + _root.hero.jump_mc.gun.gun2._x - gunlength * Math.sin(__reg1 * 0.0174533);
}
} else {
if (_root.hero._currentframe < 4) {
newBullet1._x = _root.hero._x + _root.hero.walk._x + _root.hero.walk.gun._x + _root.hero.walk.gun.gun2._x + gunlength * Math.sin(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
newBullet1._x = _root.hero._x + _root.hero.jump_mc._x + _root.hero.jump_mc.gun._x + _root.hero.jump_mc.gun.gun2._x + gunlength * Math.sin(__reg1 * 0.0174533);
}
}
_root.hero.ammo -= 1;
_root.hero.recoil = 5;
_root.shotsfired += 1;
}
frame 7 {
if (_root.msdown == true && _root.hero.activated == true && _root.hero.controllable == true && _root.hero.life > 0) {
gotoAndPlay(3);
}
if (_root.msdown == false) {
gotoAndStop(_currentframe + 1);
}
}
frame 8 {
stop();
}
}
movieClip 414 {
frame 1 {
stop();
}
frame 3 {
var gunlength = 55;
var gunheight = 5;
var __reg1 = _root.hero.angle;
_root.hero._xscale >= 0 ? null : __reg1;
__reg1 += 90;
newFlash = _root.flashOrig.duplicateMovieClip('newflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newFlash._yscale = 150;
if (_root.hero._currentframe < 4) {
newFlash._y = _root.hero._y + _root.hero.walk._y + _root.hero.walk.gun._y + _root.hero.walk.gun.gun2._y + (gunlength + gunheight) * Math.cos(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
newFlash._y = _root.hero._y + _root.hero.jump_mc._y + _root.hero.jump_mc.gun._y + _root.hero.jump_mc.gun.gun2._y + (gunlength + gunheight) * Math.cos(__reg1 * 0.0174533);
}
if (_root.hero._xscale == 100) {
if (_root.hero._currentframe < 4) {
newFlash._x = _root.hero._x + _root.hero.walk._x + _root.hero.walk.gun._x + _root.hero.walk.gun.gun2._x - gunlength * Math.sin(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
newFlash._x = _root.hero._x + _root.hero.jump_mc._x + _root.hero.jump_mc.gun._x + _root.hero.jump_mc.gun.gun2._x - gunlength * Math.sin(__reg1 * 0.0174533);
}
newFlash._xscale = -100;
newFlash._rotation = _root.hero.angle;
} else {
if (_root.hero._currentframe < 4) {
newFlash._x = _root.hero._x + _root.hero.walk._x + _root.hero.walk.gun._x + _root.hero.walk.gun.gun2._x + gunlength * Math.sin(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
newFlash._x = _root.hero._x + _root.hero.jump_mc._x + _root.hero.jump_mc.gun._x + _root.hero.jump_mc.gun.gun2._x + gunlength * Math.sin(__reg1 * 0.0174533);
}
newFlash._xscale = 100;
newFlash._rotation = (180 - _root.hero.angle) * -1;
}
_root.bulletOrig.newBullet1 = _root.bulletOrig.duplicateMovieClip('bulletflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.bulletOrig.newBullet1._rotation = 175 - _root.hero.angle * -1;
_root.bulletOrig.newBullet1._x = newFlash._x;
_root.bulletOrig.newBullet1._y = newFlash._y;
_root.bulletOrig.newBullet1.bulletSpeed = 20;
_root.bulletOrig.newBullet1.gotoAndStop('pellet');
_root.bulletOrig.newBullet2 = _root.bulletOrig.duplicateMovieClip('bulletflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.bulletOrig.newBullet2._rotation = 180 - _root.hero.angle * -1;
_root.bulletOrig.newBullet2._x = newFlash._x;
_root.bulletOrig.newBullet2._y = newFlash._y;
_root.bulletOrig.newBullet2.bulletSpeed = 20;
_root.bulletOrig.newBullet2.gotoAndStop('pellet');
_root.bulletOrig.newBullet3 = _root.bulletOrig.duplicateMovieClip('bulletflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.bulletOrig.newBullet3._rotation = 185 - _root.hero.angle * -1;
_root.bulletOrig.newBullet3._x = newFlash._x;
_root.bulletOrig.newBullet3._y = newFlash._y;
_root.bulletOrig.newBullet3.bulletSpeed = 20;
_root.bulletOrig.newBullet3.gotoAndStop('pellet');
_root.hero.ammo -= 1;
_root.hero.recoil = 60;
_root.shotsfired += 1;
newGore = _root.gutsOrig.duplicateMovieClip('newGore' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newGore._x = _root.hero._x;
newGore._y = _root.hero._y - _root.hero._height / 2;
newGore._xscale = 125;
newGore._yscale = 125;
newGore.gotoAndStop(9);
newGore.ySpeed = 5 + random(8);
newGore.xSpeed = ((3 + random(5)) / 100) * _root.hero._xscale;
}
frame 4 {
_root.bulletOrig.newBullet1 = _root.bulletOrig.duplicateMovieClip('bulletflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.bulletOrig.newBullet1._rotation = 170 - _root.hero.angle * -1;
_root.bulletOrig.newBullet1._x = newFlash._x;
_root.bulletOrig.newBullet1._y = newFlash._y;
_root.bulletOrig.newBullet1.bulletSpeed = 20;
_root.bulletOrig.newBullet1.gotoAndStop('pellet');
_root.bulletOrig.newBullet2 = _root.bulletOrig.duplicateMovieClip('bulletflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.bulletOrig.newBullet2._rotation = 182 - _root.hero.angle * -1;
_root.bulletOrig.newBullet2._x = newFlash._x;
_root.bulletOrig.newBullet2._y = newFlash._y;
_root.bulletOrig.newBullet2.bulletSpeed = 20;
_root.bulletOrig.newBullet2.gotoAndStop('pellet');
_root.bulletOrig.newBullet3 = _root.bulletOrig.duplicateMovieClip('bulletflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.bulletOrig.newBullet3._rotation = 190 - _root.hero.angle * -1;
_root.bulletOrig.newBullet3._x = newFlash._x;
_root.bulletOrig.newBullet3._y = newFlash._y;
_root.bulletOrig.newBullet3.bulletSpeed = 20;
_root.bulletOrig.newBullet3.gotoAndStop('pellet');
}
frame 6 {
stop();
}
}
movieClip 419 {
}
movieClip 421 {
}
movieClip 423 {
}
movieClip 424 {
}
movieClip 461 {
frame 1 {
newBullet1 = _root.bulletOrig.duplicateMovieClip('bulletflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
daddy = _parent._parent._parent._parent;
var __reg1 = daddy.angle;
daddy._xscale >= 0 ? null : __reg1;
__reg1 += 90;
if (daddy._currentframe < 4) {
newBullet1._y = daddy._y + daddy.walk._y + daddy.walk.gun._y + daddy.walk.gun.gun2._y + 35 * Math.cos(__reg1 * 0.0174533);
}
if (daddy._currentframe == 4) {
newBullet1._y = daddy._y + daddy.jump_mc._y + daddy.jump_mc.gun._y + daddy.jump_mc.gun.gun2._y + 35 * Math.cos(__reg1 * 0.0174533);
}
if (daddy._xscale == 100) {
if (daddy._currentframe < 4) {
newBullet1._x = daddy._x + daddy.walk._x + daddy.walk.gun._x + daddy.walk.gun.gun2._x - 35 * Math.sin(__reg1 * 0.0174533);
}
if (daddy._currentframe == 4) {
newBullet1._x = daddy._x + daddy.jump_mc._x + daddy.jump_mc.gun._x + daddy.jump_mc.gun.gun2._x - 35 * Math.sin(__reg1 * 0.0174533);
}
newBullet1._xscale = -100;
newBullet1._rotation = daddy.angle;
} else {
if (daddy._currentframe < 4) {
newBullet1._x = daddy._x + daddy.walk._x + daddy.walk.gun._x + daddy.walk.gun.gun2._x + 35 * Math.sin(__reg1 * 0.0174533);
}
if (daddy._currentframe == 4) {
newBullet1._x = daddy._x + daddy.jump_mc._x + daddy.jump_mc.gun._x + daddy.jump_mc.gun.gun2._x + 35 * Math.sin(__reg1 * 0.0174533);
}
newBullet1._xscale = 100;
newBullet1._rotation = (180 - daddy.angle) * -1;
}
newBullet1._rotation = 180 - daddy.angle * -1;
newBullet1.bulletSpeed = 20;
newBullet1.gotoAndStop('bullet');
newBullet1.damage = 1;
newBullet1._visible = false;
daddy.ammo -= 1;
daddy.recoil = 4;
_root.shotsfired += 1;
}
frame 4 {
newBullet1 = _root.bulletOrig.duplicateMovieClip('bulletflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
daddy = _parent._parent._parent._parent;
var __reg1 = daddy.angle;
daddy._xscale >= 0 ? null : __reg1;
__reg1 += 90;
if (daddy._currentframe < 4) {
newBullet1._y = daddy._y + daddy.walk._y + daddy.walk.gun._y + daddy.walk.gun.gun2._y + 35 * Math.cos(__reg1 * 0.0174533);
}
if (daddy._currentframe == 4) {
newBullet1._y = daddy._y + daddy.jump_mc._y + daddy.jump_mc.gun._y + daddy.jump_mc.gun.gun2._y + 35 * Math.cos(__reg1 * 0.0174533);
}
if (daddy._xscale == 100) {
if (daddy._currentframe < 4) {
newBullet1._x = daddy._x + daddy.walk._x + daddy.walk.gun._x + daddy.walk.gun.gun2._x - 35 * Math.sin(__reg1 * 0.0174533);
}
if (daddy._currentframe == 4) {
newBullet1._x = daddy._x + daddy.jump_mc._x + daddy.jump_mc.gun._x + daddy.jump_mc.gun.gun2._x - 35 * Math.sin(__reg1 * 0.0174533);
}
newBullet1._xscale = -100;
newBullet1._rotation = daddy.angle;
} else {
if (daddy._currentframe < 4) {
newBullet1._x = daddy._x + daddy.walk._x + daddy.walk.gun._x + daddy.walk.gun.gun2._x + 35 * Math.sin(__reg1 * 0.0174533);
}
if (daddy._currentframe == 4) {
newBullet1._x = daddy._x + daddy.jump_mc._x + daddy.jump_mc.gun._x + daddy.jump_mc.gun.gun2._x + 35 * Math.sin(__reg1 * 0.0174533);
}
newBullet1._xscale = 100;
newBullet1._rotation = (180 - daddy.angle) * -1;
}
newBullet1._rotation = 180 - daddy.angle * -1;
newBullet1.bulletSpeed = 20;
newBullet1.gotoAndStop('bullet');
newBullet1.damage = 1;
newBullet1._visible = false;
daddy.ammo -= 1;
daddy.recoil = 4;
_root.shotsfired += 1;
}
frame 7 {
newBullet1 = _root.bulletOrig.duplicateMovieClip('bulletflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
daddy = _parent._parent._parent._parent;
var __reg1 = daddy.angle;
daddy._xscale >= 0 ? null : __reg1;
__reg1 += 90;
if (daddy._currentframe < 4) {
newBullet1._y = daddy._y + daddy.walk._y + daddy.walk.gun._y + daddy.walk.gun.gun2._y + 35 * Math.cos(__reg1 * 0.0174533);
}
if (daddy._currentframe == 4) {
newBullet1._y = daddy._y + daddy.jump_mc._y + daddy.jump_mc.gun._y + daddy.jump_mc.gun.gun2._y + 35 * Math.cos(__reg1 * 0.0174533);
}
if (daddy._xscale == 100) {
if (daddy._currentframe < 4) {
newBullet1._x = daddy._x + daddy.walk._x + daddy.walk.gun._x + daddy.walk.gun.gun2._x - 35 * Math.sin(__reg1 * 0.0174533);
}
if (daddy._currentframe == 4) {
newBullet1._x = daddy._x + daddy.jump_mc._x + daddy.jump_mc.gun._x + daddy.jump_mc.gun.gun2._x - 35 * Math.sin(__reg1 * 0.0174533);
}
newBullet1._xscale = -100;
newBullet1._rotation = daddy.angle;
} else {
if (daddy._currentframe < 4) {
newBullet1._x = daddy._x + daddy.walk._x + daddy.walk.gun._x + daddy.walk.gun.gun2._x + 35 * Math.sin(__reg1 * 0.0174533);
}
if (daddy._currentframe == 4) {
newBullet1._x = daddy._x + daddy.jump_mc._x + daddy.jump_mc.gun._x + daddy.jump_mc.gun.gun2._x + 35 * Math.sin(__reg1 * 0.0174533);
}
newBullet1._xscale = 100;
newBullet1._rotation = (180 - daddy.angle) * -1;
}
newBullet1._rotation = 180 - daddy.angle * -1;
newBullet1.bulletSpeed = 20;
newBullet1.gotoAndStop('bullet');
newBullet1.damage = 1;
newBullet1._visible = false;
daddy.ammo -= 1;
daddy.recoil = 4;
_root.shotsfired += 1;
}
frame 10 {
newBullet1 = _root.bulletOrig.duplicateMovieClip('bulletflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
daddy = _parent._parent._parent._parent;
var __reg1 = daddy.angle;
daddy._xscale >= 0 ? null : __reg1;
__reg1 += 90;
if (daddy._currentframe < 4) {
newBullet1._y = daddy._y + daddy.walk._y + daddy.walk.gun._y + daddy.walk.gun.gun2._y + 35 * Math.cos(__reg1 * 0.0174533);
}
if (daddy._currentframe == 4) {
newBullet1._y = daddy._y + daddy.jump_mc._y + daddy.jump_mc.gun._y + daddy.jump_mc.gun.gun2._y + 35 * Math.cos(__reg1 * 0.0174533);
}
if (daddy._xscale == 100) {
if (daddy._currentframe < 4) {
newBullet1._x = daddy._x + daddy.walk._x + daddy.walk.gun._x + daddy.walk.gun.gun2._x - 35 * Math.sin(__reg1 * 0.0174533);
}
if (daddy._currentframe == 4) {
newBullet1._x = daddy._x + daddy.jump_mc._x + daddy.jump_mc.gun._x + daddy.jump_mc.gun.gun2._x - 35 * Math.sin(__reg1 * 0.0174533);
}
newBullet1._xscale = -100;
newBullet1._rotation = daddy.angle;
} else {
if (daddy._currentframe < 4) {
newBullet1._x = daddy._x + daddy.walk._x + daddy.walk.gun._x + daddy.walk.gun.gun2._x + 35 * Math.sin(__reg1 * 0.0174533);
}
if (daddy._currentframe == 4) {
newBullet1._x = daddy._x + daddy.jump_mc._x + daddy.jump_mc.gun._x + daddy.jump_mc.gun.gun2._x + 35 * Math.sin(__reg1 * 0.0174533);
}
newBullet1._xscale = 100;
newBullet1._rotation = (180 - daddy.angle) * -1;
}
newBullet1._rotation = 180 - daddy.angle * -1;
newBullet1.bulletSpeed = 20;
newBullet1.gotoAndStop('bullet');
newBullet1.damage = 1;
newBullet1._visible = false;
daddy.ammo -= 1;
daddy.recoil = 4;
_root.shotsfired += 1;
}
frame 13 {
newBullet1 = _root.bulletOrig.duplicateMovieClip('bulletflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
daddy = _parent._parent._parent._parent;
var __reg1 = daddy.angle;
daddy._xscale >= 0 ? null : __reg1;
__reg1 += 90;
if (daddy._currentframe < 4) {
newBullet1._y = daddy._y + daddy.walk._y + daddy.walk.gun._y + daddy.walk.gun.gun2._y + 35 * Math.cos(__reg1 * 0.0174533);
}
if (daddy._currentframe == 4) {
newBullet1._y = daddy._y + daddy.jump_mc._y + daddy.jump_mc.gun._y + daddy.jump_mc.gun.gun2._y + 35 * Math.cos(__reg1 * 0.0174533);
}
if (daddy._xscale == 100) {
if (daddy._currentframe < 4) {
newBullet1._x = daddy._x + daddy.walk._x + daddy.walk.gun._x + daddy.walk.gun.gun2._x - 35 * Math.sin(__reg1 * 0.0174533);
}
if (daddy._currentframe == 4) {
newBullet1._x = daddy._x + daddy.jump_mc._x + daddy.jump_mc.gun._x + daddy.jump_mc.gun.gun2._x - 35 * Math.sin(__reg1 * 0.0174533);
}
newBullet1._xscale = -100;
newBullet1._rotation = daddy.angle;
} else {
if (daddy._currentframe < 4) {
newBullet1._x = daddy._x + daddy.walk._x + daddy.walk.gun._x + daddy.walk.gun.gun2._x + 35 * Math.sin(__reg1 * 0.0174533);
}
if (daddy._currentframe == 4) {
newBullet1._x = daddy._x + daddy.jump_mc._x + daddy.jump_mc.gun._x + daddy.jump_mc.gun.gun2._x + 35 * Math.sin(__reg1 * 0.0174533);
}
newBullet1._xscale = 100;
newBullet1._rotation = (180 - daddy.angle) * -1;
}
newBullet1._rotation = 180 - daddy.angle * -1;
newBullet1.bulletSpeed = 20;
newBullet1.gotoAndStop('bullet');
newBullet1.damage = 1;
newBullet1._visible = false;
daddy.ammo -= 1;
daddy.recoil = 4;
_root.shotsfired += 1;
}
frame 16 {
newBullet1 = _root.bulletOrig.duplicateMovieClip('bulletflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
daddy = _parent._parent._parent._parent;
var __reg1 = daddy.angle;
daddy._xscale >= 0 ? null : __reg1;
__reg1 += 90;
if (daddy._currentframe < 4) {
newBullet1._y = daddy._y + daddy.walk._y + daddy.walk.gun._y + daddy.walk.gun.gun2._y + 35 * Math.cos(__reg1 * 0.0174533);
}
if (daddy._currentframe == 4) {
newBullet1._y = daddy._y + daddy.jump_mc._y + daddy.jump_mc.gun._y + daddy.jump_mc.gun.gun2._y + 35 * Math.cos(__reg1 * 0.0174533);
}
if (daddy._xscale == 100) {
if (daddy._currentframe < 4) {
newBullet1._x = daddy._x + daddy.walk._x + daddy.walk.gun._x + daddy.walk.gun.gun2._x - 35 * Math.sin(__reg1 * 0.0174533);
}
if (daddy._currentframe == 4) {
newBullet1._x = daddy._x + daddy.jump_mc._x + daddy.jump_mc.gun._x + daddy.jump_mc.gun.gun2._x - 35 * Math.sin(__reg1 * 0.0174533);
}
newBullet1._xscale = -100;
newBullet1._rotation = daddy.angle;
} else {
if (daddy._currentframe < 4) {
newBullet1._x = daddy._x + daddy.walk._x + daddy.walk.gun._x + daddy.walk.gun.gun2._x + 35 * Math.sin(__reg1 * 0.0174533);
}
if (daddy._currentframe == 4) {
newBullet1._x = daddy._x + daddy.jump_mc._x + daddy.jump_mc.gun._x + daddy.jump_mc.gun.gun2._x + 35 * Math.sin(__reg1 * 0.0174533);
}
newBullet1._xscale = 100;
newBullet1._rotation = (180 - daddy.angle) * -1;
}
newBullet1._rotation = 180 - daddy.angle * -1;
newBullet1.bulletSpeed = 20;
newBullet1.gotoAndStop('bullet');
newBullet1.damage = 1;
newBullet1._visible = false;
daddy.ammo -= 1;
daddy.recoil = 4;
_root.shotsfired += 1;
}
frame 19 {
newBullet1 = _root.bulletOrig.duplicateMovieClip('bulletflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
daddy = _parent._parent._parent._parent;
var __reg1 = daddy.angle;
daddy._xscale >= 0 ? null : __reg1;
__reg1 += 90;
if (daddy._currentframe < 4) {
newBullet1._y = daddy._y + daddy.walk._y + daddy.walk.gun._y + daddy.walk.gun.gun2._y + 35 * Math.cos(__reg1 * 0.0174533);
}
if (daddy._currentframe == 4) {
newBullet1._y = daddy._y + daddy.jump_mc._y + daddy.jump_mc.gun._y + daddy.jump_mc.gun.gun2._y + 35 * Math.cos(__reg1 * 0.0174533);
}
if (daddy._xscale == 100) {
if (daddy._currentframe < 4) {
newBullet1._x = daddy._x + daddy.walk._x + daddy.walk.gun._x + daddy.walk.gun.gun2._x - 35 * Math.sin(__reg1 * 0.0174533);
}
if (daddy._currentframe == 4) {
newBullet1._x = daddy._x + daddy.jump_mc._x + daddy.jump_mc.gun._x + daddy.jump_mc.gun.gun2._x - 35 * Math.sin(__reg1 * 0.0174533);
}
newBullet1._xscale = -100;
newBullet1._rotation = daddy.angle;
} else {
if (daddy._currentframe < 4) {
newBullet1._x = daddy._x + daddy.walk._x + daddy.walk.gun._x + daddy.walk.gun.gun2._x + 35 * Math.sin(__reg1 * 0.0174533);
}
if (daddy._currentframe == 4) {
newBullet1._x = daddy._x + daddy.jump_mc._x + daddy.jump_mc.gun._x + daddy.jump_mc.gun.gun2._x + 35 * Math.sin(__reg1 * 0.0174533);
}
newBullet1._xscale = 100;
newBullet1._rotation = (180 - daddy.angle) * -1;
}
newBullet1._rotation = 180 - daddy.angle * -1;
newBullet1.bulletSpeed = 20;
newBullet1.gotoAndStop('bullet');
newBullet1.damage = 1;
newBullet1._visible = false;
daddy.ammo -= 1;
daddy.recoil = 4;
_root.shotsfired += 1;
}
frame 22 {
newBullet1 = _root.bulletOrig.duplicateMovieClip('bulletflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
daddy = _parent._parent._parent._parent;
var __reg1 = daddy.angle;
daddy._xscale >= 0 ? null : __reg1;
__reg1 += 90;
if (daddy._currentframe < 4) {
newBullet1._y = daddy._y + daddy.walk._y + daddy.walk.gun._y + daddy.walk.gun.gun2._y + 35 * Math.cos(__reg1 * 0.0174533);
}
if (daddy._currentframe == 4) {
newBullet1._y = daddy._y + daddy.jump_mc._y + daddy.jump_mc.gun._y + daddy.jump_mc.gun.gun2._y + 35 * Math.cos(__reg1 * 0.0174533);
}
if (daddy._xscale == 100) {
if (daddy._currentframe < 4) {
newBullet1._x = daddy._x + daddy.walk._x + daddy.walk.gun._x + daddy.walk.gun.gun2._x - 35 * Math.sin(__reg1 * 0.0174533);
}
if (daddy._currentframe == 4) {
newBullet1._x = daddy._x + daddy.jump_mc._x + daddy.jump_mc.gun._x + daddy.jump_mc.gun.gun2._x - 35 * Math.sin(__reg1 * 0.0174533);
}
newBullet1._xscale = -100;
newBullet1._rotation = daddy.angle;
} else {
if (daddy._currentframe < 4) {
newBullet1._x = daddy._x + daddy.walk._x + daddy.walk.gun._x + daddy.walk.gun.gun2._x + 35 * Math.sin(__reg1 * 0.0174533);
}
if (daddy._currentframe == 4) {
newBullet1._x = daddy._x + daddy.jump_mc._x + daddy.jump_mc.gun._x + daddy.jump_mc.gun.gun2._x + 35 * Math.sin(__reg1 * 0.0174533);
}
newBullet1._xscale = 100;
newBullet1._rotation = (180 - daddy.angle) * -1;
}
newBullet1._rotation = 180 - daddy.angle * -1;
newBullet1.bulletSpeed = 20;
newBullet1.gotoAndStop('bullet');
newBullet1.damage = 1;
newBullet1._visible = false;
daddy.ammo -= 1;
daddy.recoil = 4;
_root.shotsfired += 1;
}
frame 25 {
newBullet1 = _root.bulletOrig.duplicateMovieClip('bulletflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
daddy = _parent._parent._parent._parent;
var __reg1 = daddy.angle;
daddy._xscale >= 0 ? null : __reg1;
__reg1 += 90;
if (daddy._currentframe < 4) {
newBullet1._y = daddy._y + daddy.walk._y + daddy.walk.gun._y + daddy.walk.gun.gun2._y + 35 * Math.cos(__reg1 * 0.0174533);
}
if (daddy._currentframe == 4) {
newBullet1._y = daddy._y + daddy.jump_mc._y + daddy.jump_mc.gun._y + daddy.jump_mc.gun.gun2._y + 35 * Math.cos(__reg1 * 0.0174533);
}
if (daddy._xscale == 100) {
if (daddy._currentframe < 4) {
newBullet1._x = daddy._x + daddy.walk._x + daddy.walk.gun._x + daddy.walk.gun.gun2._x - 35 * Math.sin(__reg1 * 0.0174533);
}
if (daddy._currentframe == 4) {
newBullet1._x = daddy._x + daddy.jump_mc._x + daddy.jump_mc.gun._x + daddy.jump_mc.gun.gun2._x - 35 * Math.sin(__reg1 * 0.0174533);
}
newBullet1._xscale = -100;
newBullet1._rotation = daddy.angle;
} else {
if (daddy._currentframe < 4) {
newBullet1._x = daddy._x + daddy.walk._x + daddy.walk.gun._x + daddy.walk.gun.gun2._x + 35 * Math.sin(__reg1 * 0.0174533);
}
if (daddy._currentframe == 4) {
newBullet1._x = daddy._x + daddy.jump_mc._x + daddy.jump_mc.gun._x + daddy.jump_mc.gun.gun2._x + 35 * Math.sin(__reg1 * 0.0174533);
}
newBullet1._xscale = 100;
newBullet1._rotation = (180 - daddy.angle) * -1;
}
newBullet1._rotation = 180 - daddy.angle * -1;
newBullet1.bulletSpeed = 20;
newBullet1.gotoAndStop('bullet');
newBullet1.damage = 1;
newBullet1._visible = false;
daddy.ammo -= 1;
daddy.recoil = 4;
_root.shotsfired += 1;
}
frame 28 {
newBullet1 = _root.bulletOrig.duplicateMovieClip('bulletflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
daddy = _parent._parent._parent._parent;
var __reg1 = daddy.angle;
daddy._xscale >= 0 ? null : __reg1;
__reg1 += 90;
if (daddy._currentframe < 4) {
newBullet1._y = daddy._y + daddy.walk._y + daddy.walk.gun._y + daddy.walk.gun.gun2._y + 35 * Math.cos(__reg1 * 0.0174533);
}
if (daddy._currentframe == 4) {
newBullet1._y = daddy._y + daddy.jump_mc._y + daddy.jump_mc.gun._y + daddy.jump_mc.gun.gun2._y + 35 * Math.cos(__reg1 * 0.0174533);
}
if (daddy._xscale == 100) {
if (daddy._currentframe < 4) {
newBullet1._x = daddy._x + daddy.walk._x + daddy.walk.gun._x + daddy.walk.gun.gun2._x - 35 * Math.sin(__reg1 * 0.0174533);
}
if (daddy._currentframe == 4) {
newBullet1._x = daddy._x + daddy.jump_mc._x + daddy.jump_mc.gun._x + daddy.jump_mc.gun.gun2._x - 35 * Math.sin(__reg1 * 0.0174533);
}
newBullet1._xscale = -100;
newBullet1._rotation = daddy.angle;
} else {
if (daddy._currentframe < 4) {
newBullet1._x = daddy._x + daddy.walk._x + daddy.walk.gun._x + daddy.walk.gun.gun2._x + 35 * Math.sin(__reg1 * 0.0174533);
}
if (daddy._currentframe == 4) {
newBullet1._x = daddy._x + daddy.jump_mc._x + daddy.jump_mc.gun._x + daddy.jump_mc.gun.gun2._x + 35 * Math.sin(__reg1 * 0.0174533);
}
newBullet1._xscale = 100;
newBullet1._rotation = (180 - daddy.angle) * -1;
}
newBullet1._rotation = 180 - daddy.angle * -1;
newBullet1.bulletSpeed = 20;
newBullet1.gotoAndStop('bullet');
newBullet1.damage = 1;
newBullet1._visible = false;
daddy.ammo -= 1;
daddy.recoil = 4;
_root.shotsfired += 1;
}
frame 31 {
newBullet1 = _root.bulletOrig.duplicateMovieClip('bulletflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
daddy = _parent._parent._parent._parent;
var __reg1 = daddy.angle;
daddy._xscale >= 0 ? null : __reg1;
__reg1 += 90;
if (daddy._currentframe < 4) {
newBullet1._y = daddy._y + daddy.walk._y + daddy.walk.gun._y + daddy.walk.gun.gun2._y + 35 * Math.cos(__reg1 * 0.0174533);
}
if (daddy._currentframe == 4) {
newBullet1._y = daddy._y + daddy.jump_mc._y + daddy.jump_mc.gun._y + daddy.jump_mc.gun.gun2._y + 35 * Math.cos(__reg1 * 0.0174533);
}
if (daddy._xscale == 100) {
if (daddy._currentframe < 4) {
newBullet1._x = daddy._x + daddy.walk._x + daddy.walk.gun._x + daddy.walk.gun.gun2._x - 35 * Math.sin(__reg1 * 0.0174533);
}
if (daddy._currentframe == 4) {
newBullet1._x = daddy._x + daddy.jump_mc._x + daddy.jump_mc.gun._x + daddy.jump_mc.gun.gun2._x - 35 * Math.sin(__reg1 * 0.0174533);
}
newBullet1._xscale = -100;
newBullet1._rotation = daddy.angle;
} else {
if (daddy._currentframe < 4) {
newBullet1._x = daddy._x + daddy.walk._x + daddy.walk.gun._x + daddy.walk.gun.gun2._x + 35 * Math.sin(__reg1 * 0.0174533);
}
if (daddy._currentframe == 4) {
newBullet1._x = daddy._x + daddy.jump_mc._x + daddy.jump_mc.gun._x + daddy.jump_mc.gun.gun2._x + 35 * Math.sin(__reg1 * 0.0174533);
}
newBullet1._xscale = 100;
newBullet1._rotation = (180 - daddy.angle) * -1;
}
newBullet1._rotation = 180 - daddy.angle * -1;
newBullet1.bulletSpeed = 20;
newBullet1.gotoAndStop('bullet');
newBullet1.damage = 1;
newBullet1._visible = false;
daddy.ammo -= 1;
daddy.recoil = 4;
_root.shotsfired += 1;
}
frame 34 {
newBullet1 = _root.bulletOrig.duplicateMovieClip('bulletflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
daddy = _parent._parent._parent._parent;
var __reg1 = daddy.angle;
daddy._xscale >= 0 ? null : __reg1;
__reg1 += 90;
if (daddy._currentframe < 4) {
newBullet1._y = daddy._y + daddy.walk._y + daddy.walk.gun._y + daddy.walk.gun.gun2._y + 35 * Math.cos(__reg1 * 0.0174533);
}
if (daddy._currentframe == 4) {
newBullet1._y = daddy._y + daddy.jump_mc._y + daddy.jump_mc.gun._y + daddy.jump_mc.gun.gun2._y + 35 * Math.cos(__reg1 * 0.0174533);
}
if (daddy._xscale == 100) {
if (daddy._currentframe < 4) {
newBullet1._x = daddy._x + daddy.walk._x + daddy.walk.gun._x + daddy.walk.gun.gun2._x - 35 * Math.sin(__reg1 * 0.0174533);
}
if (daddy._currentframe == 4) {
newBullet1._x = daddy._x + daddy.jump_mc._x + daddy.jump_mc.gun._x + daddy.jump_mc.gun.gun2._x - 35 * Math.sin(__reg1 * 0.0174533);
}
newBullet1._xscale = -100;
newBullet1._rotation = daddy.angle;
} else {
if (daddy._currentframe < 4) {
newBullet1._x = daddy._x + daddy.walk._x + daddy.walk.gun._x + daddy.walk.gun.gun2._x + 35 * Math.sin(__reg1 * 0.0174533);
}
if (daddy._currentframe == 4) {
newBullet1._x = daddy._x + daddy.jump_mc._x + daddy.jump_mc.gun._x + daddy.jump_mc.gun.gun2._x + 35 * Math.sin(__reg1 * 0.0174533);
}
newBullet1._xscale = 100;
newBullet1._rotation = (180 - daddy.angle) * -1;
}
newBullet1._rotation = 180 - daddy.angle * -1;
newBullet1.bulletSpeed = 20;
newBullet1.gotoAndStop('bullet');
newBullet1.damage = 1;
newBullet1._visible = false;
daddy.ammo -= 1;
daddy.recoil = 4;
_root.shotsfired += 1;
}
}
movieClip 462 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 467 {
frame 1 {
stop();
}
frame 2 {
var __reg1 = _root.hero.angle;
_root.hero._xscale >= 0 ? null : __reg1;
__reg1 += 90;
newFlash = _root.flashOrig.duplicateMovieClip('newflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
var gunlength = 35;
var gunheight = 3.8;
if (_root.hero._currentframe < 4) {
newFlash._y = _root.hero._y + _root.hero.walk._y + _root.hero.walk.gun._y + _root.hero.walk.gun.gun2._y + (gunlength + gunheight) * Math.cos(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
newFlash._y = _root.hero._y + _root.hero.jump_mc._y + _root.hero.jump_mc.gun._y + _root.hero.jump_mc.gun.gun2._y + (gunlength + gunheight) * Math.cos(__reg1 * 0.0174533);
}
if (_root.hero._xscale == 100) {
if (_root.hero._currentframe < 4) {
newFlash._x = _root.hero._x + _root.hero.walk._x + _root.hero.walk.gun._x + _root.hero.walk.gun.gun2._x - gunlength * Math.sin(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
newFlash._x = _root.hero._x + _root.hero.jump_mc._x + _root.hero.jump_mc.gun._x + _root.hero.jump_mc.gun.gun2._x - gunlength * Math.sin(__reg1 * 0.0174533);
}
newFlash._xscale = -150;
newFlash._yscale = -150;
newFlash._rotation = _root.hero.angle;
} else {
if (_root.hero._currentframe < 4) {
newFlash._x = _root.hero._x + _root.hero.walk._x + _root.hero.walk.gun._x + _root.hero.walk.gun.gun2._x + gunlength * Math.sin(__reg1 * 0.0174533);
}
if (_root.hero._currentframe == 4) {
newFlash._x = _root.hero._x + _root.hero.jump_mc._x + _root.hero.jump_mc.gun._x + _root.hero.jump_mc.gun.gun2._x + gunlength * Math.sin(__reg1 * 0.0174533);
}
newFlash._xscale = 150;
newFlash._yscale = 150;
newFlash._rotation = (180 - _root.hero.angle) * -1;
}
_root.bulletOrig.newBullet1 = _root.bulletOrig.duplicateMovieClip('bulletflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.bulletOrig.newBullet1._rotation = 180 - _root.hero.angle * -1;
_root.bulletOrig.newBullet1._x = newFlash._x;
_root.bulletOrig.newBullet1._y = newFlash._y;
_root.bulletOrig.newBullet1.bulletSpeed = 20;
_root.bulletOrig.newBullet1.gotoAndStop(7);
_root.bulletOrig.newBullet1.damage = 1;
_root.hero.ammo -= 1;
_root.hero.recoil = 10;
_root.shotsfired += 1;
newGore = _root.gutsOrig.duplicateMovieClip('newGore' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newGore._x = _root.hero._x;
newGore._y = _root.hero._y - _root.hero._height / 2;
newGore.gotoAndStop(10);
newGore.ySpeed = 5 + random(8);
newGore.xSpeed = ((3 + random(5)) / 100) * _root.hero._xscale;
}
frame 4 {
stop();
}
}
movieClip 468 {
frame 1 {
gotoAndStop(_root.hero.currentweapon);
}
}
movieClip 470 {
}
movieClip 472 {
}
movieClip 476 {
}
movieClip 485 {
frame 1 {
gotoAndStop(_root.hero.player_headchoice);
}
}
movieClip 486 {
}
movieClip 487 {
frame 5 {
if (_parent.activated) {
if (Key.isDown(65) != 0 | Key.isDown(68) != 0 | Key.isDown(87) != 0 | Key.isDown(83) != 0) {
play();
} else {
_parent.gotoAndStop(1);
}
}
}
frame 11 {
if (_parent.activated) {
if (Key.isDown(65) != 0 | Key.isDown(68) != 0 | Key.isDown(87) != 0 | Key.isDown(83) != 0) {
play();
} else {
_parent.gotoAndStop(1);
}
}
}
frame 17 {
if (_parent.activated) {
if (Key.isDown(65) != 0 | Key.isDown(68) != 0 | Key.isDown(87) != 0 | Key.isDown(83) != 0) {
play();
} else {
_parent.gotoAndStop(1);
}
}
}
frame 21 {
if (_parent.activated) {
if (Key.isDown(65) != 0 | Key.isDown(68) != 0 | Key.isDown(87) != 0 | Key.isDown(83) != 0) {
play();
} else {
_parent.gotoAndStop(1);
}
}
}
}
movieClip 488 {
frame 8 {
if (_parent.activated) {
if (Key.isDown(65) != 0 | Key.isDown(68) != 0 | Key.isDown(87) != 0 | Key.isDown(83) != 0) {
play();
} else {
_parent.gotoAndStop(1);
}
}
}
frame 16 {
if (_parent.activated) {
if (Key.isDown(65) != 0 | Key.isDown(68) != 0 | Key.isDown(87) != 0 | Key.isDown(83) != 0) {
play();
} else {
_parent.gotoAndStop(1);
}
}
}
frame 22 {
if (_parent.activated) {
if (Key.isDown(65) != 0 | Key.isDown(68) != 0 | Key.isDown(87) != 0 | Key.isDown(83) != 0) {
gotoAndPlay(2);
} else {
_parent.gotoAndStop(1);
}
}
}
}
movieClip 491 {
frame 1 {
play();
_root.vcam.onHero = true;
if (_parent.onGround) {
newDust = _root.dustOrig.duplicateMovieClip(dust + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newDust._x = _parent._x;
newDust._y = _parent._y;
newDust.gotoAndStop(2);
if (_parent._xscale == 100) {
newDust._xscale = 100;
} else {
newDust._xscale = -100;
}
}
if (_parent.xSpeed > 3) {
newDust._rotation = 45;
}
if (_parent.xSpeed < -3) {
newDust._rotation = -45;
}
}
frame 22 {
stop();
}
frame 23 {
play();
_root.vcam.onHero = true;
}
frame 38 {
gotoAndPlay(8);
}
frame 51 {
gotoAndPlay(8);
}
}
movieClip 496 {
frame 1 {
_visible = false;
}
}
movieClip 547 {
}
movieClip 565 {
}
movieClip 585 {
}
movieClip 658 {
frame 2 {
newSparkle = _root.bloodOrig.duplicateMovieClip('newSparkle' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newSparkle._x = _parent._x;
newSparkle._y = _parent._y;
newSparkle._xscale = _parent._xscale;
newSparkle.gotoAndStop(5);
_parent.swapDepths(_root.getNextHighestDepth());
_root.hero.ammo -= 1;
_root.hero.xSpeed -= Math.cos(_root.hero.angle * 3.141593 / 180) * 10;
_root.hero.grav += Math.sin(_root.hero.angle * 3.141593 / 180) * 15;
}
frame 3 {
newSparkle = _root.bloodOrig.duplicateMovieClip('newSparkle' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newSparkle._x = _parent._x;
newSparkle._y = _parent._y;
newSparkle._xscale = _parent._xscale;
newSparkle.gotoAndStop(5);
_parent.swapDepths(_root.getNextHighestDepth());
}
frame 4 {
newSparkle = _root.bloodOrig.duplicateMovieClip('newSparkle' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newSparkle._x = _parent._x;
newSparkle._y = _parent._y;
newSparkle._xscale = _parent._xscale;
newSparkle.gotoAndStop(5);
_parent.swapDepths(_root.getNextHighestDepth());
}
frame 5 {
newSparkle = _root.bloodOrig.duplicateMovieClip('newSparkle' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newSparkle._x = _parent._x;
newSparkle._y = _parent._y;
newSparkle._xscale = _parent._xscale;
newSparkle.gotoAndStop(5);
_parent.swapDepths(_root.getNextHighestDepth());
}
instance hit of movieClip 496 {
onClipEvent (load) {
_visible = false;
}
}
frame 10 {
_parent.gotoAndStop(1);
}
frame 12 {
newSparkle = _root.bloodOrig.duplicateMovieClip('newSparkle' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newSparkle._x = _parent._x;
newSparkle._y = _parent._y;
newSparkle._xscale = _parent._xscale;
newSparkle.gotoAndStop(5);
_parent.swapDepths(_root.getNextHighestDepth());
}
frame 13 {
newSparkle = _root.bloodOrig.duplicateMovieClip('newSparkle' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newSparkle._x = _parent._x;
newSparkle._y = _parent._y;
newSparkle._xscale = _parent._xscale;
newSparkle.gotoAndStop(5);
_parent.swapDepths(_root.getNextHighestDepth());
_root.hero.ammo -= 1;
_root.hero.xSpeed -= Math.cos(_root.hero.angle * 3.141593 / 180) * 10;
_root.hero.grav += Math.sin(_root.hero.angle * 3.141593 / 180) * 15;
}
frame 14 {
newSparkle = _root.bloodOrig.duplicateMovieClip('newSparkle' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newSparkle._x = _parent._x;
newSparkle._y = _parent._y;
newSparkle._xscale = _parent._xscale;
newSparkle.gotoAndStop(5);
_parent.swapDepths(_root.getNextHighestDepth());
}
frame 15 {
newSparkle = _root.bloodOrig.duplicateMovieClip('newSparkle' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newSparkle._x = _parent._x;
newSparkle._y = _parent._y;
newSparkle._xscale = _parent._xscale;
newSparkle.gotoAndStop(5);
_parent.swapDepths(_root.getNextHighestDepth());
}
frame 16 {
newSparkle = _root.bloodOrig.duplicateMovieClip('newSparkle' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newSparkle._x = _parent._x;
newSparkle._y = _parent._y;
newSparkle._xscale = _parent._xscale;
newSparkle.gotoAndStop(5);
_parent.swapDepths(_root.getNextHighestDepth());
}
instance hit of movieClip 496 {
onClipEvent (load) {
_visible = false;
}
}
frame 22 {
_parent.gotoAndStop(1);
}
frame 23 {
newSparkle = _root.bloodOrig.duplicateMovieClip('newSparkle' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newSparkle._x = _parent._x;
newSparkle._y = _parent._y;
newSparkle._xscale = _parent._xscale;
newSparkle.gotoAndStop(5);
_parent.swapDepths(_root.getNextHighestDepth());
}
frame 24 {
newSparkle = _root.bloodOrig.duplicateMovieClip('newSparkle' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newSparkle._x = _parent._x;
newSparkle._y = _parent._y;
newSparkle._xscale = _parent._xscale;
newSparkle.gotoAndStop(5);
_parent.swapDepths(_root.getNextHighestDepth());
_root.hero.ammo -= 1;
_root.hero.xSpeed -= Math.cos(_root.hero.angle * 3.141593 / 180) * 10;
_root.hero.grav += Math.sin(_root.hero.angle * 3.141593 / 180) * 15;
}
frame 25 {
newSparkle = _root.bloodOrig.duplicateMovieClip('newSparkle' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newSparkle._x = _parent._x;
newSparkle._y = _parent._y;
newSparkle._xscale = _parent._xscale;
newSparkle.gotoAndStop(5);
_parent.swapDepths(_root.getNextHighestDepth());
}
frame 26 {
newSparkle = _root.bloodOrig.duplicateMovieClip('newSparkle' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newSparkle._x = _parent._x;
newSparkle._y = _parent._y;
newSparkle._xscale = _parent._xscale;
newSparkle.gotoAndStop(5);
_parent.swapDepths(_root.getNextHighestDepth());
}
instance hit of movieClip 496 {
onClipEvent (load) {
_visible = false;
}
}
frame 33 {
_parent.gotoAndStop(1);
}
frame 34 {
if (Key.isDown(_parent.left) || Key.isDown(_parent.right)) {
if (_parent._xscale == 100) {
_parent.xSpeed = -10;
} else {
_parent.xSpeed = 10;
}
}
}
frame 37 {
newSparkle = _root.bloodOrig.duplicateMovieClip('newSparkle' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newSparkle._x = _parent._x;
newSparkle._y = _parent._y;
newSparkle._xscale = _parent._xscale;
newSparkle.gotoAndStop(5);
_parent.swapDepths(_root.getNextHighestDepth());
_root.hero.ammo -= 1;
}
instance hit of movieClip 496 {
onClipEvent (load) {
_visible = false;
}
}
frame 38 {
newSparkle = _root.bloodOrig.duplicateMovieClip('newSparkle' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newSparkle._x = _parent._x;
newSparkle._y = _parent._y;
newSparkle._xscale = _parent._xscale;
newSparkle.gotoAndStop(5);
_parent.swapDepths(_root.getNextHighestDepth());
}
frame 39 {
newSparkle = _root.bloodOrig.duplicateMovieClip('newSparkle' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newSparkle._x = _parent._x;
newSparkle._y = _parent._y;
newSparkle._xscale = _parent._xscale;
newSparkle.gotoAndStop(5);
_parent.swapDepths(_root.getNextHighestDepth());
}
frame 40 {
newSparkle = _root.bloodOrig.duplicateMovieClip('newSparkle' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newSparkle._x = _parent._x;
newSparkle._y = _parent._y;
newSparkle._xscale = _parent._xscale;
newSparkle.gotoAndStop(5);
_parent.swapDepths(_root.getNextHighestDepth());
}
frame 41 {
newSparkle = _root.bloodOrig.duplicateMovieClip('newSparkle' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newSparkle._x = _parent._x;
newSparkle._y = _parent._y;
newSparkle._xscale = _parent._xscale;
newSparkle.gotoAndStop(5);
_parent.swapDepths(_root.getNextHighestDepth());
}
frame 42 {
newSparkle = _root.bloodOrig.duplicateMovieClip('newSparkle' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newSparkle._x = _parent._x;
newSparkle._y = _parent._y;
newSparkle._xscale = _parent._xscale;
newSparkle.gotoAndStop(5);
_parent.swapDepths(_root.getNextHighestDepth());
}
frame 43 {
newSparkle = _root.bloodOrig.duplicateMovieClip('newSparkle' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newSparkle._x = _parent._x;
newSparkle._y = _parent._y;
newSparkle._xscale = _parent._xscale;
newSparkle.gotoAndStop(5);
_parent.swapDepths(_root.getNextHighestDepth());
}
frame 44 {
newSparkle = _root.bloodOrig.duplicateMovieClip('newSparkle' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newSparkle._x = _parent._x;
newSparkle._y = _parent._y;
newSparkle._xscale = _parent._xscale;
newSparkle.gotoAndStop(5);
_parent.swapDepths(_root.getNextHighestDepth());
}
frame 46 {
if (_parent.onGround == true) {
_parent.gotoAndStop(1);
} else {
_parent.gotoAndStop(4);
}
}
frame 47 {
_root.chargedmelee = 0;
}
frame 51 {
if (_root.msdown == true) {
_root.chargedmelee += 0.1;
if (_root.chargedmelee > 2) {
gotoAndPlay('chargedattack');
} else {
gotoAndPlay(_currentframe - 1);
}
}
if (_root.msdown == false) {
play();
}
}
frame 54 {
_root.hero.ammo -= 1;
_root.hero.xSpeed -= 0.1 * _root.hero._xscale;
}
frame 70 {
_parent.gotoAndStop(1);
}
frame 71 {
_root.chargedmelee = 0;
}
frame 73 {
if (_root.msdown == true) {
_root.chargedmelee += 0.1;
if (_root.chargedmelee > 2) {
gotoAndPlay('chargedattack');
} else {
gotoAndPlay(_currentframe - 1);
}
}
if (_root.msdown == false) {
play();
}
}
frame 74 {
_root.hero.ammo -= 1;
_root.hero.xSpeed -= 0.1 * _root.hero._xscale;
}
frame 93 {
_parent.gotoAndStop(1);
}
frame 118 {
_root.hero.xSpeed -= 0.1 * _root.hero._xscale;
}
frame 119 {
newSparkle = _root.bloodOrig.duplicateMovieClip('newSparkle' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newSparkle._x = _parent._x;
newSparkle._y = _parent._y;
newSparkle._xscale = _parent._xscale;
newSparkle.gotoAndStop(5);
_parent.swapDepths(_root.getNextHighestDepth());
}
frame 121 {
newSparkle = _root.bloodOrig.duplicateMovieClip('newSparkle' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newSparkle._x = _parent._x;
newSparkle._y = _parent._y;
newSparkle._xscale = _parent._xscale;
newSparkle.gotoAndStop(5);
_parent.swapDepths(_root.getNextHighestDepth());
}
frame 129 {
newSparkle = _root.bloodOrig.duplicateMovieClip('newSparkle' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newSparkle._x = _parent._x;
newSparkle._y = _parent._y;
newSparkle._xscale = _parent._xscale;
newSparkle.gotoAndStop(5);
_parent.swapDepths(_root.getNextHighestDepth());
}
frame 131 {
newSparkle = _root.bloodOrig.duplicateMovieClip('newSparkle' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newSparkle._x = _parent._x;
newSparkle._y = _parent._y;
newSparkle._xscale = _parent._xscale;
newSparkle.gotoAndStop(5);
_parent.swapDepths(_root.getNextHighestDepth());
}
frame 140 {
_root.hero.ammo -= 1;
_root.hero.xSpeed -= 0.1 * _root.hero._xscale;
}
frame 141 {
newSparkle = _root.bloodOrig.duplicateMovieClip('newSparkle' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newSparkle._x = _parent._x;
newSparkle._y = _parent._y;
newSparkle._xscale = _parent._xscale;
newSparkle.gotoAndStop(5);
_parent.swapDepths(_root.getNextHighestDepth());
}
frame 144 {
newSparkle = _root.bloodOrig.duplicateMovieClip('newSparkle' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newSparkle._x = _parent._x;
newSparkle._y = _parent._y;
newSparkle._xscale = _parent._xscale;
newSparkle.gotoAndStop(5);
_parent.swapDepths(_root.getNextHighestDepth());
}
frame 159 {
_root.chargedmelee = 0;
_parent.gotoAndStop(1);
}
}
movieClip 659 {
frame 2 {
if (!Key.isDown(83)) {
_parent.gotoAndStop(1);
}
}
}
movieClip 744 {
}
movieClip 748 {
frame 1 {
gotoAndStop(_parent._parent.headchoice);
}
}
movieClip 838 {
}
// unknown tag 88 length 63
movieClip 867 {
}
movieClip 868 {
frame 44 {
stop();
_root.hud.showscore.gotoAndPlay('death');
_root.hud.swapDepths(_root.getNextHighestDepth());
}
frame 45 {
play();
_root.acidmedal = true;
}
frame 90 {
_root.hud.showscore.gotoAndPlay('death');
_root.hud.swapDepths(_root.getNextHighestDepth());
_root.weaponunlocks.swapDepths(_root.getNextHighestDepth());
_parent.swapDepths(_root.getNextHighestDepth());
_parent.removeMovieClip();
}
frame 91 {
_root.hero.controllable = false;
}
frame 128 {
_root.hero.controllable = true;
_parent.gotoAndStop(1);
}
frame 129 {
_root.hero.xSpeed = 0.07000000000000001 * _root.hero._xscale;
}
frame 131 {
this.onEnterFrame = function () {
if (_root.hero._rotation < 120 && _root.hero._rotation > -120) {
_root.hero._rotation += _root.hero.xSpeed / 1.2;
}
if (_parent.onGround == true) {
_root.hero._rotation = 0;
delete this.onEnterFrame;
gotoAndPlay('skidlanding');
} else {
gotoAndPlay('flying');
}
if (Key.isDown(87)) {
_root.hero._rotation = 0;
}
};
}
frame 139 {
_root.roll.start(0, 0);
_root.roll.setVolume(250);
}
frame 149 {
_root.hero._rotation = 0;
_parent.gotoAndStop(1);
}
frame 151 {
if (_parent.onGround == false) {
_parent._visible = false;
newGore = _root.gutsOrig.duplicateMovieClip('newGore' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newGore._x = _parent._x;
newGore._y = _parent._y - _parent._height;
newGore.gotoAndStop(1);
newGore.ySpeed = 4 + random(8);
newGore.xSpeed = 5 + (random(2) - random(2));
newGore = _root.gutsOrig.duplicateMovieClip('newGore' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newGore._x = _parent._x;
newGore._y = _parent._y - _parent._height;
newGore.gotoAndStop(2);
newGore.ySpeed = 4 + random(8);
newGore.xSpeed = 5 + (random(2) - random(2));
newGore = _root.gutsOrig.duplicateMovieClip('newGore' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newGore._x = _parent._x;
newGore._y = _parent._y - _parent._height / 2;
newGore.gotoAndStop(27);
newGore.ySpeed = 4 + random(8);
newGore.xSpeed = 5 + (random(2) - random(2));
newGore = _root.gutsOrig.duplicateMovieClip('newGore' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newGore._x = _parent._x;
newGore._y = _parent._y - _parent._height / 2;
newGore.gotoAndStop(28);
newGore.ySpeed = 4 + random(8);
newGore.xSpeed = 5 + (random(2) - random(2));
newGore = _root.gutsOrig.duplicateMovieClip('newGore' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newGore._x = _parent._x;
newGore._y = _parent._y - _parent._height;
newGore.gotoAndStop(26);
newGore.head.gotoAndStop(_root.player_headchoice);
newGore.ySpeed = _parent.grav + random(8);
newGore.xSpeed = 5 + (random(2) - random(2));
_root.vcam.target = newGore;
newBlood = _root.bloodOrig.duplicateMovieClip('newGore' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newBlood._x = _parent._x;
newBlood._y = _parent._y - _parent._height / 2;
newBlood.gotoAndStop(14);
}
}
frame 202 {
stop();
_root.hud.showscore.gotoAndPlay('death');
_root.hud.swapDepths(_root.getNextHighestDepth());
}
frame 203 {
randomdeathsound = random(2);
_root['electrocuted' + randomdeathsound].start(0, 0);
_root['electrocuted' + randomdeathsound].setVolume(100);
_parent.controllable = false;
}
frame 220 {
if (_parent.life > 0) {
_parent.gotoAndStop(1);
_parent.controllable = true;
}
}
frame 298 {
stop();
_root.hud.showscore.gotoAndPlay('death');
_root.hud.swapDepths(_root.getNextHighestDepth());
}
frame 299 {
play();
_root.acidmedal = true;
}
frame 343 {
_root.hud.showscore.gotoAndPlay('death');
_root.hud.swapDepths(_root.getNextHighestDepth());
_root.weaponunlocks.swapDepths(_root.getNextHighestDepth());
_parent.swapDepths(_root.getNextHighestDepth());
_parent.removeMovieClip();
}
frame 344 {
_root.hero.activated = false;
_root.hero._xscale = 100;
}
frame 373 {
stop();
onEnterFrame = function () {
if (Key.isDown(32)) {
_root.hero.activated = true;
delete this.onEnterFrame;
_parent.gotoAndStop(1);
}
};
}
}
movieClip 869 {
frame 1 {
gotoAndStop(random(2) + 1);
}
}
movieClip 875 {
frame 1 {
delete this.onEnterFrame;
_root.hero.controllable = false;
}
frame 5 {
onEnterFrame = function () {
_parent._rotation += _parent.xSpeed * 3;
if (_parent.xSpeed < -0.1) {
_parent._xscale = -100;
}
if (_parent.xSpeed > 0.1) {
_parent._xscale = 100;
}
if (_root.ground.hitTest(_parent._x + 20 + 5, _parent._y - 35, true)) {
_parent.xSpeed *= -1;
_parent._rotation = 0;
gotoAndPlay('bounce');
}
if (_root.ground.hitTest(_parent._x - 20 - 5, _parent._y - 35, true)) {
_parent.xSpeed *= -1;
_parent._rotation = 0;
gotoAndPlay('bounce');
}
if (_parent.onGround == true) {
_parent._rotation = 0;
if (_parent.life > 0) {
gotoAndPlay('getup');
} else {
gotoAndPlay('death');
}
}
};
}
frame 9 {
gotoAndPlay('explosion');
}
frame 10 {
delete this.onEnterFrame;
_parent.life = 0;
_parent.xSpeed = 0;
}
frame 50 {
stop();
_root.hud.showscore.gotoAndPlay('death');
_root.hud.swapDepths(_root.getNextHighestDepth());
}
frame 51 {
delete this.onEnterFrame;
_parent.xSpeed = 0;
}
frame 76 {
_parent.gotoAndStop(1);
}
}
movieClip 890 {
frame 1 {
_root.hero.activated = false;
_root.hero._xscale = 100;
}
frame 30 {
stop();
onEnterFrame = function () {
if (Key.isDown(32)) {
_root.hero.activated = true;
delete this.onEnterFrame;
_parent.gotoAndStop(1);
}
};
}
}
movieClip 891 {
frame 1 {
stop();
}
}
instance hero of movieClip 891 {
onClipEvent (load) {
_root.hero.gotoAndStop('death');
_root.hero.death.gotoAndPlay('warpspawn');
speechtalk = 'woah! time travel always hurts my stomach. Wheres Marsh? we must have got serperated during the time jump. I better find him.';
if (_root.options_difficulty == 'easy') {
var life = _root.elife;
var totallife = _root.elife;
}
if (_root.options_difficulty == 'medium') {
var life = _root.mlife;
var totallife = _root.mlife;
}
if (_root.options_difficulty == 'hard') {
var life = _root.hlife;
var totallife = _root.hlife;
}
_root.hero.player_headchoice = _root.player_headchoice;
grav = 0;
xSpeed = 0;
ySpeed = 0;
controllable = true;
moveSpeed = 5;
right = 68;
left = 65;
var up = 87;
var jump = 87;
var jumpheight = 12;
var barricadecooldown = 0;
var barricadetotal = 0;
var doubleJumpThres = 10;
var doubleJumpThres1 = 10;
var jumpFromAttack = 0;
var jumpFromAttackOrig = 16;
var camSpec = 10;
var jumpButtonOn = false;
var weapontype = 'gun';
var currentweapon = 'usp';
var newweapontimer = 0;
var ammo = 300;
var recoil = 15;
var onGround = false;
var chainguncharge = 0;
var frame = _root._currentframe;
}
}
movieClip 904 {
frame 7 {
_parent.removeMovieClip();
}
}
movieClip 905 {
}
instance flashOrig of movieClip 905 {
onClipEvent (load) {
if (_name == 'flashOrig') {
_visible = false;
}
}
}
movieClip 934 {
frame 34 {
_parent.removeMovieClip();
}
}
movieClip 936 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
onEnterFrame = function () {
newSparkle = _root.bloodOrig.duplicateMovieClip('newSparkle' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newSparkle._x = _x;
newSparkle._y = _y;
newSparkle._rotation = _rotation;
newSparkle.gotoAndStop(4);
};
}
frame 5 {
stop();
onEnterFrame = function () {
newSparkle = _root.bloodOrig.duplicateMovieClip('newSparkle' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newSparkle._x = _x;
newSparkle._y = _y;
newSparkle._rotation = _rotation;
newSparkle.gotoAndStop(9);
};
}
}
instance bulletOrig of movieClip 936 {
onClipEvent (load) {
if (_name != 'bulletOrig') {
xSpeed = 0;
ySpeed = 0;
alive = true;
_root.bulletArray.push(this);
} else {
_visible = false;
}
}
}
movieClip 939 {
frame 1 {
stop();
}
frame 2 {
stop();
onEnterFrame = function () {
this._x += Math.cos(this._rotation * 3.141593 / 180) * this.bulletSpeed;
this._y += Math.sin(this._rotation * 3.141593 / 180) * this.bulletSpeed;
if (this._y - _root.hero._y > 400) {
this.removeMovieClip();
}
if (this._y - _root.hero._y < -400) {
this.removeMovieClip();
}
if (this._x - _root.hero._x > 500) {
this.removeMovieClip();
}
if (this._x - _root.hero._x < -500) {
this.removeMovieClip();
}
if (_root.ground.hitTest(_x, _y + 5, true)) {
_rotation = _rotation - 90;
_root.explode(this);
}
i = 0;
while (i < 8) {
if (_root['enemy' + i].hitTest(_x, _y, true) && _root['enemy' + i]._currentframe != 9 && _root['enemy' + i]._currentframe != 7) {
_rotation = _rotation - 90;
_root.explode(this);
}
++i;
}
newSparkle = _root.bloodOrig.duplicateMovieClip('newSparkle' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newSparkle._x = _x;
newSparkle._y = _y;
newSparkle._rotation = _rotation;
newSparkle.gotoAndStop(11);
};
}
}
movieClip 953 {
frame 8 {
_parent.removeMovieClip();
}
}
movieClip 968 {
frame 8 {
_parent.removeMovieClip();
}
}
movieClip 983 {
frame 14 {
_parent.removeMovieClip();
}
}
movieClip 985 {
}
movieClip 999 {
frame 15 {
_parent.removeMovieClip();
}
}
movieClip 1022 {
frame 1 {
_root.explosion.start(0, 0);
_root.explosion.setVolume(75);
}
frame 4 {
if (this.hit.hitTest(_root.enemy1.bound)) {
_root.hitbyexplosion(_root.enemy1, _parent);
}
if (this.hit.hitTest(_root.enemy2.bound)) {
_root.hitbyexplosion(_root.enemy2, _parent);
}
if (this.hit.hitTest(_root.enemy3.bound)) {
_root.hitbyexplosion(_root.enemy3, _parent);
}
if (this.hit.hitTest(_root.enemy4.bound)) {
_root.hitbyexplosion(_root.enemy4, _parent);
}
if (this.hit.hitTest(_root.enemy5.bound)) {
_root.hitbyexplosion(_root.enemy5, _parent);
}
if (this.hit.hitTest(_root.enemy6.bound)) {
_root.hitbyexplosion(_root.enemy6, _parent);
}
if (this.hit.hitTest(_root.enemy7.bound)) {
_root.hitbyexplosion(_root.enemy7, _parent);
}
}
instance hit of movieClip 496 {
onClipEvent (load) {
_visible = false;
}
}
frame 20 {
_parent.removeMovieClip();
}
}
movieClip 1033 {
frame 11 {
_parent.removeMovieClip();
}
}
movieClip 1039 {
frame 10 {
_parent.removeMovieClip();
}
}
movieClip 1064 {
frame 1 {
_root.explosion.start(0, 0);
_root.explosion.setVolume(75);
}
frame 2 {
i = 1;
while (i < 12) {
if (this.hit.hitTest(_root['enemy' + i].bound)) {
_root.hitbyexplosion(_root['enemy' + i], _parent);
}
++i;
}
i = 1;
while (i < 20) {
if (this.hit.hitTest(_root['c' + i]) && _root['c' + i]._currentframe < 24) {
_root['c' + i].gotoAndPlay('death');
}
++i;
}
_root.vcam._x += 30;
}
instance hit of movieClip 496 {
onClipEvent (load) {
_visible = false;
}
}
frame 5 {
_root.vcam._x -= 20;
}
frame 8 {
_root.vcam._x += 10;
}
frame 11 {
_root.vcam._x -= 5;
}
frame 21 {
++_root.explosioncount;
_parent.removeMovieClip();
}
}
movieClip 1071 {
frame 13 {
_parent.removeMovieClip();
}
}
movieClip 1072 {
frame 1 {
stop();
}
frame 2 {
var randomsound = random(4);
_root['ricochet' + randomsound].start(0, 0);
_root['ricochet' + randomsound].setVolume(100);
}
frame 3 {
if (this.hitTest(_root.ground.killwall)) {
this.removeMovieClip();
} else {
cacheAsBitmap = true;
_root.trashArray.push(this);
}
}
frame 4 {
onEnterFrame = function () {
_alpha = _alpha - 15;
if (_alpha < 20) {
this.removeMovieClip();
}
};
}
frame 5 {
_alpha = 80;
onEnterFrame = function () {
_alpha = _alpha - 10;
if (_alpha < 20) {
this.removeMovieClip();
}
};
}
frame 7 {
onEnterFrame = function () {
_y = _y + 5;
_alpha = _alpha - 1;
_alpha = _alpha - 1;
if (_alpha < 20) {
this.removeMovieClip();
}
};
}
frame 9 {
onEnterFrame = function () {
_alpha = _alpha - 15;
if (_alpha < 20) {
this.removeMovieClip();
}
};
}
}
movieClip 1081 {
frame 1 {
if (_parent._parent._parent._currentframe == 4) {
play();
} else {
stop();
}
}
frame 10 {
newFlash.gotoAndStop(1);
daddy = _parent._parent._parent;
var __reg1 = daddy.angle;
daddy._xscale >= 0 ? null : __reg1;
__reg1 += 90;
yheight = daddy._y + daddy.walk._y + daddy.walk.gun._y + daddy.walk.gun.gun2._y + 35 * Math.cos(__reg1 * 0.0174533);
daddy.eneBullet1 = _root.enebulletOrig.duplicateMovieClip('bulletflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
daddy.eneBullet1._rotation = 175 - daddy.angle;
daddy.eneBullet1._x = daddy._x;
daddy.eneBullet1._y = yheight;
daddy.eneBullet1.bulletSpeed = 20;
daddy.eneBullet1.gotoAndStop('bullet');
daddy.eneBullet2 = _root.enebulletOrig.duplicateMovieClip('bulletflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
daddy.eneBullet2._rotation = 180 - daddy.angle;
daddy.eneBullet2._x = daddy._x;
daddy.eneBullet2._y = yheight;
daddy.eneBullet2.bulletSpeed = 20;
daddy.eneBullet2.gotoAndStop('bullet');
daddy.eneBullet3 = _root.enebulletOrig.duplicateMovieClip('bulletflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
daddy.eneBullet3._rotation = 185 - daddy.angle;
daddy.eneBullet3._x = daddy._x;
daddy.eneBullet3._y = yheight;
daddy.eneBullet3.bulletSpeed = 20;
daddy.eneBullet3.gotoAndStop('bullet');
}
frame 37 {
_parent._parent._parent.gotoAndStop(1);
}
}
movieClip 1095 {
frame 1 {
if (_parent._parent._parent._currentframe == 4) {
play();
} else {
stop();
}
}
frame 4 {
newFlash.gotoAndStop(1);
daddy = _parent._parent._parent;
var __reg1 = daddy.angle;
daddy._xscale >= 0 ? null : __reg1;
__reg1 += 90;
yheight = daddy._y + daddy.walk._y + daddy.walk.gun._y + daddy.walk.gun.gun2._y + 35 * Math.cos(__reg1 * 0.0174533);
daddy.eneBullet1 = _root.enebulletOrig.duplicateMovieClip('bulletflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
daddy.eneBullet1._rotation = 180 - daddy.angle;
daddy.eneBullet1._x = daddy._x;
daddy.eneBullet1._y = yheight;
daddy.eneBullet1.bulletSpeed = 20;
daddy.eneBullet1.gotoAndStop('bullet');
}
frame 12 {
newFlash.gotoAndStop(1);
daddy = _parent._parent._parent;
var __reg1 = daddy.angle;
daddy._xscale >= 0 ? null : __reg1;
__reg1 += 90;
yheight = daddy._y + daddy.walk._y + daddy.walk.gun._y + daddy.walk.gun.gun2._y + 35 * Math.cos(__reg1 * 0.0174533);
daddy.eneBullet2 = _root.enebulletOrig.duplicateMovieClip('bulletflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
daddy.eneBullet2._rotation = 180 - daddy.angle;
daddy.eneBullet2._x = daddy._x;
daddy.eneBullet2._y = yheight;
daddy.eneBullet2.bulletSpeed = 20;
daddy.eneBullet2.gotoAndStop('bullet');
daddy.eneBullet3.gotoAndStop('bullet');
}
frame 21 {
newFlash.gotoAndStop(1);
daddy = _parent._parent._parent;
var __reg1 = daddy.angle;
daddy._xscale >= 0 ? null : __reg1;
__reg1 += 90;
yheight = daddy._y + daddy.walk._y + daddy.walk.gun._y + daddy.walk.gun.gun2._y + 35 * Math.cos(__reg1 * 0.0174533);
daddy.eneBullet3 = _root.enebulletOrig.duplicateMovieClip('bulletflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
daddy.eneBullet3._rotation = 180 - daddy.angle;
daddy.eneBullet3._x = daddy._x;
daddy.eneBullet3._y = yheight;
daddy.eneBullet3.bulletSpeed = 20;
daddy.eneBullet3.gotoAndStop('bullet');
daddy.eneBullet3.gotoAndStop('bullet');
}
frame 47 {
_parent._parent._parent.gotoAndStop(1);
}
}
movieClip 1096 {
frame 1 {
gotoAndStop(_parent._parent.currentweapon);
}
}
movieClip 1098 {
}
movieClip 1117 {
frame 23 {
if (_parent.activated) {
_parent.gotoAndStop(1);
}
}
}
movieClip 1128 {
frame 4 {
_parent.ySpeed = _parent.jump;
_parent.xSpeed *= 1.3;
_parent.jumping = true;
}
frame 6 {
_parent.yspeed /= 3.5;
}
frame 16 {
stop();
}
frame 22 {
_parent.gotoAndStop(1);
}
}
movieClip 1171 {
frame 46 {
gotoAndPlay(7);
}
}
movieClip 1188 {
frame 1 {
delete this.onEnterFrame;
}
frame 5 {
onEnterFrame = function () {
_parent._rotation += _parent.xSpeed * 3;
if (_parent.xSpeed < -0.1) {
_parent._xscale = -100;
}
if (_parent.xSpeed > 0.1) {
_parent._xscale = 100;
}
if (_root.ground.hitTest(_parent._x + 20 + 5, _parent._y - 35, true)) {
_parent.xSpeed *= -1;
_parent._rotation = 0;
gotoAndPlay('bounce');
}
if (_root.ground.hitTest(_parent._x - 20 - 5, _parent._y - 35, true)) {
_parent.xSpeed *= -1;
_parent._rotation = 0;
gotoAndPlay('bounce');
}
if (_parent.onGround == true) {
_parent._rotation = 0;
gotoAndPlay('death');
}
};
}
frame 9 {
gotoAndPlay('explosion');
}
frame 10 {
delete this.onEnterFrame;
score = _root.scoretextOrig.duplicateMovieClip('scoretext' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
score._x = _parent._x;
score._y = _parent._y;
score.scoretext = '100!';
_root.levelpoints += 100;
_root.totalpoints += 100;
_root.levelkills += 1;
_root.totalkills += 1;
_parent.life = 0;
_parent.xSpeed = 0;
}
frame 50 {
_root.enemynameArray.push(_parent._name);
_parent.removeMovieClip();
}
}
movieClip 1556 {
}
movieClip 1560 {
frame 1 {
if (_parent._parent.life > 11) {
stop();
}
if (_parent._parent.life < 12 && _parent._parent.life > 4) {
gotoAndStop(2);
}
if (_parent._parent.life < 5) {
gotoAndStop(3);
}
}
}
movieClip 1612 {
frame 2 {
randomdeathsound = random(9) + 1;
_root['death' + randomdeathsound].start(0, 0);
_root['death' + randomdeathsound].setVolume(75);
score = _root.scoretextOrig.duplicateMovieClip('scoretext' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
score._x = _parent._x;
score._y = _parent._y;
score.scoretext = '100!';
_root.levelpoints += 100;
_root.totalpoints += 100;
_root.levelkills += 1;
_root.totalkills += 1;
}
frame 3 {
newGore = _root.gutsOrig.duplicateMovieClip('newGore' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newGore._x = _parent._x;
newGore._y = _parent._y - _parent._height;
newGore.gotoAndStop(15);
newGore.head.gotoAndStop(_parent.headchoice);
newGore.ySpeed = 4 + random(8);
newGore.xSpeed = ((5 + random(5)) / 100) * -_parent._xscale;
}
frame 49 {
_root.enemynameArray.push(_parent._name);
_parent.removeMovieClip();
}
frame 50 {
randomdeathsound = random(9) + 1;
_root['death' + randomdeathsound].start(0, 0);
_root['death' + randomdeathsound].setVolume(75);
score = _root.scoretextOrig.duplicateMovieClip('scoretext' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
score._x = _parent._x;
score._y = _parent._y;
score.scoretext = '100!';
_root.levelpoints += 100;
_root.totalpoints += 100;
_root.levelkills += 1;
_root.totalkills += 1;
newGore = _root.gutsOrig.duplicateMovieClip('newGore' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newGore._x = _parent._x;
newGore._y = _parent._y - _parent._height;
newGore.gotoAndStop(15);
newGore.head.gotoAndStop(_parent.headchoice);
newGore.ySpeed = 4 + random(8);
newGore.xSpeed = ((5 + random(5)) / 100) * -_parent._xscale;
}
frame 113 {
_root.enemynameArray.push(_parent._name);
_parent.removeMovieClip();
}
frame 114 {
randomdeathsound = random(9) + 1;
_root['death' + randomdeathsound].start(0, 0);
_root['death' + randomdeathsound].setVolume(75);
score = _root.scoretextOrig.duplicateMovieClip('scoretext' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
score._x = _parent._x;
score._y = _parent._y;
score.scoretext = '100!';
_root.levelpoints += 100;
_root.totalpoints += 100;
_root.levelkills += 1;
_root.totalkills += 1;
}
frame 156 {
_root.enemynameArray.push(_parent._name);
_parent.removeMovieClip();
}
frame 157 {
randomdeathsound = random(2);
_root['electrocuted' + randomdeathsound].start(0, 0);
_root['electrocuted' + randomdeathsound].setVolume(100);
score = _root.scoretextOrig.duplicateMovieClip('scoretext' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
score._x = _parent._x;
score._y = _parent._y;
score.scoretext = '100!';
_root.levelpoints += 100;
_root.totalpoints += 100;
_root.levelkills += 1;
_root.totalkills += 1;
}
frame 203 {
_root.enemynameArray.push(_parent._name);
_parent.removeMovieClip();
}
frame 204 {
randomdeathsound = random(9) + 1;
_root['death' + randomdeathsound].start(0, 0);
_root['death' + randomdeathsound].setVolume(75);
score = _root.scoretextOrig.duplicateMovieClip('scoretext' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
score._x = _parent._x;
score._y = _parent._y;
score.scoretext = '100!';
_root.levelpoints += 100;
_root.totalpoints += 100;
_root.levelkills += 1;
_root.totalkills += 1;
}
frame 235 {
_root.enemynameArray.push(_parent._name);
_parent.removeMovieClip();
}
frame 236 {
randomdeathsound = random(9) + 1;
_root['death' + randomdeathsound].start(0, 0);
_root['death' + randomdeathsound].setVolume(75);
score = _root.scoretextOrig.duplicateMovieClip('scoretext' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
score._x = _parent._x;
score._y = _parent._y;
score.scoretext = '100!';
_root.levelpoints += 100;
_root.totalpoints += 100;
_root.levelkills += 1;
_root.totalkills += 1;
}
frame 284 {
_root.enemynameArray.push(_parent._name);
_parent.removeMovieClip();
}
frame 285 {
randomdeathsound = random(2);
_root['flamed' + randomdeathsound].start(0, 0);
_root['flamed' + randomdeathsound].setVolume(100);
score = _root.scoretextOrig.duplicateMovieClip('scoretext' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
score._x = _parent._x;
score._y = _parent._y;
score.scoretext = '100!';
_root.levelpoints += 100;
_root.totalpoints += 100;
_root.levelkills += 1;
_root.totalkills += 1;
}
frame 376 {
_root.enemynameArray.push(_parent._name);
_parent.removeMovieClip();
}
frame 377 {
randomdeathsound = random(2);
_root['flamed' + randomdeathsound].start(0, 0);
_root['flamed' + randomdeathsound].setVolume(100);
score = _root.scoretextOrig.duplicateMovieClip('scoretext' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
score._x = _parent._x;
score._y = _parent._y;
score.scoretext = '100!';
_root.levelpoints += 100;
_root.totalpoints += 100;
_root.levelkills += 1;
_root.totalkills += 1;
}
frame 442 {
_root.enemynameArray.push(_parent._name);
_parent.removeMovieClip();
}
frame 443 {
randomdeathsound = random(2);
_root['flamed' + randomdeathsound].start(0, 0);
_root['flamed' + randomdeathsound].setVolume(100);
score = _root.scoretextOrig.duplicateMovieClip('scoretext' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
score._x = _parent._x;
score._y = _parent._y;
score.scoretext = '100!';
_root.levelpoints += 100;
_root.totalpoints += 100;
_root.levelkills += 1;
_root.totalkills += 1;
}
frame 448 {
_parent.xSpeed += 5 * (_parent._xscale / 100);
}
frame 460 {
_parent.xSpeed += 5 * (_parent._xscale / 100);
}
frame 504 {
_root.enemynameArray.push(_parent._name);
_parent.removeMovieClip();
}
frame 505 {
randomdeathsound = random(9) + 1;
_root['death' + randomdeathsound].start(0, 0);
_root['death' + randomdeathsound].setVolume(75);
score = _root.scoretextOrig.duplicateMovieClip('scoretext' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
score._x = _parent._x;
score._y = _parent._y;
score.scoretext = '100!';
_root.levelpoints += 100;
_root.totalpoints += 100;
_root.levelkills += 1;
_root.totalkills += 1;
}
frame 568 {
_root.enemynameArray.push(_parent._name);
_parent.removeMovieClip();
}
frame 569 {
_parent.grav = 0;
_parent.ySpeed = 0;
_parent.xSpeed = 0;
}
frame 581 {
_root.enemynameArray.push(_parent._name);
_parent.removeMovieClip();
}
frame 586 {
if (_parent.onGround == true) {
_parent.gotoAndStop(1);
} else {
gotoAndPlay('explosion');
}
}
frame 587 {
randomdeathsound = random(2);
_root['electrocuted' + randomdeathsound].start(0, 0);
_root['electrocuted' + randomdeathsound].setVolume(100);
}
frame 633 {
_root.enemynameArray.push(_parent._name);
_parent.removeMovieClip();
}
frame 634 {
_parent.grav = 0;
_parent.ySpeed = 0;
_parent.xSpeed = 0;
}
frame 703 {
_root.enemynameArray.push(_parent._name);
_parent.removeMovieClip();
}
frame 704 {
_parent.grav = 0;
_parent.ySpeed = 0;
_parent.xSpeed = 0;
}
frame 748 {
_root.enemynameArray.push(_parent._name);
_parent.removeMovieClip();
}
}
movieClip 1621 {
frame 17 {
_parent.gotoAndStop(1);
}
}
movieClip 1625 {
}
movieClip 1626 {
frame 1 {
headchoice = _parent.headchoice;
}
frame 22 {
_parent.gotoAndStop(1);
}
}
movieClip 1627 {
frame 1 {
stop();
}
instance bound of movieClip 108 {
onClipEvent (load) {
_visible = false;
}
}
frame 6 {
stop();
}
frame 7 {
stop();
}
}
instance ene of movieClip 1627 {
onClipEvent (load) {
if (_name == 'ene') {
} else {
_root.eneinitFunction(this);
var headchoice = random(3) + 6;
}
}
}
instance enebulletOrig of movieClip 936 {
onClipEvent (load) {
if (_name != 'enebulletOrig') {
xSpeed = 0;
ySpeed = 0;
alive = true;
_root.enebulletArray.push(this);
} else {
_visible = false;
}
}
}
movieClip 1629 {
}
movieClip 1662 {
}
movieClip 1663 {
frame 1 {
stop();
}
frame 8 {
play();
}
frame 41 {
gotoAndPlay(18);
}
}
instance gunpickupOrig of movieClip 1663 {
onClipEvent (load) {
if (_name == 'gunpickupOrig') {
_visible = false;
} else {
var grav = 0;
var onGround = false;
frame = _root._currentframe;
var alive = true;
_root.weaponpickupArray.push(this);
}
}
}
// unknown tag 88 length 63
movieClip 1667 {
frame 1 {
if (_name != 'scoretextOrig') {
alive = true;
_root.scoretextArray.push(this);
}
}
}
movieClip 1703 {
frame 1 {
stop();
}
frame 10 {
this.remove = 0;
}
frame 22 {
onEnterFrame = function () {
if (_root.ground.hitTest(_x, _y, true)) {
_rotation = 0;
_root.explode(this);
}
if (_root.platform.hitTest(_x, _y, true)) {
_rotation = 0;
_root.explode(this);
}
i = 0;
while (i < 8) {
if (_root['enemy' + i].hitTest(_x, _y, true) && _root['enemy' + i]._currentframe != 9 && _root['enemy' + i]._currentframe != 7) {
_rotation = 0;
_y = _root['enemy' + i]._y;
_root.explode(this);
}
++i;
}
};
}
}
instance gutsOrig of movieClip 1703 {
onClipEvent (load) {
if (_name == 'gutsOrig') {
_visible = false;
} else {
var alive = true;
var grav = 0;
var onGround = false;
var remove = 45;
_root.particleArray.push(this);
}
}
}
movieClip 1715 {
}
movieClip 1716 {
}
instance instructionstxt of movieClip 1716 {
onClipEvent (load) {
this.cacheAsBitmap = true;
}
}
movieClip 1718 {
}
movieClip 1720 {
frame 1 {
function camControl() {
rp.x = _x;
rp.y = _y;
var v5 = camH * _yscale * 0.01;
var v6 = camW * _xscale * 0.01;
var v3 = sH / v5;
var v4 = sW / v6;
_x2 = (v6 / 2) * v4;
_y2 = (v5 / 2) * v3;
_xscale2 = v4 * 100;
_yscale2 = v3 * 100;
_parent.filters = this.filters;
_parent.transform.colorTransform = this.transform.colorTransform;
}
function reset() {
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
_parent._rotation = 0;
_parent._visible = true;
_root.reset_mc._x = 350;
_root.reset_mc._y = 200;
}
function set_x2(value) {
var v2 = {'x': rp.x, 'y': rp.y};
_parent.localToGlobal(v2);
_parent._x += value - v2.x;
}
function get_x2() {
var v2 = {'x': rp.x, 'y': rp.y};
_parent.localToGlobal(v2);
return v2.x;
}
function set_y2(value) {
var v2 = {'x': rp.x, 'y': rp.y};
_parent.localToGlobal(v2);
_parent._y += value - v2.y;
}
function get_y2() {
var v2 = {'x': rp.x, 'y': rp.y};
_parent.localToGlobal(v2);
return v2.y;
}
function get_xscale2() {
return _parent._xscale;
}
function set_xscale2(value) {
setProperty2('_xscale', value);
}
function get_yscale2() {
return _parent._yscale;
}
function set_yscale2(value) {
setProperty2('_yscale', value);
}
function get_rotation2() {
return parent.rotation;
}
function setProperty2(prop, n) {
var v3 = {'x': rp.x, 'y': rp.y};
_parent.localToGlobal(v3);
_parent[prop] = n;
var v2 = {'x': rp.x, 'y': rp.y};
_parent.localToGlobal(v2);
_parent._x -= v2.x - v3.x;
_parent._y -= v2.y - v3.y;
}
addProperty('_xscale2', get_xscale2, set_xscale2);
addProperty('_yscale2', get_yscale2, set_yscale2);
_visible = false;
addProperty('_x2', get_x2, set_x2);
addProperty('_y2', get_y2, set_y2);
var oldScaleMode = stage.scaleMode;
stage.scaleMode = 'exactFit';
var sW = Stage.width;
var sH = Stage.height;
stage.scaleMode = oldScaleMode;
var bounds_obj = this.getBounds(this);
var camH = Math.abs(bounds_obj.yMax - bounds_obj.yMin);
var camW = Math.abs(bounds_obj.xMax - bounds_obj.xMin);
var rp = {'x': this._x, 'y': this._y};
this.onUnload = reset;
}
}
instance vcam of movieClip 1720 {
onClipEvent (load) {
var xSpeed = 0;
var ySpeed = 0;
var moveSpeed = 8;
var xadjust = 0;
var targetxscale = 100;
target = _root.hero;
}
}
movieClip 1721 {
instance of movieClip 52 {
onClipEvent (load) {
_xscale = 0;
_parent._alpha = 0;
_parent.life = 0;
}
onClipEvent (enterFrame) {
poo = (_parent.life / _parent.totallife) * 100;
_xscale = poo;
if (_xscale < 0) {
_xscale = 0;
}
if (_xscale > 100) {
_xscale = 100;
}
if (_parent.life < 1) {
if (_parent._alpha > 0) {
_parent._alpha -= 5;
}
} else {
_parent._alpha = 100;
}
}
}
}
movieClip 1724 {
}
button 1725 {
on (press) {
getURL('http://www.3wj.com/?utm_medium=brandedgames_external&utm_campaign=ArmyBlaster&utm_source=host&utm_content=ingame', blank);
}
}
movieClip 1729 {
}
movieClip 1736 {
}
movieClip 1738 {
}
movieClip 1740 {
}
movieClip 1742 {
}
movieClip 1745 {
frame 16 {
stop();
}
}
movieClip 1748 {
}
movieClip 1750 {
}
movieClip 1756 {
}
movieClip 1758 {
}
movieClip 1763 {
}
movieClip 1765 {
}
movieClip 1769 {
}
movieClip 1772 {
}
movieClip 1773 {
frame 1 {
stop();
}
frame 6 {
stop();
}
}
button 1774 {
on (press) {
getURL('http://www.3wj.com/?utm_medium=brandedgames_external&utm_campaign=ArmyBlaster&utm_source=host&utm_content=ingame', blank);
}
}
movieClip 1776 {
}
movieClip 1785 {
}
movieClip 1791 {
}
movieClip 1793 {
frame 1 {
stop();
}
frame 18 {
stop();
var timebonus = _root.gametime * 10;
_root.totaltimebonus += timebonus;
_root.shotsfiredtotal += _root.shotsfired;
leveltotal = 0;
onEnterFrame = function () {
if (leveltotal < timebonus + _root.levelpoints) {
leveltotal += 55;
_root.dink.start(0, 0);
_root.dink.setVolume(100);
if (_root.msdown == true) {
leveltotal = timebonus + _root.levelpoints;
}
}
if (leveltotal > timebonus + _root.levelpoints) {
leveltotal = timebonus + _root.levelpoints;
}
if (Key.isDown(32)) {
_root.levelresetFunction();
}
if (Key.isDown(82) && _root.reset_mc._currentframe == 1) {
_root.reset_mc.gotoAndPlay(2);
}
};
}
frame 19 {
_root.stopmusicFunction();
}
frame 42 {
_root.shotsfiredtotal += _root.shotsfired;
leveltotal = 0;
onEnterFrame = function () {
if (leveltotal < _root.levelpoints) {
leveltotal += 55;
_root.dink.start(0, 0);
_root.dink.setVolume(100);
if (_root.msdown == true) {
leveltotal = _root.levelpoints;
}
}
if (leveltotal > _root.levelpoints) {
leveltotal = _root.levelpoints;
}
if (Key.isDown(32)) {
_root.reset_mc.gotoAndPlay('nextlevel');
}
if (Key.isDown(82) && _root.reset_mc._currentframe == 1) {
_root.reset_mc.gotoAndPlay(2);
}
};
}
instance of movieClip 1773 {
onClipEvent (press) {
getURL('http://www.3wj.com/?utm_medium=brandedgames_external&utm_campaign=ArmyBlaster&utm_source=host&utm_content=ingame', blank);
}
}
frame 49 {
stop();
}
frame 52 {
_root.stopmusicFunction();
}
frame 76 {
stop();
_root.shotsfiredtotal += _root.shotsfired;
onEnterFrame = function () {
if (Key.isDown(81)) {
_root.gotoAndStop('mainmenu');
_root.stopmusicFunction();
_root.levelresetFunction();
_root.weaponsunlock.swapDepths(_root.getNextHighestDepth());
_root.weaponsunlock.removeMovieClip();
_root.reset_mc.swapDepths(_root.getNextHighestDepth());
_root.reset_mc.removeMovieClip();
_root.hud.swapDepths(_root.getNextHighestDepth());
_root.hud.removeMovieClip();
}
if ((Key.isDown(82) || Key.isDown(32)) && _root.reset_mc._currentframe == 1) {
_root.reset_mc.gotoAndPlay(2);
}
};
}
instance of movieClip 1773 {
onClipEvent (press) {
getURL('http://www.3wj.com/?utm_medium=brandedgames_external&utm_campaign=ArmyBlaster&utm_source=host&utm_content=ingame', blank);
}
}
}
movieClip 1796 {
}
movieClip 1799 {
instance gundisplay of movieClip 1662 {
onClipEvent (enterFrame) {
gotoAndStop(_root.hero.currentweapon);
}
}
}
movieClip 1801 {
frame 1 {
stop();
}
}
movieClip 1803 {
}
movieClip 1806 {
instance of movieClip 52 {
onClipEvent (load) {
_xscale = 0;
}
onClipEvent (enterFrame) {
poo = (_root.hero.life / _root.hero.totallife) * 100;
if (_xscale < poo) {
_xscale = _xscale + 1;
_xscale = _xscale + 1;
}
if (_xscale > poo) {
_xscale = _xscale - 1;
_xscale = _xscale - 1;
}
if (_xscale > 100) {
_xscale = 100;
}
}
}
}
movieClip 1808 {
}
movieClip 1811 {
}
movieClip 1813 {
}
movieClip 1825 {
frame 29 {
stop();
}
}
movieClip 1830 {
}
movieClip 1879 {
}
movieClip 1885 {
}
movieClip 1889 {
frame 1 {
stop();
}
frame 49 {
_root.hero.activated = false;
_root.hero.walk.stop();
_root.enemy1.walk.stop();
_root.enemy2.walk.stop();
_root.enemy3.walk.stop();
_root.enemy4.walk.stop();
_root.enemy5.walk.stop();
_root.enemy6.walk.stop();
_root.enemy7.walk.stop();
_root.civpanic = true;
if (_root.civpanic) {
_root.c1.stop();
_root.c2.stop();
_root.c3.stop();
_root.c4.stop();
_root.c5.stop();
_root.c6.stop();
_root.c7.stop();
_root.c8.stop();
_root.c9.stop();
_root.c10.stop();
}
this.swapDepths(_root.getNextHighestDepth());
_root.setmusicvolumeFunction(0);
}
frame 119 {
_root.hero.currentweapon = unlocked;
_root.hero.weapontype = unlockedtype;
_root.hero.walk.gun.gotoAndStop(unlocked);
_root.hero.jump_mc.gun.gotoAndStop(unlocked);
}
instance gundisplay of movieClip 1879 {
onClipEvent (load) {
gotoAndStop(_parent.unlocked);
}
}
frame 178 {
_root.hero.activated = true;
_root.hero.walk.play();
_root.enemy1.walk.play();
_root.enemy2.walk.play();
_root.enemy3.walk.play();
_root.enemy4.walk.play();
_root.enemy5.walk.play();
_root.enemy6.walk.play();
_root.enemy7.walk.play();
_root.civpanic = true;
if (_root.civpanic) {
_root.c1.play();
_root.c2.play();
_root.c3.play();
_root.c4.play();
_root.c5.play();
_root.c6.play();
_root.c7.play();
_root.c8.play();
_root.c9.play();
_root.c10.play();
}
}
frame 187 {
if (_root.music_mute == false) {
_root.setmusicvolumeFunction(75);
}
gotoAndStop(1);
}
frame 190 {
this.swapDepths(_root.getNextHighestDepth());
play();
}
}
movieClip 1891 {
}
movieClip 1897 {
}
movieClip 1914 {
}
movieClip 1918 {
}
movieClip 1919 {
}
movieClip 1920 {
frame 1 {
stop();
}
frame 6 {
stop();
}
}
movieClip 1923 {
}
movieClip 1924 {
frame 1 {
stop();
}
frame 6 {
stop();
}
}
movieClip 1926 {
}
movieClip 1927 {
frame 1 {
stop();
}
frame 6 {
stop();
}
}
movieClip 1929 {
}
movieClip 1931 {
}
movieClip 1933 {
}
movieClip 1935 {
}
movieClip 1938 {
}
movieClip 1939 {
frame 1 {
stop();
}
frame 6 {
stop();
}
}
movieClip 1941 {
}
movieClip 1942 {
frame 1 {
stop();
}
frame 6 {
stop();
}
}
movieClip 1945 {
}
movieClip 1947 {
}
movieClip 1948 {
frame 1 {
stop();
}
frame 6 {
stop();
}
}
movieClip 1950 {
frame 1 {
stop();
}
frame 8 {
stop();
}
}
movieClip 1951 {
frame 1 {
stop();
}
}
movieClip 1957 {
}
movieClip 1961 {
}
movieClip 1964 {
}
movieClip 1966 {
}
movieClip 1968 {
}
movieClip 1972 {
}
movieClip 1974 {
}
movieClip 1975 {
frame 1 {
stop();
}
frame 2 {
_root.hero.activated = false;
this.swapDepths(_root.getNextHighestDepth());
_root.stopmusicFunction();
}
frame 32 {
_root.shotsfiredtotal += _root.shotsfired;
_root.levelresetFunction();
}
frame 54 {
_root.gotoAndPlay(_root._currentframe - 2);
}
frame 56 {
onEnterFrame = function () {
_x = _root.vcam._x;
_y = _root.vcam._y;
_root.hero.activated = false;
};
}
frame 107 {
delete this.onEnterFrame;
}
frame 108 {
_root.hero.activated = true;
this.removeMovieClip();
}
frame 109 {
gotoAndStop(1);
}
frame 111 {
play();
}
frame 112 {
_root.hero.activated = false;
this.swapDepths(_root.getNextHighestDepth());
}
frame 129 {
_root.levelresetFunction();
_root.gotoAndPlay(_root._currentframe + 1);
}
frame 131 {
onEnterFrame = function () {
_x = _root.vcam._x;
_y = _root.vcam._y;
_root.hero.activated = false;
};
}
frame 148 {
delete this.onEnterFrame;
}
frame 149 {
_root.hero.activated = true;
this.removeMovieClip();
}
frame 150 {
gotoAndStop(1);
}
frame 165 {
_root.hero.activated = false;
this.swapDepths(_root.getNextHighestDepth());
if (_root.music_mute == false) {
_root.setmusicvolumeFunction(20);
}
_root.pausesfx.start(0, 0);
_root.pausesfx.setVolume(300);
_root.hero.activated = false;
_root.hero.walk.stop();
_root.enemy1.walk.stop();
_root.enemy2.walk.stop();
_root.enemy3.walk.stop();
_root.enemy4.walk.stop();
_root.enemy5.walk.stop();
_root.enemy6.walk.stop();
_root.enemy7.walk.stop();
_root.civpanic = true;
if (_root.civpanic) {
_root.c1.stop();
_root.c2.stop();
_root.c3.stop();
_root.c4.stop();
_root.c5.stop();
_root.c6.stop();
_root.c7.stop();
_root.c8.stop();
_root.c9.stop();
_root.c10.stop();
}
}
instance of movieClip 1920 {
onClipEvent (rollOver) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(2);
}
onClipEvent (rollOut) {
gotoAndPlay(7);
}
onClipEvent (release) {
delete _root.reset_mc.onEnterFrame;
_root.hero.activated = true;
_parent.gotoAndPlay('close_pause');
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
}
}
instance of movieClip 1924 {
onClipEvent (rollOver) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(2);
}
onClipEvent (rollOut) {
gotoAndPlay(7);
}
onClipEvent (release) {
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
_parent.gotoAndPlay('customise');
}
}
instance of movieClip 1927 {
onClipEvent (rollOver) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(2);
}
onClipEvent (rollOut) {
gotoAndPlay(7);
}
onClipEvent (release) {
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
_parent.gotoAndPlay('medals');
}
}
instance of movieClip 1939 {
onClipEvent (rollOver) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(2);
}
onClipEvent (rollOut) {
gotoAndPlay(7);
}
onClipEvent (release) {
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
_root.shotsfiredtotal += _root.shotsfired;
_root.stopmusicFunction();
_root.levelresetFunction();
_root.gotoAndStop('mainmenu');
_root.weaponsunlock.swapDepths(_root.getNextHighestDepth());
_root.weaponsunlock.removeMovieClip();
_root.reset_mc.swapDepths(_root.getNextHighestDepth());
_root.reset_mc.removeMovieClip();
}
}
instance of movieClip 1942 {
onClipEvent (rollOver) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(2);
}
onClipEvent (rollOut) {
gotoAndPlay(7);
}
onClipEvent (release) {
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
getURL('http://www.addictinggames.com', '_blank');
}
}
frame 168 {
stop();
var qualwait = 12;
onEnterFrame = function () {
if (Key.isDown(77)) {
if (_root.music_mute == false && qualwait < 1) {
_root.setmusicvolumeFunction(0);
qualwait = 12;
_root.music_mute = true;
}
if (_root.music_mute == true && qualwait < 1) {
_root.setmusicvolumeFunction(20);
qualwait = 12;
_root.music_mute = false;
}
}
if (Key.isDown(82)) {
delete this.onEnterFrame;
_root.reset_mc.gotoAndPlay(2);
}
if (qualwait > 0) {
qualwait -= 1;
}
if (Key.isDown(81)) {
if (_root._quality == 'HIGH' && qualwait < 1) {
_root._quality = 'LOW';
qualwait = 12;
}
if (_root._quality == 'MEDIUM' && qualwait < 1) {
_root._quality = 'HIGH';
qualwait = 12;
}
if (_root._quality == 'LOW' && qualwait < 1) {
_root._quality = 'MEDIUM';
qualwait = 12;
}
}
};
}
frame 171 {
if (_root.music_mute == false) {
_root.setmusicvolumeFunction(85);
}
_root.hero.activated = true;
_root.hero.walk.play();
_root.enemy1.walk.play();
_root.enemy2.walk.play();
_root.enemy3.walk.play();
_root.enemy4.walk.play();
_root.enemy5.walk.play();
_root.enemy6.walk.play();
_root.enemy7.walk.play();
_root.civpanic = true;
if (_root.civpanic) {
_root.c1.play();
_root.c2.play();
_root.c3.play();
_root.c4.play();
_root.c5.play();
_root.c6.play();
_root.c7.play();
_root.c8.play();
_root.c9.play();
_root.c10.play();
}
}
frame 172 {
gotoAndStop(1);
}
frame 173 {
stop();
}
instance of movieClip 1948 {
onClipEvent (rollOver) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(2);
}
onClipEvent (rollOut) {
gotoAndPlay(7);
}
onClipEvent (release) {
_root.saveitFunction();
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
_parent.gotoAndPlay('paused');
}
}
instance of movieClip 1950 {
onClipEvent (rollOver) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(250);
gotoAndPlay(2);
}
onClipEvent (rollOut) {
gotoAndPlay(11);
}
onClipEvent (release) {
_root.button_press.start(0, 0);
_root.button_press.setVolume(80);
if (_root.player_headchoice < _parent.displaycase.appearancedisplay.head._totalframes) {
_root.player_headchoice += 1;
_parent.displaycase.appearancedisplay.head.gotoAndStop(_root.player_headchoice);
_parent.displaycase.gotoAndPlay(2);
_root.hero.player_headchoice = _root.player_headchoice;
_root.hero.walk.head.gotoAndStop(_root.player_headchoice);
}
}
}
instance of movieClip 1950 {
onClipEvent (rollOver) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(250);
gotoAndPlay(2);
}
onClipEvent (rollOut) {
gotoAndPlay(11);
}
onClipEvent (release) {
_root.button_press.start(0, 0);
_root.button_press.setVolume(80);
if (_root.player_headchoice > 1) {
_root.player_headchoice -= 1;
_root.hero.player_headchoice = _root.player_headchoice;
_parent.displaycase.appearancedisplay.head.gotoAndStop(_root.player_headchoice);
_parent.displaycase.gotoAndPlay(2);
_root.hero.walk.head.gotoAndStop(_root.player_headchoice);
}
}
}
frame 174 {
stop();
}
instance of movieClip 1948 {
onClipEvent (rollOver) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(2);
}
onClipEvent (rollOut) {
gotoAndPlay(7);
}
onClipEvent (release) {
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
_parent.gotoAndPlay('paused');
}
}
instance of movieClip 1957 {
onClipEvent (load) {
this.medaltitle = 'first blood';
if (_root.medal_1 == true) {
gotoAndStop(1);
} else {
gotoAndStop(2);
}
}
onClipEvent (rollOver) {
_parent.medaldescription = 'kill your first enemy';
}
}
instance of movieClip 1957 {
onClipEvent (load) {
this.medaltitle = 'cold killer';
if (_root.medal_4 == true) {
gotoAndStop(1);
} else {
gotoAndStop(2);
}
}
onClipEvent (rollOver) {
_parent.medaldescription = 'waste one hundred enemies ';
}
}
instance of movieClip 1957 {
onClipEvent (load) {
this.medaltitle = 'genocidal maniac';
if (_root.medal_2 == true) {
gotoAndStop(1);
} else {
gotoAndStop(2);
}
}
onClipEvent (rollOver) {
_parent.medaldescription = 'brutally murder five hundred enemies';
}
}
instance of movieClip 1957 {
onClipEvent (load) {
this.medaltitle = 'poor swimmer';
if (_root.medal_3 == true) {
gotoAndStop(1);
} else {
gotoAndStop(2);
}
}
onClipEvent (rollOver) {
_parent.medaldescription = 'drown in acid or water';
}
}
instance of movieClip 1957 {
onClipEvent (load) {
this.medaltitle = 'finger lickin';
if (_root.medal_5 == true) {
gotoAndStop(1);
} else {
gotoAndStop(2);
}
}
onClipEvent (rollOver) {
_parent.medaldescription = 'flamethrower a chicken';
}
}
instance of movieClip 1957 {
onClipEvent (load) {
this.medaltitle = 'star gazer';
if (_root.medal_6 == true) {
gotoAndStop(1);
} else {
gotoAndStop(2);
}
}
onClipEvent (rollOver) {
_parent.medaldescription = 'collect two hundred stars';
}
}
instance of movieClip 1957 {
onClipEvent (load) {
this.medaltitle = 'dragon slayer';
if (_root.medal_7 == true) {
gotoAndStop(1);
} else {
gotoAndStop(2);
}
}
onClipEvent (rollOver) {
_parent.medaldescription = 'slay a dragon... with a rocket launcher';
}
}
instance of movieClip 1957 {
onClipEvent (load) {
this.medaltitle = 'cowboy killer';
if (_root.medal_8 == true) {
gotoAndStop(1);
} else {
gotoAndStop(2);
}
}
onClipEvent (rollOver) {
_parent.medaldescription = 'defeat a cowboy at high noon';
}
}
instance of movieClip 1957 {
onClipEvent (load) {
this.medaltitle = 'robo rampage';
if (_root.medal_9 == true) {
gotoAndStop(1);
} else {
gotoAndStop(2);
}
}
onClipEvent (rollOver) {
_parent.medaldescription = 'epicly defeat a towering mechanoid';
}
}
instance of movieClip 1957 {
onClipEvent (load) {
this.medaltitle = 'demolition expert';
if (_root.medal_10 == true) {
gotoAndStop(1);
} else {
gotoAndStop(2);
}
}
onClipEvent (rollOver) {
_parent.medaldescription = 'set off twenty five explosions';
}
}
instance of movieClip 1957 {
onClipEvent (load) {
this.medaltitle = 'gun nut';
if (_root.medal_11 == true) {
gotoAndStop(1);
} else {
gotoAndStop(2);
}
}
onClipEvent (rollOver) {
_parent.medaldescription = 'unlock all weapons in the game';
}
}
instance of movieClip 1957 {
onClipEvent (load) {
this.medaltitle = 'film buff';
if (_root.medal_12 == true) {
gotoAndStop(1);
} else {
gotoAndStop(2);
}
}
onClipEvent (rollOver) {
_parent.medaldescription = 'dont skip a single cutscene';
}
}
frame 175 {
stop();
}
instance of movieClip 1948 {
onClipEvent (rollOver) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(2);
}
onClipEvent (rollOut) {
gotoAndPlay(7);
}
onClipEvent (release) {
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
_parent.gotoAndPlay('paused');
}
}
}
movieClip 1977 {
}
movieClip 1978 {
frame 13 {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
frame 7 {
enemynameArray = ['enemy1', 'enemy2', 'enemy3', 'enemy4'];
levelpoints = 0;
levelkills = 0;
shotsfired = 0;
destructionpoints = 0;
leveltotal = 0;
levelcivkills = 0;
_root.kwall = 0;
_root.kwallkillsArray = [-1, 15, 25];
_root.killwallxArray = [2673.1, 2504.6, 4203.5];
_root.killwallyArray = [-165, -68, -263.05];
_root.civpanic = false;
_root.ene_limit = 450;
_root.stopmusicFunction();
randomMusic = random(_root.totalsongs);
_root['Music' + randomMusic].start(0, 99);
if (_root.music_mute == false) {
_root['Music' + randomMusic].setVolume(85);
}
if (_root.music_mute == true) {
_root['Music' + randomMusic].setVolume(0);
}
}
frame 8 {
_root.lvl1 = true;
stop();
_root.ground._visible = false;
_root.platform._visible = false;
_root.u_limit._visible = false;
_root.d_limit._visible = false;
_root.r_limit._visible = false;
_root.l_limit._visible = false;
onMouseDown = function () {
msdown = true;
};
onMouseUp = function () {
msdown = false;
};
onEnterFrame = function () {
_root.vcamFunction(_root.vcam);
_root.vcam.camControl();
_root.musicFunction();
_root.weaponunlocking();
_root.medalsunlocking();
if (_root.hero.activated == true) {
_root.heroWeapons(_root.hero);
_root.heroPhysics(_root.hero);
_root.heroMovement(_root.hero);
_root.heroJumping(_root.hero);
_root.heroShot(_root.hero);
}
if (_root.hero.activated == true) {
if (_root.bulletArray.length > 0) {
i = 0;
while (i < _root.bulletArray.length) {
_root.bulletFunction(_root.bulletArray[i]);
if (_root.bulletArray[i].alive == undefined) {
_root.bulletArray.splice(i, 1);
}
++i;
}
}
if (_root.enebulletArray.length > 0) {
i = 0;
while (i < _root.enebulletArray.length) {
_root.bulletFunction(_root.enebulletArray[i]);
if (_root.enebulletArray[i].alive == undefined) {
_root.enebulletArray.splice(i, 1);
}
++i;
}
}
}
i = 0;
while (i < _root.particleArray.length) {
_root.particlesFunction(_root.particleArray[i]);
if (_root.particleArray[i].onGround != true) {
_root.bouncePhysics(_root.particleArray[i], 3);
} else {
_root.onGroundPhysics(_root.particleArray[i]);
}
if (_root.particleArray[i].alive == undefined) {
_root.particleArray.splice(i, 1);
}
++i;
}
if (_root.scoretextArray.length > 0) {
i = 0;
while (i < _root.scoretextArray.length) {
_root.scoretextFunction(_root.scoretextArray[i]);
if (_root.scoretextArray[i].alive == undefined) {
_root.scoretextArray.splice(i, 1);
}
++i;
}
}
i = 0;
while (i < _root.starsArray.length) {
if (_root.starsArray[i]._x - _root.vcam._x < 350 && _root.starsArray[i]._x - _root.vcam._x > -350) {
if (_root.starsArray[i]._currentframe == 2) {
_root.starsArray[i].gotoAndStop(3);
}
if (_root.starsArray[i]._currentframe == 3) {
_root.starsFunction(_root.starsArray[i], i);
}
} else {
if (_root.starsArray[i]._currentframe == 3) {
_root.starsArray[i].gotoAndStop(2);
}
}
++i;
}
i = 0;
while (i < _root.weaponpickupArray.length) {
if (_root.weaponpickupArray[i].onGround != true) {
_root.bouncePhysics(_root.weaponpickupArray[i], 5);
}
_root.weaponpickupFunction(_root.weaponpickupArray[i]);
if (_root.weaponpickupArray[i].alive == undefined) {
_root.weaponpickupArray.splice(i, 1);
}
++i;
}
_root.killwallFunction();
_root.cratesFunction(_root.crates.c1);
_root.cratesFunction(_root.crates.c2);
_root.cratesFunction(_root.crates.c3);
_root.cratesFunction(_root.crates.c4);
_root.cratesFunction(_root.crates.c5);
_root.cratesFunction(_root.crates.c6);
_root.cratesFunction(_root.crates.c7);
_root.cratesFunction(_root.crates.c8);
_root.civFunction(_root.c1);
_root.civFunction(_root.c2);
_root.civFunction(_root.c3);
_root.civFunction(_root.c4);
_root.civFunction(_root.c5);
_root.civFunction(_root.c6);
_root.civFunction(_root.c7);
_root.civFunction(_root.c8);
_root.civFunction(_root.c9);
_root.civFunction(_root.c10);
_root.acidFunction(_root.acid1);
_root.acidFunction(_root.acid2);
_root.acidFunction(_root.acid3);
_root.acidFunction(_root.acid4);
_root.acidFunction(_root.acid5);
_root.acidFunction(_root.acid6);
if (_root.hero._x > 155) {
chance = random(45);
if (chance == 1 && _root.enemynameArray.length > 0 && _root.hero.activated) {
newEne = _root.ene.duplicateMovieClip(_root.enemynameArray[0], _root.getNextHighestDepth());
_root.enemynameArray.splice(0, 1);
side = random(2);
if (side == 1) {
newEne._x = _root.hero._x - 300;
} else {
newEne._x = _root.hero._x + 300;
}
newEne._y = _root.hero._y;
}
_root.enemyBundle(_root.enemy1);
_root.enemyBundle(_root.enemy2);
_root.enemyBundle(_root.enemy3);
_root.enemyBundle(_root.enemy4);
}
};
}
movieClip 1981 {
}
movieClip 1984 {
}
movieClip 1986 {
}
movieClip 1988 {
}
movieClip 1990 {
}
movieClip 1992 {
}
movieClip 1996 {
}
movieClip 1999 {
}
movieClip 2002 {
}
movieClip 2004 {
}
movieClip 2006 {
}
movieClip 2011 {
frame 1 {
life = 10;
}
frame 2 {
stop();
if (life < 1) {
newGore = _root.gutsOrig.duplicateMovieClip('newGore' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newGore._x = _parent._x + _x;
newGore._y = _parent._y + _y - _height / 2;
newGore.gotoAndStop(6);
newGore.ySpeed = random(10);
newGore.xSpeed = random(20) - random(20);
newGore = _root.gutsOrig.duplicateMovieClip('newGore' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newGore._x = _x + _parent._x;
newGore._y = _y + _parent._y - _height / 2;
newGore.gotoAndStop(7);
newGore.ySpeed = random(10);
newGore.xSpeed = random(20) - random(20);
newGore = _root.gutsOrig.duplicateMovieClip('newGore' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newGore._x = _x + _parent._x;
newGore._y = _y + _parent._y - _height / 2;
newGore.gotoAndStop(8);
newGore.ySpeed = random(10);
newGore.xSpeed = random(20) - random(20);
newGore = _root.gutsOrig.duplicateMovieClip('newGore' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newGore._x = _x + _parent._x;
newGore._y = _y + _parent._y - _height / 2;
newGore.gotoAndStop(5);
newGore.ySpeed = random(10);
newGore.xSpeed = random(20) - random(20);
score = _root.scoretextOrig.duplicateMovieClip('scoretext' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
score._x = _parent._x + _x;
score._y = _parent._y + _y;
score.scoretext = '50!';
_root.levelpoints += 50;
_root.destructionpoints += 50;
var randomsound = random(2);
_root['crate' + randomsound].start(0, 0);
_root['crate' + randomsound].setVolume(130);
this.swapDepths(_parent.getNextHighestDepth());
this.removeMovieClip();
}
}
frame 3 {
play();
}
frame 6 {
gotoAndStop(2);
}
}
movieClip 2012 {
}
movieClip 2015 {
}
instance hero of movieClip 891 {
onClipEvent (load) {
var life = 100;
totallife = 100;
activated = true;
grav = 0;
xSpeed = 0;
ySpeed = 0;
controllable = true;
moveSpeed = 5;
right = 68;
left = 65;
var up = 87;
var jump = 87;
var jumpheight = 12;
var barricadecooldown = 0;
var barricadetotal = 0;
_root.hero.player_headchoice = _root.player_headchoice;
var doubleJumpThres = 10;
var doubleJumpThres1 = 10;
var jumpFromAttack = 0;
var jumpFromAttackOrig = 16;
var camSpec = 10;
var jumpButtonOn = false;
var weapontype = 'gun';
var currentweapon = 'crossbow';
var newweapontimer = 0;
var ammo = 300;
var recoil = 15;
var onGround = false;
var chainguncharge = 0;
var frame = _root._currentframe;
}
}
instance flashOrig of movieClip 905 {
onClipEvent (load) {
if (_name == 'flashOrig') {
_visible = false;
}
}
}
instance bulletOrig of movieClip 936 {
onClipEvent (load) {
if (_name != 'bulletOrig') {
xSpeed = 0;
ySpeed = 0;
alive = true;
_root.bulletArray.push(this);
} else {
_visible = false;
}
}
}
instance ene of movieClip 1627 {
onClipEvent (load) {
if (_name == 'ene') {
} else {
var life = 8;
var totallife = 8;
var jump = -15;
var falling = true;
var lifeOrig = 8;
var grav = 0;
var xSpeed = 0;
var ySpeed = 0;
var moveSpeed = 1.5;
var xdist = 0;
var eyeSight = 1450;
var onGround = false;
var headchoice = random(3) + 6;
var whatweapon = random(2);
if (whatweapon == 1) {
var currentweapon = 'm16';
}
if (whatweapon == 0) {
var currentweapon = 'shotgun';
}
gotoAndStop(9);
}
}
}
instance enebulletOrig of movieClip 936 {
onClipEvent (load) {
if (_name != 'enebulletOrig') {
xSpeed = 0;
ySpeed = 0;
alive = true;
_root.enebulletArray.push(this);
} else {
_visible = false;
}
}
}
instance gunpickupOrig of movieClip 1663 {
onClipEvent (load) {
if (_name == 'gunpickupOrig') {
_visible = false;
} else {
var grav = 0;
var onGround = false;
frame = _root._currentframe;
var alive = true;
_root.weaponpickupArray.push(this);
}
}
}
instance gutsOrig of movieClip 1703 {
onClipEvent (load) {
if (_name == 'gutsOrig') {
_visible = false;
} else {
var alive = true;
var grav = 0;
var onGround = false;
var remove = 45;
_root.particleArray.push(this);
}
}
}
instance vcam of movieClip 1720 {
onClipEvent (load) {
var xSpeed = 0;
var ySpeed = 0;
var moveSpeed = 8;
var xadjust = 0;
var targetxscale = 100;
target = _root.hero;
}
}
frame 10 {
enemynameArray = [];
levelpoints = 0;
levelkills = 0;
shotsfired = 0;
destructionpoints = 0;
leveltotal = 0;
levelcivkills = 0;
_root.civpanic = false;
_root.ene_limit = 450;
_root.stopmusicFunction();
_root.boss_music3.start(0, 99);
if (_root.music_mute == false) {
_root.boss_music3.setVolume(85);
}
if (_root.music_mute == true) {
_root.boss_music3.setVolume(0);
}
}
frame 11 {
_root.lvl3 = true;
stop();
_root.ground._visible = false;
_root.platform._visible = false;
_root.u_limit._visible = false;
_root.d_limit._visible = false;
_root.r_limit._visible = false;
_root.l_limit._visible = false;
_root.hero.activated = false;
onMouseDown = function () {
msdown = true;
};
onMouseUp = function () {
msdown = false;
};
onEnterFrame = function () {
_root.vcamFunction(_root.vcam);
_root.vcam.camControl();
if (_root.hero.activated == true) {
_root.lvlinstructions._visible = true;
} else {
_root.lvlinstructions._visible = false;
}
_root.musicFunction();
_root.medalsunlocking();
if (_root.hero.activated == true) {
_root.heroWeapons(_root.hero);
_root.heroPhysics(_root.hero);
_root.heroMovement(_root.hero);
_root.heroJumping(_root.hero);
_root.heroShot(_root.hero);
}
if (_root.hero.activated == true) {
if (_root.bulletArray.length > 0) {
i = 0;
while (i < _root.bulletArray.length) {
_root.bulletFunction(_root.bulletArray[i]);
if (_root.bulletArray[i].alive == undefined) {
_root.bulletArray.splice(i, 1);
}
++i;
}
}
if (_root.enebulletArray.length > 0) {
i = 0;
while (i < _root.enebulletArray.length) {
_root.bulletFunction(_root.enebulletArray[i]);
if (_root.enebulletArray[i].alive == undefined) {
_root.enebulletArray.splice(i, 1);
}
++i;
}
}
}
i = 0;
while (i < _root.particleArray.length) {
_root.particlesFunction(_root.particleArray[i]);
if (_root.particleArray[i].onGround != true) {
_root.bouncePhysics(_root.particleArray[i], 3);
} else {
_root.onGroundPhysics(_root.particleArray[i]);
}
if (_root.particleArray[i].alive == undefined) {
_root.particleArray.splice(i, 1);
}
++i;
}
if (_root.scoretextArray.length > 0) {
i = 0;
while (i < _root.scoretextArray.length) {
_root.scoretextFunction(_root.scoretextArray[i]);
if (_root.scoretextArray[i].alive == undefined) {
_root.scoretextArray.splice(i, 1);
}
++i;
}
}
i = 0;
while (i < _root.starsArray.length) {
if (_root.starsArray[i]._x - _root.vcam._x < 350 && _root.starsArray[i]._x - _root.vcam._x > -350) {
if (_root.starsArray[i]._currentframe == 2) {
_root.starsArray[i].gotoAndStop(3);
}
if (_root.starsArray[i]._currentframe == 3) {
_root.starsFunction(_root.starsArray[i], i);
}
} else {
if (_root.starsArray[i]._currentframe == 3) {
_root.starsArray[i].gotoAndStop(2);
}
}
++i;
}
i = 0;
while (i < _root.weaponpickupArray.length) {
if (_root.weaponpickupArray[i].onGround != true) {
_root.bouncePhysics(_root.weaponpickupArray[i], 5);
}
_root.weaponpickupFunction(_root.weaponpickupArray[i]);
if (_root.weaponpickupArray[i].alive == undefined) {
_root.weaponpickupArray.splice(i, 1);
}
++i;
}
_root.cratesFunction(_root.crates.c1);
_root.cratesFunction(_root.crates.c2);
_root.cratesFunction(_root.crates.c3);
_root.cratesFunction(_root.crates.c4);
_root.cratesFunction(_root.crates.c5);
_root.cratesFunction(_root.crates.c6);
_root.cratesFunction(_root.crates.c7);
_root.cratesFunction(_root.crates.c8);
_root.acidFunction(_root.acid1);
};
}
movieClip 2021 {
}
movieClip 2027 {
}
movieClip 2029 {
}
movieClip 2030 {
}
movieClip 2031 {
}
movieClip 2032 {
}
instance flashOrig of movieClip 905 {
onClipEvent (load) {
if (_name == 'flashOrig') {
_visible = false;
}
}
}
instance bulletOrig of movieClip 936 {
onClipEvent (load) {
if (_name != 'bulletOrig') {
xSpeed = 0;
ySpeed = 0;
alive = true;
_root.bulletArray.push(this);
} else {
_visible = false;
}
}
}
instance ene of movieClip 1627 {
onClipEvent (load) {
if (_name == 'ene') {
} else {
var life = 8;
var totallife = 8;
var jump = -15;
var falling = true;
var lifeOrig = 8;
var grav = 0;
var xSpeed = 0;
var ySpeed = 0;
var moveSpeed = 1.5;
var xdist = 0;
var eyeSight = 1450;
var onGround = false;
var headchoice = random(3) + 6;
var whatweapon = random(2);
if (whatweapon == 1) {
var currentweapon = 'm16';
}
if (whatweapon == 0) {
var currentweapon = 'shotgun';
}
gotoAndStop(9);
}
}
}
instance enebulletOrig of movieClip 936 {
onClipEvent (load) {
if (_name != 'enebulletOrig') {
xSpeed = 0;
ySpeed = 0;
alive = true;
_root.enebulletArray.push(this);
} else {
_visible = false;
}
}
}
instance gunpickupOrig of movieClip 1663 {
onClipEvent (load) {
if (_name == 'gunpickupOrig') {
_visible = false;
} else {
var grav = 0;
var onGround = false;
frame = _root._currentframe;
var alive = true;
_root.weaponpickupArray.push(this);
}
}
}
instance gutsOrig of movieClip 1703 {
onClipEvent (load) {
if (_name == 'gutsOrig') {
_visible = false;
} else {
var alive = true;
var grav = 0;
var onGround = false;
var remove = 45;
_root.particleArray.push(this);
}
}
}
instance hero of movieClip 891 {
onClipEvent (load) {
if (_root.options_difficulty == 'easy') {
var life = _root.elife;
var totallife = _root.elife;
}
if (_root.options_difficulty == 'medium') {
var life = _root.mlife;
var totallife = _root.mlife;
}
if (_root.options_difficulty == 'hard') {
var life = _root.hlife;
var totallife = _root.hlife;
}
_root.hero.player_headchoice = _root.player_headchoice;
activated = false;
grav = 0;
xSpeed = 0;
ySpeed = 0;
controllable = true;
moveSpeed = 5;
right = 68;
left = 65;
var up = 87;
var jump = 87;
var jumpheight = 12;
var barricadecooldown = 0;
var barricadetotal = 0;
var doubleJumpThres = 10;
var doubleJumpThres1 = 10;
var jumpFromAttack = 0;
var jumpFromAttackOrig = 16;
var camSpec = 10;
var jumpButtonOn = false;
var weapontype = 'gun';
var currentweapon = 'jumpblaster';
var newweapontimer = 0;
var ammo = 300;
var recoil = 15;
var onGround = false;
var chainguncharge = 0;
var frame = _root._currentframe;
}
}
movieClip 2042 {
}
movieClip 2053 {
frame 11 {
if (!_root.dragon.dragon.mouth.hitTest(_root.hero)) {
_root.dragon.dragon.gotoAndStop(1);
}
}
frame 12 {
_root.hero.controllable = false;
_root.hero.activated = false;
_root.hero.grav = 0;
_root.hero.xSpeed = 0;
_root.hero.swapDepths(_root.getNextHighestDepth());
_root.hero.removeMovieClip();
}
frame 40 {
newGore = _root.gutsOrig.duplicateMovieClip('newGore' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newGore._x = _root.enemy1._x;
newGore._y = _root.enemy1._y;
newGore.gotoAndStop(13);
newGore.ySpeed = Math.cos((_root.enemy1._rotation + 90) * 3.141593 / 180) * (10 + (random(10) - random(10)));
newGore.xSpeed = Math.sin((_root.enemy1._rotation + 90) * 3.141593 / 180) * (10 + (random(10) - random(10)));
newGore = _root.gutsOrig.duplicateMovieClip('newGore' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newGore._x = _root.enemy1._x;
newGore._y = _root.enemy1._y;
newGore.gotoAndStop(11);
newGore.ySpeed = Math.cos((_root.enemy1._rotation + 90) * 3.141593 / 180) * (10 + (random(10) - random(10)));
newGore.xSpeed = Math.sin((_root.enemy1._rotation + 90) * 3.141593 / 180) * (10 + (random(10) - random(10)));
newGore = _root.gutsOrig.duplicateMovieClip('newGore' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newGore._x = _root.enemy1._x;
newGore._y = _root.enemy1._y;
newGore.gotoAndStop(12);
newGore.ySpeed = Math.cos((_root.enemy1._rotation + 90) * 3.141593 / 180) * (10 + (random(10) - random(10)));
newGore.xSpeed = Math.sin((_root.enemy1._rotation + 90) * 3.141593 / 180) * (10 + (random(10) - random(10)));
newGore = _root.gutsOrig.duplicateMovieClip('newGore' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newGore._x = _root.enemy1._x;
newGore._y = _root.enemy1._y;
newGore.gotoAndStop(12);
newGore.ySpeed = Math.cos((_root.enemy1._rotation + 90) * 3.141593 / 180) * (10 + (random(10) - random(10)));
newGore.xSpeed = Math.sin((_root.enemy1._rotation + 90) * 3.141593 / 180) * (10 + (random(10) - random(10)));
newGore = _root.gutsOrig.duplicateMovieClip('newGore' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newGore._x = _root.enemy1._x;
newGore._y = _root.enemy1._y;
newGore.gotoAndStop(12);
newGore.ySpeed = Math.cos((_root.enemy1._rotation + 90) * 3.141593 / 180) * (10 + (random(10) - random(10)));
newGore.xSpeed = Math.sin((_root.enemy1._rotation + 90) * 3.141593 / 180) * (10 + (random(10) - random(10)));
newGore = _root.gutsOrig.duplicateMovieClip('newGore' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newGore._x = _root.enemy1._x;
newGore._y = _root.enemy1._y;
newGore.gotoAndStop(12);
newGore.ySpeed = Math.cos((_root.enemy1._rotation + 90) * 3.141593 / 180) * (10 + (random(10) - random(10)));
newGore.xSpeed = Math.sin((_root.enemy1._rotation + 90) * 3.141593 / 180) * (10 + (random(10) - random(10)));
}
frame 81 {
stop();
_root.hud.showscore.gotoAndPlay('death');
_root.hud.swapDepths(_root.getNextHighestDepth());
}
}
movieClip 2054 {
}
movieClip 2059 {
frame 1 {
if (_root.hero.onGround == true) {
_root.hero.gotoAndStop(1);
}
if (_root.medal_7 != true) {
_root.weaponunlocks.medaltitle = 'dragon slayer';
_root.medal_7 = true;
_root.weaponunlocks.gotoAndPlay(190);
}
}
frame 53 {
stop();
_root.hud.showscore.gotoAndPlay('win');
}
}
movieClip 2071 {
frame 1 {
if (_root.music_mute == false) {
_root.setmusicvolumeFunction(20);
}
}
frame 6 {
_root.vcam._x += 20;
}
frame 12 {
_root.vcam._x -= 20;
}
frame 20 {
_root.vcam._x += 20;
}
frame 26 {
_root.vcam._x -= 10;
}
frame 32 {
_root.vcam._x += 5;
}
frame 44 {
if (_root.music_mute == false) {
_root.setmusicvolumeFunction(85);
}
_parent.gotoAndStop(1);
}
}
movieClip 2072 {
}
movieClip 2073 {
instance bound of movieClip 108 {
onClipEvent (load) {
_visible = false;
}
}
instance mouth of movieClip 108 {
onClipEvent (load) {
_visible = false;
}
}
frame 3 {
_root.vcam.target = _root.enemy1;
}
instance bound of movieClip 108 {
onClipEvent (load) {
_visible = false;
}
}
}
movieClip 2074 {
}
instance enemy1 of movieClip 2074 {
onClipEvent (load) {
var dragonspeed = 3;
if (_root.options_difficulty == 'easy') {
var life = 50;
var totallife = 50;
}
if (_root.options_difficulty == 'medium') {
var life = 100;
var totallife = 100;
}
if (_root.options_difficulty == 'hard') {
var life = 125;
var totallife = 125;
}
activated = false;
xSpeed = 0;
grav = 0;
this.dragon.gotoAndStop(1);
}
onClipEvent (enterFrame) {
_root.gettingshotSmart(this, 2);
if (_root.hero._currentframe == 7) {
this._alpha -= 2;
if (_alpha < 15) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
this.dragon.tail._rotation = _rotation * 3;
if (_yscale == 100) {
this.dragon.leg._rotation = -_rotation;
}
if (_yscale == -100) {
this.dragon.leg._rotation = _rotation - 180;
}
if (_yscale == 100) {
this.dragon.arm._rotation = -_rotation;
}
if (_yscale == -100) {
this.dragon.arm._rotation = _rotation - 180;
}
if (_root.hero.activated == true && this.activated == true) {
var targetangle = Math.atan2(_root.hero._y - _root.hero._height / 2 - _y, _root.hero._x - _x) * 180 / 3.141593;
if (this.dragon._currentframe == 3) {
if (xSpeed > 0) {
xSpeed -= 0.2;
}
if (xSpeed < 0) {
xSpeed += 0.2;
}
if (grav > 0) {
grav -= 0.2;
}
if (grav < 0) {
grav += 0.2;
}
} else {
if (xSpeed > 0) {
--xSpeed;
}
if (xSpeed < 0) {
++xSpeed;
}
if (grav > 0) {
--grav;
}
if (grav < 0) {
++grav;
}
}
if (this.dragon._currentframe < 3) {
if (_root.hero._x - _x > 0) {
_yscale = 100;
}
if (_root.hero._x - _x < 0) {
_yscale = -100;
}
if (this.dragon.mouth.hitTest(_root.hero.bound)) {
this.dragon.gotoAndStop(2);
}
_rotation = targetangle;
_x = _x + (Math.sin((targetangle + 90) * 3.141593 / 180) * dragonspeed + xSpeed);
_y = _y + (Math.sin(targetangle * 3.141593 / 180) * dragonspeed - grav);
}
if (this.dragon._currentframe == 3) {
this.gotoAndStop(1);
_rotation = _rotation + this.grav;
--grav;
_y = _y - grav;
}
if (life < 1 && this.dragon._currentframe < 3) {
this.dragon.gotoAndStop(3);
}
if (this.dragon._currentframe == 3) {
--this.grav;
for (;;) {
if (!(_root.ground.hitTest(this._x, this._y + 0, true) || _root.platform.hitTest(this._x, this._y + 0, true) || _root.crates.hitTest(this._x, this._y + 0, true))) break;
this.grav = 0;
--this._y;
}
if (_root.ground.hitTest(this._x + this.dragon._x, this._y + this.dragon._y + 5, true) || _root.platform.hitTest(this._x, this._y + 5, true) || _root.crates.hitTest(this._x, this._y + 5, true)) {
this._rotation = 0;
this._yscale = 100;
this.dragon.gotoAndStop(4);
}
}
}
}
}
movieClip 2076 {
}
movieClip 2078 {
frame 1 {
onEnterFrame = function () {
_x = _root.dragon._x;
_y = _root.dragon._y;
_root.hero.activated = false;
_root.hero.gotoAndStop(1);
};
_root.hero.activated = false;
}
frame 2 {
_root.hero.activated = false;
}
frame 3 {
_root.hero.activated = false;
}
frame 35 {
_root.vcam.target = _root.enemy1;
_root.vcam.targetxscale = 90;
_root.hero.activated = false;
}
frame 66 {
_root.enemy1.dragon.gotoAndStop(5);
}
frame 125 {
_root.vcam.target = _root.hero;
_root.vcam.targetxscale = 100;
}
frame 132 {
delete this.onEnterFrame;
}
frame 152 {
_root.hero.activated = true;
_root.enemy1.activated = true;
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
movieClip 2082 {
frame 1 {
stop();
_visible = false;
onEnterFrame = function () {
if (_root.hero.bound.hitTest(this) && this.activated == true && _root.hero.activated == true) {
_root.hero.activated = false;
if (_root.hero.onGround == true) {
_root.hero.gotoAndStop(1);
}
_visible = true;
delete this.onEnterFrame;
this.activated = false;
gotoAndPlay(2);
}
};
}
frame 2 {
if (_root.music_mute == false) {
_root.setmusicvolumeFunction(20);
}
}
frame 8 {
_root.vcam.target = _root.camtarget1;
_root.vcam.targetxscale = 80;
}
frame 48 {
_root.enemy1._x = _root.camtarget2._x;
_root.enemy1._y = _root.camtarget2._y;
}
frame 94 {
_root.vcam.target = _root.hero;
_root.vcam.targetxscale = 100;
}
frame 98 {
_root.hero.activated = true;
}
frame 110 {
if (_root.music_mute == false) {
_root.setmusicvolumeFunction(85);
}
stop();
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
instance of movieClip 2082 {
onClipEvent (load) {
this.activated = true;
}
}
instance of movieClip 1663 {
onClipEvent (load) {
var grav = 0;
var onGround = false;
frame = _root._currentframe;
var alive = true;
_root.weaponpickupArray.push(this);
this.gundisplay.gotoAndStop('rpg_7');
var currentweapon = 'rpg_7';
var weapontype = 'gun';
var ammo = 9999;
}
}
movieClip 2084 {
}
movieClip 2085 {
}
instance vcam of movieClip 1720 {
onClipEvent (load) {
var xSpeed = 0;
var ySpeed = 0;
var moveSpeed = 8;
var xadjust = 0;
var targetxscale = 100;
target = _root.hero;
}
}
movieClip 2087 {
instance of movieClip 52 {
onClipEvent (load) {
_xscale = 0;
}
onClipEvent (enterFrame) {
poo = (_root.hero.life / _root.hero.totallife) * 100;
if (_xscale < poo) {
_xscale = _xscale + 1;
_xscale = _xscale + 1;
}
if (_xscale > poo) {
_xscale = _xscale - 1;
_xscale = _xscale - 1;
}
if (_xscale > 100) {
_xscale = 100;
}
}
}
instance of movieClip 52 {
onClipEvent (enterFrame) {
poo = (_root.enemy1.life / _root.enemy1.totallife) * 100;
_xscale = poo;
if (poo < 1) {
_visible = false;
}
if (_xscale < 0) {
_xscale = 0;
}
if (_xscale > 100) {
_xscale = 100;
}
i;
}
}
}
frame 12 {
if (_root.cutscene3 != true) {
_root.gotoAndStop('cutscene3');
}
}
frame 13 {
enemynameArray = ['enemy1', 'enemy2', 'enemy3', 'enemy4'];
levelpoints = 0;
levelkills = 0;
shotsfired = 0;
destructionpoints = 0;
leveltotal = 0;
levelcivkills = 0;
_root.kwall = 0;
_root.kwallkillsArray = [-1, 10, 20];
_root.killwallxArray = [2411, 2411, 6575.5];
_root.killwallyArray = [52.1, 52.1, 475.4];
_root.civpanic = false;
_root.ene_limit = 900;
_root.stopmusicFunction();
_root.Music_unicorn.start(0, 99);
if (_root.music_mute == true) {
_root.Music_unicorn.setVolume(0);
}
if (_root.music_mute == true) {
_root.Music_unicorn.setVolume(85);
}
}
frame 14 {
_root.lvl4 = true;
stop();
_root.ground._visible = false;
_root.platform._visible = false;
_root.u_limit._visible = false;
_root.d_limit._visible = false;
_root.r_limit._visible = false;
_root.l_limit._visible = false;
onMouseDown = function () {
msdown = true;
};
onMouseUp = function () {
msdown = false;
};
onEnterFrame = function () {
if (_root.minecart.wait > 0) {
--_root.minecart.wait;
}
if (_root.minecart.wait == 0 && Key.isDown(32) && _root.hero.hitTest(_root.minecart) && _root.minecart._currentframe == 1) {
_root.hero._visible = false;
_root.hero.controllable = false;
_root.minecart.gotoAndStop(3);
_root.minecart.run_mc.gotoAndPlay(16);
_root.minecart.life = _root.hero.life;
_root.minecart.wait = 30;
_root.minecart.recoil = _root.hero.recoil;
_root.controlreminder.swapDepths(_root.getNextHighestDepth());
_root.controlreminder.removeMovieClip();
}
if (_root.minecart._currentframe > 1) {
_root.vcam.targetxscale = 120;
_root.vcam._x = _root.vcam._x + (_root.minecart._x - _root.minecart._x) / 2 - _root.vcam.xadjust;
_root.reset_mc._x = _root.vcam._x + (_root.minecart._x - _root.minecart._x) / 2 - _root.vcam.xadjust;
_root.weaponunlocks._x = _root.vcam._x + (_root.minecart._x - _root.minecart._x) / 2 - _root.vcam.xadjust;
_root.minecart.ammo = 1.0e+026;
if (_root.hero.activated == true && _root.hero.life > 0) {
_root.unicornFunction(_root.minecart, _root.ground);
}
if (_root.hero.life < 1) {
_root.minecart.gotoAndStop(1);
}
_root.hero._x = _root.minecart._x;
_root.hero._y = _root.minecart._y;
_root.hero._xscale = _root.minecart._xscale * -1;
if (Key.isDown(32) && _root.minecart.wait == 0 && _root.minecart.onGround == true) {
_root.hero._visible = true;
_root.hero.controllable = true;
_root.minecart.gotoAndStop(1);
_root.hero.grav = 15;
_root.hero.gotoAndStop('jump');
_root.minecart.wait = 30;
_root.vcam.targetxscale = 100;
}
}
_root.bd1._x = _root.minecart._x + _root.minecart.bound._x - 25 * Math.sin((_root.minecart._rotation + 90) * 0.0174533) + 5 * Math.sin((_root.minecart._rotation + 180) * 0.0174533);
_root.bd1._y = _root.minecart._y + _root.minecart.bound._y + 25 * Math.cos((_root.minecart._rotation + 90) * 0.0174533) - 5 * Math.cos((_root.minecart._rotation + 180) * 0.0174533);
_root.fd1._x = _root.minecart._x + _root.minecart.bound._x + 25 * Math.sin((_root.minecart._rotation + 90) * 0.0174533) + 5 * Math.sin((_root.minecart._rotation + 180) * 0.0174533);
_root.fd1._y = _root.minecart._y + _root.minecart.bound._y - 25 * Math.cos((_root.minecart._rotation + 90) * 0.0174533) - 5 * Math.cos((_root.minecart._rotation + 180) * 0.0174533);
_root.lwall._x = _root.minecart._x + _root.minecart.bound._x - 40 * Math.sin((_root.minecart._rotation + 90) * 0.0174533) - 65 * Math.sin((_root.minecart._rotation + 180) * 0.0174533);
_root.lwall._y = _root.minecart._y + _root.minecart.bound._y + 40 * Math.cos((_root.minecart._rotation + 90) * 0.0174533) + 65 * Math.cos((_root.minecart._rotation + 180) * 0.0174533);
_root.rwall._x = _root.minecart._x + _root.minecart.bound._x + 40 * Math.sin((_root.minecart._rotation + 90) * 0.0174533) - 65 * Math.sin((_root.minecart._rotation + 180) * 0.0174533);
_root.rwall._y = _root.minecart._y + _root.minecart.bound._y - 40 * Math.cos((_root.minecart._rotation + 90) * 0.0174533) + 65 * Math.cos((_root.minecart._rotation + 180) * 0.0174533);
_root.dward._x = _root.minecart._x + _root.minecart.bound._x - 1 * Math.sin((_root.minecart._rotation + 90) * 0.0174533) - -7 * Math.sin((_root.minecart._rotation + 180) * 0.0174533);
_root.dward._y = _root.minecart._y + _root.minecart.bound._y + 1 * Math.cos((_root.minecart._rotation + 90) * 0.0174533) + -7 * Math.cos((_root.minecart._rotation + 180) * 0.0174533);
_root.cratesFunction(_root.crates.c1);
_root.cratesFunction(_root.crates.c2);
_root.cratesFunction(_root.crates.c3);
_root.cratesFunction(_root.crates.c4);
_root.cratesFunction(_root.crates.c5);
_root.cratesFunction(_root.crates.c6);
_root.cratesFunction(_root.crates.c7);
_root.cratesFunction(_root.crates.c8);
_root.cratesFunction(_root.crates.c9);
_root.cratesFunction(_root.crates.c10);
_root.cratesFunction(_root.crates.c11);
_root.cratesFunction(_root.crates.c12);
_root.vcamFunction(_root.vcam);
_root.vcam.camControl();
_root.musicFunction();
_root.weaponunlocking();
_root.medalsunlocking();
if (_root.hero.activated == true && _root.hero.controllable == true) {
_root.heroWeapons(_root.hero);
_root.heroPhysics(_root.hero);
_root.heroMovement(_root.hero);
_root.heroJumping(_root.hero);
_root.heroShot(_root.hero);
}
if (_root.hero.activated == true) {
if (_root.bulletArray.length > 0) {
i = 0;
while (i < _root.bulletArray.length) {
_root.bulletFunction(_root.bulletArray[i]);
if (_root.bulletArray[i].alive == undefined) {
_root.bulletArray.splice(i, 1);
}
++i;
}
}
if (_root.enebulletArray.length > 0) {
i = 0;
while (i < _root.enebulletArray.length) {
_root.bulletFunction(_root.enebulletArray[i]);
if (_root.enebulletArray[i].alive == undefined) {
_root.enebulletArray.splice(i, 1);
}
++i;
}
}
}
i = 0;
while (i < _root.particleArray.length) {
_root.particlesFunction(_root.particleArray[i]);
if (_root.particleArray[i].onGround != true) {
_root.bouncePhysics(_root.particleArray[i], 3);
} else {
_root.onGroundPhysics(_root.particleArray[i]);
}
if (_root.particleArray[i].alive == undefined) {
_root.particleArray.splice(i, 1);
}
++i;
}
if (_root.scoretextArray.length > 0) {
i = 0;
while (i < _root.scoretextArray.length) {
_root.scoretextFunction(_root.scoretextArray[i]);
if (_root.scoretextArray[i].alive == undefined) {
_root.scoretextArray.splice(i, 1);
}
++i;
}
}
i = 0;
while (i < _root.starsArray.length) {
if (_root.starsArray[i]._x - _root.vcam._x < 350 && _root.starsArray[i]._x - _root.vcam._x > -350) {
if (_root.starsArray[i]._currentframe == 2) {
_root.starsArray[i].gotoAndStop(3);
}
if (_root.starsArray[i]._currentframe == 3) {
_root.starsFunction(_root.starsArray[i], i);
}
} else {
if (_root.starsArray[i]._currentframe == 3) {
_root.starsArray[i].gotoAndStop(2);
}
}
++i;
}
i = 0;
while (i < _root.weaponpickupArray.length) {
if (_root.weaponpickupArray[i].onGround != true) {
_root.bouncePhysics(_root.weaponpickupArray[i], 5);
}
_root.weaponpickupFunction(_root.weaponpickupArray[i]);
if (_root.weaponpickupArray[i].alive == undefined) {
_root.weaponpickupArray.splice(i, 1);
}
++i;
}
_root.killwallFunction();
_root.destructablesFunction(_root.d1);
_root.destructablesFunction(_root.d2);
_root.civFunction(_root.c1);
_root.civFunction(_root.c2);
_root.civFunction(_root.c3);
_root.civFunction(_root.c4);
_root.civFunction(_root.c5);
_root.spikesFunction(_root.spikes1);
_root.spikesFunction(_root.spikes2);
_root.spikesFunction(_root.spikes3);
_root.spikesFunction(_root.spikes4);
chance = random(45);
if (chance == 1 && _root.enemynameArray.length > 0 && _root.hero.activated) {
newEne = _root.ene.duplicateMovieClip(_root.enemynameArray[0], _root.getNextHighestDepth());
_root.enemynameArray.splice(0, 1);
side = random(2);
if (side == 1) {
newEne._x = _root.hero._x - 300;
} else {
newEne._x = _root.hero._x + 300;
}
newEne._y = _root.hero._y;
}
_root.enemyBundle(_root.enemy1);
_root.enemyBundle(_root.enemy2);
_root.enemyBundle(_root.enemy3);
_root.enemyBundle(_root.enemy4);
_root.hero.player_headchoice = 3;
};
}
movieClip 2088 {
}
movieClip 2089 {
}
movieClip 2093 {
}
movieClip 2094 {
}
movieClip 2095 {
}
movieClip 2097 {
}
movieClip 2099 {
}
movieClip 2103 {
}
movieClip 2105 {
}
movieClip 2106 {
frame 1 {
if (Math.abs(_parent.xSpeed) > 2) {
play();
} else {
gotoAndPlay(16);
}
}
frame 20 {
stop();
}
}
movieClip 2107 {
frame 21 {
stop();
}
}
movieClip 2108 {
}
instance minecart of movieClip 2108 {
onClipEvent (load) {
stop();
var xSpeed = 0;
var grav = 0;
var addspeed = 0;
var activated = false;
var wait = 0;
}
}
movieClip 2110 {
}
instance bd1 of movieClip 2110 {
onClipEvent (load) {
grav = 1;
gspeed = 0;
_visible = false;
_root.fd1._visible = false;
_root.dward._visible = false;
_root.lwall._visible = false;
_root.rwall._visible = false;
}
onClipEvent (enterFrame) {
_y = _y + gspeed;
if (_root.ground.hitTest(_x, _y, true)) {
while (_root.ground.hitTest(_x, _y, true)) {
++_root.minecart._rotation;
grav = 1;
_y = _y - 1 * Math.cos(_root.minecart._rotation * 0.0174533);
_x = _x + 1 * Math.sin(_root.minecart._rotation * 0.0174533);
}
gspeed = 0;
_root.grounded = true;
}
gspeed += grav;
}
}
instance fd1 of movieClip 2110 {
onClipEvent (load) {
grav = 1;
gspeed = 0;
}
onClipEvent (enterFrame) {
_y = _y + gspeed;
if (_root.ground.hitTest(_x, _y, true)) {
while (_root.ground.hitTest(_x, _y, true)) {
--_root.minecart._rotation;
grav = 1;
_y = _y - 1 * Math.cos(_root.minecart._rotation * 0.0174533);
_x = _x + 1 * Math.sin(_root.minecart._rotation * 0.0174533);
}
gspeed = 0;
_root.grounded = true;
}
gspeed += grav;
}
}
instance hero of movieClip 891 {
onClipEvent (load) {
var life = 100;
totallife = 100;
_root.hero.gotoAndStop('death');
_root.hero.death.gotoAndPlay('warpspawn');
speechtalk = 'ive got to rescue thane. he should be in an old gold mine guarded by a giant cowboy. Ill take this unicorn. yeehaw!';
grav = 0;
xSpeed = 0;
ySpeed = 0;
controllable = true;
moveSpeed = 5;
right = 68;
left = 65;
var up = 87;
var jump = 87;
var jumpheight = 12;
var barricadecooldown = 0;
var barricadetotal = 0;
_root.hero.player_headchoice = _root.player_headchoice;
var doubleJumpThres = 10;
var doubleJumpThres1 = 10;
var jumpFromAttack = 0;
var jumpFromAttackOrig = 16;
var camSpec = 10;
var jumpButtonOn = false;
var weapontype = 'gun';
var currentweapon = 'revolver';
var newweapontimer = 0;
var ammo = 300;
var recoil = 15;
var onGround = false;
var chainguncharge = 0;
var frame = _root._currentframe;
}
}
instance flashOrig of movieClip 905 {
onClipEvent (load) {
if (_name == 'flashOrig') {
_visible = false;
}
}
}
instance bulletOrig of movieClip 936 {
onClipEvent (load) {
if (_name != 'bulletOrig') {
xSpeed = 0;
ySpeed = 0;
alive = true;
_root.bulletArray.push(this);
} else {
_visible = false;
}
}
}
instance ene of movieClip 1627 {
onClipEvent (load) {
if (_name == 'ene') {
} else {
var life = 8;
var totallife = 8;
var jump = -15;
var falling = true;
var lifeOrig = 8;
var grav = 0;
var xSpeed = 0;
var ySpeed = 0;
var moveSpeed = 1.5;
var xdist = 0;
var eyeSight = 1450;
var onGround = false;
var headchoice = random(5) + 12;
var whatweapon = random(2);
if (whatweapon == 1) {
var currentweapon = 'm16';
}
if (whatweapon == 0) {
var currentweapon = 'shotgun';
}
gotoAndStop(9);
}
}
}
instance enebulletOrig of movieClip 936 {
onClipEvent (load) {
if (_name != 'enebulletOrig') {
xSpeed = 0;
ySpeed = 0;
alive = true;
_root.enebulletArray.push(this);
} else {
_visible = false;
}
}
}
instance gunpickupOrig of movieClip 1663 {
onClipEvent (load) {
if (_name == 'gunpickupOrig') {
_visible = false;
} else {
var grav = 0;
var onGround = false;
frame = _root._currentframe;
var alive = true;
_root.weaponpickupArray.push(this);
}
}
}
instance gutsOrig of movieClip 1703 {
onClipEvent (load) {
if (_name == 'gutsOrig') {
_visible = false;
} else {
var alive = true;
var grav = 0;
var onGround = false;
var remove = 45;
_root.particleArray.push(this);
}
}
}
instance vcam of movieClip 1720 {
onClipEvent (load) {
var xSpeed = 0;
var ySpeed = 0;
var moveSpeed = 8;
var xadjust = 0;
var targetxscale = 100;
target = _root.hero;
}
}
frame 16 {
enemynameArray = ['enemy1', 'enemy2', 'enemy3', 'enemy4'];
levelpoints = 0;
levelkills = 0;
shotsfired = 0;
destructionpoints = 0;
leveltotal = 0;
levelcivkills = 0;
_root.kwall = 0;
_root.kwallkillsArray = [-1, 10, 20];
_root.killwallxArray = [1507.4, 1507.4, 3291.9];
_root.killwallyArray = [-75.45, -75.45, 800.8];
_root.civpanic = false;
_root.ene_limit = 450;
_root.stopmusicFunction();
randomMusic = random(_root.totalsongs);
_root['Music' + randomMusic].start(0, 99);
if (_root.music_mute == true) {
_root['Music' + randomMusic].setVolume(0);
}
if (_root.music_mute == false) {
_root['Music' + randomMusic].setVolume(85);
}
}
frame 17 {
_root.lvl5 = true;
_root.bg1.cacheAsBitmap = true;
stop();
_root.ground._visible = false;
_root.platform._visible = false;
_root.u_limit._visible = false;
_root.d_limit._visible = false;
_root.r_limit._visible = false;
_root.l_limit._visible = false;
onMouseDown = function () {
msdown = true;
};
onMouseUp = function () {
msdown = false;
};
onEnterFrame = function () {
if (_root.minecart.wait > 0) {
--_root.minecart.wait;
}
if (_root.minecart.wait == 0 && Key.isDown(32) && _root.hero.hitTest(_root.minecart) && _root.minecart._currentframe == 1) {
_root.hero._visible = false;
_root.hero.controllable = false;
_root.minecart.gotoAndStop(2);
_root.minecart.wait = 30;
_root.minecart.recoil = _root.hero.recoil;
_root.controlreminder.swapDepths(_root.getNextHighestDepth());
_root.controlreminder.removeMovieClip();
}
if (_root.minecart._currentframe == 2) {
_root.minecart.ammo = 1.0e+026;
_root.minecartFunction(_root.minecart, _root.ground);
_root.hero._x = _root.minecart._x;
_root.hero._y = _root.minecart._y;
_root.hero._xscale = _root.minecart._xscale;
if (Key.isDown(32) && _root.minecart.wait == 0) {
_root.hero._visible = true;
_root.hero.controllable = true;
_root.minecart.gotoAndStop(1);
_root.hero.grav = 15;
_root.hero.gotoAndStop('jump');
_root.minecart.wait = 30;
}
}
_root.bd1._x = _root.minecart._x + _root.minecart.bound._x - 25 * Math.sin((_root.minecart._rotation + 90) * 0.0174533) + 5 * Math.sin((_root.minecart._rotation + 180) * 0.0174533);
_root.bd1._y = _root.minecart._y + _root.minecart.bound._y + 25 * Math.cos((_root.minecart._rotation + 90) * 0.0174533) - 5 * Math.cos((_root.minecart._rotation + 180) * 0.0174533);
_root.fd1._x = _root.minecart._x + _root.minecart.bound._x + 25 * Math.sin((_root.minecart._rotation + 90) * 0.0174533) + 5 * Math.sin((_root.minecart._rotation + 180) * 0.0174533);
_root.fd1._y = _root.minecart._y + _root.minecart.bound._y - 25 * Math.cos((_root.minecart._rotation + 90) * 0.0174533) - 5 * Math.cos((_root.minecart._rotation + 180) * 0.0174533);
_root.lwall._x = _root.minecart._x + _root.minecart.bound._x - 45 * Math.sin((_root.minecart._rotation + 90) * 0.0174533) - 60 * Math.sin((_root.minecart._rotation + 180) * 0.0174533);
_root.lwall._y = _root.minecart._y + _root.minecart.bound._y + 45 * Math.cos((_root.minecart._rotation + 90) * 0.0174533) + 60 * Math.cos((_root.minecart._rotation + 180) * 0.0174533);
_root.rwall._x = _root.minecart._x + _root.minecart.bound._x + 45 * Math.sin((_root.minecart._rotation + 90) * 0.0174533) - 60 * Math.sin((_root.minecart._rotation + 180) * 0.0174533);
_root.rwall._y = _root.minecart._y + _root.minecart.bound._y - 45 * Math.cos((_root.minecart._rotation + 90) * 0.0174533) + 60 * Math.cos((_root.minecart._rotation + 180) * 0.0174533);
if (_root.hero.bound.hitTest(_root.finishline1) && _root.hero.activated == true && _root.hud.showscore._currentframe == 1) {
_root.hud.showscore.gotoAndPlay('win');
_root.hud.swapDepths(_root.getNextHighestDepth());
_root.hero.activated = false;
_root.hero.life = 0;
_root.hero.controllable = false;
}
_root.vcamFunction(_root.vcam);
_root.vcam.camControl();
_root.musicFunction();
_root.weaponunlocking();
_root.medalsunlocking();
if (_root.hero.activated == true && _root.hero.controllable == true) {
_root.heroWeapons(_root.hero);
_root.heroPhysics(_root.hero);
_root.heroMovement(_root.hero);
_root.heroJumping(_root.hero);
_root.heroShot(_root.hero);
}
if (_root.hero.activated == true) {
if (_root.bulletArray.length > 0) {
i = 0;
while (i < _root.bulletArray.length) {
_root.bulletFunction(_root.bulletArray[i]);
if (_root.bulletArray[i].alive == undefined) {
_root.bulletArray.splice(i, 1);
}
++i;
}
}
if (_root.enebulletArray.length > 0) {
i = 0;
while (i < _root.enebulletArray.length) {
_root.bulletFunction(_root.enebulletArray[i]);
if (_root.enebulletArray[i].alive == undefined) {
_root.enebulletArray.splice(i, 1);
}
++i;
}
}
}
i = 0;
while (i < _root.particleArray.length) {
_root.particlesFunction(_root.particleArray[i]);
if (_root.particleArray[i].onGround != true) {
_root.bouncePhysics(_root.particleArray[i], 3);
} else {
_root.onGroundPhysics(_root.particleArray[i]);
}
if (_root.particleArray[i].alive == undefined) {
_root.particleArray.splice(i, 1);
}
++i;
}
if (_root.scoretextArray.length > 0) {
i = 0;
while (i < _root.scoretextArray.length) {
_root.scoretextFunction(_root.scoretextArray[i]);
if (_root.scoretextArray[i].alive == undefined) {
_root.scoretextArray.splice(i, 1);
}
++i;
}
}
i = 0;
while (i < _root.starsArray.length) {
if (_root.starsArray[i]._x - _root.vcam._x < 350 && _root.starsArray[i]._x - _root.vcam._x > -350) {
if (_root.starsArray[i]._currentframe == 2) {
_root.starsArray[i].gotoAndStop(3);
}
if (_root.starsArray[i]._currentframe == 3) {
_root.starsFunction(_root.starsArray[i], i);
}
} else {
if (_root.starsArray[i]._currentframe == 3) {
_root.starsArray[i].gotoAndStop(2);
}
}
++i;
}
i = 0;
while (i < _root.weaponpickupArray.length) {
if (_root.weaponpickupArray[i].onGround != true) {
_root.bouncePhysics(_root.weaponpickupArray[i], 5);
}
_root.weaponpickupFunction(_root.weaponpickupArray[i]);
if (_root.weaponpickupArray[i].alive == undefined) {
_root.weaponpickupArray.splice(i, 1);
}
++i;
}
_root.killwallFunction();
_root.destructablesFunction(_root.d1);
_root.destructablesFunction(_root.d2);
_root.civFunction(_root.c1);
_root.civFunction(_root.c2);
_root.civFunction(_root.c3);
_root.civFunction(_root.c4);
_root.civFunction(_root.c5);
_root.spikesFunction(_root.spikes1);
_root.spikesFunction(_root.spikes2);
_root.spikesFunction(_root.spikes3);
_root.spikesFunction(_root.spikes4);
chance = random(45);
if (chance == 1 && _root.enemynameArray.length > 0 && _root.hero.activated) {
newEne = _root.ene.duplicateMovieClip(_root.enemynameArray[0], _root.getNextHighestDepth());
_root.enemynameArray.splice(0, 1);
if (_root.hero._x > -70 && _root.hero._x < 700 && _root.hero._y > -225 && _root.hero._y < 442) {
side = random(3);
newEne._x = _root['spawn' + side]._x;
newEne._y = _root['spawn' + side]._y;
} else {
side = random(2);
if (side == 1) {
newEne._x = _root.hero._x - 300;
} else {
newEne._x = _root.hero._x + 300;
}
newEne._y = _root.hero._y;
}
}
_root.enemyBundle(_root.enemy1);
_root.enemyBundle(_root.enemy2);
_root.enemyBundle(_root.enemy3);
_root.enemyBundle(_root.enemy4);
_root.hero.player_headchoice = 3;
};
}
movieClip 2113 {
}
movieClip 2118 {
}
movieClip 2120 {
}
movieClip 2167 {
frame 1 {
life = 6;
totallife = 6;
this.bound._visible = false;
stop();
}
frame 23 {
gotoAndPlay('panic');
}
frame 24 {
_root.civpanic = true;
}
frame 110 {
_root.destructionpoints += 50;
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
movieClip 2211 {
frame 1 {
life = 6;
totallife = 6;
this.bound._visible = false;
stop();
}
frame 23 {
gotoAndPlay('panic');
}
frame 24 {
_root.civpanic = true;
}
frame 114 {
_root.destructionpoints += 50;
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
movieClip 2241 {
frame 1 {
life = 6;
totallife = 6;
this.bound._visible = false;
stop();
}
frame 13 {
gotoAndPlay('panic');
}
frame 24 {
_root.civpanic = true;
}
frame 94 {
_root.destructionpoints += 50;
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
movieClip 2244 {
}
movieClip 2246 {
}
movieClip 2248 {
}
movieClip 2249 {
}
instance minecart of movieClip 2249 {
onClipEvent (load) {
stop();
var xSpeed = 0;
var grav = 0;
var addspeed = 0;
var activated = false;
var _xscale = -100;
var wait = 0;
}
}
instance bd1 of movieClip 2110 {
onClipEvent (load) {
grav = 1;
gspeed = 0;
_visible = false;
_root.fd1._visible = false;
_root.dward._visible = false;
_root.lwall._visible = false;
_root.rwall._visible = false;
}
onClipEvent (enterFrame) {
_y = _y + gspeed;
if (_root.ground.hitTest(_x, _y, true)) {
while (_root.ground.hitTest(_x, _y, true)) {
++_root.minecart._rotation;
grav = 1;
_y = _y - 1 * Math.cos(_root.minecart._rotation * 0.0174533);
_x = _x + 1 * Math.sin(_root.minecart._rotation * 0.0174533);
}
gspeed = 0;
_root.grounded = true;
}
gspeed += grav;
}
}
instance fd1 of movieClip 2110 {
onClipEvent (load) {
grav = 1;
gspeed = 0;
}
onClipEvent (enterFrame) {
_y = _y + gspeed;
if (_root.ground.hitTest(_x, _y, true)) {
while (_root.ground.hitTest(_x, _y, true)) {
--_root.minecart._rotation;
grav = 1;
_y = _y - 1 * Math.cos(_root.minecart._rotation * 0.0174533);
_x = _x + 1 * Math.sin(_root.minecart._rotation * 0.0174533);
}
gspeed = 0;
_root.grounded = true;
}
gspeed += grav;
}
}
instance camtarget2 of movieClip 108 {
onClipEvent (load) {
this.activated = true;
}
onClipEvent (enterFrame) {
if (this.activated == true && this.hitTest(_root.hero.bound)) {
_root.r_limit._x = -360.05;
activated = false;
}
}
}
instance hero of movieClip 891 {
onClipEvent (load) {
var life = 100;
totallife = 100;
activated = true;
grav = 0;
xSpeed = 0;
ySpeed = 0;
controllable = true;
moveSpeed = 5;
right = 68;
left = 65;
var up = 87;
var jump = 87;
var jumpheight = 12;
var barricadecooldown = 0;
var barricadetotal = 0;
_root.hero.player_headchoice = 3;
var doubleJumpThres = 10;
var doubleJumpThres1 = 10;
var jumpFromAttack = 0;
var jumpFromAttackOrig = 16;
var camSpec = 10;
var jumpButtonOn = false;
var weapontype = 'gun';
var currentweapon = 'crossbow';
var newweapontimer = 0;
var ammo = 300;
var recoil = 15;
var onGround = false;
var chainguncharge = 0;
var frame = _root._currentframe;
}
}
instance flashOrig of movieClip 905 {
onClipEvent (load) {
if (_name == 'flashOrig') {
_visible = false;
}
}
}
instance bulletOrig of movieClip 936 {
onClipEvent (load) {
if (_name != 'bulletOrig') {
xSpeed = 0;
ySpeed = 0;
alive = true;
_root.bulletArray.push(this);
} else {
_visible = false;
}
}
}
instance ene of movieClip 1627 {
onClipEvent (load) {
if (_name == 'ene') {
} else {
var life = 8;
var totallife = 8;
var jump = -15;
var falling = true;
var lifeOrig = 8;
var grav = 0;
var xSpeed = 0;
var ySpeed = 0;
var moveSpeed = 1.5;
var xdist = 0;
var eyeSight = 1450;
var onGround = false;
var headchoice = random(5) + 12;
var whatweapon = random(2);
if (whatweapon == 1) {
var currentweapon = 'm16';
}
if (whatweapon == 0) {
var currentweapon = 'shotgun';
}
gotoAndStop(9);
}
}
}
instance enebulletOrig of movieClip 936 {
onClipEvent (load) {
if (_name != 'enebulletOrig') {
xSpeed = 0;
ySpeed = 0;
alive = true;
_root.enebulletArray.push(this);
} else {
_visible = false;
}
}
}
instance gunpickupOrig of movieClip 1663 {
onClipEvent (load) {
if (_name == 'gunpickupOrig') {
_visible = false;
} else {
var grav = 0;
var onGround = false;
frame = _root._currentframe;
var alive = true;
_root.weaponpickupArray.push(this);
}
}
}
instance gutsOrig of movieClip 1703 {
onClipEvent (load) {
if (_name == 'gutsOrig') {
_visible = false;
} else {
var alive = true;
var grav = 0;
var onGround = false;
var remove = 45;
_root.particleArray.push(this);
}
}
}
movieClip 2250 {
}
instance camtarget1 of movieClip 108 {
onClipEvent (load) {
this.activated = true;
}
onClipEvent (enterFrame) {
if (this.activated == true && this.hitTest(_root.hero.bound)) {
_root.l_limit._x = -774.15;
activated = false;
_root.controlreminder._visible = true;
}
}
}
instance camtarget3 of movieClip 108 {
onClipEvent (load) {
this.activated = true;
}
onClipEvent (enterFrame) {
if (this.activated == true && this.hitTest(_root.hero.bound)) {
if (_root.kwall == 2) {
_root.r_limit._x = 709;
} else {
_root.r_limit._x = 1125.7;
}
activated = false;
}
}
}
instance controlreminder of movieClip 2099 {
onClipEvent (load) {
_visible = false;
}
}
instance vcam of movieClip 1720 {
onClipEvent (load) {
var xSpeed = 0;
var ySpeed = 0;
var moveSpeed = 8;
var xadjust = 0;
var targetxscale = 100;
target = _root.hero;
}
}
frame 19 {
enemynameArray = ['enemy1', 'enemy2', 'enemy3', 'enemy4'];
levelpoints = 0;
levelkills = 0;
shotsfired = 0;
destructionpoints = 0;
leveltotal = 0;
levelcivkills = 0;
_root.civpanic = false;
_root.ene_limit = 450;
_root.stopmusicFunction();
_root.boss_music3.start(0, 99);
if (_root.music_mute == false) {
_root.boss_music3.setVolume(85);
}
if (_root.music_mute == true) {
_root.boss_music3.setVolume(0);
}
}
frame 20 {
_root.lvl6 = true;
stop();
_root.ground._visible = false;
_root.u_limit._visible = false;
_root.d_limit._visible = false;
_root.r_limit._visible = false;
_root.l_limit._visible = false;
onMouseDown = function () {
msdown = true;
};
onMouseUp = function () {
msdown = false;
};
onEnterFrame = function () {
_root.gettingshotSmart(_root.enemy1, 1);
_root.enemy1._x = 252.75;
_root.enemy1._y = 343.3;
_root.vcamFunction(_root.vcam);
_root.vcam.camControl();
_root.musicFunction();
_root.medalsunlocking();
if (_root.hero.activated == true) {
_root.heroWeapons(_root.hero);
_root.heroPhysics(_root.hero);
_root.heroMovement(_root.hero);
_root.heroJumping(_root.hero);
_root.heroShot(_root.hero);
}
if (_root.hero.activated == true) {
if (_root.bulletArray.length > 0) {
i = 0;
while (i < _root.bulletArray.length) {
_root.bulletFunction(_root.bulletArray[i]);
if (_root.bulletArray[i].alive == undefined) {
_root.bulletArray.splice(i, 1);
}
++i;
}
}
if (_root.enebulletArray.length > 0) {
i = 0;
while (i < _root.enebulletArray.length) {
_root.bulletFunction(_root.enebulletArray[i]);
if (_root.enebulletArray[i].alive == undefined) {
_root.enebulletArray.splice(i, 1);
}
++i;
}
}
}
i = 0;
while (i < _root.particleArray.length) {
_root.particlesFunction(_root.particleArray[i]);
if (_root.particleArray[i].onGround != true) {
_root.bouncePhysics(_root.particleArray[i], 3);
} else {
_root.onGroundPhysics(_root.particleArray[i]);
}
if (_root.particleArray[i].alive == undefined) {
_root.particleArray.splice(i, 1);
}
++i;
}
if (_root.scoretextArray.length > 0) {
i = 0;
while (i < _root.scoretextArray.length) {
_root.scoretextFunction(_root.scoretextArray[i]);
if (_root.scoretextArray[i].alive == undefined) {
_root.scoretextArray.splice(i, 1);
}
++i;
}
}
i = 0;
while (i < _root.starsArray.length) {
if (_root.starsArray[i]._x - _root.vcam._x < 350 && _root.starsArray[i]._x - _root.vcam._x > -350) {
if (_root.starsArray[i]._currentframe == 2) {
_root.starsArray[i].gotoAndStop(3);
}
if (_root.starsArray[i]._currentframe == 3) {
_root.starsFunction(_root.starsArray[i], i);
}
} else {
if (_root.starsArray[i]._currentframe == 3) {
_root.starsArray[i].gotoAndStop(2);
}
}
++i;
}
i = 0;
while (i < _root.weaponpickupArray.length) {
if (_root.weaponpickupArray[i].onGround != true) {
_root.bouncePhysics(_root.weaponpickupArray[i], 5);
}
_root.weaponpickupFunction(_root.weaponpickupArray[i]);
if (_root.weaponpickupArray[i].alive == undefined) {
_root.weaponpickupArray.splice(i, 1);
}
++i;
}
_root.destructablesFunction(_root.d1);
_root.destructablesFunction(_root.d2);
_root.civFunction(_root.c1);
_root.civFunction(_root.c2);
_root.civFunction(_root.c3);
_root.acidFunction(_root.acid1);
_root.hero.player_headchoice = 3;
_root.hero.weapontype = 'none';
_root.hero.currentweapon = 'none';
};
}
movieClip 2257 {
}
movieClip 2263 {
frame 14 {
stop();
}
}
movieClip 2264 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
instance target4 of movieClip 2264 {
onClipEvent (enterFrame) {
if (_root.enebulletArray.length > 0 && this._currentframe != 5) {
i = 0;
while (i < _root.enebulletArray.length) {
if (this.bound.hitTest(_root.enebulletArray[i])) {
this._currentframe += 1;
this.gotoAndStop(this._currentframe);
newBlood = _root.bloodOrig.duplicateMovieClip('newBlood' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newBlood._x = _root.enebulletArray[i]._x;
newBlood._y = _root.enebulletArray[i]._y;
newBlood._rotation = _root.enebulletArray[i]._rotation;
newBlood.gotoAndStop(2);
_root.enebulletArray[i].removeMovieClip();
newGore = _root.gutsOrig.duplicateMovieClip('newGore' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newGore._x = this._x;
newGore._y = this._y;
newGore.gotoAndStop(1);
newGore.ySpeed = 4 + random(8);
newGore.xSpeed = 5 + (random(2) - random(2));
newGore = _root.gutsOrig.duplicateMovieClip('newGore' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newGore._x = this._x;
newGore._y = this._y;
newGore.gotoAndStop(2);
newGore.ySpeed = 4 + random(8);
newGore.xSpeed = 5 + (random(2) - random(2));
}
++i;
}
}
}
}
instance target2 of movieClip 2264 {
onClipEvent (enterFrame) {
if (_root.enebulletArray.length > 0 && this._currentframe != 5) {
i = 0;
while (i < _root.enebulletArray.length) {
if (this.bound.hitTest(_root.enebulletArray[i])) {
this._currentframe += 1;
this.gotoAndStop(this._currentframe);
newBlood = _root.bloodOrig.duplicateMovieClip('newBlood' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newBlood._x = _root.enebulletArray[i]._x;
newBlood._y = _root.enebulletArray[i]._y;
newBlood._rotation = _root.enebulletArray[i]._rotation;
newBlood.gotoAndStop(2);
_root.enebulletArray[i].removeMovieClip();
newGore = _root.gutsOrig.duplicateMovieClip('newGore' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newGore._x = this._x;
newGore._y = this._y;
newGore.gotoAndStop(1);
newGore.ySpeed = 4 + random(8);
newGore.xSpeed = 5 + (random(2) - random(2));
newGore = _root.gutsOrig.duplicateMovieClip('newGore' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newGore._x = this._x;
newGore._y = this._y;
newGore.gotoAndStop(2);
newGore.ySpeed = 4 + random(8);
newGore.xSpeed = 5 + (random(2) - random(2));
}
++i;
}
}
}
}
instance target3 of movieClip 2264 {
onClipEvent (enterFrame) {
if (_root.enebulletArray.length > 0 && this._currentframe != 5) {
i = 0;
while (i < _root.enebulletArray.length) {
if (this.bound.hitTest(_root.enebulletArray[i])) {
this._currentframe += 1;
this.gotoAndStop(this._currentframe);
newBlood = _root.bloodOrig.duplicateMovieClip('newBlood' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newBlood._x = _root.enebulletArray[i]._x;
newBlood._y = _root.enebulletArray[i]._y;
newBlood._rotation = _root.enebulletArray[i]._rotation;
newBlood.gotoAndStop(2);
_root.enebulletArray[i].removeMovieClip();
newGore = _root.gutsOrig.duplicateMovieClip('newGore' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newGore._x = this._x;
newGore._y = this._y;
newGore.gotoAndStop(1);
newGore.ySpeed = 4 + random(8);
newGore.xSpeed = 5 + (random(2) - random(2));
newGore = _root.gutsOrig.duplicateMovieClip('newGore' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newGore._x = this._x;
newGore._y = this._y;
newGore.gotoAndStop(2);
newGore.ySpeed = 4 + random(8);
newGore.xSpeed = 5 + (random(2) - random(2));
}
++i;
}
}
}
}
instance target1 of movieClip 2264 {
onClipEvent (enterFrame) {
if (_root.enebulletArray.length > 0 && this._currentframe != 5) {
i = 0;
while (i < _root.enebulletArray.length) {
if (this.bound.hitTest(_root.enebulletArray[i])) {
this._currentframe += 1;
this.gotoAndStop(this._currentframe);
newBlood = _root.bloodOrig.duplicateMovieClip('newBlood' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newBlood._x = _root.enebulletArray[i]._x;
newBlood._y = _root.enebulletArray[i]._y;
newBlood._rotation = _root.enebulletArray[i]._rotation;
newBlood.gotoAndStop(2);
_root.enebulletArray[i].removeMovieClip();
newGore = _root.gutsOrig.duplicateMovieClip('newGore' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newGore._x = this._x;
newGore._y = this._y;
newGore.gotoAndStop(1);
newGore.ySpeed = 4 + random(8);
newGore.xSpeed = 5 + (random(2) - random(2));
newGore = _root.gutsOrig.duplicateMovieClip('newGore' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newGore._x = this._x;
newGore._y = this._y;
newGore.gotoAndStop(2);
newGore.ySpeed = 4 + random(8);
newGore.xSpeed = 5 + (random(2) - random(2));
}
++i;
}
}
}
}
movieClip 2269 {
}
movieClip 2270 {
}
movieClip 2271 {
}
movieClip 2273 {
}
instance anvil of movieClip 2273 {
onClipEvent (enterFrame) {
if (_root.enemy1._currentframe != 6 && _root.target4._currentframe == 4 && _root.target3._currentframe == 4 && _root.target2._currentframe == 4 && _root.target1._currentframe == 4) {
_root.vcam.target = _root.enemy1;
_root.vcam.targetxscale = 80;
_root.enemy1.gotoAndStop('death');
_root.hero.activated = false;
if (_root.hero.onGround == true) {
_root.hero.gotoAndStop(1);
}
_root.anvil.swapDepths(_root.getNextHighestDepth());
_root.anvil.removeMovieClip();
}
angle = Math.atan2(this._y + this.thane._y - _root.hero._y, this._x + this.thane._x - _root.hero._x) * 180 / 3.141593;
if (this.thane.thane1._xscale == 100) {
if (angle > -45) {
this.thane.thane1.head._rotation = angle;
}
} else {
if (angle < -130) {
this.thane.thane1.head._rotation = 180 - angle;
}
}
if (this._x - _root.hero._x < 0) {
this.thane.thane1._xscale = -100;
}
if (this._x - _root.hero._x > 0) {
this.thane.thane1._xscale = 100;
}
}
}
movieClip 2278 {
}
movieClip 2280 {
}
instance gutsOrig of movieClip 1703 {
onClipEvent (load) {
if (_name == 'gutsOrig') {
_visible = false;
} else {
var alive = true;
var grav = 0;
var onGround = false;
var remove = 45;
_root.particleArray.push(this);
}
}
}
instance enebulletOrig of movieClip 936 {
onClipEvent (load) {
if (_name != 'enebulletOrig') {
xSpeed = 0;
ySpeed = 0;
alive = true;
_root.enebulletArray.push(this);
} else {
_visible = false;
}
}
}
instance flashOrig of movieClip 905 {
onClipEvent (load) {
if (_name == 'flashOrig') {
_visible = false;
}
}
}
instance bulletOrig of movieClip 936 {
onClipEvent (load) {
if (_name != 'enebulletOrig') {
xSpeed = 0;
ySpeed = 0;
alive = true;
_root.bulletArray.push(this);
} else {
_visible = false;
}
}
}
movieClip 2290 {
frame 1 {
stop();
}
frame 2 {
_root.explosion.start(0, 0);
_root.explosion.setVolume(75);
}
frame 3 {
if (this.hit.hitTest(_root.hero.bound)) {
_root.hitbyexplosion(_root.hero, this);
}
i = 1;
while (i < 12) {
if (this.hit.hitTest(_root['enemy' + i].bound)) {
_root.hitbyexplosion(_root['enemy' + i], _parent);
}
++i;
}
i = 1;
while (i < 20) {
if (this.hit.hitTest(_root['c' + i]) && _root['c' + i]._currentframe < 24) {
_root['c' + i].gotoAndPlay('death');
}
++i;
}
_root.vcam._x += 30;
}
instance hit of movieClip 496 {
onClipEvent (load) {
_visible = false;
}
}
frame 6 {
_root.vcam._x -= 20;
}
frame 9 {
_root.vcam._x += 10;
}
frame 12 {
_root.vcam._x -= 5;
}
frame 22 {
this.removeMovieClip();
}
}
instance dynamiteOrig of movieClip 2290 {
onClipEvent (load) {
}
onClipEvent (enterFrame) {
if (_name != 'enebulletOrig') {
if (this._currentframe == 1) {
this._x += this.xSpeed;
this._y += this.ySpeed;
_rotation = _rotation + this.xSpeed * 2.5;
if (_root.ground.hitTest(_x, _y + 5, true)) {
this.gotoAndPlay(2);
}
if (this.hitTest(_root.hero.bound)) {
this.gotoAndPlay(2);
}
if (this._y - _root.hero._y > 400) {
this.removeMovieClip();
}
if (this._y - _root.hero._y < -400) {
this.removeMovieClip();
}
if (this._x - _root.hero._x > 500) {
this.removeMovieClip();
}
if (this._x - _root.hero._x < -500) {
this.removeMovieClip();
}
}
} else {
stop();
_visible = false;
}
}
}
movieClip 2299 {
}
movieClip 2301 {
}
movieClip 2314 {
frame 1 {
onEnterFrame = function () {
if (_root.hero._x > _parent._x) {
_parent._xscale = -100;
}
if (_root.hero._x < _parent._x) {
_parent._xscale = 100;
}
};
}
frame 31 {
if (_root.hero.activated == true) {
var decision = random(11);
if (decision == 0) {
gotoAndPlay(1);
}
if (decision == 1) {
_parent.gotoAndStop('laugh');
}
if (decision == 2) {
_parent.gotoAndStop('shoot');
}
if (decision == 3) {
_parent.gotoAndStop('shoot');
}
if (decision == 4) {
_parent.gotoAndStop('shoot');
}
if (decision == 9) {
_parent.gotoAndStop('shoot');
}
if (decision == 10) {
_parent.gotoAndStop('shoot');
}
if (decision == 5) {
_parent.gotoAndStop('dynamite');
}
if (decision == 6) {
_parent.gotoAndStop('dynamite');
}
if (decision == 7) {
_parent.gotoAndStop('lazerattack');
}
if (decision == 8) {
_parent.gotoAndStop('lazerattack');
}
}
}
}
movieClip 2360 {
frame 3 {
onEnterFrame = function () {
angle = Math.atan2(_root.enemy1.shoot._y + this._y + _root.enemy1._y - _root.hero._y + _root.hero._height / 2, _root.enemy1.shoot._x + this._x + _root.enemy1._x - _root.hero._x) * 180 / 3.141593;
if (_root.enemy1._xscale == 100) {
this._rotation = angle;
}
if (_root.enemy1._xscale == -100) {
this._rotation = 180 - angle;
}
if (angle + 90 < 180 && angle + 90 > 0) {
_root.enemy1._xscale = 100;
} else {
_root.enemy1._xscale = -100;
}
};
}
frame 18 {
delete this.onEnterFrame;
var __reg1 = angle;
_root.enemy1._xscale >= 0 ? null : __reg1;
__reg1 += 90;
newFlash = _root.enebulletOrig.duplicateMovieClip('bulletflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
var gunlength = 136;
var gunheight = 1.4;
newFlash._y = _root.enemy1._y + _root.enemy1.shoot._y + _root.enemy1.shoot.arm._y + (gunlength + gunheight) * Math.cos(__reg1 * 0.0174533);
if (_root.enemy1._xscale == 100) {
newFlash._x = _root.enemy1._x + _root.enemy1.shoot._x + _root.enemy1.shoot.arm._x - gunlength * Math.sin(__reg1 * 0.0174533);
newFlash._xscale = -300;
newFlash._rotation = angle;
newFlash.bulletSpeed = -10;
} else {
newFlash._x = _root.enemy1._x + _root.enemy1.shoot._x + _root.enemy1.shoot.arm._x + gunlength * Math.sin(__reg1 * 0.0174533);
newFlash._xscale = 300;
newFlash._rotation = (180 - angle) * -1;
newFlash.bulletSpeed = 10;
}
newFlash.gotoAndStop('4power');
}
frame 27 {
onEnterFrame = function () {
angle = Math.atan2(_root.enemy1.shoot._y + this._y + _root.enemy1._y - _root.hero._y + _root.hero._height / 2, _root.enemy1.shoot._x + this._x + _root.enemy1._x - _root.hero._x) * 180 / 3.141593;
if (_root.enemy1._xscale == 100) {
this._rotation = angle;
}
if (_root.enemy1._xscale == -100) {
this._rotation = 180 - angle;
}
if (angle + 90 < 180 && angle + 90 > 0) {
_root.enemy1._xscale = 100;
} else {
_root.enemy1._xscale = -100;
}
};
}
frame 32 {
var __reg1 = angle;
_root.enemy1._xscale >= 0 ? null : __reg1;
__reg1 += 90;
newFlash = _root.enebulletOrig.duplicateMovieClip('bulletflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
var gunlength = 136;
var gunheight = 1.4;
newFlash._y = _root.enemy1._y + _root.enemy1.shoot._y + _root.enemy1.shoot.arm._y + (gunlength + gunheight) * Math.cos(__reg1 * 0.0174533);
if (_root.enemy1._xscale == 100) {
newFlash._x = _root.enemy1._x + _root.enemy1.shoot._x + _root.enemy1.shoot.arm._x - gunlength * Math.sin(__reg1 * 0.0174533);
newFlash._xscale = -300;
newFlash._rotation = angle;
newFlash.bulletSpeed = -10;
} else {
newFlash._x = _root.enemy1._x + _root.enemy1.shoot._x + _root.enemy1.shoot.arm._x + gunlength * Math.sin(__reg1 * 0.0174533);
newFlash._xscale = 300;
newFlash._rotation = (180 - angle) * -1;
newFlash.bulletSpeed = 10;
}
newFlash.gotoAndStop('4power');
}
frame 33 {
delete this.onEnterFrame;
}
frame 43 {
onEnterFrame = function () {
angle = Math.atan2(_root.enemy1.shoot._y + this._y + _root.enemy1._y - _root.hero._y + _root.hero._height / 2, _root.enemy1.shoot._x + this._x + _root.enemy1._x - _root.hero._x) * 180 / 3.141593;
if (_root.enemy1._xscale == 100) {
this._rotation = angle;
}
if (_root.enemy1._xscale == -100) {
this._rotation = 180 - angle;
}
if (angle + 90 < 180 && angle + 90 > 0) {
_root.enemy1._xscale = 100;
} else {
_root.enemy1._xscale = -100;
}
};
}
frame 48 {
var __reg1 = angle;
_root.enemy1._xscale >= 0 ? null : __reg1;
__reg1 += 90;
newFlash = _root.enebulletOrig.duplicateMovieClip('bulletflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
var gunlength = 136;
var gunheight = 1.4;
newFlash._y = _root.enemy1._y + _root.enemy1.shoot._y + _root.enemy1.shoot.arm._y + (gunlength + gunheight) * Math.cos(__reg1 * 0.0174533);
if (_root.enemy1._xscale == 100) {
newFlash._x = _root.enemy1._x + _root.enemy1.shoot._x + _root.enemy1.shoot.arm._x - gunlength * Math.sin(__reg1 * 0.0174533);
newFlash._xscale = -300;
newFlash._rotation = angle;
newFlash.bulletSpeed = -10;
} else {
newFlash._x = _root.enemy1._x + _root.enemy1.shoot._x + _root.enemy1.shoot.arm._x + gunlength * Math.sin(__reg1 * 0.0174533);
newFlash._xscale = 300;
newFlash._rotation = (180 - angle) * -1;
newFlash.bulletSpeed = 10;
}
newFlash.gotoAndStop('4power');
}
frame 49 {
delete this.onEnterFrame;
}
frame 62 {
this._rotation = 0;
}
}
movieClip 2364 {
frame 71 {
_parent.gotoAndStop(1);
}
}
movieClip 2419 {
frame 1 {
if (_root.hero._x > _parent._x) {
_parent._xscale = -100;
}
if (_root.hero._x < _parent._x) {
_parent._xscale = 100;
}
}
frame 83 {
if (_root.hero._x > _parent._x) {
_parent._xscale = -100;
}
if (_root.hero._x < _parent._x) {
_parent._xscale = 100;
}
}
frame 87 {
angle = Math.atan2(_root.enemy1._y + this._y - _parent._height - (_root.hero._y - _root.hero._height / 4), _x + _root.enemy1._x - _root.hero._x) * 180 / 3.141593;
}
frame 94 {
if (_root.hero._x > _parent._x) {
_parent._xscale = -100;
}
if (_root.hero._x < _parent._x) {
_parent._xscale = 100;
}
}
frame 103 {
newGore = _root.dynamiteOrig.duplicateMovieClip('newGore' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newGore._x = _parent._x + 50 * -_parent._xscale / 100;
newGore._y = _parent._y - _parent._height;
newGore.gotoAndStop(1);
if (_root.enemy1._xscale == 100) {
this.rotangle = angle;
}
if (_root.enemy1._xscale == -100) {
this.rotangle = 180 - angle;
}
xDist = _root.enemy1._x - _root.hero._x;
newGore.bulletSpeed = -20;
newGore._rotation = angle;
newGore.xSpeed = Math.cos(rotangle * 3.141593 / 180) * -15 * (_root.enemy1._xscale / 100);
newGore.ySpeed = Math.sin(rotangle * 3.141593 / 180) * -15;
}
frame 134 {
_parent.gotoAndStop(1);
}
}
movieClip 2431 {
frame 65 {
_parent.gotoAndStop(1);
}
}
movieClip 2435 {
}
movieClip 2478 {
frame 1 {
if (this.hitTest(_root.vcam)) {
_root.biglaser.start(0, 0);
_root.biglaser.setVolume(100);
}
}
instance hit of movieClip 496 {
onClipEvent (load) {
_visible = false;
}
}
frame 4 {
_root.cowboyboss_electrocutepplFunction(this);
}
instance hit of movieClip 496 {
onClipEvent (load) {
_visible = false;
}
}
frame 8 {
_root.cowboyboss_electrocutepplFunction(this);
}
instance hit of movieClip 496 {
onClipEvent (load) {
_visible = false;
}
}
frame 12 {
_root.cowboyboss_electrocutepplFunction(this);
}
instance hit of movieClip 496 {
onClipEvent (load) {
_visible = false;
}
}
frame 16 {
_root.cowboyboss_electrocutepplFunction(this);
}
instance hit of movieClip 496 {
onClipEvent (load) {
_visible = false;
}
}
frame 20 {
_root.cowboyboss_electrocutepplFunction(this);
}
instance hit of movieClip 496 {
onClipEvent (load) {
_visible = false;
}
}
frame 24 {
_root.cowboyboss_electrocutepplFunction(this);
}
instance hit of movieClip 496 {
onClipEvent (load) {
_visible = false;
}
}
frame 28 {
_root.cowboyboss_electrocutepplFunction(this);
}
instance hit of movieClip 496 {
onClipEvent (load) {
_visible = false;
}
}
frame 32 {
_root.cowboyboss_electrocutepplFunction(this);
}
instance hit of movieClip 496 {
onClipEvent (load) {
_visible = false;
}
}
frame 36 {
_root.cowboyboss_electrocutepplFunction(this);
}
instance hit of movieClip 496 {
onClipEvent (load) {
_visible = false;
}
}
frame 40 {
_root.cowboyboss_electrocutepplFunction(this);
}
instance hit of movieClip 496 {
onClipEvent (load) {
_visible = false;
}
}
frame 44 {
_root.cowboyboss_electrocutepplFunction(this);
}
instance hit of movieClip 496 {
onClipEvent (load) {
_visible = false;
}
}
frame 48 {
_root.cowboyboss_electrocutepplFunction(this);
}
instance hit of movieClip 496 {
onClipEvent (load) {
_visible = false;
}
}
frame 52 {
_root.cowboyboss_electrocutepplFunction(this);
}
instance hit of movieClip 496 {
onClipEvent (load) {
_visible = false;
}
}
frame 56 {
_root.cowboyboss_electrocutepplFunction(this);
}
instance hit of movieClip 496 {
onClipEvent (load) {
_visible = false;
}
}
frame 64 {
stop();
}
}
movieClip 2518 {
frame 303 {
_parent.gotoAndStop(1);
}
}
movieClip 2521 {
}
movieClip 2523 {
}
movieClip 2550 {
}
movieClip 2551 {
frame 1 {
_root.hero.swapDepths(_root.getNextHighestDepth());
_root.hero.removeMovieClip();
i = 0;
while (i < _root.bulletArray.length) {
_root.bulletArray[i].removeMovieClip();
++i;
}
i = 0;
while (i < _root.enebulletArray.length) {
_root.enebulletArray[i].removeMovieClip();
++i;
}
i = 0;
while (i < _root.particleArray.length) {
_root.particleArray[i].removeMovieClip();
++i;
}
}
frame 66 {
stop();
var count = 30;
if (_root.enemy1._xscale == -100) {
txt1._xscale = -100;
}
this.onEnterFrame = function () {
--count;
delete this.onEnterFrame;
gotoAndStop(67);
};
}
frame 67 {
stop();
var count = 30;
if (_root.enemy1._xscale == -100) {
txt3._xscale = -100;
}
this.onEnterFrame = function () {
--count;
delete this.onEnterFrame;
gotoAndStop(68);
};
}
frame 68 {
stop();
var count = 30;
if (_root.enemy1._xscale == -100) {
txt2._xscale = -100;
}
this.onEnterFrame = function () {
--count;
delete this.onEnterFrame;
gotoAndPlay(69);
};
}
frame 85 {
if (_root.medal_8 != true) {
_root.weaponunlocks.medaltitle = 'cowboy killer';
_root.medal_8 = true;
_root.weaponunlocks.gotoAndPlay(190);
}
}
frame 135 {
_root.hud.showscore.gotoAndPlay('win');
_root.hud.swapDepths(_root.getNextHighestDepth());
_root.hero.activated = false;
_root.hero.life = 0;
_root.hero.controllable = false;
stop();
}
}
movieClip 2552 {
frame 1 {
stop();
}
}
instance enemy1 of movieClip 2552 {
onClipEvent (load) {
var life = 1000;
var totallife = 1000;
gotoAndStop(4);
}
}
instance hero of movieClip 891 {
onClipEvent (load) {
if (_root.options_difficulty == 'easy') {
var life = _root.elife;
var totallife = _root.elife;
}
if (_root.options_difficulty == 'medium') {
var life = _root.mlife;
var totallife = _root.mlife;
}
if (_root.options_difficulty == 'hard') {
var life = _root.hlife;
var totallife = _root.hlife;
}
_root.hero.player_headchoice = 3;
activated = true;
grav = 0;
xSpeed = 0;
ySpeed = 0;
controllable = true;
moveSpeed = 5;
right = 68;
left = 65;
var up = 87;
var jump = 87;
var jumpheight = 12;
var barricadecooldown = 0;
var barricadetotal = 0;
var doubleJumpThres = 10;
var doubleJumpThres1 = 10;
var jumpFromAttack = 0;
var jumpFromAttackOrig = 16;
var camSpec = 10;
var jumpButtonOn = false;
var weapontype = 'none';
var currentweapon = 'none';
var newweapontimer = 0;
var ammo = 300;
var recoil = 15;
var onGround = false;
var chainguncharge = 0;
var frame = _root._currentframe;
}
}
instance vcam of movieClip 1720 {
onClipEvent (load) {
var xSpeed = 0;
var ySpeed = 0;
var moveSpeed = 8;
var xadjust = 0;
var targetxscale = 100;
target = _root.hero;
}
}
instance vcam of movieClip 1720 {
onClipEvent (load) {
var xSpeed = 0;
var ySpeed = 0;
var moveSpeed = 8;
var xadjust = 0;
var targetxscale = 100;
target = _root.hero;
}
}
frame 21 {
if (_root.cutscene4 != true) {
_root.gotoAndStop('cutscene4');
}
}
frame 22 {
enemynameArray = ['enemy1', 'enemy2', 'enemy3', 'enemy4'];
levelpoints = 0;
levelkills = 0;
shotsfired = 0;
destructionpoints = 0;
leveltotal = 0;
levelcivkills = 0;
_root.kwall = 0;
_root.kwallkillsArray = [-1, 10, 20];
_root.killwallxArray = [1460, 1460, 3882];
_root.killwallyArray = [182, 182, 182];
_root.civpanic = false;
_root.ene_limit = 450;
_root.stopmusicFunction();
randomMusic = random(_root.totalsongs);
_root['Music' + randomMusic].start(0, 99);
if (_root.music_mute == false) {
_root['Music' + randomMusic].setVolume(85);
}
if (_root.music_mute == true) {
_root['Music' + randomMusic].setVolume(0);
}
}
frame 23 {
_root.lvl7 = true;
stop();
_root.ground._visible = false;
_root.platform._visible = false;
_root.u_limit._visible = false;
_root.d_limit._visible = false;
_root.r_limit._visible = false;
_root.l_limit._visible = false;
_root.bg2.cacheAsBitmap = true;
onMouseDown = function () {
msdown = true;
};
onMouseUp = function () {
msdown = false;
};
onEnterFrame = function () {
if (Key.isDown(32) && _root.hero.hitTest(_root.cannon) && _root.cannon._currentframe == 1) {
_root.hero._visible = false;
_root.hero.controllable = false;
_root.cannon.gotoAndStop(2);
_root.controlreminder.swapDepths(_root.getNextHighestDepth());
_root.controlreminder.removeMovieClip();
}
if (_root.cannon._currentframe == 2) {
_root.hero._x = _root.cannon._x;
_root.hero._y = _root.cannon._y;
_root.hero._xscale = -100;
if (_root.msdown == true) {
_root.hero._visible = true;
_root.cannon.gotoAndPlay(3);
_root.hero.grav = 20;
_root.hero.xSpeed = 20;
newFlash = _root.flashOrig.duplicateMovieClip('newflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newFlash._x = _root.cannon._x;
newFlash._y = _root.cannon._y;
newFlash._xscale = 200;
newFlash._yscale = 200;
newFlash._rotation = -20;
_root.hero.gotoAndStop('explosion');
}
}
_root.vcamFunction(_root.vcam);
_root.vcam.camControl();
_root.musicFunction();
_root.weaponunlocking();
_root.medalsunlocking();
if (_root.hero.activated == true) {
_root.heroWeapons(_root.hero);
_root.heroPhysics(_root.hero);
_root.heroMovement(_root.hero);
_root.heroJumping(_root.hero);
_root.heroShot(_root.hero);
}
if (_root.hero.activated == true) {
if (_root.bulletArray.length > 0) {
i = 0;
while (i < _root.bulletArray.length) {
_root.bulletFunction(_root.bulletArray[i]);
if (_root.bulletArray[i].alive == undefined) {
_root.bulletArray.splice(i, 1);
}
++i;
}
}
if (_root.enebulletArray.length > 0) {
i = 0;
while (i < _root.enebulletArray.length) {
_root.bulletFunction(_root.enebulletArray[i]);
if (_root.enebulletArray[i].alive == undefined) {
_root.enebulletArray.splice(i, 1);
}
++i;
}
}
}
i = 0;
while (i < _root.particleArray.length) {
_root.particlesFunction(_root.particleArray[i]);
if (_root.particleArray[i].onGround != true) {
_root.bouncePhysics(_root.particleArray[i], 3);
} else {
_root.onGroundPhysics(_root.particleArray[i]);
}
if (_root.particleArray[i].alive == undefined) {
_root.particleArray.splice(i, 1);
}
++i;
}
if (_root.scoretextArray.length > 0) {
i = 0;
while (i < _root.scoretextArray.length) {
_root.scoretextFunction(_root.scoretextArray[i]);
if (_root.scoretextArray[i].alive == undefined) {
_root.scoretextArray.splice(i, 1);
}
++i;
}
}
i = 0;
while (i < _root.starsArray.length) {
if (_root.starsArray[i]._x - _root.vcam._x < 350 && _root.starsArray[i]._x - _root.vcam._x > -350) {
if (_root.starsArray[i]._currentframe == 2) {
_root.starsArray[i].gotoAndStop(3);
}
if (_root.starsArray[i]._currentframe == 3) {
_root.starsFunction(_root.starsArray[i], i);
}
} else {
if (_root.starsArray[i]._currentframe == 3) {
_root.starsArray[i].gotoAndStop(2);
}
}
++i;
}
i = 0;
while (i < _root.weaponpickupArray.length) {
if (_root.weaponpickupArray[i].onGround != true) {
_root.bouncePhysics(_root.weaponpickupArray[i], 5);
}
_root.weaponpickupFunction(_root.weaponpickupArray[i]);
if (_root.weaponpickupArray[i].alive == undefined) {
_root.weaponpickupArray.splice(i, 1);
}
++i;
}
_root.killwallFunction();
_root.waterFunction(_root.acid1);
_root.civFunction(_root.c1);
_root.civFunction(_root.c2);
_root.civFunction(_root.c3);
_root.civFunction(_root.c4);
_root.cratesFunction(_root.crates.c1);
_root.cratesFunction(_root.crates.c2);
_root.cratesFunction(_root.crates.c3);
_root.cratesFunction(_root.crates.c4);
_root.cratesFunction(_root.crates.c5);
_root.cratesFunction(_root.crates.c6);
_root.cratesFunction(_root.crates.c7);
_root.cratesFunction(_root.crates.c8);
_root.cratesFunction(_root.crates.c9);
_root.cratesFunction(_root.crates.c10);
_root.cratesFunction(_root.crates.c11);
_root.cratesFunction(_root.crates.c12m);
chance = random(45);
if (chance == 1 && _root.enemynameArray.length > 0 && _root.hero.activated) {
newEne = _root.ene.duplicateMovieClip(_root.enemynameArray[0], _root.getNextHighestDepth());
_root.enemynameArray.splice(0, 1);
side = random(2);
if (side == 1) {
newEne._x = _root.hero._x - 300;
} else {
newEne._x = _root.hero._x + 300;
}
newEne._y = _root.hero._y;
}
_root.enemyBundle(_root.enemy1);
_root.enemyBundle(_root.enemy2);
_root.enemyBundle(_root.enemy3);
_root.enemyBundle(_root.enemy4);
};
}
movieClip 2555 {
}
movieClip 2558 {
}
movieClip 2560 {
}
movieClip 2562 {
}
movieClip 2574 {
frame 1 {
stop();
}
}
instance flashOrig of movieClip 905 {
onClipEvent (load) {
if (_name == 'flashOrig') {
_visible = false;
}
}
}
instance bulletOrig of movieClip 936 {
onClipEvent (load) {
if (_name != 'bulletOrig') {
xSpeed = 0;
ySpeed = 0;
alive = true;
_root.bulletArray.push(this);
} else {
_visible = false;
}
}
}
instance ene of movieClip 1627 {
onClipEvent (load) {
if (_name == 'ene') {
} else {
var life = 8;
var totallife = 8;
var jump = -15;
var falling = true;
var lifeOrig = 8;
var grav = 0;
var xSpeed = 0;
var ySpeed = 0;
var moveSpeed = 1.5;
var xdist = 0;
var eyeSight = 1450;
var onGround = false;
var headchoice = random(3) + 9;
var whatweapon = random(2);
if (whatweapon == 1) {
var currentweapon = 'm16';
}
if (whatweapon == 0) {
var currentweapon = 'shotgun';
}
gotoAndStop(9);
}
}
}
instance enebulletOrig of movieClip 936 {
onClipEvent (load) {
if (_name != 'enebulletOrig') {
xSpeed = 0;
ySpeed = 0;
alive = true;
_root.enebulletArray.push(this);
} else {
_visible = false;
}
}
}
instance gunpickupOrig of movieClip 1663 {
onClipEvent (load) {
if (_name == 'gunpickupOrig') {
_visible = false;
} else {
var grav = 0;
var onGround = false;
frame = _root._currentframe;
var alive = true;
_root.weaponpickupArray.push(this);
}
}
}
instance gutsOrig of movieClip 1703 {
onClipEvent (load) {
if (_name == 'gutsOrig') {
_visible = false;
} else {
var alive = true;
var grav = 0;
var onGround = false;
var remove = 45;
_root.particleArray.push(this);
}
}
}
instance hero of movieClip 891 {
onClipEvent (load) {
_root.hero.gotoAndStop('death');
_root.hero.death.gotoAndPlay('warpspawn');
speechtalk = 'tobo should be hiding on this island. at last i can end this, go back in time before it all began and save our friendship. avast ye scurvy dogs! ';
if (_root.options_difficulty == 'easy') {
var life = _root.elife;
var totallife = _root.elife;
}
if (_root.options_difficulty == 'medium') {
var life = _root.mlife;
var totallife = _root.mlife;
}
if (_root.options_difficulty == 'hard') {
var life = _root.hlife;
var totallife = _root.hlife;
}
_root.hero.player_headchoice = _root.player_headchoice;
grav = 0;
xSpeed = 0;
ySpeed = 0;
controllable = true;
moveSpeed = 5;
right = 68;
left = 65;
var up = 87;
var jump = 87;
var jumpheight = 12;
var barricadecooldown = 0;
var barricadetotal = 0;
var doubleJumpThres = 10;
var doubleJumpThres1 = 10;
var jumpFromAttack = 0;
var jumpFromAttackOrig = 16;
var camSpec = 10;
var jumpButtonOn = false;
var weapontype = 'gun';
var currentweapon = 'musket';
var newweapontimer = 0;
var ammo = 300;
var recoil = 15;
var onGround = false;
var chainguncharge = 0;
var frame = _root._currentframe;
}
}
instance vcam of movieClip 1720 {
onClipEvent (load) {
var xSpeed = 0;
var ySpeed = 0;
var moveSpeed = 8;
var xadjust = 0;
var targetxscale = 100;
target = _root.hero;
}
}
frame 24 {
if (_root.cutscene5 != true) {
_root.gotoAndStop('cutscene5');
}
}
frame 25 {
enemynameArray = ['enemy2', 'enemy3'];
levelpoints = 0;
levelkills = 0;
shotsfired = 0;
destructionpoints = 0;
leveltotal = 0;
levelcivkills = 0;
_root.civpanic = false;
_root.ene_limit = 450;
_root.stopmusicFunction();
_root.boss_music2.start(0, 99);
if (_root.music_mute == true) {
_root.boss_music2.setVolume(0);
}
if (_root.music_mute == true) {
_root.boss_music2.setVolume(85);
}
}
frame 26 {
_root.lvl8 = true;
stop();
_root.ground._visible = false;
_root.u_limit._visible = false;
_root.d_limit._visible = false;
_root.r_limit._visible = false;
_root.l_limit._visible = false;
onMouseDown = function () {
msdown = true;
};
onMouseUp = function () {
msdown = false;
};
onEnterFrame = function () {
_root.vcamFunction(_root.vcam);
_root.vcam.camControl();
_root.musicFunction();
_root.medalsunlocking();
if (_root.hero.activated == true) {
_root.heroWeapons(_root.hero);
_root.heroPhysics(_root.hero);
_root.heroMovement(_root.hero);
_root.heroJumping(_root.hero);
_root.heroShot(_root.hero);
}
if (_root.hero.activated == true) {
if (_root.bulletArray.length > 0) {
i = 0;
while (i < _root.bulletArray.length) {
_root.bulletFunction(_root.bulletArray[i]);
if (_root.bulletArray[i].alive == undefined) {
_root.bulletArray.splice(i, 1);
}
++i;
}
}
if (_root.enebulletArray.length > 0) {
i = 0;
while (i < _root.enebulletArray.length) {
_root.bulletFunction(_root.enebulletArray[i]);
if (_root.enebulletArray[i].alive == undefined) {
_root.enebulletArray.splice(i, 1);
}
++i;
}
}
}
i = 0;
while (i < _root.particleArray.length) {
_root.particlesFunction(_root.particleArray[i]);
if (_root.particleArray[i].onGround != true) {
_root.bouncePhysics(_root.particleArray[i], 3);
} else {
_root.onGroundPhysics(_root.particleArray[i]);
}
if (_root.particleArray[i].alive == undefined) {
_root.particleArray.splice(i, 1);
}
++i;
}
if (_root.scoretextArray.length > 0) {
i = 0;
while (i < _root.scoretextArray.length) {
_root.scoretextFunction(_root.scoretextArray[i]);
if (_root.scoretextArray[i].alive == undefined) {
_root.scoretextArray.splice(i, 1);
}
++i;
}
}
i = 0;
while (i < _root.starsArray.length) {
if (_root.starsArray[i]._x - _root.vcam._x < 350 && _root.starsArray[i]._x - _root.vcam._x > -350) {
if (_root.starsArray[i]._currentframe == 2) {
_root.starsArray[i].gotoAndStop(3);
}
if (_root.starsArray[i]._currentframe == 3) {
_root.starsFunction(_root.starsArray[i], i);
}
} else {
if (_root.starsArray[i]._currentframe == 3) {
_root.starsArray[i].gotoAndStop(2);
}
}
++i;
}
i = 0;
while (i < _root.weaponpickupArray.length) {
if (_root.weaponpickupArray[i].onGround != true) {
_root.bouncePhysics(_root.weaponpickupArray[i], 5);
}
_root.weaponpickupFunction(_root.weaponpickupArray[i]);
if (_root.weaponpickupArray[i].alive == undefined) {
_root.weaponpickupArray.splice(i, 1);
}
++i;
}
_root.destructablesFunction(_root.d1);
_root.destructablesFunction(_root.d2);
_root.civFunction(_root.c1);
_root.civFunction(_root.c2);
_root.civFunction(_root.c3);
_root.acidFunction(_root.acid1);
_root.enemyBundle(_root.enemy2);
_root.enemyBundle(_root.enemy3);
};
}
movieClip 2576 {
}
movieClip 2578 {
frame 1 {
_visible = false;
}
}
movieClip 2581 {
}
movieClip 2583 {
}
movieClip 2585 {
frame 1 {
onEnterFrame = function () {
if (_root.hero._x > _parent._x) {
_parent._xscale = -100;
}
if (_root.hero._x < _parent._x) {
_parent._xscale = 100;
}
};
}
frame 38 {
if (_root.hero.activated == true) {
var decision = random(9);
if (decision == 1) {
_parent.gotoAndStop('run');
}
if (decision == 2) {
_parent.gotoAndStop('run');
}
if (decision == 7) {
_parent.gotoAndStop('run');
}
if (decision == 8) {
_parent.gotoAndStop('run');
}
if (decision == 0) {
_parent.gotoAndStop('run');
}
if (decision == 3) {
_parent.gotoAndStop('shoot');
}
if (decision == 4) {
_parent.gotoAndStop('shoot');
}
if (decision == 5) {
_parent.gotoAndStop('dynamite');
}
if (decision == 6) {
_parent.gotoAndStop('dynamite');
}
}
}
}
movieClip 2586 {
frame 1 {
onEnterFrame = function () {
if (_root.enemy1._x - _root.hero._x > 0) {
_root.enemy1._xscale = 100;
_root.enemy1._x -= 3;
}
if (_root.enemy1._x - _root.hero._x < 0) {
_root.enemy1._xscale = -100;
_root.enemy1._x += 3;
}
if (_root.enemy1.bound.hitTest(_root.hero.bound)) {
delete this.onEnterFrame;
_parent.gotoAndStop('melee');
}
};
}
}
movieClip 2617 {
frame 79 {
newFlash = _root.tobotargetOrig.duplicateMovieClip('bulletflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newFlash._y = _parent._y;
newFlash._x = _root.hero._x;
}
frame 93 {
newFlash = _root.tobotargetOrig.duplicateMovieClip('bulletflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newFlash._y = _parent._y;
newFlash._x = _root.hero._x;
}
frame 106 {
newFlash = _root.tobotargetOrig.duplicateMovieClip('bulletflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newFlash._y = _parent._y;
newFlash._x = _root.hero._x;
_parent.gotoAndStop(1);
}
}
movieClip 2628 {
frame 90 {
_parent.gotoAndStop(1);
}
}
movieClip 2631 {
frame 52 {
if (_root.enemy1._x - _root.hero._x > 0) {
_root.enemy1._xscale = 100;
}
if (_root.enemy1._x - _root.hero._x < 0) {
_root.enemy1._xscale = -100;
}
}
frame 60 {
if (this.bound.hitTest(_root.hero.bound)) {
_root.hitbyexplosion(_root.hero, this);
}
_root.vcam._x -= 30;
}
frame 63 {
_root.vcam._x += 20;
}
frame 66 {
_root.vcam._x -= 10;
}
frame 69 {
_root.vcam._x += 5;
}
frame 84 {
_parent.gotoAndStop(1);
}
}
movieClip 2648 {
frame 1 {
_root.vcam.target = _root.enemy1;
_root.hero.activated = false;
if (_root.hero.onGround == true) {
_root.hero.gotoAndStop(1);
}
_root.setmusicvolumeFunction(55);
}
frame 29 {
_root.explosion.start(0, 0);
_root.explosion.setVolume(65);
}
frame 34 {
_root.explosion.start(0, 0);
_root.explosion.setVolume(65);
}
frame 39 {
_root.explosion.start(0, 0);
_root.explosion.setVolume(65);
}
frame 47 {
_root.explosion.start(0, 0);
_root.explosion.setVolume(65);
}
frame 52 {
_root.explosion.start(0, 0);
_root.explosion.setVolume(65);
}
frame 57 {
_root.explosion.start(0, 0);
_root.explosion.setVolume(65);
}
frame 115 {
_root.setmusicvolumeFunction(85);
_root.vcam.target = _root.hero;
_root.hero.activated = true;
_parent.gotoAndStop(8);
}
}
movieClip 2653 {
frame 1 {
onEnterFrame = function () {
_root.enemy1._y -= _root.enemy1.grav;
_root.enemy1._rotation += _root.enemy1.grav / 2;
_root.enemy1.grav -= 0.5;
for (;;) {
if (!(_root.ground.hitTest(_root.enemy1._x, _root.enemy1._y + 0, true) || _root.platform.hitTest(_root.enemy1._x, _root.enemy1._y + 0, true))) break;
_root.enemy1.grav = 0;
--_root.enemy1._y;
}
if (_root.ground.hitTest(_root.enemy1._x, _root.enemy1._y + 5, true) || _root.platform.hitTest(_root.enemy1._x, _root.enemy1._y + 5, true)) {
_root.enemy1._rotation = 0;
_root.enemy1.gotoAndStop(9);
}
_root.vcam.xadjust = 0;
};
}
}
movieClip 2657 {
}
movieClip 2672 {
frame 1 {
stop();
}
frame 35 {
if (_root.enemynameArray.length > 0 && _root.hero.activated) {
_root.newEne = _root.ene.duplicateMovieClip(_root.enemynameArray[0], _root.getNextHighestDepth());
_root.enemynameArray.splice(0, 1);
_root.newEne._x = _root.hero._x + 100;
_root.newEne._y = _root.hero._y;
}
}
frame 41 {
if (_root.enemynameArray.length > 0 && _root.hero.activated) {
_root.newEne = _root.ene.duplicateMovieClip(_root.enemynameArray[0], _root.getNextHighestDepth());
_root.enemynameArray.splice(0, 1);
_root.newEne._x = _root.hero._x - 100;
_root.newEne._y = _root.hero._y;
}
}
}
movieClip 2680 {
frame 1 {
onEnterFrame = function () {
if (_root.hero.activated == true) {
if (_root.enemy1._rotation < 30 && _root.enemy1._rotation > -30) {
_root.enemy1._rotation = _root.enemy1.xSpeed * 2;
}
if (_root.d_limit._y > 435) {
_root.d_limit._y -= 5;
}
if (_root.enemy1._y > 200) {
_root.enemy1._y -= 5;
}
if (_root.enemy1._x - _root.hero._x > 150) {
if (_root.enemy1.xSpeed > -6) {
_root.enemy1.xSpeed -= 1;
}
}
if (_root.enemy1._x - _root.hero._x < -150) {
if (_root.enemy1.xSpeed < 6) {
_root.enemy1.xSpeed += 1;
}
}
if (_root.enemy1.xSpeed > 0) {
_root.enemy1.xSpeed -= 0.1;
}
if (_root.enemy1.xSpeed < 0) {
_root.enemy1.xSpeed += 0.1;
}
_root.enemy1._x += _root.enemy1.xSpeed;
if (_root.enemy1._x - _root.hero._x > 0) {
_root.enemy1._xscale = 100;
}
if (_root.enemy1._x - _root.hero._x < 0) {
_root.enemy1._xscale = -100;
}
if (_root.enemy1._y < 205 && _root.hero.activated == true && this.whistle._currentframe == 1) {
wattodo = random(150);
if (wattodo == 1) {
delete this.onEnterFrame;
gotoAndPlay(22);
}
if (wattodo == 0) {
newFlash = _root.enebulletOrig.duplicateMovieClip('bulletflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newFlash._y = _root.enemy1._y;
newFlash._x = _root.enemy1._x;
newFlash._rotation = 0;
newFlash.bulletSpeed = 3;
newFlash.gotoAndStop(10);
newFlash = _root.enebulletOrig.duplicateMovieClip('bulletflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newFlash._y = _root.enemy1._y;
newFlash._x = _root.enemy1._x;
newFlash._rotation = 45;
newFlash.bulletSpeed = 3;
newFlash.gotoAndStop(10);
newFlash = _root.enebulletOrig.duplicateMovieClip('bulletflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newFlash._y = _root.enemy1._y;
newFlash._x = _root.enemy1._x;
newFlash._rotation = 90;
newFlash.bulletSpeed = 3;
newFlash.gotoAndStop(10);
newFlash = _root.enebulletOrig.duplicateMovieClip('bulletflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newFlash._y = _root.enemy1._y;
newFlash._x = _root.enemy1._x;
newFlash.bulletSpeed = 5;
newFlash.gotoAndStop(10);
newFlash = _root.enebulletOrig.duplicateMovieClip('bulletflash' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newFlash._y = _root.enemy1._y;
newFlash._x = _root.enemy1._x;
newFlash._rotation = 180;
newFlash.bulletSpeed = 3;
newFlash.gotoAndStop(10);
}
if ((wattodo == 2 || wattodo == 3) && _root.enemynameArray.length > 0 && _root.hero.activated) {
this.whistle.gotoAndPlay(2);
}
}
}
};
}
frame 21 {
gotoAndPlay(1);
}
frame 46 {
_root.enemy1._rotation = 0;
}
frame 49 {
onEnterFrame = function () {
if (_root.enemy1._x - _root.hero._x > 0) {
if (_root.enemy1.xSpeed > -2.5) {
_root.enemy1.xSpeed -= 0.5;
}
}
if (_root.enemy1._x - _root.hero._x < 0) {
if (_root.enemy1.xSpeed < 2.5) {
_root.enemy1.xSpeed += 0.5;
}
}
if (_root.enemy1.xSpeed > 0) {
_root.enemy1.xSpeed -= 0.1;
}
if (_root.enemy1.xSpeed < 0) {
_root.enemy1.xSpeed += 0.1;
}
_root.enemy1._x += _root.enemy1.xSpeed;
if (_root.enemy1._x - _root.hero._x > 0) {
_root.enemy1._xscale = 100;
}
if (_root.enemy1._x - _root.hero._x < 0) {
_root.enemy1._xscale = -100;
}
};
}
frame 114 {
delete this.onEnterFrame;
}
}
movieClip 2710 {
frame 92 {
stop();
_root.hud.showscore.gotoAndPlay('win');
_root.hud.swapDepths(_root.getNextHighestDepth());
_root.hero.activated = false;
_root.hero.life = 0;
_root.hero.controllable = false;
if (_root.medal_9 != true) {
_root.weaponunlocks.medaltitle = 'robo rampaged';
_root.medal_9 = true;
_root.weaponunlocks.gotoAndPlay(190);
}
}
}
movieClip 2711 {
frame 1 {
stop();
}
frame 7 {
_root.vcam.target = _root.enemy1;
_root.vcam.targetxscale = 80;
_root.hero.swapDepths(_root.getNextHighestDepth());
_root.hero.removeMovieClip();
_root.hero.activated = false;
if (_root.hero.onGround == true) {
_root.hero.gotoAndStop(1);
}
i = 0;
while (i < _root.bulletArray.length) {
_root.bulletArray[i].removeMovieClip();
++i;
}
i = 0;
while (i < _root.enebulletArray.length) {
_root.enebulletArray[i].removeMovieClip();
++i;
}
i = 0;
while (i < _root.particleArray.length) {
_root.particleArray[i].removeMovieClip();
++i;
}
_root.enemy1.removeMovieClip();
_root.enemy2.removeMovieClip();
_root.enemy3.removeMovieClip();
_root.enemy4.removeMovieClip();
_root.enemy5.removeMovieClip();
_root.enemy6.removeMovieClip();
_root.enemy7.removeMovieClip();
_root.explosion.start(0, 0);
_root.explosion.setVolume(85);
}
frame 8 {
_root.vcam.targetxscale = 100;
}
frame 9 {
onEnterFrame = function () {
_root.vcam.xadjust = 0;
};
}
}
instance enemy1 of movieClip 2711 {
onClipEvent (load) {
var life = 600;
var totallife = 600;
gotoAndStop(4);
xSpeed = 0;
grav = 0;
}
onClipEvent (enterFrame) {
_root.gettingshotSmart(_root.enemy1, 1);
if (_root.enemy1.life < Math.floor(_root.enemy1.totallife / 2) + 1 && _root.enemy1._currentframe < 6) {
_root.enemy1.gotoAndStop(6);
}
if (_root.enemy1._currentframe > 5 && _root.enemy1.life < 1 && _root.enemy1._currentframe != 9) {
_root.enemy1.gotoAndStop(7);
}
if (_root.hero.life < 1 && _root.enemy1._currentframe != 6) {
gotoAndStop('laugh');
}
}
}
movieClip 2715 {
frame 41 {
if (this.hitTest(_root.hero.bound)) {
_root.hitbyexplosion(_root.hero, this);
}
}
frame 57 {
removeMovieClip(this);
}
}
instance tobotargetOrig of movieClip 2715 {
onClipEvent (load) {
if (_name == 'tobotargetOrig') {
stop();
}
}
}
instance ene of movieClip 1627 {
onClipEvent (load) {
if (_name == 'ene') {
} else {
_root.eneinitFunction(this);
this.headchoice = random(5) + 1;
}
}
}
instance enebulletOrig of movieClip 936 {
onClipEvent (load) {
if (_name != 'enebulletOrig') {
xSpeed = 0;
ySpeed = 0;
alive = true;
_root.enebulletArray.push(this);
} else {
_visible = false;
}
}
}
instance gutsOrig of movieClip 1703 {
onClipEvent (load) {
if (_name == 'gutsOrig') {
_visible = false;
} else {
var alive = true;
var grav = 0;
var onGround = false;
var remove = 45;
_root.particleArray.push(this);
}
}
}
instance flashOrig of movieClip 905 {
onClipEvent (load) {
if (_name == 'flashOrig') {
_visible = false;
}
}
}
instance bulletOrig of movieClip 936 {
onClipEvent (load) {
if (_name != 'enebulletOrig') {
xSpeed = 0;
ySpeed = 0;
alive = true;
_root.bulletArray.push(this);
} else {
_visible = false;
}
}
}
instance hero of movieClip 891 {
onClipEvent (load) {
if (_root.options_difficulty == 'easy') {
var life = _root.elife;
var totallife = _root.elife;
}
if (_root.options_difficulty == 'medium') {
var life = _root.mlife;
var totallife = _root.mlife;
}
if (_root.options_difficulty == 'hard') {
var life = _root.hlife;
var totallife = _root.hlife;
}
_root.hero.player_headchoice = _root.player_headchoice;
activated = true;
grav = 0;
xSpeed = 0;
ySpeed = 0;
controllable = true;
moveSpeed = 5;
right = 68;
left = 65;
var up = 87;
var jump = 87;
var jumpheight = 12;
var barricadecooldown = 0;
var barricadetotal = 0;
var doubleJumpThres = 10;
var doubleJumpThres1 = 10;
var jumpFromAttack = 0;
var jumpFromAttackOrig = 16;
var camSpec = 10;
var jumpButtonOn = false;
var weapontype = 'gun';
var currentweapon = 'm4';
var newweapontimer = 0;
var ammo = 99999;
var recoil = 15;
var onGround = false;
var chainguncharge = 0;
var frame = _root._currentframe;
}
}
instance vcam of movieClip 1720 {
onClipEvent (load) {
var xSpeed = 0;
var ySpeed = 0;
var moveSpeed = 8;
var xadjust = 0;
var targetxscale = 100;
target = _root.hero;
}
}
frame 27 {
stop();
if (_root.cutscene6 != true) {
_root.gotoAndStop('cutscene6');
} else {
stop();
}
}
instance of movieClip 1948 {
onClipEvent (rollOver) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(2);
}
onClipEvent (rollOut) {
gotoAndPlay(7);
}
onClipEvent (release) {
_root.saveitFunction();
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
_root.gotoAndStop('mainmenu');
}
}
movieClip 2719 {
}
movieClip 2720 {
frame 1 {
_root.stop();
}
frame 2 {
_root.play();
}
frame 440 {
_root.play();
}
}
frame 30 {
stop();
}
frame 30 {
function playlogonow(e:Event) {
logo.play();
gotoAndStop(2);
return undefined;
}
function gotowebsite(e:Event) {
navigateToURL(new URLRequest('http://www.3wj.com/?utm_medium=brandedgames_external&utm_campaign=gamename&utm_source=host&utm_content=ingame'));
return undefined;
}
stop();
buttonplay.addEventListener(MouseEvent.CLICK, playlogonow);
logo.addEventListener(MouseEvent.CLICK, gotowebsite);
logo.buttonMode = true;
stop();
}
movieClip 2723 {
}
movieClip 2733 {
}
movieClip 2744 {
}
movieClip 2753 {
}
movieClip 2764 {
}
// unknown tag 88 length 68
movieClip 2771 {
}
movieClip 2772 {
frame 25 {
stop();
}
}
movieClip 2773 {
}
movieClip 2774 {
frame 9 {
stop();
}
}
movieClip 2776 {
}
movieClip 2777 {
frame 25 {
stop();
}
}
movieClip 2778 {
}
movieClip 2779 {
frame 198 {
_root.play();
}
}
instance logo of movieClip 2779 {
onClipEvent (release) {
getURL('http://www.3wj.com/?utm_medium=brandedgames_external&utm_campaign=ArmyBlaster&utm_source=host&utm_content=ingame', '_blank');
stopAllSounds();
}
}
frame 31 {
stop();
}
movieClip 2780 {
frame 1 {
if (_root.cutscene1 == true) {
_parent.play();
} else {
_root.gotoAndStop('cutscene1');
}
}
}
frame 32 {
_root.saveitFunction();
stop();
}
instance hero of movieClip 108 {
onClipEvent (load) {
player_headchoice = _root.player_headchoice;
currentweapon = 'none';
}
}
movieClip 2783 {
}
movieClip 2786 {
}
movieClip 2789 {
}
movieClip 2790 {
frame 1 {
stop();
}
frame 6 {
stop();
}
}
button 2791 {
on (press) {
getURL('http://www.addictinggames.com', blank);
}
}
movieClip 2797 {
}
movieClip 2798 {
}
// unknown tag 88 length 59
movieClip 2834 {
}
movieClip 2835 {
}
movieClip 2837 {
}
movieClip 2840 {
}
movieClip 2843 {
}
movieClip 2846 {
}
movieClip 2849 {
}
movieClip 2854 {
frame 1 {
stop();
}
frame 7 {
stop();
}
frame 13 {
gotoAndStop(2);
}
}
movieClip 2858 {
frame 1 {
stop();
}
frame 7 {
stop();
}
frame 13 {
gotoAndStop(2);
}
}
movieClip 2981 {
}
movieClip 2983 {
}
movieClip 2985 {
}
movieClip 2987 {
}
movieClip 2989 {
}
movieClip 2991 {
}
movieClip 3000 {
}
movieClip 3002 {
}
movieClip 3004 {
}
movieClip 3005 {
}
movieClip 3007 {
}
movieClip 3009 {
}
movieClip 3011 {
}
movieClip 3013 {
}
movieClip 3015 {
}
movieClip 3017 {
}
movieClip 3019 {
}
movieClip 3021 {
}
movieClip 3023 {
}
movieClip 3025 {
}
movieClip 3027 {
}
movieClip 3029 {
}
movieClip 3035 {
}
movieClip 3037 {
}
movieClip 3040 {
}
movieClip 3042 {
}
movieClip 3044 {
}
movieClip 3046 {
}
movieClip 3047 {
frame 1 {
stop();
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 11 {
gotoAndStop(1);
}
frame 13 {
gotoAndStop(26);
}
}
movieClip 3093 {
}
movieClip 3094 {
frame 1 {
stop();
}
frame 6 {
stop();
}
}
movieClip 3096 {
}
movieClip 3097 {
frame 1 {
stop();
}
frame 6 {
stop();
}
}
movieClip 3099 {
}
movieClip 3100 {
frame 1 {
stop();
}
frame 6 {
stop();
}
}
movieClip 3102 {
}
movieClip 3105 {
}
movieClip 3106 {
frame 42 {
_root.explosion.start(0, 0);
_root.explosion.setVolume(90);
}
instance of movieClip 1920 {
onClipEvent (rollOver) {
if (_root.mainmenu._currentframe == 71) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(2);
}
}
onClipEvent (rollOut) {
if (_root.mainmenu._currentframe == 71) {
gotoAndPlay(7);
}
}
onClipEvent (release) {
if (_root.mainmenu._currentframe == 71) {
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
_root.mainmenu.gotoAndPlay('levelselect');
}
}
}
instance of movieClip 1773 {
onClipEvent (rollOver) {
if (_root.mainmenu._currentframe == 71) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(2);
}
}
onClipEvent (rollOut) {
if (_root.mainmenu._currentframe == 71) {
gotoAndPlay(7);
}
}
onClipEvent (release) {
if (_root.mainmenu._currentframe == 71) {
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
getURL('http://www.3wj.com/?utm_medium=brandedgames_external&utm_campaign=ArmyBlaster&utm_source=host&utm_content=ingame', blank);
}
}
}
instance of movieClip 1924 {
onClipEvent (rollOver) {
if (_root.mainmenu._currentframe == 71) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(2);
}
}
onClipEvent (rollOut) {
if (_root.mainmenu._currentframe == 71) {
gotoAndPlay(7);
}
}
onClipEvent (release) {
if (_root.mainmenu._currentframe == 71) {
_root.button_press.setVolume(100);
_root.mainmenu.gotoAndPlay('customise');
_root.button_press.start(0, 0);
}
}
}
instance of movieClip 1927 {
onClipEvent (rollOver) {
if (_root.mainmenu._currentframe == 71) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(2);
}
}
onClipEvent (rollOut) {
if (_root.mainmenu._currentframe == 71) {
gotoAndPlay(7);
}
}
onClipEvent (release) {
if (_root.mainmenu._currentframe == 71) {
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
_parent.gotoAndPlay('medals');
}
}
}
instance of movieClip 2790 {
onClipEvent (rollOver) {
if (_root.mainmenu._currentframe == 71) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(2);
}
}
onClipEvent (rollOut) {
if (_root.mainmenu._currentframe == 71) {
gotoAndPlay(7);
}
}
onClipEvent (release) {
if (_root.mainmenu._currentframe == 71) {
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
_root.mainmenu.gotoAndPlay('diffchoice');
}
}
}
instance of movieClip 1773 {
onClipEvent (rollOver) {
if (_root.mainmenu._currentframe == 71) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(2);
}
}
onClipEvent (rollOut) {
if (_root.mainmenu._currentframe == 71) {
gotoAndPlay(7);
}
}
onClipEvent (release) {
if (_root.mainmenu._currentframe == 71) {
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
getURL('http://www.3wj.com/?utm_medium=brandedgames_external&utm_campaign=ArmyBlaster&utm_source=host&utm_content=ingame', blank);
}
}
}
frame 60 {
}
instance of movieClip 1773 {
onClipEvent (rollOver) {
if (_root.mainmenu._currentframe == 71) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(2);
}
}
onClipEvent (rollOut) {
if (_root.mainmenu._currentframe == 71) {
gotoAndPlay(7);
}
}
onClipEvent (release) {
if (_root.mainmenu._currentframe == 71) {
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
getURL('http://www.3wj.com/?utm_medium=brandedgames_external&utm_campaign=ArmyBlaster&utm_source=host&utm_content=ingame', blank);
}
}
}
frame 66 {
_root.stopmusicFunction();
randomMusic = random(_root.totalsongs);
_root['Music' + randomMusic].start(0, 99);
if (_root.music_mute == false) {
_root['Music' + randomMusic].setVolume(85);
}
if (_root.music_mute == true) {
_root['Music' + randomMusic].setVolume(0);
}
}
frame 70 {
}
frame 71 {
stop();
}
frame 72 {
}
instance of movieClip 1948 {
onClipEvent (rollOver) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(2);
}
onClipEvent (rollOut) {
gotoAndPlay(7);
}
onClipEvent (release) {
_root.saveitFunction();
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
_root.mainmenu.gotoAndPlay('customiseout');
}
}
instance of movieClip 1950 {
onClipEvent (rollOver) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(250);
gotoAndPlay(2);
}
onClipEvent (rollOut) {
gotoAndPlay(11);
}
onClipEvent (release) {
_root.button_press.start(0, 0);
_root.button_press.setVolume(80);
if (_root.player_headchoice < _parent.displaycase.appearancedisplay.head._totalframes) {
_root.player_headchoice += 1;
_root.hero.player_headchoice = _root.player_headchoice;
_parent.displaycase.appearancedisplay.head.gotoAndStop(_root.player_headchoice);
_parent.displaycase.gotoAndPlay(2);
}
}
}
instance of movieClip 1950 {
onClipEvent (rollOver) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(250);
gotoAndPlay(2);
}
onClipEvent (rollOut) {
gotoAndPlay(11);
}
onClipEvent (release) {
_root.button_press.start(0, 0);
_root.button_press.setVolume(80);
if (_root.player_headchoice > 1) {
_root.player_headchoice -= 1;
_root.hero.player_headchoice = _root.player_headchoice;
_parent.displaycase.appearancedisplay.head.gotoAndStop(_root.player_headchoice);
_parent.displaycase.gotoAndPlay(2);
_root.hero.walk.head.gotoAndStop(_root.player_headchoice);
}
}
}
frame 92 {
stop();
_root.manimenu.displaycase.appearancedisplay.head.gotoAndStop(_root.player_headchoice);
}
instance of movieClip 1920 {
onClipEvent (rollOver) {
if (_root.mainmenu._currentframe == 71) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(2);
}
}
onClipEvent (rollOut) {
if (_root.mainmenu._currentframe == 71) {
gotoAndPlay(7);
}
}
onClipEvent (release) {
if (_root.mainmenu._currentframe == 71) {
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
_root.mainmenu.gotoAndPlay('levelselect');
}
}
}
instance of movieClip 1773 {
onClipEvent (rollOver) {
if (_root.mainmenu._currentframe == 71) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(2);
}
}
onClipEvent (rollOut) {
if (_root.mainmenu._currentframe == 71) {
gotoAndPlay(7);
}
}
onClipEvent (release) {
if (_root.mainmenu._currentframe == 71) {
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
getURL('http://www.3wj.com/?utm_medium=brandedgames_external&utm_campaign=ArmyBlaster&utm_source=host&utm_content=ingame', blank);
}
}
}
instance of movieClip 1924 {
onClipEvent (rollOver) {
if (_root.mainmenu._currentframe == 71) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(2);
}
}
onClipEvent (rollOut) {
if (_root.mainmenu._currentframe == 71) {
gotoAndPlay(7);
}
}
onClipEvent (release) {
if (_root.mainmenu._currentframe == 71) {
_root.button_press.setVolume(100);
_root.mainmenu.gotoAndPlay('customise');
_root.button_press.start(0, 0);
}
}
}
instance of movieClip 1927 {
onClipEvent (rollOver) {
if (_root.mainmenu._currentframe == 71) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(2);
}
}
onClipEvent (rollOut) {
if (_root.mainmenu._currentframe == 71) {
gotoAndPlay(7);
}
}
onClipEvent (release) {
if (_root.mainmenu._currentframe == 71) {
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
_parent.gotoAndPlay('medals');
}
}
}
instance of movieClip 2790 {
onClipEvent (rollOver) {
if (_root.mainmenu._currentframe == 71) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(2);
}
}
onClipEvent (rollOut) {
if (_root.mainmenu._currentframe == 71) {
gotoAndPlay(7);
}
}
onClipEvent (release) {
if (_root.mainmenu._currentframe == 71) {
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
_root.mainmenu.gotoAndPlay('diffchoice');
}
}
}
frame 113 {
gotoAndStop('mainmenu');
}
instance of movieClip 1948 {
onClipEvent (rollOver) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(2);
}
onClipEvent (rollOut) {
gotoAndPlay(7);
}
onClipEvent (release) {
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
_root.mainmenu.gotoAndPlay('medalsout');
}
}
instance of movieClip 1957 {
onClipEvent (load) {
this.medaltitle = 'first blood';
if (_root.medal_1 == true) {
gotoAndStop(1);
} else {
gotoAndStop(2);
}
}
onClipEvent (rollOver) {
_parent.medaldescription = 'kill your first enemy';
}
}
instance of movieClip 1957 {
onClipEvent (load) {
this.medaltitle = 'cold killer';
if (_root.medal_4 == true) {
gotoAndStop(1);
} else {
gotoAndStop(2);
}
}
onClipEvent (rollOver) {
_parent.medaldescription = 'waste one hundred enemies ';
}
}
instance of movieClip 1957 {
onClipEvent (load) {
this.medaltitle = 'genocidal maniac';
if (_root.medal_2 == true) {
gotoAndStop(1);
} else {
gotoAndStop(2);
}
}
onClipEvent (rollOver) {
_parent.medaldescription = 'brutally murder five hundred enemies';
}
}
instance of movieClip 1957 {
onClipEvent (load) {
this.medaltitle = 'poor swimmer';
if (_root.medal_3 == true) {
gotoAndStop(1);
} else {
gotoAndStop(2);
}
}
onClipEvent (rollOver) {
_parent.medaldescription = 'drown in acid or water';
}
}
instance of movieClip 1957 {
onClipEvent (load) {
this.medaltitle = 'finger lickin';
if (_root.medal_5 == true) {
gotoAndStop(1);
} else {
gotoAndStop(2);
}
}
onClipEvent (rollOver) {
_parent.medaldescription = 'flamethrower a chicken';
}
}
instance of movieClip 1957 {
onClipEvent (load) {
this.medaltitle = 'star gazer';
if (_root.medal_6 == true) {
gotoAndStop(1);
} else {
gotoAndStop(2);
}
}
onClipEvent (rollOver) {
_parent.medaldescription = 'collect two hundred stars';
}
}
instance of movieClip 1957 {
onClipEvent (load) {
this.medaltitle = 'dragon slayer';
if (_root.medal_7 == true) {
gotoAndStop(1);
} else {
gotoAndStop(2);
}
}
onClipEvent (rollOver) {
_parent.medaldescription = 'slay a dragon... with a rocket launcher';
}
}
instance of movieClip 1957 {
onClipEvent (load) {
this.medaltitle = 'cowboy killer';
if (_root.medal_8 == true) {
gotoAndStop(1);
} else {
gotoAndStop(2);
}
}
onClipEvent (rollOver) {
_parent.medaldescription = 'defeat a cowboy at high noon';
}
}
instance of movieClip 1957 {
onClipEvent (load) {
this.medaltitle = 'robo rampage';
if (_root.medal_9 == true) {
gotoAndStop(1);
} else {
gotoAndStop(2);
}
}
onClipEvent (rollOver) {
_parent.medaldescription = 'epicly defeat a towering mechanoid';
}
}
instance of movieClip 1957 {
onClipEvent (load) {
this.medaltitle = 'demolition expert';
if (_root.medal_10 == true) {
gotoAndStop(1);
} else {
gotoAndStop(2);
}
}
onClipEvent (rollOver) {
_parent.medaldescription = 'set off twenty five explosions';
}
}
instance of movieClip 1957 {
onClipEvent (load) {
this.medaltitle = 'gun nut';
if (_root.medal_11 == true) {
gotoAndStop(1);
} else {
gotoAndStop(2);
}
}
onClipEvent (rollOver) {
_parent.medaldescription = 'unlock all weapons in the game';
}
}
instance of movieClip 1957 {
onClipEvent (load) {
this.medaltitle = 'film buff';
if (_root.medal_12 == true) {
gotoAndStop(1);
} else {
gotoAndStop(2);
}
}
onClipEvent (rollOver) {
_parent.medaldescription = 'dont skip a single cutscene';
}
}
frame 138 {
stop();
}
instance of movieClip 1920 {
onClipEvent (rollOver) {
if (_root.mainmenu._currentframe == 71) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(2);
}
}
onClipEvent (rollOut) {
if (_root.mainmenu._currentframe == 71) {
gotoAndPlay(7);
}
}
onClipEvent (release) {
if (_root.mainmenu._currentframe == 71) {
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
_root.mainmenu.gotoAndPlay('levelselect');
}
}
}
instance of movieClip 1773 {
onClipEvent (rollOver) {
if (_root.mainmenu._currentframe == 71) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(2);
}
}
onClipEvent (rollOut) {
if (_root.mainmenu._currentframe == 71) {
gotoAndPlay(7);
}
}
onClipEvent (release) {
if (_root.mainmenu._currentframe == 71) {
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
getURL('http://www.3wj.com/?utm_medium=brandedgames_external&utm_campaign=ArmyBlaster&utm_source=host&utm_content=ingame', blank);
}
}
}
instance of movieClip 1924 {
onClipEvent (rollOver) {
if (_root.mainmenu._currentframe == 71) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(2);
}
}
onClipEvent (rollOut) {
if (_root.mainmenu._currentframe == 71) {
gotoAndPlay(7);
}
}
onClipEvent (release) {
if (_root.mainmenu._currentframe == 71) {
_root.button_press.setVolume(100);
_root.mainmenu.gotoAndPlay('customise');
_root.button_press.start(0, 0);
}
}
}
instance of movieClip 1927 {
onClipEvent (rollOver) {
if (_root.mainmenu._currentframe == 71) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(2);
}
}
onClipEvent (rollOut) {
if (_root.mainmenu._currentframe == 71) {
gotoAndPlay(7);
}
}
onClipEvent (release) {
if (_root.mainmenu._currentframe == 71) {
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
_parent.gotoAndPlay('medals');
}
}
}
instance of movieClip 2790 {
onClipEvent (rollOver) {
if (_root.mainmenu._currentframe == 71) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(2);
}
}
onClipEvent (rollOut) {
if (_root.mainmenu._currentframe == 71) {
gotoAndPlay(7);
}
}
onClipEvent (release) {
if (_root.mainmenu._currentframe == 71) {
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
_root.mainmenu.gotoAndPlay('diffchoice');
}
}
}
frame 159 {
}
frame 161 {
gotoAndStop('mainmenu');
}
frame 165 {
}
frame 166 {
}
instance of movieClip 2854 {
onClipEvent (load) {
lvlname = 'lvl 2';
if (_root.lvl2 == true) {
gotoAndStop(2);
}
}
onClipEvent (rollOver) {
if (_currentframe == 2) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(3);
}
}
onClipEvent (rollOut) {
if (_currentframe > 1) {
gotoAndPlay(8);
}
}
onClipEvent (release) {
if (_currentframe > 1) {
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
_root.gotowhichlvl = 6;
_root.mainmenu.gotoAndPlay('levelselectout');
}
}
}
instance of movieClip 2854 {
onClipEvent (load) {
lvlname = 'lvl 1';
if (_root.lvl1 == true) {
gotoAndStop(2);
}
}
onClipEvent (rollOver) {
if (_currentframe == 2) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(3);
}
}
onClipEvent (rollOut) {
if (_currentframe > 1) {
gotoAndPlay(8);
}
}
onClipEvent (release) {
if (_currentframe > 1) {
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
_root.gotowhichlvl = 3;
_root.mainmenu.gotoAndPlay('levelselectout');
}
}
}
instance of movieClip 2854 {
onClipEvent (load) {
lvlname = 'lvl 3';
if (_root.lvl3 == true) {
gotoAndStop(2);
}
}
onClipEvent (rollOver) {
if (_currentframe == 2) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(3);
}
}
onClipEvent (rollOut) {
if (_currentframe > 1) {
gotoAndPlay(8);
}
}
onClipEvent (release) {
if (_currentframe > 1) {
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
_root.gotowhichlvl = 9;
_root.mainmenu.gotoAndPlay('levelselectout');
}
}
}
instance of movieClip 2854 {
onClipEvent (load) {
lvlname = 'lvl 4';
if (_root.lvl4 == true) {
gotoAndStop(2);
}
}
onClipEvent (rollOver) {
if (_currentframe == 2) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(3);
}
}
onClipEvent (rollOut) {
if (_currentframe > 1) {
gotoAndPlay(8);
}
}
onClipEvent (release) {
if (_currentframe > 1) {
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
_root.gotowhichlvl = 12;
_root.mainmenu.gotoAndPlay('levelselectout');
}
}
}
instance of movieClip 2854 {
onClipEvent (load) {
lvlname = 'lvl 7';
if (_root.lvl7 == true) {
gotoAndStop(2);
}
}
onClipEvent (rollOver) {
if (_currentframe == 2) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(3);
}
}
onClipEvent (rollOut) {
if (_currentframe > 1) {
gotoAndPlay(8);
}
}
onClipEvent (release) {
if (_currentframe > 1) {
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
_root.gotowhichlvl = 21;
_root.mainmenu.gotoAndPlay('levelselectout');
}
}
}
instance of movieClip 2854 {
onClipEvent (load) {
lvlname = 'lvl 6';
if (_root.lvl6 == true) {
gotoAndStop(2);
}
}
onClipEvent (rollOver) {
if (_currentframe == 2) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(3);
}
}
onClipEvent (rollOut) {
if (_currentframe > 1) {
gotoAndPlay(8);
}
}
onClipEvent (release) {
if (_currentframe > 1) {
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
_root.gotowhichlvl = 18;
_root.mainmenu.gotoAndPlay('levelselectout');
}
}
}
instance of movieClip 2854 {
onClipEvent (load) {
lvlname = 'lvl 8';
if (_root.lvl8 == true) {
gotoAndStop(2);
}
}
onClipEvent (rollOver) {
if (_currentframe == 2) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(3);
}
}
onClipEvent (rollOut) {
if (_currentframe > 1) {
gotoAndPlay(8);
}
}
onClipEvent (release) {
if (_currentframe > 1) {
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
_root.gotowhichlvl = 24;
_root.mainmenu.gotoAndPlay('levelselectout');
}
}
}
instance of movieClip 2854 {
onClipEvent (load) {
lvlname = 'lvl 5';
if (_root.lvl5 == true) {
gotoAndStop(2);
}
}
onClipEvent (rollOver) {
if (_currentframe == 2) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(3);
}
}
onClipEvent (rollOut) {
if (_currentframe > 1) {
gotoAndPlay(8);
}
}
onClipEvent (release) {
if (_currentframe > 1) {
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
_root.gotowhichlvl = 15;
_root.mainmenu.gotoAndPlay('levelselectout');
}
}
}
instance of movieClip 2858 {
onClipEvent (load) {
gotoAndStop(2);
}
onClipEvent (rollOver) {
if (_currentframe == 2) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(3);
}
}
onClipEvent (rollOut) {
if (_currentframe > 1) {
gotoAndPlay(8);
}
}
onClipEvent (release) {
if (_currentframe > 1) {
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
_root.gotoAndStop(33);
}
}
}
instance of movieClip 2858 {
onClipEvent (load) {
if (_root.cutscene3 == true) {
gotoAndStop(2);
}
}
onClipEvent (rollOver) {
if (_currentframe == 2) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(3);
}
}
onClipEvent (rollOut) {
if (_currentframe > 1) {
gotoAndPlay(8);
}
}
onClipEvent (release) {
if (_currentframe > 1) {
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
_root.gotoAndStop(36);
}
}
}
instance of movieClip 2858 {
onClipEvent (load) {
if (_root.cutscene5 == true) {
gotoAndStop(2);
}
}
onClipEvent (rollOver) {
if (_currentframe == 2) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(3);
}
}
onClipEvent (rollOut) {
if (_currentframe > 1) {
gotoAndPlay(8);
}
}
onClipEvent (release) {
if (_currentframe > 1) {
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
_root.gotoAndStop(37);
}
}
}
instance of movieClip 2858 {
onClipEvent (load) {
if (_root.cutscene6 == true) {
gotoAndStop(2);
}
}
onClipEvent (rollOver) {
if (_currentframe == 2) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(3);
}
}
onClipEvent (rollOut) {
if (_currentframe > 1) {
gotoAndPlay(8);
}
}
onClipEvent (release) {
if (_currentframe > 1) {
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
_root.gotoAndStop(38);
}
}
}
instance of movieClip 2858 {
onClipEvent (load) {
if (_root.cutscene2 == true) {
gotoAndStop(2);
}
}
onClipEvent (rollOver) {
if (_currentframe == 2) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(3);
}
}
onClipEvent (rollOut) {
if (_currentframe > 1) {
gotoAndPlay(8);
}
}
onClipEvent (release) {
if (_currentframe > 1) {
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
_root.gotoAndStop(34);
}
}
}
instance of movieClip 2858 {
onClipEvent (load) {
if (_root.cutscene4 == true) {
gotoAndStop(2);
}
}
onClipEvent (rollOver) {
if (_currentframe == 2) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(3);
}
}
onClipEvent (rollOut) {
if (_currentframe > 1) {
gotoAndPlay(8);
}
}
onClipEvent (release) {
if (_currentframe > 1) {
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
_root.gotoAndStop(35);
}
}
}
instance of movieClip 1948 {
onClipEvent (rollOver) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(2);
}
onClipEvent (rollOut) {
gotoAndPlay(7);
}
onClipEvent (release) {
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
_root.mainmenu.gotoAndPlay('levelselectback');
}
}
frame 183 {
stop();
}
frame 205 {
_root.stopmusicFunction();
_root.gotoAndPlay(_root.gotowhichlvl);
}
instance of movieClip 1920 {
onClipEvent (rollOver) {
if (_root.mainmenu._currentframe == 71) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(2);
}
}
onClipEvent (rollOut) {
if (_root.mainmenu._currentframe == 71) {
gotoAndPlay(7);
}
}
onClipEvent (release) {
if (_root.mainmenu._currentframe == 71) {
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
_root.mainmenu.gotoAndPlay('levelselect');
}
}
}
instance of movieClip 1773 {
onClipEvent (rollOver) {
if (_root.mainmenu._currentframe == 71) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(2);
}
}
onClipEvent (rollOut) {
if (_root.mainmenu._currentframe == 71) {
gotoAndPlay(7);
}
}
onClipEvent (release) {
if (_root.mainmenu._currentframe == 71) {
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
getURL('http://www.3wj.com/?utm_medium=brandedgames_external&utm_campaign=ArmyBlaster&utm_source=host&utm_content=ingame', blank);
}
}
}
instance of movieClip 1924 {
onClipEvent (rollOver) {
if (_root.mainmenu._currentframe == 71) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(2);
}
}
onClipEvent (rollOut) {
if (_root.mainmenu._currentframe == 71) {
gotoAndPlay(7);
}
}
onClipEvent (release) {
if (_root.mainmenu._currentframe == 71) {
_root.button_press.setVolume(100);
_root.mainmenu.gotoAndPlay('customise');
_root.button_press.start(0, 0);
}
}
}
instance of movieClip 1927 {
onClipEvent (rollOver) {
if (_root.mainmenu._currentframe == 71) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(2);
}
}
onClipEvent (rollOut) {
if (_root.mainmenu._currentframe == 71) {
gotoAndPlay(7);
}
}
onClipEvent (release) {
if (_root.mainmenu._currentframe == 71) {
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
_parent.gotoAndPlay('medals');
}
}
}
instance of movieClip 2790 {
onClipEvent (rollOver) {
if (_root.mainmenu._currentframe == 71) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(2);
}
}
onClipEvent (rollOut) {
if (_root.mainmenu._currentframe == 71) {
gotoAndPlay(7);
}
}
onClipEvent (release) {
if (_root.mainmenu._currentframe == 71) {
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
_root.mainmenu.gotoAndPlay('diffchoice');
}
}
}
frame 217 {
}
frame 217 {
}
instance of movieClip 1773 {
onClipEvent (rollOver) {
if (_root.mainmenu._currentframe == 71) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(2);
}
}
onClipEvent (rollOut) {
if (_root.mainmenu._currentframe == 71) {
gotoAndPlay(7);
}
}
onClipEvent (release) {
if (_root.mainmenu._currentframe == 71) {
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
_parent.gotoAndPlay('credits');
}
}
}
instance of movieClip 3047 {
onClipEvent (rollOver) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(2);
}
onClipEvent (rollOut) {
gotoAndPlay(7);
}
onClipEvent (release) {
if (_root.mainmenu._currentframe == 228) {
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
_root.mainmenu.gotoAndPlay('newgameout');
}
}
}
frame 218 {
}
instance of movieClip 1773 {
onClipEvent (rollOver) {
if (_root.mainmenu._currentframe == 71) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(2);
}
}
onClipEvent (rollOut) {
if (_root.mainmenu._currentframe == 71) {
gotoAndPlay(7);
}
}
onClipEvent (release) {
if (_root.mainmenu._currentframe == 71) {
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
getURL('http://www.3wj.com/?utm_medium=brandedgames_external&utm_campaign=ArmyBlaster&utm_source=host&utm_content=ingame', blank);
}
}
}
frame 228 {
stop();
}
frame 237 {
_root.stopmusicFunction();
_root.gotoAndStop('cutscene2');
}
instance of movieClip 2854 {
onClipEvent (load) {
lvlname = 'lvl 2';
if (_root.lvl2 == true) {
gotoAndStop(2);
}
}
onClipEvent (rollOver) {
if (_currentframe == 2) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(3);
}
}
onClipEvent (rollOut) {
if (_currentframe > 1) {
gotoAndPlay(8);
}
}
onClipEvent (release) {
if (_currentframe > 1) {
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
_root.gotowhichlvl = 6;
_root.mainmenu.gotoAndPlay('levelselectout');
}
}
}
instance of movieClip 2854 {
onClipEvent (load) {
lvlname = 'lvl 1';
if (_root.lvl1 == true) {
gotoAndStop(2);
}
}
onClipEvent (rollOver) {
if (_currentframe == 2) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(3);
}
}
onClipEvent (rollOut) {
if (_currentframe > 1) {
gotoAndPlay(8);
}
}
onClipEvent (release) {
if (_currentframe > 1) {
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
_root.gotowhichlvl = 3;
_root.mainmenu.gotoAndPlay('levelselectout');
}
}
}
instance of movieClip 2854 {
onClipEvent (load) {
lvlname = 'lvl 3';
if (_root.lvl3 == true) {
gotoAndStop(2);
}
}
onClipEvent (rollOver) {
if (_currentframe == 2) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(3);
}
}
onClipEvent (rollOut) {
if (_currentframe > 1) {
gotoAndPlay(8);
}
}
onClipEvent (release) {
if (_currentframe > 1) {
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
_root.gotowhichlvl = 9;
_root.mainmenu.gotoAndPlay('levelselectout');
}
}
}
instance of movieClip 2854 {
onClipEvent (load) {
lvlname = 'lvl 4';
if (_root.lvl4 == true) {
gotoAndStop(2);
}
}
onClipEvent (rollOver) {
if (_currentframe == 2) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(3);
}
}
onClipEvent (rollOut) {
if (_currentframe > 1) {
gotoAndPlay(8);
}
}
onClipEvent (release) {
if (_currentframe > 1) {
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
_root.gotowhichlvl = 12;
_root.mainmenu.gotoAndPlay('levelselectout');
}
}
}
instance of movieClip 2854 {
onClipEvent (load) {
lvlname = 'lvl 7';
if (_root.lvl7 == true) {
gotoAndStop(2);
}
}
onClipEvent (rollOver) {
if (_currentframe == 2) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(3);
}
}
onClipEvent (rollOut) {
if (_currentframe > 1) {
gotoAndPlay(8);
}
}
onClipEvent (release) {
if (_currentframe > 1) {
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
_root.gotowhichlvl = 21;
_root.mainmenu.gotoAndPlay('levelselectout');
}
}
}
instance of movieClip 2854 {
onClipEvent (load) {
lvlname = 'lvl 6';
if (_root.lvl6 == true) {
gotoAndStop(2);
}
}
onClipEvent (rollOver) {
if (_currentframe == 2) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(3);
}
}
onClipEvent (rollOut) {
if (_currentframe > 1) {
gotoAndPlay(8);
}
}
onClipEvent (release) {
if (_currentframe > 1) {
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
_root.gotowhichlvl = 18;
_root.mainmenu.gotoAndPlay('levelselectout');
}
}
}
instance of movieClip 2854 {
onClipEvent (load) {
lvlname = 'lvl 8';
if (_root.lvl8 == true) {
gotoAndStop(2);
}
}
onClipEvent (rollOver) {
if (_currentframe == 2) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(3);
}
}
onClipEvent (rollOut) {
if (_currentframe > 1) {
gotoAndPlay(8);
}
}
onClipEvent (release) {
if (_currentframe > 1) {
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
_root.gotowhichlvl = 24;
_root.mainmenu.gotoAndPlay('levelselectout');
}
}
}
instance of movieClip 2854 {
onClipEvent (load) {
lvlname = 'lvl 5';
if (_root.lvl5 == true) {
gotoAndStop(2);
}
}
onClipEvent (rollOver) {
if (_currentframe == 2) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(3);
}
}
onClipEvent (rollOut) {
if (_currentframe > 1) {
gotoAndPlay(8);
}
}
onClipEvent (release) {
if (_currentframe > 1) {
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
_root.gotowhichlvl = 15;
_root.mainmenu.gotoAndPlay('levelselectout');
}
}
}
instance of movieClip 2858 {
onClipEvent (load) {
gotoAndStop(2);
}
onClipEvent (rollOver) {
if (_currentframe == 2) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(3);
}
}
onClipEvent (rollOut) {
if (_currentframe > 1) {
gotoAndPlay(8);
}
}
onClipEvent (release) {
if (_currentframe > 1) {
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
_root.gotoAndStop(33);
}
}
}
instance of movieClip 2858 {
onClipEvent (load) {
if (_root.cutscene3 == true) {
gotoAndStop(2);
}
}
onClipEvent (rollOver) {
if (_currentframe == 2) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(3);
}
}
onClipEvent (rollOut) {
if (_currentframe > 1) {
gotoAndPlay(8);
}
}
onClipEvent (release) {
if (_currentframe > 1) {
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
_root.gotoAndStop(36);
}
}
}
instance of movieClip 2858 {
onClipEvent (load) {
if (_root.cutscene5 == true) {
gotoAndStop(2);
}
}
onClipEvent (rollOver) {
if (_currentframe == 2) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(3);
}
}
onClipEvent (rollOut) {
if (_currentframe > 1) {
gotoAndPlay(8);
}
}
onClipEvent (release) {
if (_currentframe > 1) {
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
_root.gotoAndStop(37);
}
}
}
instance of movieClip 2858 {
onClipEvent (load) {
if (_root.cutscene6 == true) {
gotoAndStop(2);
}
}
onClipEvent (rollOver) {
if (_currentframe == 2) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(3);
}
}
onClipEvent (rollOut) {
if (_currentframe > 1) {
gotoAndPlay(8);
}
}
onClipEvent (release) {
if (_currentframe > 1) {
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
_root.gotoAndStop(38);
}
}
}
instance of movieClip 2858 {
onClipEvent (load) {
if (_root.cutscene2 == true) {
gotoAndStop(2);
}
}
onClipEvent (rollOver) {
if (_currentframe == 2) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(3);
}
}
onClipEvent (rollOut) {
if (_currentframe > 1) {
gotoAndPlay(8);
}
}
onClipEvent (release) {
if (_currentframe > 1) {
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
_root.gotoAndStop(34);
}
}
}
instance of movieClip 2858 {
onClipEvent (load) {
if (_root.cutscene4 == true) {
gotoAndStop(2);
}
}
onClipEvent (rollOver) {
if (_currentframe == 2) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(3);
}
}
onClipEvent (rollOut) {
if (_currentframe > 1) {
gotoAndPlay(8);
}
}
onClipEvent (release) {
if (_currentframe > 1) {
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
_root.gotoAndStop(35);
}
}
}
instance of movieClip 1948 {
onClipEvent (rollOver) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(2);
}
onClipEvent (rollOut) {
gotoAndPlay(7);
}
onClipEvent (release) {
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
_root.mainmenu.gotoAndPlay('levelselectback');
}
}
instance of movieClip 1920 {
onClipEvent (rollOver) {
if (_root.mainmenu._currentframe == 71) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(2);
}
}
onClipEvent (rollOut) {
if (_root.mainmenu._currentframe == 71) {
gotoAndPlay(7);
}
}
onClipEvent (release) {
if (_root.mainmenu._currentframe == 71) {
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
_root.mainmenu.gotoAndPlay('levelselect');
}
}
}
instance of movieClip 1773 {
onClipEvent (rollOver) {
if (_root.mainmenu._currentframe == 71) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(2);
}
}
onClipEvent (rollOut) {
if (_root.mainmenu._currentframe == 71) {
gotoAndPlay(7);
}
}
onClipEvent (release) {
if (_root.mainmenu._currentframe == 71) {
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
getURL('http://www.3wj.com/?utm_medium=brandedgames_external&utm_campaign=ArmyBlaster&utm_source=host&utm_content=ingame', blank);
}
}
}
instance of movieClip 1924 {
onClipEvent (rollOver) {
if (_root.mainmenu._currentframe == 71) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(2);
}
}
onClipEvent (rollOut) {
if (_root.mainmenu._currentframe == 71) {
gotoAndPlay(7);
}
}
onClipEvent (release) {
if (_root.mainmenu._currentframe == 71) {
_root.button_press.setVolume(100);
_root.mainmenu.gotoAndPlay('customise');
_root.button_press.start(0, 0);
}
}
}
instance of movieClip 1927 {
onClipEvent (rollOver) {
if (_root.mainmenu._currentframe == 71) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(2);
}
}
onClipEvent (rollOut) {
if (_root.mainmenu._currentframe == 71) {
gotoAndPlay(7);
}
}
onClipEvent (release) {
if (_root.mainmenu._currentframe == 71) {
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
_parent.gotoAndPlay('medals');
}
}
}
instance of movieClip 2790 {
onClipEvent (rollOver) {
if (_root.mainmenu._currentframe == 71) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(2);
}
}
onClipEvent (rollOut) {
if (_root.mainmenu._currentframe == 71) {
gotoAndPlay(7);
}
}
onClipEvent (release) {
if (_root.mainmenu._currentframe == 71) {
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
_root.mainmenu.gotoAndPlay('diffchoice');
}
}
}
frame 258 {
gotoAndStop('mainmenu');
}
instance of movieClip 3094 {
onClipEvent (rollOver) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(2);
}
onClipEvent (rollOut) {
gotoAndPlay(7);
}
onClipEvent (release) {
if (_root.mainmenu._currentframe == 266) {
_root.saveresetFunction();
_root.options_difficulty = 'easy';
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
_root.mainmenu.gotoAndPlay('diffchoiceout');
}
}
}
instance of movieClip 3097 {
onClipEvent (rollOver) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(2);
}
onClipEvent (rollOut) {
gotoAndPlay(7);
}
onClipEvent (release) {
if (_root.mainmenu._currentframe == 266) {
_root.saveresetFunction();
_root.options_difficulty = 'medium';
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
_root.mainmenu.gotoAndPlay('diffchoiceout');
}
}
}
instance of movieClip 3100 {
onClipEvent (rollOver) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(2);
}
onClipEvent (rollOut) {
gotoAndPlay(7);
}
onClipEvent (release) {
if (_root.mainmenu._currentframe == 266) {
_root.saveresetFunction();
_root.options_difficulty = 'hard';
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
_root.mainmenu.gotoAndPlay('diffchoiceout');
}
}
}
instance of movieClip 1948 {
onClipEvent (rollOver) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(2);
}
onClipEvent (rollOut) {
gotoAndPlay(7);
}
onClipEvent (release) {
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
_root.mainmenu.gotoAndPlay('diffchoiceback');
}
}
frame 266 {
stop();
}
frame 279 {
_root.saveitFunction();
gotoAndPlay('newgame');
}
frame 292 {
gotoAndStop('mainmenu');
}
frame 293 {
stop();
}
instance of movieClip 1948 {
onClipEvent (rollOver) {
_root.button_over.start(0, 0);
_root.button_over.setVolume(200);
gotoAndPlay(2);
}
onClipEvent (rollOut) {
gotoAndPlay(7);
}
onClipEvent (release) {
_root.button_press.start(0, 0);
_root.button_press.setVolume(100);
_root.mainmenu.gotoAndStop('mainmenu');
}
}
}
frame 33 {
_root.stopmusicFunction();
_root.cutscene1 = true;
stop();
}
movieClip 3108 {
}
movieClip 3111 {
}
movieClip 3116 {
}
movieClip 3117 {
}
movieClip 3137 {
}
movieClip 3144 {
}
movieClip 3155 {
}
movieClip 3161 {
}
movieClip 3168 {
}
movieClip 3171 {
}
movieClip 3172 {
}
movieClip 3175 {
}
movieClip 3177 {
}
movieClip 3179 {
}
movieClip 3193 {
}
movieClip 3196 {
}
movieClip 3198 {
}
movieClip 3218 {
}
movieClip 3221 {
}
movieClip 3260 {
frame 1 {
onEnterFrame = function () {
if (Key.isDown(32)) {
delete this.onEnterFrame;
_root.gotoAndStop('mainmenu');
}
};
}
frame 515 {
onEnterFrame = function () {
if (Key.isDown(32)) {
delete this.onEnterFrame;
_root.gotoAndStop('mainmenu');
}
};
}
frame 516 {
delete this.onEnterFrame;
}
frame 520 {
_root.gotoAndStop('mainmenu');
}
}
frame 34 {
_root.stopmusicFunction();
_root.cutscene2 = true;
}
movieClip 3262 {
}
movieClip 3267 {
}
movieClip 3269 {
}
movieClip 3274 {
}
movieClip 3275 {
}
movieClip 3277 {
}
movieClip 3282 {
}
movieClip 3293 {
}
movieClip 3319 {
}
movieClip 3342 {
frame 1 {
onEnterFrame = function () {
if (Key.isDown(32)) {
delete this.onEnterFrame;
_root.gotoAndPlay('level1');
}
};
}
frame 48 {
stop();
onMouseDown = function () {
play();
};
}
frame 57 {
stop();
onMouseDown = function () {
play();
};
}
frame 68 {
stop();
onMouseDown = function () {
play();
};
}
frame 77 {
stop();
onMouseDown = function () {
play();
};
}
frame 87 {
stop();
onMouseDown = function () {
play();
};
}
frame 266 {
_root.Music3.start(0, 99);
_root.Music3.setVolume(65);
}
frame 344 {
stop();
onMouseDown = function () {
play();
};
}
frame 399 {
_root.stopmusicFunction();
}
frame 462 {
delete this.onEnterFrame;
_root.stopmusicFunction();
}
frame 465 {
_root.gotoAndPlay('level1');
}
}
frame 35 {
_root.stopmusicFunction();
_root.cutscene4 = true;
}
movieClip 3346 {
}
movieClip 3347 {
}
movieClip 3372 {
}
movieClip 3374 {
}
movieClip 3376 {
}
movieClip 3383 {
}
movieClip 3385 {
}
movieClip 3402 {
}
movieClip 3403 {
}
movieClip 3412 {
}
movieClip 3415 {
frame 1 {
onEnterFrame = function () {
if (Key.isDown(32)) {
delete this.onEnterFrame;
_root.gotoAndPlay('pirate1');
}
};
_root.Music3.start(0, 99);
_root.Music3.setVolume(65);
}
frame 12 {
stop();
onMouseDown = function () {
play();
};
}
frame 23 {
stop();
onMouseDown = function () {
play();
};
}
frame 77 {
stop();
onMouseDown = function () {
play();
};
}
frame 155 {
stop();
onMouseDown = function () {
play();
};
}
frame 185 {
_root.stopmusicFunction();
}
frame 321 {
stop();
onMouseDown = function () {
play();
};
}
frame 322 {
_root.Music3.start(0, 99);
_root.Music3.setVolume(65);
}
frame 331 {
stop();
onMouseDown = function () {
play();
};
}
frame 367 {
stop();
onMouseDown = function () {
play();
};
}
frame 368 {
_root.stopmusicFunction();
}
frame 443 {
_root.Music3.start(0, 99);
_root.Music3.setVolume(65);
}
frame 457 {
stop();
onMouseDown = function () {
play();
};
}
frame 463 {
stop();
onMouseDown = function () {
play();
};
}
frame 467 {
stop();
onMouseDown = function () {
play();
};
}
frame 520 {
_root.gotoAndPlay('pirate1');
}
}
movieClip 3417 {
}
frame 36 {
_root.stopmusicFunction();
_root.cutscene3 = true;
}
movieClip 3420 {
}
movieClip 3422 {
}
movieClip 3425 {
}
movieClip 3438 {
}
movieClip 3446 {
}
movieClip 3448 {
}
movieClip 3450 {
}
movieClip 3453 {
}
movieClip 3454 {
}
movieClip 3456 {
}
movieClip 3463 {
}
movieClip 3465 {
}
movieClip 3467 {
}
movieClip 3469 {
}
movieClip 3472 {
}
movieClip 3473 {
}
movieClip 3476 {
}
movieClip 3489 {
frame 1 {
onEnterFrame = function () {
if (Key.isDown(32)) {
delete this.onEnterFrame;
_root.gotoAndPlay('wildwest1');
}
};
_root.Music3.start(0, 99);
_root.Music3.setVolume(65);
}
frame 32 {
stop();
onMouseDown = function () {
play();
};
}
frame 47 {
_root.stopmusicFunction();
}
frame 64 {
stop();
onMouseDown = function () {
play();
};
}
frame 95 {
_root.Music3.start(0, 99);
_root.Music3.setVolume(65);
}
frame 115 {
stop();
onMouseDown = function () {
play();
};
}
frame 156 {
stop();
onMouseDown = function () {
play();
};
}
frame 157 {
delete this.onEnterFrame;
_root.stopmusicFunction();
}
frame 177 {
delete this.onEnterFrame;
_root.stopmusicFunction();
}
frame 181 {
_root.gotoAndPlay('wildwest1');
}
}
movieClip 3491 {
}
frame 37 {
_root.stopmusicFunction();
_root.cutscene5 = true;
}
movieClip 3494 {
}
movieClip 3495 {
}
movieClip 3498 {
}
movieClip 3504 {
}
movieClip 3508 {
}
movieClip 3523 {
frame 1 {
onEnterFrame = function () {
if (Key.isDown(32)) {
delete this.onEnterFrame;
_root.gotoAndPlay('tobo boss');
}
};
}
frame 336 {
delete this.onEnterFrame;
}
frame 339 {
_root.gotoAndPlay('tobo boss');
}
}
movieClip 3524 {
}
frame 38 {
_root.stopmusicFunction();
_root.cutscene6 = true;
}
movieClip 3539 {
}
movieClip 3542 {
}
movieClip 3558 {
frame 1 {
_root.Music3.start(0, 99);
_root.Music3.setVolume(65);
}
frame 76 {
stop();
onMouseDown = function () {
play();
};
}
frame 114 {
stop();
onMouseDown = function () {
play();
};
}
frame 191 {
_root.stopmusicFunction();
}
frame 192 {
_root.gotoAndStop('endofgame');
}
}