STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
228139
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2561 · P5122

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/81763172?noj=FRM81763172-19DC" width="1" height="1"></div>

Tanks V2.swf

This is the info page for
Flash #25465

(Click the ID number above for more basic data on this flash file.)


Text
100

180

100

Name

Name

<p align="left"><font face="Swiss921 BT" size="14" color="#324129">$</font></p>

999999

9999

FIRE

FIRE

<p align="left"><font face="Swiss921 BT" size="14" color="#e8ecdf">$</font></p>

999999

100

180

100

9999

Quality

Quality

High

Medium

Low

High

Medium

Low

Repair

99

99

Activate parachutes

99

99

Deactivate parachutes

Teleport

99

99

Activate shield

Activate weak shield

99

99

Activate strong shield

99

Activate super shield

99

Disable active shield

Next player

special

200000

10

999

special

weapon

200000

10

999

weapon

A A A B C D

1234567

A A A B C D

1234567

00

FREEONLINEGAMES.COM

L    O    A    D    I    N    G

FREE

ONLINE

GAMES.COM

Mountains

Forest

Desert

Random

Mountains

Forest

Desert

Random

2

Terrain type

PLAYERS

Terrain type

PLAYERS

Download This Game

Download This Game

Download This Game

Download This Game

Download This Game

Download This Game

Play More Games

Play More Games

Play More Games

Play More Games

Play More Games

Play More Games

Add Free Games to Your Website

Add Free Games to Your Website

Game Instructions

Game Instructions

Game Instructions

Game Instructions

Game Instructions

Game Instructions

CONTROLS

CONTROLS

LEFT & RIGHT ARROW - MOVE
UP & DOWN ARROW - CANNON ROTATION
PGUP & PGDN - fire POWER
"q" & "w" - change weapon
SPACE - FIRE

LEFT & RIGHT ARROW - MOVE
UP & DOWN ARROW - CANNON ROTATION
PGUP & PGDN - fire POWER
"q" & "w" - change weapon
SPACE - FIRE

by   freeonlinegames.com

by   freeonlinegames.com

Name:

Color:

AI:

Ai difficulty:

very easy

easy

normal

Hard

very hard

Ai difficulty:

very easy

easy

normal

Hard

very hard

Name:

Color:

AI:

Generating terrain....

Generating terrain....

Play More Games

Pause (P)

Sound (S)

Main Menu

Download This Game

Play More Games

Pause (P)

Sound (S)

Main Menu

Download This Game

MENU

MENU

DJ

DS(6)

DS(5)

DS(4)

DS(3)

SS(6)

SS(5)

SS(4)

SS(3)

ActionScript [AS1/AS2]

Frame 1
b1 = _root.getBytesLoaded(); b2 = _root.getBytesTotal(); tgPrel = 1 + Math.round((b1 * 100) / b2); prel.gotoAndStop(tgPrel); if (b1 >= b2) { gotoAndPlay ("intro"); }
Frame 4
if (Math.round(b1 / 1024) <= 35) { gotoAndPlay ("loop1"); }
Frame 5
b1 = _root.getBytesLoaded(); b2 = _root.getBytesTotal(); tgPrel = 1 + Math.round((b1 * 100) / b2); tg = tgprel - 1; if (tg <= 9) { procent = "0" + tg; } else { procent = tg; } prel.gotoAndStop(tgPrel);
Frame 9
if (Math.round(b1 / 1024) <= 100) { gotoAndPlay ("loop2"); }
Frame 11
b1 = _root.getBytesLoaded(); b2 = _root.getBytesTotal(); tgPrel = 1 + Math.round((b1 * 100) / b2); tg = tgprel - 2; if (tgprel <= 9) { procent = "0" + tg; } else { procent = tg; } prel.gotoAndStop(tgPrel);
Frame 14
if (b1 < b2) { gotoAndPlay ("loop3"); }
Frame 15
procent = "--"; prel.gotoAndStop(100);
Frame 175
krajina = 0; pocet_hracu = 2; _quality = "HIGH"; debugging = true; released = false;
Instance of Symbol 477 MovieClip in Frame 175
//component parameters onClipEvent (construct) { wynume = "tanks"; wyculoare = 4741945 /* 0x485B39 */; wyasezare = "Vertical"; wyaliniere = "Stanga"; wypozitie = "Jos"; wyinstructions = true; }
Instance of Symbol 494 MovieClip "borderGame" in Frame 175
onClipEvent (load) { this.swapDepths(999999); }
Frame 176
weapons = new Array(); weapons[0] = ["bmissile", "Small missile", 0, 0, "bmissile_g"]; weapons[1] = ["missile", "Missile", 2000, 10, "missile_g"]; weapons[2] = ["bnuke", "Small atom bomb", 5000, 2, "bnuke_g"]; weapons[3] = ["nuke", "Atom bomb", 13000, 1, "nuke_g"]; weapons[4] = ["funky", "Volcano bomb", 8000, 2, "funky_g"]; weapons[5] = ["mirv", "Shower", 9000, 2, "mirv_g"]; weapons[6] = ["death", "Hot shower", 30000, 1, "death_g"]; weapons[7] = ["broller", "Small ball", 5000, 5, "broller_g"]; weapons[8] = ["roller", "Ball", 6000, 2, "roller_g"]; weapons[9] = ["hroller", "Large ball", 15000, 1, "hroller_g"]; weapons[10] = ["broller2", "Small ball V2", 6500, 5, "broller2_g"]; weapons[11] = ["roller2", "Ball V2", 7500, 2, "roller2_g"]; weapons[12] = ["hroller2", "Large ball V2", 18000, 1, "hroller2_g"]; weapons[13] = ["astrike", "Air strike", 25000, 1, "astrike_g"]; specials = new Array(); specials[0] = ["par", "Parachutes", 5000, 5]; specials[1] = ["repair", "Repair kit", 4000, 5]; specials[2] = ["fuel", "Fuel", 3000, 50]; specials[3] = ["sshield", "Weak shield", 5000, 2, "weak_sh"]; specials[4] = ["shield", "Shield", 10000, 1, "shield_sh"]; specials[5] = ["stshield", "Strong shield", 15000, 1, "strong_sh"]; specials[6] = ["spshield", "Super shield", 20000, 1, "super_sh"]; specials[7] = ["teleport", "Teleport", 15000, 1]; specials[8] = ["upenergy", "Upgrade energy", 5000, 1]; specials[9] = ["uparmor", "Upgrade armor", 10000, 1]; specials[10] = ["upmove", "Upgrade engine", 7000, 1]; specials[11] = ["uphill", "Upgrade hill move", 5000, 1]; i = 1; while (i < (pocet_hracu + 1)) { _root["tank_" + i] = new Object(); _root["tank_" + i].guns = new Array(); _root["tank_" + i].specials = new Array(); x = 0; while (x < weapons.length) { _root["tank_" + i].guns[x] = 0; x++; } x = 0; while (x < specials.length) { _root["tank_" + i].specials[x] = 0; x++; } _root["tank_" + i].guns[0] = 99; _root["tank_" + i].guns[4] = 100; _root["tank_" + i].t_num = i; _root["tank_" + i].cur_gun = 0; _root["tank_" + i].energy = 100; _root["tank_" + i].max_energy = 100; _root["tank_" + i].shield = 1; _root["tank_" + i].specials[0] = 8; _root["tank_" + i].specials[1] = 8; _root["tank_" + i].specials[3] = 8; _root["tank_" + i].specials[4] = 8; _root["tank_" + i].specials[5] = 8; _root["tank_" + i].specials[6] = 8; _root["tank_" + i].specials[2] = 250; _root["tank_" + i].specials[7] = 8; _root["tank_" + i].fuel = 500; _root["tank_" + i].score = 5000; _root["tank_" + i].total_score = 0; _root["tank_" + i].live = true; _root["tank_" + i].kills = 0; _root["tank_" + i].col = 3355443 /* 0x333333 */; _root["tank_" + i].name = ""; i++; } if (krajina == 0) { rand_krajina = true; } game = 0; uk = "Next player"; name = ""; cur = 1; cislo = "Player " + cur; firstgame = true; type = "tank"; released = false; dif = "normal";
Instance of Symbol 533 MovieClip in Frame 176
onClipEvent (load) { _alpha = 0; speed = 2; } onClipEvent (enterFrame) { if ((_root.type == "ai") && (_alpha < 100)) { _alpha = (_alpha + speed); } else if ((_root.type == "tank") && (_alpha > 0)) { _alpha = (_alpha - speed); } }
Frame 177
_root.myWeapons = new Array(); removeMovieClip(_root.theMenu); i = 0; while (i <= 13) { i++; } panel._visible = false; i = 1; while (i <= pocet_hracu) { _root["tank_" + i].live = true; _root["tank_" + i].max_energy = 100 + (_root["tank_" + i].specials[8] * 10); _root["tank_" + i].energy = _root["tank_" + i].max_energy; _root["tank_" + i].fuel = _root["tank_" + i].specials[2]; i++; } game++;
Instance of Symbol 544 MovieClip "uv" in Frame 177
onClipEvent (load) { this.swapDepths(34567); }
Frame 178
trace(pocet_hracu); removeMovieClip(_root.theMenu); if (_root.myTank != null) { i = 1; while (i <= pocet_hracu) { if (i != _root.myTank) { j = 0; while (j <= 13) { _root["tank_" + i].guns[j] = _root["tank_" + _root.myTank].guns[j]; j++; } } i++; } } trace("111"); stop();
Instance of Symbol 546 MovieClip in Frame 178
onClipEvent (load) { i = 0; if (_root.rand_krajina) { _root.krajina = random(3) + 1; } if (_root.krajina == 1) { _root.vitrchange = 16; rn = 0; while (rn == 0) { rn = random(3) - 1; } _root.vitr = (random(50) + 30) * rn; _root.attachMovie("krajina1", "pozadi", 1); _root.pozadi._x = 274; _root.pozadi._y = 203.4; _root.land._x = 500; n2 = random(200) + 100; n3 = random(300) + 50; n4 = random(300) + 50; ran = random(500); pocet = random(5) + 2; } else if (_root.krajina == 2) { _root.vitrchange = 12; rn = 0; while (rn == 0) { rn = random(3) - 1; } _root.vitr = (random(25) + 25) * rn; _root.attachMovie("krajina2", "pozadi", 1); _root.pozadi._x = 248.8; _root.pozadi._y = 334.6; _root.land._y = 536; n2 = random(100) + 50; n3 = random(200) + 50; n4 = random(200) + 50; ran = random(500); pocet = random(6) + 2; f = random(50) + 10; } else if (_root.krajina == 3) { _root.vitrchange = 6; rn = 0; while (rn == 0) { rn = random(3) - 1; } _root.vitr = random(20) * rn; _root.attachMovie("krajina3", "pozadi", 1); _root.pozadi._x = 274; _root.pozadi._y = 200.6; _root.land._y = 615; i = 0; rand = (random(400) / 10) + 1; rand2 = (random(15) + 1) / 10; } } onClipEvent (enterFrame) { if (i < 540) { f = i + 40; } if (_root.krajina == 1) { while (i < f) { duplicateMovieClip (_root.land, "land" + i, i + 8000); _root["land" + i]._x = i; _root["land" + i]._y = _root["land" + i]._y + (((Math.sin((Math.PI / n3) * i) * Math.cos((Math.PI / n4) * i)) * (ran - i)) / 2); col = new Color(_root["land" + i]); col.setRGB(16777215); i++; } } if (_root.krajina == 2) { while (i < f) { duplicateMovieClip (_root.land, "land" + i, i + 8000); _root["land" + i]._x = i; _root["land" + i]._y = _root["land" + i]._y + ((((Math.sin((Math.PI/180) * i) * Math.cos((Math.PI / n4) * i)) * (ran - i)) / 4) / 2); col = new Color(_root["land" + i]); barv = _root["land" + i]._height / 12; mycoltrans = new Object(); mycoltrans.ra = 100; mycoltrans.rb = 120; mycoltrans.ga = 100; mycoltrans.gb = 130 + barv; mycoltrans.ba = 100; mycoltrans.bb = 0; mycoltrans.aa = 100; mycoltrans.ab = 0; col.setTransform(mycoltrans); i++; } } if (_root.krajina == 3) { while (i < f) { duplicateMovieClip (_root.land, "land" + i, i + 8000); _root["land" + i]._x = i; _root["land" + i]._y = _root["land" + i]._y + ((Math.sin(((Math.PI/180) * i) * rand2) * rand) / 2); col = new Color(_root["land" + i]); barv = _root["land" + i]._height / 12; mycoltrans = new Object(); mycoltrans.ra = 100; mycoltrans.rb = 234; mycoltrans.ga = 100; mycoltrans.gb = 221; mycoltrans.ba = 100; mycoltrans.bb = 181; mycoltrans.aa = 100; mycoltrans.ab = 0; col.setTransform(mycoltrans); i++; } } if (i >= 550) { if (_root.krajina == 1) { i = 0; while (i < pocet) { _root.attachMovie("strom_1", "strom" add i, 20000 + i); i++; } } if (_root.krajina == 2) { f = 0; i = 0; while (i < 100) { _root.attachMovie("strom_2", "strom" add i, 20000 + i); _root["strom" + i]._x = f; f = f + (random(30) + 8); if (f > 550) { break; } i++; } } _root.uv.removeMovieClip(); _root.gotoAndPlay("hra"); } if (i <= 500) { _root.uv.percent._width = Math.round((i / 550) * 100) * 2; _root.uv.percent._x = -95.3 + Math.round((i / 550) * 100); } else { _root.uv.percent._width = 200; _root.uv.percent._x = 4.7; } }
Frame 179
function nextplayer() { na_rade = next; if ((na_rade.tank_number < pocet_hracu) && (hracu > 1)) { next = eval ("tank" + Number(na_rade.tank_number + 1)); } else if (hracu > 1) { next = tank1; } na_rade.playing = true; if ((_root["tank_" + na_rade.tank_number].live == false) && (hracu > 1)) { nextplayer(); } else if (hracu > 1) { na_rade.blik(); } vitr = vitr + ((-random(vitrchange)) + (vitrchange / 2)); panel.player_changed(); na_rade.na_rade(); } function test() { i = 1; while (i <= pocet_hracu) { _root["tank" + i].playing = false; _root["tank" + i].testing = true; _root["tank" + i].na_zemi = false; i++; } testing = true; } i = 1; while (i < (pocet_hracu + 1)) { if (_root["tank_" + i].type == "tank") { _root.attachMovie(_root["tank_" + i].type, "tank" + i, 10000 + i); } else { _root.attachMovie((_root["tank_" + i].type add "_") add _root["tank_" + i].dif, "tank" + i, 10000 + i); } tank = _root["tank" + i]; tank.type = _root["tank_" + i].type; col = new Color(tank.col); col.setRGB(_root["tank_" + i].col); tank.tank_number = i; tank._x = random(500) + 20; while ((_root["land" + tank._x]._y - (_root["land" + tank._x]._height / 2)) > 400) { tank._x = random(500) + 20; } f = 1; while (f < i) { if ((tank._x < (_root["tank" + f]._x + (350 / _root.pocet_hracu))) && (tank._x > (_root["tank" + f]._x - (350 / _root.pocet_hracu)))) { tank._x = random(500) + 20; while ((_root["land" + tank._x]._y - (_root["land" + tank._x]._height / 2)) > 400) { tank._x = random(500) + 20; } f = 0; } f++; } tank.playing = false; i++; } _root.attachMovie("panel", "panel", 1000000); panel._x = 442.6; panel._y = 28.4; fired = false; power = 50; next = tank1; i = 1; while (i <= pocet_hracu) { if (_root["tank_" + i].total_score < _root["tank_" + next.tank_number].total_score) { next = _root["tank" + i]; } i++; } hracu = pocet_hracu; panel._visible = true; end = false; fuel_c = 1 / (_root["tank_" + tank_number].specials[10] + 1);
Instance of Symbol 593 MovieClip "theMenu" in Frame 179
//component parameters onClipEvent (construct) { wxnume = "tanks"; wxaliniere = "Stanga-Sus"; wxculoare = 4347438 /* 0x42562E */; wxdownload = true; wxpause = false; wxsound = false; } onClipEvent (load) { this.swapDepths(777777); }
Frame 180
test(); stop();
Instance of Symbol 594 MovieClip in Frame 180
onClipEvent (enterFrame) { if (_root.testing) { test = false; i = 1; while (i <= _root.pocet_hracu) { if ((_root["tank" + i].testing != false) && (_root["tank_" + i].live == true)) { test = true; break; } i++; } if (!test) { if (_root.hracu > 1) { _root.nextplayer(); } _root.testing = false; } if (((_root.hracu < 2) && (_root.end == false)) && (_root.testing == false)) { _root.end = true; play(); } } }
Frame 181
i = 0; while (i <= 2000) { _root["land" + i].removeMovieClip(); i++; } i = 0; while (i < 100) { _root["strom" + i].removeMovieClip(); i++; } i = 1; while (i <= _root.pocet_hracu) { _root["shield" + i].removeMovieClip(); _root["parachute" + i].removeMovieClip(); _root["tank" + i].removeMovieClip(); _root[("tank" + i) + "_hlaven"].removeMovieClip(); i++; } _root.panel.removeMovieClip(); _root.pozadi.removeMovieClip(); _root.strela.removeMovieClip(); _root.border.removeMovieClip(); _root.theMenu.removeMovieClip(); _root.gotoAndPlay("inceputJoc"); stop();
Symbol 2 MovieClip [strom_2] Frame 1
_y = (_root["land" + _x]._y - (_root["land" + _x]._height / 2)); fall = 0;
Symbol 2 MovieClip [strom_2] Frame 2
if (_y < (_root["land" + _x]._y - (_root["land" + _x]._height / 2))) { _y = (_y + fall); fall = fall + 1; } else { fall = 0; }
Symbol 2 MovieClip [strom_2] Frame 3
gotoAndPlay (2);
Symbol 4 MovieClip [strom_1] Frame 1
_x = random(550); _y = (_root["land" + _x]._y - (_root["land" + _x]._height / 2)); fall = 0;
Symbol 4 MovieClip [strom_1] Frame 2
if (Math.floor(_y) < Math.floor(_root["land" + _x]._y - (_root["land" + _x]._height / 2))) { _y = (_y + fall); fall = fall + 1; } else { fall = 0; }
Symbol 4 MovieClip [strom_1] Frame 3
gotoAndPlay (2);
Symbol 15 MovieClip [ai_very_easy] Frame 1
function test_hill() { calc_hill_up(); if (((_root["land" + Math.ceil(_x - (_width / 2))]._y - (_root["land" + Math.ceil(_x - (_width / 2))]._height / 2)) < (_y - hill_up)) || ((_root["land" + Math.floor(_x - (_width / 2))]._y - (_root["land" + Math.floor(_x - (_width / 2))]._height / 2)) < (_y - hill_up))) { _x = (_x + 0.7); test = false; left = false; right = false; } else if (((_root["land" + Math.floor(_x + (_width / 2))]._y - (_root["land" + Math.floor(_x + (_width / 2))]._height / 2)) < (_y - hill_up)) || ((_root["land" + Math.ceil(_x + (_width / 2))]._y - (_root["land" + Math.ceil(_x + (_width / 2))]._height / 2)) < (_y - hill_up))) { left = false; right = false; _x = (_x - 0.7); test = false; } else { left = true; right = true; } } function blik() { _root.attachMovie("blk", "blik", 10030); _root.blik._x = _x; _root.blik._y = _y - 10; } function calc_hill_up() { hill_up = (0.5 + _root["tank_" + tank_number].specials[11]) - (fall * 10); } function move_left() { _x = (_x - 0.5); _root["tank_" + tank_number].fuel = _root["tank_" + tank_number].fuel - fuel_c; moving = true; i = 1; while (i < (_root.pocet_hracu + 1)) { if (hitTest(_root["tank" + i]) && (i != tank_number)) { _x = (_x + 0.6); } i++; } } function move_right() { _x = (_x + 0.5); _root["tank_" + tank_number].fuel = _root["tank_" + tank_number].fuel - fuel_c; moving = true; i = 1; while (i < (_root.pocet_hracu + 1)) { if (hitTest(_root["tank" + i]) && (i != tank_number)) { _x = (_x - 0.6); } i++; } } function activate_shield(shield) { _root.attachMovie(_root.specials[2 + shield][4], "shield" + tank_number, 5040 + tank_number); _root["shield" + tank_number].num = tank_number; _root["tank_" + tank_number].specials[2 + shield]--; sh_active = true; _root["t" + tank_number] = _root["shield" + tank_number]; } function disable_shield() { _root["shield" + tank_number].disable(); sh_active = false; _root["t" + tank_number] = _root["tank" + tank_number]; } function p_m(par) { if (par > 0) { return(1); } return(-1); } function calc_first_shot() { _root.z_ai_dif = "hard"; p_rotace = 90 + (p_m(target._x - _x) * 45); p_x = _x; p_power = Math.abs(_x - target._x) / (2 + (Math.abs(_x - target._x) / 120)); if (p_power >= _root["tank_" + tank_number].energy) { p_power = _root["tank_" + tank_number].energy; } } function calc_shot() { last_shot_vzd = Math.sqrt(Math.abs((_x - last_shot_x) * (_x - last_shot_x)) + Math.abs((_y - last_shot_y) * (_y - last_shot_y))); target_vzd = Math.sqrt(Math.abs((_x - target._x) * (_x - target._x)) + Math.abs((_y - target._y) * (_y - target._y))); x_vzd = Math.abs(last_shot_x - target._x); y_vzd = Math.abs(last_shot_y - target._y); if ((power >= _root["tank_" + tank_number].energy) || (power == 100)) { full_power = true; } else { full_power = false; } wind_change_koef = 7; wind_koef_vzd_koef = 380; vzd_koef = 10.9; vzd_koef_k = 7 + (Math.abs(_x - last_shot_x) / 80); y_vzd_koef = 30; y_koef = 22; rot_r = 100 - ((200 - Math.abs(_x - target._x)) / 30); rot_l = 80 + ((200 - Math.abs(_x - target._x)) / 30); if (target._x > _x) { wind_koef_vzd_koef = wind_koef_vzd_koef - ((180 - rotace) * 3); y_koef = y_koef + ((135 - rotace) * 1.7); if (last_shot_x < _x) { _root.z_f_used = "1.1"; p_rotace = p_rotace + ((((_x - last_shot_x) / 10) + ((target._x - _x) / 20)) - (_root.vitr / 50)); } else if (((last_shot_vzd > 60) || (target_vzd < 70)) || (power < 10)) { _root.z_f_used = "1.2.1.failed"; if (last_shot_x >= target._x) { if (x_vzd > 20) { _root.z_f_used = "1.2.1.1.1"; p_power = p_power - (((x_vzd / ((vzd_koef + 2.5) - (Math.abs(135 - rotace) / vzd_koef_k))) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) - ((last_shot_y - target._y) / y_koef)); } else { _root.z_f_used = "1.2.1.1.2"; p_power = p_power - ((x_vzd / ((vzd_koef - 1) - (Math.abs(135 - rotace) / vzd_koef_k))) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))); } } else if (last_shot_y < target._y) { if (target._y < _y) { if ((((((((_y - target._y) > 80) && (y_vzd < 80)) && (y_vzd > 20)) && (last_shot_vzd < 100)) && (target_vzd > 220)) && (power > 30)) && (rotace > (rot_r - (_root.vitr / 7)))) { _root.z_f_used = "1.2.1.2.1.1.1"; p_rotace = p_rotace - ((((rotace - (rot_r - (_root.vitr / 7))) / 4) + (_root.vitr / 20)) - (target_vzd / 100)); } else if (rotace < (rot_r - (_root.vitr / 7))) { _root.z_f_used = "1.2.1.2.1.1.2."; p_power = p_power + (((x_vzd / (vzd_koef - (Math.abs(135 - rotace) / vzd_koef_k))) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + ((last_shot_y - target._y) / y_koef)); } else if ((y_vzd < 30) && (x_vzd < 200)) { _root.z_f_used = "1.2.1.2.1.1.3"; p_power = p_power + (((x_vzd / (vzd_koef - (Math.abs(135 - rotace) / vzd_koef_k))) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + ((last_shot_y - target._y) / y_koef)); } else if (y_vzd >= 30) { if ((((target._x - _x) > 300) && (power < 50)) && (rotace < 110)) { _root.z_f_used = "1.2.1.2.1.1.4.1"; p_power = p_power + ((x_vzd / (vzd_koef / 3)) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))); } else if (rotace > (rot_r - (_root.vitr / 7))) { if (p_rotace <= 135) { _root.z_f_used = "1.2.1.2.1.1.4.2.1"; p_power = p_power + ((((((x_vzd / (vzd_koef * 2)) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + (y_vzd / y_vzd_koef)) + ((135 - rotace) / 8)) - (_root.vitr / 15)) + ((rotace - (rot_r - (_root.vitr / 7))) / 8)); } else { _root.z_f_used = "1.2.1.2.1.1.4.2.2"; p_power = p_power + ((((x_vzd / (vzd_koef * 2)) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + (y_vzd / y_vzd_koef)) - (_root.vitr / 15)); } p_rotace = p_rotace - (((rotace - (rot_r - (_root.vitr / 7))) / 4.5) + (y_vzd / y_vzd_koef)); } } } else if ((((((((target._y - _y) < 70) && (y_vzd < 100)) && (y_vzd > 20)) && (last_shot_vzd < 100)) && (target_vzd > 250)) && (power > 30)) && (rotace > (rot_r - (_root.vitr / 7)))) { _root.z_f_used = "1.2.1.2.1.2.1"; p_rotace = p_rotace - ((((rotace - (rot_r - (_root.vitr / 7))) / 4.5) + (_root.vitr / 20)) - (target_vzd / 100)); } else if (rotace < (rot_r - (_root.vitr / 7))) { _root.z_f_used = "1.2.1.2.1.2.2"; p_power = p_power + (((x_vzd / (vzd_koef - (Math.abs(135 - rotace) / vzd_koef_k))) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + ((last_shot_y - target._y) / y_koef)); } else if ((y_vzd < 30) && (x_vzd < 200)) { _root.z_f_used = "1.2.1.2.1.2.3"; p_power = p_power + (((x_vzd / (vzd_koef - (Math.abs(135 - rotace) / vzd_koef_k))) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + ((last_shot_y - target._y) / y_koef)); } else if (y_vzd >= 30) { if (((target._y - _y) > 200) && (last_shot_y > _y)) { _root.z_f_used = "1.2.1.2.1.2.4.1"; if (p_rotace > 120) { _root.z_f_used = "1.2.1.2.1.2.4.1.1"; p_power = p_power + ((x_vzd / (vzd_koef / 1.5)) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))); } else { _root.z_f_used = "1.2.1.2.1.2.4.1.2"; p_power = p_power + ((x_vzd / (vzd_koef / 2)) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))); } } else if ((((target._x - _x) > 300) && (power < 50)) && (rotace < 110)) { _root.z_f_used = "1.2.1.2.1.2.4.2."; p_power = p_power + ((x_vzd / (vzd_koef / 3)) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))); } else if (rotace > (rot_r - (_root.vitr / 7))) { if (p_rotace <= 135) { _root.z_f_used = "1.2.1.2.1.2.4.3.1."; p_power = p_power + ((((((x_vzd / (vzd_koef * 2)) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) - (y_vzd / y_vzd_koef)) + ((135 - rotace) / 8)) - (_root.vitr / 15)) + ((rotace - (rot_r - (_root.vitr / 7))) / 8)); } else { _root.z_f_used = "1.2.1.2.1.2.4.3.2."; p_power = p_power + ((((x_vzd / (vzd_koef * 2)) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) - (y_vzd / y_vzd_koef)) - (_root.vitr / 15)); } p_rotace = p_rotace - (((rotace - (rot_r - (_root.vitr / 7))) / 4.5) + (y_vzd / y_vzd_koef)); } } } else if ((((last_shot_vzd < 150) && ((target._x - _x) < 170)) || (last_shot_vzd >= 100)) || ((last_shot_vzd < 100) && (power < 30))) { if (_y > target._y) { p_power = p_power + (((x_vzd / (vzd_koef - (Math.abs(135 - rotace) / vzd_koef_k))) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + ((last_shot_y - target._y) / y_koef)); _root.z_f_used = "1.2.1.2.2.1.1"; } else if ((target._y - _y) > 100) { _root.z_f_used = "1.2.1.2.2.1.2.1"; p_power = p_power + ((x_vzd / (vzd_koef - (Math.abs(135 - rotace) / vzd_koef_k))) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))); } else { _root.z_f_used = "1.2.1.2.2.1.2.2"; p_power = p_power + (((x_vzd / (vzd_koef - (Math.abs(135 - rotace) / vzd_koef_k))) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + ((last_shot_y - target._y) / y_koef)); } } else if (rotace < ((rot_r - 5) - (root.vitr / 7))) { _root.z_f_used = "1.2.1.2.2.2"; p_rotace = p_rotace + ((((135 - rotace) / 10) + target._x) - (_x / 100)); } else { _root.z_f_used = "1.2.1.2.2.3"; p_rotace = p_rotace - ((rotace - (rot_r - (_root.vitr / 7))) / 2); p_power = p_power + (((x_vzd / (vzd_koef - (Math.abs(135 - rotace) / vzd_koef_k))) / 1.5) + ((rotace - (rot_r - (_root.vitr / 7))) / 5)); } } else if (((_y - target._y) > 100) && ((target._x - _x) < 100)) { _root.z_f_used = "1.2.2.1"; p_rotace = p_rotace - ((rotace - (rot_r - (_root.vitr / 7))) / 2); } else { _root.z_f_used = "1.2.2.2"; p_rotace = p_rotace - (((rotace - (rot_r - (_root.vitr / 7))) / 2) - ((target._x - _x) / 100)); } } else { wind_koef_vzd_koef = wind_koef_vzd_koef - (rotace * 3); y_koef = y_koef + ((rotace - 45) * 1.7); if (last_shot_x > _x) { _root.z_f_used = "2.1"; p_rotace = p_rotace - ((((last_shot_x - _x) / 10) + ((_x - target._x) / 20)) + (_root.vitr / 50)); } else if (((last_shot_vzd > 60) || (target_vzd < 70)) || (power < 10)) { _root.z_f_used = "2.2.1.failed"; if (last_shot_x <= target._x) { if (x_vzd > 20) { _root.z_f_used = "2.2.1.1.1"; p_power = p_power - (((x_vzd / ((vzd_koef + 2.5) - (Math.abs(45 - rotace) / vzd_koef_k))) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) - ((last_shot_y - target._y) / y_koef)); } else { _root.z_f_used = "2.2.1.1.2"; p_power = p_power - ((x_vzd / ((vzd_koef - 1) - (Math.abs(45 - rotace) / vzd_koef_k))) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))); } } else if (last_shot_y < target._y) { if (target._y < _y) { if ((((((((_y - target._y) > 80) && (y_vzd < 80)) && (y_vzd > 20)) && (last_shot_vzd < 100)) && (target_vzd > 220)) && (power > 30)) && (rotace > (rot_l + (_root.vitr / 7)))) { _root.z_f_used = "2.2.1.2.1.1.1"; p_rotace = p_rotace + (((((rot_l + (_root.vitr / 7)) - rotace) / 4) - (_root.vitr / 20)) - (target_vzd / 100)); } else if (rotace > (rot_l + (_root.vitr / 7))) { _root.z_f_used = "2.2.1.2.1.1.2"; p_power = p_power + (((x_vzd / (vzd_koef - (Math.abs(rotace - 45) / vzd_koef_k))) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(_x - last_shot_x) / wind_koef_vzd_koef)))) + ((last_shot_y - target._y) / y_koef)); } else if ((y_vzd < 30) && (x_vzd < 200)) { _root.z_f_used = "2.2.1.2.1.1.3"; p_power = p_power + (((x_vzd / (vzd_koef - (Math.abs(rotace - 45) / vzd_koef_k))) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(_x - last_shot_x) / wind_koef_vzd_koef)))) + ((last_shot_y - target._y) / y_koef)); } else if (y_vzd >= 30) { if ((((_x - target._x) > 300) && (power < 50)) && (rotace > 70)) { _root.z_f_used = "2.2.1.2.1.1.4.1"; p_power = p_power + ((x_vzd / (vzd_koef / 3)) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(_x - last_shot_x) / wind_koef_vzd_koef)))); } else if (rotace < (rot_l + (_root.vitr / 7))) { if (p_rotace >= 45) { _root.z_f_used = "2.2.1.2.1.1.4.2.1"; p_power = p_power + ((((((x_vzd / (vzd_koef * 2)) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + (y_vzd / y_vzd_koef)) + ((rotace - 45) / 8)) + (_root.vitr / 15)) + (((rot_l + (_root.vitr / 7)) - rotace) / 8)); } else { _root.z_f_used = "2.2.1.2.1.1.4.2.2"; p_power = p_power + ((((x_vzd / (vzd_koef * 2)) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + (y_vzd / y_vzd_koef)) + (_root.vitr / 15)); } p_rotace = p_rotace + ((((rot_l + (_root.vitr / 7)) - rotace) / 4.5) + (y_vzd / y_vzd_koef)); } } } else if ((((((((target._y - _y) < 70) && (y_vzd < 100)) && (y_vzd > 20)) && (last_shot_vzd < 100)) && (target_vzd > 250)) && (power > 30)) && (rotace < (rot_l - (_root.vitr / 7)))) { _root.z_f_used = "2.2.1.2.1.2.1"; p_rotace = p_rotace + (((((rot_l + (_root.vitr / 7)) - rotace) / 4.5) - (_root.vitr / 20)) - (target_vzd / 100)); } else if (rotace > (rot_l + (_root.vitr / 7))) { _root.z_f_used = "2.2.1.2.1.2.2"; p_power = p_power + (((x_vzd / (vzd_koef - (Math.abs(rotace - 45) / vzd_koef_k))) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(_x - last_shot_x) / wind_koef_vzd_koef)))) + ((last_shot_y - target._y) / y_koef)); } else if ((y_vzd < 30) && (x_vzd < 200)) { _root.z_f_used = "2.2.1.2.1.2.3"; p_power = p_power + (((x_vzd / (vzd_koef - (Math.abs(45 - rotace) / vzd_koef_k))) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + ((last_shot_y - target._y) / y_koef)); } else if (y_vzd >= 30) { if (((target._y - _y) > 200) && (last_shot_y > _y)) { if (p_rotace < 60) { _root.z_f_used = "2.2.1.2.1.2.4.1.1"; p_power = p_power + ((x_vzd / (vzd_koef / 1.5)) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))); } else { _root.z_f_used = "2.2.1.2.1.2.4.1.2"; p_power = p_power + ((x_vzd / (vzd_koef / 2)) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))); } } else if ((((_x - target._x) > 300) && (power < 50)) && (rotace > 70)) { _root.z_f_used = "2.2.1.2.1.2.4.2"; p_power = p_power + ((x_vzd / (vzd_koef / 3)) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))); } else if (rotace < (rot_l + (_root.vitr / 7))) { if (p_rotace >= 45) { _root.z_f_used = "2.2.1.2.1.2.4.3.1"; p_power = p_power + ((((((x_vzd / (vzd_koef * 2)) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + (y_vzd / y_vzd_koef)) + ((rotace - 45) / 8)) + (_root.vitr / 15)) + (((rot_l + (_root.vitr / 7)) - rotace) / 8)); } else { _root.z_f_used = "2.2.1.2.1.2.4.3.2"; p_power = p_power + ((((x_vzd / (vzd_koef * 2)) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + (y_vzd / y_vzd_koef)) + (_root.vitr / 15)); } p_rotace = p_rotace + ((((rot_l + (_root.vitr / 7)) - rotace) / 4.5) + (y_vzd / y_vzd_koef)); } } } else if ((((last_shot_vzd < 150) && ((_x - target._x) < 170)) || (last_shot_vzd >= 100)) || ((last_shot_vzd < 100) && (power < 30))) { if (_y > target._y) { p_power = p_power + (((x_vzd / (vzd_koef - (Math.abs(rotace - 45) / vzd_koef_k))) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + ((last_shot_y - target._y) / y_koef)); _root.z_f_used = "2.2.1.2.2.1.1"; } else if ((target._y - _y) > 100) { _root.z_f_used = "2.2.1.2.2.1.2.1"; p_power = p_power + ((x_vzd / (vzd_koef - (Math.abs(rotace - 45) / vzd_koef_k))) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))); } else { _root.z_f_used = "2.2.1.2.2.1.2.2"; p_power = p_power + (((x_vzd / (vzd_koef - (Math.abs(rotace - 45) / vzd_koef_k))) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + ((last_shot_y - target._y) / y_koef)); } } else if (rotace < ((rot_l + 5) + (root.vitr / 7))) { _root.z_f_used = "2.2.1.2.2.2"; p_rotace = p_rotace - ((((rotace - 45) / 10) + _x) - (target._x / 100)); } else { _root.z_f_used = "2.2.1.2.2.3"; p_rotace = p_rotace + (((rot_l + (_root.vitr / 7)) - rotace) / 3); p_power = p_power + (((x_vzd / (vzd_koef - (Math.abs(rotace - 45) / vzd_koef_k))) / 1.5) + (((rot_l + (_root.vitr / 7)) - rotace) / 5)); } } else if (((_y - target._y) > 100) && ((_x - target._x) < 100)) { _root.z_f_used = "2.2.2.1"; p_rotace = p_rotace + (((rot_l + (_root.vitr / 7)) - rotace) / 2); } else { _root.z_f_used = "2.2.2.2"; p_rotace = p_rotace + ((((rot_l + (_root.vitr / 7)) - rotace) / 2) - ((target._x - _x) / 100)); } } if (p_power > 100) { p_power = 100; } if (p_power >= _root["tank_" + tank_number].energy) { p_power = _root["tank_" + tank_number].energy; if (target._x > _x) { if (p_rotace < 135) { if (p_power > 70) { p_power = p_power - ((135 - p_rotace) / 2.5); } p_rotace = p_rotace + ((135 - p_rotace) / 3); } } else if (p_rotace > 45) { if (p_power > 70) { p_power = p_power - ((p_rotace - 45) / 2.5); } p_rotace = p_rotace - ((p_rotace - 45) / 3); } } if (p_power < 0) { p_power = 0; } if (p_rotace < 0) { p_rotace = 0; } else if (p_rotace > 180) { p_rotace = 180; } } function prepare_shot() { prep = true; if ((Math.max(rotace, p_rotace) - Math.min(rotace, p_rotace)) < 10) { sp = 1; } else { sp = Math.floor((Math.max(rotace, p_rotace) - Math.min(rotace, p_rotace)) / 10); } if (Math.ceil(rotace) != Math.ceil(p_rotace)) { if ((Math.ceil(p_rotace) < Math.ceil(rotace)) && ((rotace - sp) >= 0)) { prep = false; rotace = rotace - sp; } else if ((rotace + sp) <= 180) { prep = false; rotace = rotace + sp; } } if (Math.ceil(power) != Math.ceil(p_power)) { if ((Math.ceil(p_power) < Math.ceil(power)) && ((power - sp) >= 0)) { prep = false; power = power - sp; } else if ((power + sp) <= 180) { prep = false; power = power + sp; } } if (((Math.round(p_x) != Math.round(_x)) && (_root["tank_" + tank_number].fuel > 0)) && (p_move)) { prep = false; if (Math.round(p_x) < Math.round(_x)) { move_right(); } else { move_left(); } } if (prep) { return(true); } } function select_target() { vzd = 1000; i = 1; while (i <= _root.pocet_hracu) { vz = Math.abs(_x - _root["tank" + i]._x); if (((vz < vzd) && (i != tank_number)) && (_root["tank_" + i].live)) { vzd = vz; target = _root["tank" + i]; target_ = _root["tank_" + i]; } i++; } } function na_rade() { rounds++; par_active = false; calc_hill_up(); } function damage(damag, attacker, par) { armor = 1; arm = 1; i = 0; while (i < _root["tank_" + tank_number].specials[9]) { armor = armor / (1.12 / arm); arm = arm / 1.0002; i++; } if ((!sh_active) || (par)) { _root["tank_" + tank_number].energy = _root["tank_" + tank_number].energy - (damag * armor); } else { _root["shield" + tank_number].damage(damag, attacker); } if (_root["tank_" + tank_number].energy <= 0) { if (this != attacker) { _root["tank_" + attacker.tank_number].kills = _root["tank_" + attacker.tank_number].kills + 1; _root["tank_" + attacker.tank_number].score = _root["tank_" + attacker.tank_number].score + 5000; _root["tank_" + attacker.tank_number].total_score = _root["tank_" + attacker.tank_number].total_score + 5000; } else { _root["tank_" + tank_number].kills = _root["tank_" + tank_number].kills - 1; _root["tank_" + tank_number].score = _root["tank_" + tank_number].score - 2000; _root["tank_" + tank_number].total_score = _root["tank_" + tank_number].total_score - 2000; } } if (this != attacker) { _root["tank_" + attacker.tank_number].score = _root["tank_" + attacker.tank_number].score + (damag * 100); _root["tank_" + attacker.tank_number].total_score = _root["tank_" + attacker.tank_number].total_score + (damag * 100); } else { if (par) { damag = damag / 3; } _root["tank_" + tank_number].score = _root["tank_" + tank_number].score - Math.round(damag * 50); _root["tank_" + tank_number].total_score = _root["tank_" + tank_number].total_score - Math.round(damag * 50); if (_root["tank_" + tank_number].score < 0) { _root["tank_" + tank_number].score = 0; } } } function fire() { if (_root.debugging) { save_inf(); } last_wind = _root.vitr; first_frame = true; _root.attachMovie(_root.weapons[_root["tank_" + tank_number].cur_gun][4], "strela", 1000); countVect = 0; randVect = new Array(); i = 0; while (i <= 13) { if (_root["tank_" + tank_number].guns[i] > 0) { randVect[countVect] = i; countVect++; } i++; } trace(randVect); _root["tank_" + tank_number].cur_gun = randVect[random(randVect.length)]; _root["tank_" + tank_number].guns[_root["tank_" + tank_number].cur_gun]--; _root.strela._rotation = rotace - 90; _root.strela._x = _x; _root.strela._y = _y - 1; _root.strela.strela.vo = power; _root.strela.strela.owner = _root[_name]; _root[_name + "_hlaven"].play(); playing = false; } function save_inf() { _root.z_target = target; _root.z_target_name = target_.name; _root.z_target_energy = target_.energy; _root.z_target_live = target_.live; _root.z_name = _root["tank_" + tank_number].name; _root.z_energy = _root["tank_" + tank_number].energy; if (_x > target._x) { _root.z_pos = "right"; } else { _root.z_pos = "left"; } _root.z_x = _x; _root.z_y = _y; _root.z_tar_x = target._x; _root.z_tar_y = target._y; _root.z_last_vitr = last_wind; _root.z_vitr = _root.vitr; _root.z_wind_koef_vzd_koef = wind_koef_vzd_koef; _root.z_angle = rotace; _root.z_power = power; _root.z_y_koef = y_koef; _root.z_vzd_koef_k = vzd_koef_k; _root.z_last_shot_x = last_shot_x; _root.z_last_shot_y = last_shot_y; _root.z_last_shot_vzd = last_shot_vzd; _root.z_last_shot_y_vzd = y_vzd; _root.z_last_shot_x_vzd = x_vzd; _root.z_dif = dif; fscommand ("SAVE", ((((((("debug/" add _root.game) add "_") add rounds) add "_") add _root.z_pos) add "_") add _root["tank_" + tank_number].name) add ".txt"); } dif = _root["tank_" + tank_number].dif; _y = ((_root["land" + Math.round(_x)]._y - (_root["land" + Math.round(_x)]._height / 2)) - 4); i = 0; while (i < _width) { cur = _root["land" + Math.floor((_x - (_width / 2)) + i)]; if (hitTest(cur)) { cur._y = cur._y + ((_y + (_height / 2)) - (cur._y - (cur._height / 2))); } i++; } if (_root["tank_" + tank_number].specials[0] > 0) { par = true; } _root.attachMovie("hlaven", _name + "_hlaven", 10010 + tank_number); rotace = (random(67) * 2) + 46; _root[_name + "_hlaven"]._x = _x; _root[_name + "_hlaven"]._y = _y - 1; _root[_name + "_hlaven"]._rotation = rotace; power = 50; playing = false; testing = false; par_active = false; par_out = false; par_used = false; sh_active = false; _root["t" + tank_number] = _root["tank" + tank_number]; first_shot = true; first_frame = true; calc_frame = true; fuel_c = 1 / (_root["tank_" + tank_number].specials[10] + 1); rounds = 0; p_move = false; select_target();
Symbol 15 MovieClip [ai_very_easy] Frame 2
if (_y > 400) { _root["tank_" + tank_number].live = false; _root["tank_" + tank_number].energy = 0; _root["tank_" + tank_number].score = _root["tank_" + tank_number].score - 2000; _root.hracu--; if (_root["tank_" + tank_number].score < 0) { _root["tank_" + tank_number].score = 0; } gotoAndPlay (4); } if (_root["tank_" + tank_number].energy <= 0) { _root["tank_" + tank_number].energy = 0; _root["tank_" + tank_number].live = false; gotoAndPlay (4); } _root[_name + "_hlaven"]._x = _x; _root[_name + "_hlaven"]._y = _y - 1; if (sh_active) { _root["shield" + tank_number]._x = _x; _root["shield" + tank_number]._y = _y; } if (playing) { if ((!target_.live) && (first_frame)) { rounds = 1; select_target(); } if (rounds == 1) { if (first_frame) { i = 1; while (i <= _root.pocet_hracu) { if ((_root["tank" + i].playing && (i != tank_number)) && (_root["tank_" + i].live)) { _root["tank" + i].playing = false; _root.test(); } i++; } first_shot = true; calc_first_shot(); } } else if (first_frame) { calc_shot(); } first_frame = false; _root.rotace = rotace; _root.power = power; if (prepare_shot()) { fire(); } na_zemi = false; left = true; right = true; i = 0; min = 500; gg = false; test_hill(); while (i < _width) { cur = _root["land" + Math.round((_x - (_width / 2)) + i)]; if (pasy.hitTest(cur)) { na_zemi = true; if (par_out) { par_out = false; _root["parachute" + tank_number].removeMovieClip(); } if (fall > 0.4) { if (fall < 0.8) { damage(Math.round(fall * 25), this, true); } else { damage(Math.round((fall * fall) * 3000), this, true); } } fall = 0; } top = cur._y - (cur._height / 2); if ((top < min) && (na_zemi)) { gg = true; min = top; } if ((((i + 1) >= _width) && (na_zemi)) && (gg)) { _y = (min - 2); gg = false; } if (!na_zemi) { if ((fall >= 0.2) && (par)) { if (!par_active) { par_active = true; _root["tank_" + i].specials[0] = _root["tank_" + i].specials[0] - 1; } if (!par_out) { _root.attachMovie("parachute", "parachute" + tank_number, 9000 + tank_number); } par_out = true; } _y = (_y + fall); if (!par_out) { fall = fall + 0.01; } else { _root["parachute" + tank_number]._x = _x; _root["parachute" + tank_number]._y = _y - 7.5; fall = 0.2; _x = (_x + (_root.vitr / 3000)); } } i++; } if (power > _root["tank_" + tank_number].energy) { power = _root["tank_" + tank_number].energy; } _root[_name + "_hlaven"]._rotation = rotace; } if (testing) { i = 0; min = 500; gg = false; test_hill(); while (i < _width) { cur = _root["land" + Math.round((_x - (_width / 2)) + i)]; if (pasy.hitTest(cur)) { if (fall > 0.4) { if (fall < 0.8) { damage(Math.round(fall * 25), this, true); } else { damage(Math.round((fall * fall) * 80), this, true); } } if (par_out) { par_out = false; _root["parachute" + tank_number].removeMovieClip(); } na_zemi = true; fall = 0; } top = cur._y - (cur._height / 2); if ((top < min) && (na_zemi)) { gg = true; min = top; } if ((((i + 1) >= _width) && (na_zemi)) && (gg)) { _y = (min - 2); gg = false; } if (fall > 0.001) { test = false; } if (!na_zemi) { if ((fall >= 0.2) && (par)) { if (!par_active) { par_active = true; _root["tank_" + tank_number].specials[0] = _root["tank_" + tank_number].specials[0] - 1; } if (!par_out) { _root.attachMovie("parachute", "parachute" + tank_number, 9000 + tank_number); } par_out = true; } _y = (_y + fall); if (!par_out) { fall = fall + 0.01; } else { _root["parachute" + tank_number]._x = _x; _root["parachute" + tank_number]._y = _y - 7.5; fall = 0.2; _x = (_x + (_root.vitr / 3000)); } } i++; } if (fall > 0.001) { test = false; } test_hill(); x3 = x2; x2 = x1; x1 = Math.round(_x); y3 = y2; y2 = y1; y1 = Math.round(_y * 10) / 10; if ((y1 == y3) && (x1 == x3)) { test = true; } if (test) { testing = false; _root[_name + "test"] = false; } _root[_name + "_hlaven"]._x = _x; _root[_name + "_hlaven"]._y = _y - 1; test = true; }
Symbol 15 MovieClip [ai_very_easy] Frame 3
gotoAndPlay (2);
Symbol 15 MovieClip [ai_very_easy] Frame 4
_root[_name + "_hlaven"].removeMovieClip(); _root["parachute" + tank_number].removeMovieClip(); _root["shield" + tank_number].removeMovieClip(); _root.hracu--;
Symbol 15 MovieClip [ai_very_easy] Frame 9
i = 0; while (i < _width) { cur = _root["land" + Math.round((_x - (_width / 2)) + i)]; x = cur._x; y = cur._y; h = cur._y - (cur._height / 2); if (hitTest(x, h, true)) { vzr = Math.cos(0.017 * (Math.sqrt(((_x - x) * (_x - x)) + ((_y - h) * (_y - h))) * (180 / _width))); cur._height = cur._height - (30 * vzr); cur._y = cur._y + (15 * vzr); } else if (hitTest(_root["land" + Math.round((xx - (_width / 2)) + i)])) { cur._height = cur._height - (50 / Math.abs(_x - x)); cur._y = cur._y + ((50 / Math.abs(_x - x)) / 2); } i++; } i = 1; while (i <= _root.pocet_hracu) { current = _root["tank" + i]; if ((hitTest(current) || (hitTest(_root["shield" + i]))) && (i != tank_number)) { x = _x - current._x; y = _y - current._y; vzd = Math.sqrt((x * x) + (y * y)); if (!current.sh_active) { damg = Math.round(_width / ((vzd + 1) / 14)); if (damg > _root["tank_" + i].energy) { damg = _root["tank_" + i].energy; } } else { damg = Math.round(_width / (((vzd / 2) + 1) / 18)); } current.damage(damg, this); } i++; }
Symbol 15 MovieClip [ai_very_easy] Frame 15
if (playing) { _root.test(); } stop();
Symbol 18 MovieClip [ai_easy] Frame 1
function test_hill() { calc_hill_up(); if (((_root["land" + Math.ceil(_x - (_width / 2))]._y - (_root["land" + Math.ceil(_x - (_width / 2))]._height / 2)) < (_y - hill_up)) || ((_root["land" + Math.floor(_x - (_width / 2))]._y - (_root["land" + Math.floor(_x - (_width / 2))]._height / 2)) < (_y - hill_up))) { _x = (_x + 0.7); test = false; left = false; right = false; } else if (((_root["land" + Math.floor(_x + (_width / 2))]._y - (_root["land" + Math.floor(_x + (_width / 2))]._height / 2)) < (_y - hill_up)) || ((_root["land" + Math.ceil(_x + (_width / 2))]._y - (_root["land" + Math.ceil(_x + (_width / 2))]._height / 2)) < (_y - hill_up))) { left = false; right = false; _x = (_x - 0.7); test = false; } else { left = true; right = true; } } function blik() { _root.attachMovie("blk", "blik", 10030); _root.blik._x = _x; _root.blik._y = _y - 10; } function calc_hill_up() { hill_up = (0.5 + _root["tank_" + tank_number].specials[11]) - (fall * 10); } function move_left() { _x = (_x - 0.5); _root["tank_" + tank_number].fuel = _root["tank_" + tank_number].fuel - fuel_c; moving = true; i = 1; while (i < (_root.pocet_hracu + 1)) { if (hitTest(_root["tank" + i]) && (i != tank_number)) { _x = (_x + 0.6); } i++; } } function move_right() { _x = (_x + 0.5); _root["tank_" + tank_number].fuel = _root["tank_" + tank_number].fuel - fuel_c; moving = true; i = 1; while (i < (_root.pocet_hracu + 1)) { if (hitTest(_root["tank" + i]) && (i != tank_number)) { _x = (_x - 0.6); } i++; } } function activate_shield(shield) { _root.attachMovie(_root.specials[2 + shield][4], "shield" + tank_number, 5040 + tank_number); _root["shield" + tank_number].num = tank_number; _root["tank_" + tank_number].specials[2 + shield]--; sh_active = true; _root["t" + tank_number] = _root["shield" + tank_number]; } function disable_shield() { _root["shield" + tank_number].disable(); sh_active = false; _root["t" + tank_number] = _root["tank" + tank_number]; } function p_m(par) { if (par > 0) { return(1); } return(-1); } function calc_first_shot() { _root.z_ai_dif = "hard"; p_rotace = 90 + (p_m(target._x - _x) * 45); p_x = _x; p_power = Math.abs(_x - target._x) / (2 + (Math.abs(_x - target._x) / 120)); if (p_power >= _root["tank_" + tank_number].energy) { p_power = _root["tank_" + tank_number].energy; } } function calc_shot() { last_shot_vzd = Math.sqrt(Math.abs((_x - last_shot_x) * (_x - last_shot_x)) + Math.abs((_y - last_shot_y) * (_y - last_shot_y))); target_vzd = Math.sqrt(Math.abs((_x - target._x) * (_x - target._x)) + Math.abs((_y - target._y) * (_y - target._y))); x_vzd = Math.abs(last_shot_x - target._x); y_vzd = Math.abs(last_shot_y - target._y); if ((power >= _root["tank_" + tank_number].energy) || (power == 100)) { full_power = true; } else { full_power = false; } wind_change_koef = 99999 /* 0x01869F */; wind_koef_vzd_koef = 380000 /* 0x05CC60 */; vzd_koef = 25; vzd_koef_k = 15 + (Math.abs(_x - last_shot_x) / 80); y_vzd_koef = 3000; y_koef = 22000; rot_r = 100 - ((200 - Math.abs(_x - target._x)) / 30); rot_l = 80 + ((200 - Math.abs(_x - target._x)) / 30); if (target._x > _x) { wind_koef_vzd_koef = wind_koef_vzd_koef - ((180 - rotace) * 3); y_koef = y_koef + ((135 - rotace) * 1.7); if (last_shot_x < _x) { _root.z_f_used = "1.1"; p_rotace = p_rotace + ((((_x - last_shot_x) / 10) + ((target._x - _x) / 20)) - (_root.vitr / 50)); } else if (((last_shot_vzd > 60) || (target_vzd < 70)) || (power < 10)) { _root.z_f_used = "1.2.1.failed"; if (last_shot_x >= target._x) { if (x_vzd > 20) { _root.z_f_used = "1.2.1.1.1"; p_power = p_power - (((x_vzd / ((vzd_koef + 2.5) - (Math.abs(135 - rotace) / vzd_koef_k))) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) - ((last_shot_y - target._y) / y_koef)); } else { _root.z_f_used = "1.2.1.1.2"; p_power = p_power - ((x_vzd / ((vzd_koef - 1) - (Math.abs(135 - rotace) / vzd_koef_k))) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))); } } else if (last_shot_y < target._y) { if (target._y < _y) { if ((((((((_y - target._y) > 80) && (y_vzd < 80)) && (y_vzd > 20)) && (last_shot_vzd < 100)) && (target_vzd > 220)) && (power > 30)) && (rotace > (rot_r - (_root.vitr / 7)))) { _root.z_f_used = "1.2.1.2.1.1.1"; p_rotace = p_rotace - ((((rotace - (rot_r - (_root.vitr / 7))) / 4) + (_root.vitr / 20)) - (target_vzd / 100)); } else if (rotace < (rot_r - (_root.vitr / 7))) { _root.z_f_used = "1.2.1.2.1.1.2."; p_power = p_power + (((x_vzd / (vzd_koef - (Math.abs(135 - rotace) / vzd_koef_k))) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + ((last_shot_y - target._y) / y_koef)); } else if ((y_vzd < 30) && (x_vzd < 200)) { _root.z_f_used = "1.2.1.2.1.1.3"; p_power = p_power + (((x_vzd / (vzd_koef - (Math.abs(135 - rotace) / vzd_koef_k))) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + ((last_shot_y - target._y) / y_koef)); } else if (y_vzd >= 30) { if ((((target._x - _x) > 300) && (power < 50)) && (rotace < 110)) { _root.z_f_used = "1.2.1.2.1.1.4.1"; p_power = p_power + ((x_vzd / (vzd_koef / 3)) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))); } else if (rotace > (rot_r - (_root.vitr / 7))) { if (p_rotace <= 135) { _root.z_f_used = "1.2.1.2.1.1.4.2.1"; p_power = p_power + ((((((x_vzd / (vzd_koef * 2)) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + (y_vzd / y_vzd_koef)) + ((135 - rotace) / 8)) - (_root.vitr / 15)) + ((rotace - (rot_r - (_root.vitr / 7))) / 8)); } else { _root.z_f_used = "1.2.1.2.1.1.4.2.2"; p_power = p_power + ((((x_vzd / (vzd_koef * 2)) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + (y_vzd / y_vzd_koef)) - (_root.vitr / 15)); } p_rotace = p_rotace - (((rotace - (rot_r - (_root.vitr / 7))) / 4.5) + (y_vzd / y_vzd_koef)); } } } else if ((((((((target._y - _y) < 70) && (y_vzd < 100)) && (y_vzd > 20)) && (last_shot_vzd < 100)) && (target_vzd > 250)) && (power > 30)) && (rotace > (rot_r - (_root.vitr / 7)))) { _root.z_f_used = "1.2.1.2.1.2.1"; p_rotace = p_rotace - ((((rotace - (rot_r - (_root.vitr / 7))) / 4.5) + (_root.vitr / 20)) - (target_vzd / 100)); } else if (rotace < (rot_r - (_root.vitr / 7))) { _root.z_f_used = "1.2.1.2.1.2.2"; p_power = p_power + (((x_vzd / (vzd_koef - (Math.abs(135 - rotace) / vzd_koef_k))) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + ((last_shot_y - target._y) / y_koef)); } else if ((y_vzd < 30) && (x_vzd < 200)) { _root.z_f_used = "1.2.1.2.1.2.3"; p_power = p_power + (((x_vzd / (vzd_koef - (Math.abs(135 - rotace) / vzd_koef_k))) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + ((last_shot_y - target._y) / y_koef)); } else if (y_vzd >= 30) { if (((target._y - _y) > 200) && (last_shot_y > _y)) { _root.z_f_used = "1.2.1.2.1.2.4.1"; if (p_rotace > 120) { _root.z_f_used = "1.2.1.2.1.2.4.1.1"; p_power = p_power + ((x_vzd / (vzd_koef / 1.5)) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))); } else { _root.z_f_used = "1.2.1.2.1.2.4.1.2"; p_power = p_power + ((x_vzd / (vzd_koef / 2)) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))); } } else if ((((target._x - _x) > 300) && (power < 50)) && (rotace < 110)) { _root.z_f_used = "1.2.1.2.1.2.4.2."; p_power = p_power + ((x_vzd / (vzd_koef / 3)) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))); } else if (rotace > (rot_r - (_root.vitr / 7))) { if (p_rotace <= 135) { _root.z_f_used = "1.2.1.2.1.2.4.3.1."; p_power = p_power + ((((((x_vzd / (vzd_koef * 2)) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) - (y_vzd / y_vzd_koef)) + ((135 - rotace) / 8)) - (_root.vitr / 15)) + ((rotace - (rot_r - (_root.vitr / 7))) / 8)); } else { _root.z_f_used = "1.2.1.2.1.2.4.3.2."; p_power = p_power + ((((x_vzd / (vzd_koef * 2)) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) - (y_vzd / y_vzd_koef)) - (_root.vitr / 15)); } p_rotace = p_rotace - (((rotace - (rot_r - (_root.vitr / 7))) / 4.5) + (y_vzd / y_vzd_koef)); } } } else if ((((last_shot_vzd < 150) && ((target._x - _x) < 170)) || (last_shot_vzd >= 100)) || ((last_shot_vzd < 100) && (power < 30))) { if (_y > target._y) { p_power = p_power + (((x_vzd / (vzd_koef - (Math.abs(135 - rotace) / vzd_koef_k))) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + ((last_shot_y - target._y) / y_koef)); _root.z_f_used = "1.2.1.2.2.1.1"; } else if ((target._y - _y) > 100) { _root.z_f_used = "1.2.1.2.2.1.2.1"; p_power = p_power + ((x_vzd / (vzd_koef - (Math.abs(135 - rotace) / vzd_koef_k))) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))); } else { _root.z_f_used = "1.2.1.2.2.1.2.2"; p_power = p_power + (((x_vzd / (vzd_koef - (Math.abs(135 - rotace) / vzd_koef_k))) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + ((last_shot_y - target._y) / y_koef)); } } else if (rotace < ((rot_r - 5) - (root.vitr / 7))) { _root.z_f_used = "1.2.1.2.2.2"; p_rotace = p_rotace + ((((135 - rotace) / 10) + target._x) - (_x / 100)); } else { _root.z_f_used = "1.2.1.2.2.3"; p_rotace = p_rotace - ((rotace - (rot_r - (_root.vitr / 7))) / 2); p_power = p_power + (((x_vzd / (vzd_koef - (Math.abs(135 - rotace) / vzd_koef_k))) / 1.5) + ((rotace - (rot_r - (_root.vitr / 7))) / 5)); } } else if (((_y - target._y) > 100) && ((target._x - _x) < 100)) { _root.z_f_used = "1.2.2.1"; p_rotace = p_rotace - ((rotace - (rot_r - (_root.vitr / 7))) / 2); } else { _root.z_f_used = "1.2.2.2"; p_rotace = p_rotace - (((rotace - (rot_r - (_root.vitr / 7))) / 2) - ((target._x - _x) / 100)); } } else { wind_koef_vzd_koef = wind_koef_vzd_koef - (rotace * 3); y_koef = y_koef + ((rotace - 45) * 1.7); if (last_shot_x > _x) { _root.z_f_used = "2.1"; p_rotace = p_rotace - ((((last_shot_x - _x) / 10) + ((_x - target._x) / 20)) + (_root.vitr / 50)); } else if (((last_shot_vzd > 60) || (target_vzd < 70)) || (power < 10)) { _root.z_f_used = "2.2.1.failed"; if (last_shot_x <= target._x) { if (x_vzd > 20) { _root.z_f_used = "2.2.1.1.1"; p_power = p_power - (((x_vzd / ((vzd_koef + 2.5) - (Math.abs(45 - rotace) / vzd_koef_k))) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) - ((last_shot_y - target._y) / y_koef)); } else { _root.z_f_used = "2.2.1.1.2"; p_power = p_power - ((x_vzd / ((vzd_koef - 1) - (Math.abs(45 - rotace) / vzd_koef_k))) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))); } } else if (last_shot_y < target._y) { if (target._y < _y) { if ((((((((_y - target._y) > 80) && (y_vzd < 80)) && (y_vzd > 20)) && (last_shot_vzd < 100)) && (target_vzd > 220)) && (power > 30)) && (rotace > (rot_l + (_root.vitr / 7)))) { _root.z_f_used = "2.2.1.2.1.1.1"; p_rotace = p_rotace + (((((rot_l + (_root.vitr / 7)) - rotace) / 4) - (_root.vitr / 20)) - (target_vzd / 100)); } else if (rotace > (rot_l + (_root.vitr / 7))) { _root.z_f_used = "2.2.1.2.1.1.2"; p_power = p_power + (((x_vzd / (vzd_koef - (Math.abs(rotace - 45) / vzd_koef_k))) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(_x - last_shot_x) / wind_koef_vzd_koef)))) + ((last_shot_y - target._y) / y_koef)); } else if ((y_vzd < 30) && (x_vzd < 200)) { _root.z_f_used = "2.2.1.2.1.1.3"; p_power = p_power + (((x_vzd / (vzd_koef - (Math.abs(rotace - 45) / vzd_koef_k))) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(_x - last_shot_x) / wind_koef_vzd_koef)))) + ((last_shot_y - target._y) / y_koef)); } else if (y_vzd >= 30) { if ((((_x - target._x) > 300) && (power < 50)) && (rotace > 70)) { _root.z_f_used = "2.2.1.2.1.1.4.1"; p_power = p_power + ((x_vzd / (vzd_koef / 3)) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(_x - last_shot_x) / wind_koef_vzd_koef)))); } else if (rotace < (rot_l + (_root.vitr / 7))) { if (p_rotace >= 45) { _root.z_f_used = "2.2.1.2.1.1.4.2.1"; p_power = p_power + ((((((x_vzd / (vzd_koef * 2)) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + (y_vzd / y_vzd_koef)) + ((rotace - 45) / 8)) + (_root.vitr / 15)) + (((rot_l + (_root.vitr / 7)) - rotace) / 8)); } else { _root.z_f_used = "2.2.1.2.1.1.4.2.2"; p_power = p_power + ((((x_vzd / (vzd_koef * 2)) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + (y_vzd / y_vzd_koef)) + (_root.vitr / 15)); } p_rotace = p_rotace + ((((rot_l + (_root.vitr / 7)) - rotace) / 4.5) + (y_vzd / y_vzd_koef)); } } } else if ((((((((target._y - _y) < 70) && (y_vzd < 100)) && (y_vzd > 20)) && (last_shot_vzd < 100)) && (target_vzd > 250)) && (power > 30)) && (rotace < (rot_l - (_root.vitr / 7)))) { _root.z_f_used = "2.2.1.2.1.2.1"; p_rotace = p_rotace + (((((rot_l + (_root.vitr / 7)) - rotace) / 4.5) - (_root.vitr / 20)) - (target_vzd / 100)); } else if (rotace > (rot_l + (_root.vitr / 7))) { _root.z_f_used = "2.2.1.2.1.2.2"; p_power = p_power + (((x_vzd / (vzd_koef - (Math.abs(rotace - 45) / vzd_koef_k))) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(_x - last_shot_x) / wind_koef_vzd_koef)))) + ((last_shot_y - target._y) / y_koef)); } else if ((y_vzd < 30) && (x_vzd < 200)) { _root.z_f_used = "2.2.1.2.1.2.3"; p_power = p_power + (((x_vzd / (vzd_koef - (Math.abs(45 - rotace) / vzd_koef_k))) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + ((last_shot_y - target._y) / y_koef)); } else if (y_vzd >= 30) { if (((target._y - _y) > 200) && (last_shot_y > _y)) { if (p_rotace < 60) { _root.z_f_used = "2.2.1.2.1.2.4.1.1"; p_power = p_power + ((x_vzd / (vzd_koef / 1.5)) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))); } else { _root.z_f_used = "2.2.1.2.1.2.4.1.2"; p_power = p_power + ((x_vzd / (vzd_koef / 2)) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))); } } else if ((((_x - target._x) > 300) && (power < 50)) && (rotace > 70)) { _root.z_f_used = "2.2.1.2.1.2.4.2"; p_power = p_power + ((x_vzd / (vzd_koef / 3)) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))); } else if (rotace < (rot_l + (_root.vitr / 7))) { if (p_rotace >= 45) { _root.z_f_used = "2.2.1.2.1.2.4.3.1"; p_power = p_power + ((((((x_vzd / (vzd_koef * 2)) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + (y_vzd / y_vzd_koef)) + ((rotace - 45) / 8)) + (_root.vitr / 15)) + (((rot_l + (_root.vitr / 7)) - rotace) / 8)); } else { _root.z_f_used = "2.2.1.2.1.2.4.3.2"; p_power = p_power + ((((x_vzd / (vzd_koef * 2)) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + (y_vzd / y_vzd_koef)) + (_root.vitr / 15)); } p_rotace = p_rotace + ((((rot_l + (_root.vitr / 7)) - rotace) / 4.5) + (y_vzd / y_vzd_koef)); } } } else if ((((last_shot_vzd < 150) && ((_x - target._x) < 170)) || (last_shot_vzd >= 100)) || ((last_shot_vzd < 100) && (power < 30))) { if (_y > target._y) { p_power = p_power + (((x_vzd / (vzd_koef - (Math.abs(rotace - 45) / vzd_koef_k))) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + ((last_shot_y - target._y) / y_koef)); _root.z_f_used = "2.2.1.2.2.1.1"; } else if ((target._y - _y) > 100) { _root.z_f_used = "2.2.1.2.2.1.2.1"; p_power = p_power + ((x_vzd / (vzd_koef - (Math.abs(rotace - 45) / vzd_koef_k))) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))); } else { _root.z_f_used = "2.2.1.2.2.1.2.2"; p_power = p_power + (((x_vzd / (vzd_koef - (Math.abs(rotace - 45) / vzd_koef_k))) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + ((last_shot_y - target._y) / y_koef)); } } else if (rotace > ((rot_l + 5) + (root.vitr / 7))) { _root.z_f_used = "2.2.1.2.2.2"; p_rotace = p_rotace - ((((rotace - 45) / 10) + _x) - (target._x / 100)); } else { _root.z_f_used = "2.2.1.2.2.3"; p_rotace = p_rotace + (((rot_l + (_root.vitr / 7)) - rotace) / 3); p_power = p_power + (((x_vzd / (vzd_koef - (Math.abs(rotace - 45) / vzd_koef_k))) / 1.5) + (((rot_l + (_root.vitr / 7)) - rotace) / 5)); } } else if (((_y - target._y) > 100) && ((_x - target._x) < 100)) { _root.z_f_used = "2.2.2.1"; p_rotace = p_rotace + (((rot_l + (_root.vitr / 7)) - rotace) / 2); } else { _root.z_f_used = "2.2.2.2"; p_rotace = p_rotace + ((((rot_l + (_root.vitr / 7)) - rotace) / 2) - ((target._x - _x) / 100)); } } if (p_power > 100) { p_power = 100; } if (p_power >= _root["tank_" + tank_number].energy) { p_power = _root["tank_" + tank_number].energy; if (target._x > _x) { if (p_rotace < 135) { if (p_power > 70) { p_power = p_power - ((135 - p_rotace) / 2.5); } p_rotace = p_rotace + ((135 - p_rotace) / 3); } } else if (p_rotace > 45) { if (p_power > 70) { p_power = p_power - ((p_rotace - 45) / 2.5); } p_rotace = p_rotace - ((p_rotace - 45) / 3); } } if (p_power < 0) { p_power = 0; } if (p_rotace < 0) { p_rotace = 0; } else if (p_rotace > 180) { p_rotace = 180; } } function prepare_shot() { prep = true; if ((Math.max(rotace, p_rotace) - Math.min(rotace, p_rotace)) < 10) { sp = 1; } else { sp = Math.floor((Math.max(rotace, p_rotace) - Math.min(rotace, p_rotace)) / 10); } if (Math.ceil(rotace) != Math.ceil(p_rotace)) { if ((Math.ceil(p_rotace) < Math.ceil(rotace)) && ((rotace - sp) >= 0)) { prep = false; rotace = rotace - sp; } else if ((rotace + sp) <= 180) { prep = false; rotace = rotace + sp; } } if (Math.ceil(power) != Math.ceil(p_power)) { if ((Math.ceil(p_power) < Math.ceil(power)) && ((power - sp) >= 0)) { prep = false; power = power - sp; } else if ((power + sp) <= 180) { prep = false; power = power + sp; } } if (((Math.round(p_x) != Math.round(_x)) && (_root["tank_" + tank_number].fuel > 0)) && (p_move)) { prep = false; if (Math.round(p_x) < Math.round(_x)) { move_right(); } else { move_left(); } } if (prep) { return(true); } } function select_target() { vzd = 1000; i = 1; while (i <= _root.pocet_hracu) { vz = Math.abs(_x - _root["tank" + i]._x); if (((vz < vzd) && (i != tank_number)) && (_root["tank_" + i].live)) { vzd = vz; target = _root["tank" + i]; target_ = _root["tank_" + i]; } i++; } } function na_rade() { rounds++; par_active = false; calc_hill_up(); } function damage(damag, attacker, par) { armor = 1; arm = 1; i = 0; while (i < _root["tank_" + tank_number].specials[9]) { armor = armor / (1.12 / arm); arm = arm / 1.0002; i++; } if ((!sh_active) || (par)) { _root["tank_" + tank_number].energy = _root["tank_" + tank_number].energy - (damag * armor); } else { _root["shield" + tank_number].damage(damag, attacker); } if (_root["tank_" + tank_number].energy <= 0) { if (this != attacker) { _root["tank_" + attacker.tank_number].kills = _root["tank_" + attacker.tank_number].kills + 1; _root["tank_" + attacker.tank_number].score = _root["tank_" + attacker.tank_number].score + 5000; _root["tank_" + attacker.tank_number].total_score = _root["tank_" + attacker.tank_number].total_score + 5000; } else { _root["tank_" + tank_number].kills = _root["tank_" + tank_number].kills - 1; _root["tank_" + tank_number].score = _root["tank_" + tank_number].score - 2000; _root["tank_" + tank_number].total_score = _root["tank_" + tank_number].total_score - 2000; } } if (this != attacker) { _root["tank_" + attacker.tank_number].score = _root["tank_" + attacker.tank_number].score + (damag * 100); _root["tank_" + attacker.tank_number].total_score = _root["tank_" + attacker.tank_number].total_score + (damag * 100); } else { if (par) { damag = damag / 3; } _root["tank_" + tank_number].score = _root["tank_" + tank_number].score - Math.round(damag * 50); _root["tank_" + tank_number].total_score = _root["tank_" + tank_number].total_score - Math.round(damag * 50); if (_root["tank_" + tank_number].score < 0) { _root["tank_" + tank_number].score = 0; } } } function fire() { if (_root.debugging) { save_inf(); } last_wind = _root.vitr; first_frame = true; _root.attachMovie(_root.weapons[_root["tank_" + tank_number].cur_gun][4], "strela", 1000); countVect = 0; randVect = new Array(); i = 0; while (i <= 13) { if (_root["tank_" + tank_number].guns[i] > 0) { randVect[countVect] = i; countVect++; } i++; } trace(randVect); _root["tank_" + tank_number].cur_gun = randVect[random(randVect.length)]; _root["tank_" + tank_number].guns[_root["tank_" + tank_number].cur_gun]--; _root.strela._rotation = rotace - 90; _root.strela._x = _x; _root.strela._y = _y - 1; _root.strela.strela.vo = power; _root.strela.strela.owner = _root[_name]; _root[_name + "_hlaven"].play(); playing = false; } function save_inf() { _root.z_target = target; _root.z_target_name = target_.name; _root.z_target_energy = target_.energy; _root.z_target_live = target_.live; _root.z_name = _root["tank_" + tank_number].name; _root.z_energy = _root["tank_" + tank_number].energy; if (_x > target._x) { _root.z_pos = "right"; } else { _root.z_pos = "left"; } _root.z_x = _x; _root.z_y = _y; _root.z_tar_x = target._x; _root.z_tar_y = target._y; _root.z_last_vitr = last_wind; _root.z_vitr = _root.vitr; _root.z_wind_koef_vzd_koef = wind_koef_vzd_koef; _root.z_angle = rotace; _root.z_power = power; _root.z_y_koef = y_koef; _root.z_vzd_koef_k = vzd_koef_k; _root.z_last_shot_x = last_shot_x; _root.z_last_shot_y = last_shot_y; _root.z_last_shot_vzd = last_shot_vzd; _root.z_last_shot_y_vzd = y_vzd; _root.z_last_shot_x_vzd = x_vzd; _root.z_dif = dif; fscommand ("SAVE", ((((((("debug/" add _root.game) add "_") add rounds) add "_") add _root.z_pos) add "_") add _root["tank_" + tank_number].name) add ".txt"); } dif = _root["tank_" + tank_number].dif; _y = ((_root["land" + Math.round(_x)]._y - (_root["land" + Math.round(_x)]._height / 2)) - 4); i = 0; while (i < _width) { cur = _root["land" + Math.floor((_x - (_width / 2)) + i)]; if (hitTest(cur)) { cur._y = cur._y + ((_y + (_height / 2)) - (cur._y - (cur._height / 2))); } i++; } if (_root["tank_" + tank_number].specials[0] > 0) { par = true; } _root.attachMovie("hlaven", _name + "_hlaven", 10010 + tank_number); rotace = (random(67) * 2) + 46; _root[_name + "_hlaven"]._x = _x; _root[_name + "_hlaven"]._y = _y - 1; _root[_name + "_hlaven"]._rotation = rotace; power = 50; playing = false; testing = false; par_active = false; par_out = false; par_used = false; sh_active = false; _root["t" + tank_number] = _root["tank" + tank_number]; first_shot = true; first_frame = true; calc_frame = true; fuel_c = 1 / (_root["tank_" + tank_number].specials[10] + 1); rounds = 0; p_move = false; select_target();
Symbol 18 MovieClip [ai_easy] Frame 2
if (_y > 400) { _root["tank_" + tank_number].live = false; _root["tank_" + tank_number].energy = 0; _root["tank_" + tank_number].score = _root["tank_" + tank_number].score - 2000; _root.hracu--; if (_root["tank_" + tank_number].score < 0) { _root["tank_" + tank_number].score = 0; } gotoAndPlay (4); } if (_root["tank_" + tank_number].energy <= 0) { _root["tank_" + tank_number].energy = 0; _root["tank_" + tank_number].live = false; gotoAndPlay (4); } _root[_name + "_hlaven"]._x = _x; _root[_name + "_hlaven"]._y = _y - 1; if (sh_active) { _root["shield" + tank_number]._x = _x; _root["shield" + tank_number]._y = _y; } if (playing) { if ((!target_.live) && (first_frame)) { rounds = 1; select_target(); } if (rounds == 1) { if (first_frame) { i = 1; while (i <= _root.pocet_hracu) { if ((_root["tank" + i].playing && (i != tank_number)) && (_root["tank_" + i].live)) { _root["tank" + i].playing = false; _root.test(); } i++; } first_shot = true; calc_first_shot(); } } else if (first_frame) { calc_shot(); } first_frame = false; _root.rotace = rotace; _root.power = power; if (prepare_shot()) { fire(); } na_zemi = false; left = true; right = true; i = 0; min = 500; gg = false; test_hill(); while (i < _width) { cur = _root["land" + Math.round((_x - (_width / 2)) + i)]; if (pasy.hitTest(cur)) { na_zemi = true; if (par_out) { par_out = false; _root["parachute" + tank_number].removeMovieClip(); } if (fall > 0.4) { if (fall < 0.8) { damage(Math.round(fall * 25), this, true); } else { damage(Math.round((fall * fall) * 3000), this, true); } } fall = 0; } top = cur._y - (cur._height / 2); if ((top < min) && (na_zemi)) { gg = true; min = top; } if ((((i + 1) >= _width) && (na_zemi)) && (gg)) { _y = (min - 2); gg = false; } if (!na_zemi) { if ((fall >= 0.2) && (par)) { if (!par_active) { par_active = true; _root["tank_" + i].specials[0] = _root["tank_" + i].specials[0] - 1; } if (!par_out) { _root.attachMovie("parachute", "parachute" + tank_number, 9000 + tank_number); } par_out = true; } _y = (_y + fall); if (!par_out) { fall = fall + 0.01; } else { _root["parachute" + tank_number]._x = _x; _root["parachute" + tank_number]._y = _y - 7.5; fall = 0.2; _x = (_x + (_root.vitr / 3000)); } } i++; } if (power > _root["tank_" + tank_number].energy) { power = _root["tank_" + tank_number].energy; } _root[_name + "_hlaven"]._rotation = rotace; } if (testing) { i = 0; min = 500; gg = false; test_hill(); while (i < _width) { cur = _root["land" + Math.round((_x - (_width / 2)) + i)]; if (pasy.hitTest(cur)) { if (fall > 0.4) { if (fall < 0.8) { damage(Math.round(fall * 25), this, true); } else { damage(Math.round((fall * fall) * 80), this, true); } } if (par_out) { par_out = false; _root["parachute" + tank_number].removeMovieClip(); } na_zemi = true; fall = 0; } top = cur._y - (cur._height / 2); if ((top < min) && (na_zemi)) { gg = true; min = top; } if ((((i + 1) >= _width) && (na_zemi)) && (gg)) { _y = (min - 2); gg = false; } if (fall > 0.001) { test = false; } if (!na_zemi) { if ((fall >= 0.2) && (par)) { if (!par_active) { par_active = true; _root["tank_" + tank_number].specials[0] = _root["tank_" + tank_number].specials[0] - 1; } if (!par_out) { _root.attachMovie("parachute", "parachute" + tank_number, 9000 + tank_number); } par_out = true; } _y = (_y + fall); if (!par_out) { fall = fall + 0.01; } else { _root["parachute" + tank_number]._x = _x; _root["parachute" + tank_number]._y = _y - 7.5; fall = 0.2; _x = (_x + (_root.vitr / 3000)); } } i++; } if (fall > 0.001) { test = false; } test_hill(); x3 = x2; x2 = x1; x1 = Math.round(_x); y3 = y2; y2 = y1; y1 = Math.round(_y * 10) / 10; if ((y1 == y3) && (x1 == x3)) { test = true; } if (test) { testing = false; _root[_name + "test"] = false; } _root[_name + "_hlaven"]._x = _x; _root[_name + "_hlaven"]._y = _y - 1; test = true; }
Symbol 18 MovieClip [ai_easy] Frame 3
gotoAndPlay (2);
Symbol 18 MovieClip [ai_easy] Frame 4
_root[_name + "_hlaven"].removeMovieClip(); _root["parachute" + tank_number].removeMovieClip(); _root["shield" + tank_number].removeMovieClip(); _root.hracu--;
Symbol 18 MovieClip [ai_easy] Frame 9
i = 0; while (i < _width) { cur = _root["land" + Math.round((_x - (_width / 2)) + i)]; x = cur._x; y = cur._y; h = cur._y - (cur._height / 2); if (hitTest(x, h, true)) { vzr = Math.cos(0.017 * (Math.sqrt(((_x - x) * (_x - x)) + ((_y - h) * (_y - h))) * (180 / _width))); cur._height = cur._height - (30 * vzr); cur._y = cur._y + (15 * vzr); } else if (hitTest(_root["land" + Math.round((xx - (_width / 2)) + i)])) { cur._height = cur._height - (50 / Math.abs(_x - x)); cur._y = cur._y + ((50 / Math.abs(_x - x)) / 2); } i++; } i = 1; while (i <= _root.pocet_hracu) { current = _root["tank" + i]; if ((hitTest(current) || (hitTest(_root["shield" + i]))) && (i != tank_number)) { x = _x - current._x; y = _y - current._y; vzd = Math.sqrt((x * x) + (y * y)); if (!current.sh_active) { damg = Math.round(_width / ((vzd + 1) / 14)); if (damg > _root["tank_" + i].energy) { damg = _root["tank_" + i].energy; } } else { damg = Math.round(_width / (((vzd / 2) + 1) / 18)); } current.damage(damg, this); } i++; }
Symbol 18 MovieClip [ai_easy] Frame 15
if (playing) { _root.test(); } stop();
Symbol 21 MovieClip [ai_normal] Frame 1
function test_hill() { calc_hill_up(); if (((_root["land" + Math.ceil(_x - (_width / 2))]._y - (_root["land" + Math.ceil(_x - (_width / 2))]._height / 2)) < (_y - hill_up)) || ((_root["land" + Math.floor(_x - (_width / 2))]._y - (_root["land" + Math.floor(_x - (_width / 2))]._height / 2)) < (_y - hill_up))) { _x = (_x + 0.7); test = false; left = false; right = false; } else if (((_root["land" + Math.floor(_x + (_width / 2))]._y - (_root["land" + Math.floor(_x + (_width / 2))]._height / 2)) < (_y - hill_up)) || ((_root["land" + Math.ceil(_x + (_width / 2))]._y - (_root["land" + Math.ceil(_x + (_width / 2))]._height / 2)) < (_y - hill_up))) { left = false; right = false; _x = (_x - 0.7); test = false; } else { left = true; right = true; } } function blik() { _root.attachMovie("blk", "blik", 10030); _root.blik._x = _x; _root.blik._y = _y - 10; } function calc_hill_up() { hill_up = (0.5 + _root["tank_" + tank_number].specials[11]) - (fall * 10); } function move_left() { _x = (_x - 0.5); _root["tank_" + tank_number].fuel = _root["tank_" + tank_number].fuel - fuel_c; moving = true; i = 1; while (i < (_root.pocet_hracu + 1)) { if (hitTest(_root["tank" + i]) && (i != tank_number)) { _x = (_x + 0.6); } i++; } } function move_right() { _x = (_x + 0.5); _root["tank_" + tank_number].fuel = _root["tank_" + tank_number].fuel - fuel_c; moving = true; i = 1; while (i < (_root.pocet_hracu + 1)) { if (hitTest(_root["tank" + i]) && (i != tank_number)) { _x = (_x - 0.6); } i++; } } function activate_shield(shield) { _root.attachMovie(_root.specials[2 + shield][4], "shield" + tank_number, 5040 + tank_number); _root["shield" + tank_number].num = tank_number; _root["tank_" + tank_number].specials[2 + shield]--; sh_active = true; _root["t" + tank_number] = _root["shield" + tank_number]; } function disable_shield() { _root["shield" + tank_number].disable(); sh_active = false; _root["t" + tank_number] = _root["tank" + tank_number]; } function p_m(par) { if (par > 0) { return(1); } return(-1); } function calc_first_shot() { _root.z_ai_dif = "hard"; p_rotace = 90 + (p_m(target._x - _x) * 45); p_x = _x; p_power = Math.abs(_x - target._x) / (2 + (Math.abs(_x - target._x) / 110)); if (p_power >= _root["tank_" + tank_number].energy) { p_power = _root["tank_" + tank_number].energy; } } function calc_shot() { last_shot_vzd = Math.sqrt(Math.abs((_x - last_shot_x) * (_x - last_shot_x)) + Math.abs((_y - last_shot_y) * (_y - last_shot_y))); target_vzd = Math.sqrt(Math.abs((_x - target._x) * (_x - target._x)) + Math.abs((_y - target._y) * (_y - target._y))); x_vzd = Math.abs(last_shot_x - target._x); y_vzd = Math.abs(last_shot_y - target._y); if ((power >= _root["tank_" + tank_number].energy) || (power == 100)) { full_power = true; } else { full_power = false; } wind_change_koef = 15; wind_koef_vzd_koef = 500; vzd_koef = 18; vzd_koef_k = 12 + (Math.abs(_x - last_shot_x) / 80); y_vzd_koef = 50; y_koef = 40; rot_r = 106 - ((200 - Math.abs(_x - target._x)) / 30); rot_l = 74 + ((200 - Math.abs(_x - target._x)) / 30); if (target._x > _x) { wind_koef_vzd_koef = wind_koef_vzd_koef - ((180 - rotace) * 3); y_koef = y_koef + ((135 - rotace) * 1.7); if (last_shot_x < _x) { _root.z_f_used = "1.1"; p_rotace = p_rotace + ((((_x - last_shot_x) / 10) + ((target._x - _x) / 20)) - (_root.vitr / 50)); } else if ((((last_shot_vzd > 60) || (target_vzd < 70)) || (power < 10)) && ((power < 70) || (last_shot_vzd > 200))) { _root.z_f_used = "1.2.1.failed"; if (last_shot_x >= target._x) { if (x_vzd > 20) { _root.z_f_used = "1.2.1.1.1"; p_power = p_power - (((x_vzd / ((vzd_koef + 2.5) - (Math.abs(135 - rotace) / vzd_koef_k))) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) - ((last_shot_y - target._y) / y_koef)); } else { _root.z_f_used = "1.2.1.1.2"; p_power = p_power - ((x_vzd / ((vzd_koef - 1) - (Math.abs(135 - rotace) / vzd_koef_k))) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))); } } else if (last_shot_y < target._y) { if (target._y < _y) { if ((((((((_y - target._y) > 80) && (y_vzd < 80)) && (y_vzd > 20)) && (last_shot_vzd < 100)) && (target_vzd > 220)) && (power > 30)) && (rotace > (rot_r - (_root.vitr / 7)))) { _root.z_f_used = "1.2.1.2.1.1.1"; p_rotace = p_rotace - ((((rotace - (rot_r - (_root.vitr / 7))) / 4) + (_root.vitr / 20)) - (target_vzd / 100)); } else if (rotace < (rot_r - (_root.vitr / 7))) { _root.z_f_used = "1.2.1.2.1.1.2."; p_power = p_power + (((x_vzd / (vzd_koef - (Math.abs(135 - rotace) / vzd_koef_k))) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + ((last_shot_y - target._y) / y_koef)); } else if ((y_vzd < 30) && (x_vzd < 200)) { _root.z_f_used = "1.2.1.2.1.1.3"; p_power = p_power + (((x_vzd / (vzd_koef - (Math.abs(135 - rotace) / vzd_koef_k))) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + ((last_shot_y - target._y) / y_koef)); } else if (y_vzd >= 30) { if ((((target._x - _x) > 300) && (power < 50)) && (rotace < 110)) { _root.z_f_used = "1.2.1.2.1.1.4.1"; p_power = p_power + ((x_vzd / (vzd_koef / 3)) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))); } else if (rotace > (rot_r - (_root.vitr / 7))) { if (p_rotace <= 135) { _root.z_f_used = "1.2.1.2.1.1.4.2.1"; p_power = p_power + ((((((x_vzd / (vzd_koef * 2)) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + (y_vzd / y_vzd_koef)) + ((135 - rotace) / 8)) - (_root.vitr / 15)) + ((rotace - (rot_r - (_root.vitr / 7))) / 8)); } else { _root.z_f_used = "1.2.1.2.1.1.4.2.2"; p_power = p_power + ((((x_vzd / (vzd_koef * 2)) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + (y_vzd / y_vzd_koef)) - (_root.vitr / 15)); } p_rotace = p_rotace - (((rotace - (rot_r - (_root.vitr / 7))) / 4.5) + (y_vzd / y_vzd_koef)); } } } else if ((((((((target._y - _y) < 70) && (y_vzd < 100)) && (y_vzd > 20)) && (last_shot_vzd < 100)) && (target_vzd > 250)) && (power > 30)) && (rotace > (rot_r - (_root.vitr / 7)))) { _root.z_f_used = "1.2.1.2.1.2.1"; p_rotace = p_rotace - ((((rotace - (rot_r - (_root.vitr / 7))) / 4.5) + (_root.vitr / 20)) - (target_vzd / 100)); } else if (rotace < (rot_r - (_root.vitr / 7))) { _root.z_f_used = "1.2.1.2.1.2.2"; p_power = p_power + (((x_vzd / (vzd_koef - (Math.abs(135 - rotace) / vzd_koef_k))) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + ((last_shot_y - target._y) / y_koef)); } else if ((y_vzd < 30) && (x_vzd < 200)) { _root.z_f_used = "1.2.1.2.1.2.3"; p_power = p_power + (((x_vzd / (vzd_koef - (Math.abs(135 - rotace) / vzd_koef_k))) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + ((last_shot_y - target._y) / y_koef)); } else if (y_vzd >= 30) { if (((target._y - _y) > 200) && (last_shot_y > _y)) { _root.z_f_used = "1.2.1.2.1.2.4.1"; if (p_rotace > 120) { _root.z_f_used = "1.2.1.2.1.2.4.1.1"; p_power = p_power + ((x_vzd / (vzd_koef / 1.5)) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))); } else { _root.z_f_used = "1.2.1.2.1.2.4.1.2"; p_power = p_power + ((x_vzd / (vzd_koef / 2)) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))); } } else if ((((target._x - _x) > 300) && (power < 50)) && (rotace < 110)) { _root.z_f_used = "1.2.1.2.1.2.4.2."; p_power = p_power + ((x_vzd / (vzd_koef / 3)) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))); } else if (rotace > (rot_r - (_root.vitr / 7))) { if (p_rotace <= 135) { _root.z_f_used = "1.2.1.2.1.2.4.3.1."; p_power = p_power + ((((((x_vzd / (vzd_koef * 2)) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) - (y_vzd / y_vzd_koef)) + ((135 - rotace) / 8)) - (_root.vitr / 15)) + ((rotace - (rot_r - (_root.vitr / 7))) / 8)); } else { _root.z_f_used = "1.2.1.2.1.2.4.3.2."; p_power = p_power + ((((x_vzd / (vzd_koef * 2)) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) - (y_vzd / y_vzd_koef)) - (_root.vitr / 15)); } p_rotace = p_rotace - (((rotace - (rot_r - (_root.vitr / 7))) / 4.5) + (y_vzd / y_vzd_koef)); } } } else if ((((last_shot_vzd < 150) && ((target._x - _x) < 170)) || (last_shot_vzd >= 100)) || ((last_shot_vzd < 100) && (power < 30))) { if (_y > target._y) { p_power = p_power + (((x_vzd / (vzd_koef - (Math.abs(135 - rotace) / vzd_koef_k))) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + ((last_shot_y - target._y) / y_koef)); _root.z_f_used = "1.2.1.2.2.1.1"; } else if ((target._y - _y) > 100) { _root.z_f_used = "1.2.1.2.2.1.2.1"; p_power = p_power + ((x_vzd / (vzd_koef - (Math.abs(135 - rotace) / vzd_koef_k))) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))); } else { _root.z_f_used = "1.2.1.2.2.1.2.2"; p_power = p_power + (((x_vzd / (vzd_koef - (Math.abs(135 - rotace) / vzd_koef_k))) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + ((last_shot_y - target._y) / y_koef)); } } else if (rotace < ((rot_r - 5) - (root.vitr / 7))) { _root.z_f_used = "1.2.1.2.2.2"; p_rotace = p_rotace + ((((135 - rotace) / 10) + target._x) - (_x / 100)); } else { _root.z_f_used = "1.2.1.2.2.3"; p_rotace = p_rotace - ((rotace - (rot_r - (_root.vitr / 7))) / 2); p_power = p_power + (((x_vzd / (vzd_koef - (Math.abs(135 - rotace) / vzd_koef_k))) / 1.5) + ((rotace - (rot_r - (_root.vitr / 7))) / 5)); } } else if (((_y - target._y) > 100) && ((target._x - _x) < 100)) { _root.z_f_used = "1.2.2.1"; p_rotace = p_rotace - ((rotace - (rot_r - (_root.vitr / 7))) / 2); } else { _root.z_f_used = "1.2.2.2"; p_rotace = p_rotace - (((rotace - (rot_r - (_root.vitr / 7))) / 2) - ((target._x - _x) / 100)); } } else { wind_koef_vzd_koef = wind_koef_vzd_koef - (rotace * 3); y_koef = y_koef + ((rotace - 45) * 1.7); if (last_shot_x > _x) { _root.z_f_used = "2.1"; p_rotace = p_rotace - ((((last_shot_x - _x) / 10) + ((_x - target._x) / 20)) + (_root.vitr / 50)); } else if ((((last_shot_vzd > 60) || (target_vzd < 70)) || (power < 10)) && ((power < 70) || (last_shot_vzd > 200))) { _root.z_f_used = "2.2.1.failed"; if (last_shot_x <= target._x) { if (x_vzd > 20) { _root.z_f_used = "2.2.1.1.1"; p_power = p_power - (((x_vzd / ((vzd_koef + 2.5) - (Math.abs(45 - rotace) / vzd_koef_k))) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) - ((last_shot_y - target._y) / y_koef)); } else { _root.z_f_used = "2.2.1.1.2"; p_power = p_power - ((x_vzd / ((vzd_koef - 1) - (Math.abs(45 - rotace) / vzd_koef_k))) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))); } } else if (last_shot_y < target._y) { if (target._y < _y) { if ((((((((_y - target._y) > 80) && (y_vzd < 80)) && (y_vzd > 20)) && (last_shot_vzd < 100)) && (target_vzd > 220)) && (power > 30)) && (rotace > (rot_l + (_root.vitr / 7)))) { _root.z_f_used = "2.2.1.2.1.1.1"; p_rotace = p_rotace + (((((rot_l + (_root.vitr / 7)) - rotace) / 4) - (_root.vitr / 20)) - (target_vzd / 100)); } else if (rotace > (rot_l + (_root.vitr / 7))) { _root.z_f_used = "2.2.1.2.1.1.2"; p_power = p_power + (((x_vzd / (vzd_koef - (Math.abs(rotace - 45) / vzd_koef_k))) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(_x - last_shot_x) / wind_koef_vzd_koef)))) + ((last_shot_y - target._y) / y_koef)); } else if ((y_vzd < 30) && (x_vzd < 200)) { _root.z_f_used = "2.2.1.2.1.1.3"; p_power = p_power + (((x_vzd / (vzd_koef - (Math.abs(rotace - 45) / vzd_koef_k))) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(_x - last_shot_x) / wind_koef_vzd_koef)))) + ((last_shot_y - target._y) / y_koef)); } else if (y_vzd >= 30) { if ((((_x - target._x) > 300) && (power < 50)) && (rotace > 70)) { _root.z_f_used = "2.2.1.2.1.1.4.1"; p_power = p_power + ((x_vzd / (vzd_koef / 3)) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(_x - last_shot_x) / wind_koef_vzd_koef)))); } else if (rotace < (rot_l + (_root.vitr / 7))) { if (p_rotace >= 45) { _root.z_f_used = "2.2.1.2.1.1.4.2.1"; p_power = p_power + ((((((x_vzd / (vzd_koef * 2)) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + (y_vzd / y_vzd_koef)) + ((rotace - 45) / 8)) + (_root.vitr / 15)) + (((rot_l + (_root.vitr / 7)) - rotace) / 8)); } else { _root.z_f_used = "2.2.1.2.1.1.4.2.2"; p_power = p_power + ((((x_vzd / (vzd_koef * 2)) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + (y_vzd / y_vzd_koef)) + (_root.vitr / 15)); } p_rotace = p_rotace + ((((rot_l + (_root.vitr / 7)) - rotace) / 4.5) + (y_vzd / y_vzd_koef)); } } } else if ((((((((target._y - _y) < 70) && (y_vzd < 100)) && (y_vzd > 20)) && (last_shot_vzd < 100)) && (target_vzd > 250)) && (power > 30)) && (rotace < (rot_l - (_root.vitr / 7)))) { _root.z_f_used = "2.2.1.2.1.2.1"; p_rotace = p_rotace + (((((rot_l + (_root.vitr / 7)) - rotace) / 4.5) - (_root.vitr / 20)) - (target_vzd / 100)); } else if (rotace > (rot_l + (_root.vitr / 7))) { _root.z_f_used = "2.2.1.2.1.2.2"; p_power = p_power + (((x_vzd / (vzd_koef - (Math.abs(rotace - 45) / vzd_koef_k))) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(_x - last_shot_x) / wind_koef_vzd_koef)))) + ((last_shot_y - target._y) / y_koef)); } else if ((y_vzd < 30) && (x_vzd < 200)) { _root.z_f_used = "2.2.1.2.1.2.3"; p_power = p_power + (((x_vzd / (vzd_koef - (Math.abs(45 - rotace) / vzd_koef_k))) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + ((last_shot_y - target._y) / y_koef)); } else if (y_vzd >= 30) { if (((target._y - _y) > 200) && (last_shot_y > _y)) { if (p_rotace < 60) { _root.z_f_used = "2.2.1.2.1.2.4.1.1"; p_power = p_power + ((x_vzd / (vzd_koef / 1.5)) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))); } else { _root.z_f_used = "2.2.1.2.1.2.4.1.2"; p_power = p_power + ((x_vzd / (vzd_koef / 2)) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))); } } else if ((((_x - target._x) > 300) && (power < 50)) && (rotace > 70)) { _root.z_f_used = "2.2.1.2.1.2.4.2"; p_power = p_power + ((x_vzd / (vzd_koef / 3)) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))); } else if (rotace < (rot_l + (_root.vitr / 7))) { if (p_rotace >= 45) { _root.z_f_used = "2.2.1.2.1.2.4.3.1"; p_power = p_power + ((((((x_vzd / (vzd_koef * 2)) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + (y_vzd / y_vzd_koef)) + ((rotace - 45) / 8)) + (_root.vitr / 15)) + (((rot_l + (_root.vitr / 7)) - rotace) / 8)); } else { _root.z_f_used = "2.2.1.2.1.2.4.3.2"; p_power = p_power + ((((x_vzd / (vzd_koef * 2)) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + (y_vzd / y_vzd_koef)) + (_root.vitr / 15)); } p_rotace = p_rotace + ((((rot_l + (_root.vitr / 7)) - rotace) / 4.5) + (y_vzd / y_vzd_koef)); } } } else if ((((last_shot_vzd < 150) && ((_x - target._x) < 170)) || (last_shot_vzd >= 100)) || ((last_shot_vzd < 100) && (power < 30))) { if (_y > target._y) { p_power = p_power + (((x_vzd / (vzd_koef - (Math.abs(rotace - 45) / vzd_koef_k))) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + ((last_shot_y - target._y) / y_koef)); _root.z_f_used = "2.2.1.2.2.1.1"; } else if ((target._y - _y) > 100) { _root.z_f_used = "2.2.1.2.2.1.2.1"; p_power = p_power + ((x_vzd / (vzd_koef - (Math.abs(rotace - 45) / vzd_koef_k))) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))); } else { _root.z_f_used = "2.2.1.2.2.1.2.2"; p_power = p_power + (((x_vzd / (vzd_koef - (Math.abs(rotace - 45) / vzd_koef_k))) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + ((last_shot_y - target._y) / y_koef)); } } else if (rotace > ((rot_l + 5) + (root.vitr / 7))) { _root.z_f_used = "2.2.1.2.2.2"; p_rotace = p_rotace - ((((rotace - 45) / 10) + _x) - (target._x / 100)); } else { _root.z_f_used = "2.2.1.2.2.3"; p_rotace = p_rotace + (((rot_l + (_root.vitr / 7)) - rotace) / 3); p_power = p_power + (((x_vzd / (vzd_koef - (Math.abs(rotace - 45) / vzd_koef_k))) / 1.5) + (((rot_l + (_root.vitr / 7)) - rotace) / 5)); } } else if (((_y - target._y) > 100) && ((_x - target._x) < 100)) { _root.z_f_used = "2.2.2.1"; p_rotace = p_rotace + (((rot_l + (_root.vitr / 7)) - rotace) / 2); } else { _root.z_f_used = "2.2.2.2"; p_rotace = p_rotace + ((((rot_l + (_root.vitr / 7)) - rotace) / 2) - ((target._x - _x) / 100)); } } if (p_power > 100) { p_power = 100; } if (p_power >= _root["tank_" + tank_number].energy) { p_power = _root["tank_" + tank_number].energy; if (target._x > _x) { if (p_rotace < 135) { if (p_power > 70) { p_power = p_power - ((135 - p_rotace) / 2.5); } p_rotace = p_rotace + ((135 - p_rotace) / 3); } } else if (p_rotace > 45) { if (p_power > 70) { p_power = p_power - ((p_rotace - 45) / 2.5); } p_rotace = p_rotace - ((p_rotace - 45) / 3); } } if (p_power < 0) { p_power = 0; } if (p_rotace < 0) { p_rotace = 0; } else if (p_rotace > 180) { p_rotace = 180; } } function prepare_shot() { prep = true; if ((Math.max(rotace, p_rotace) - Math.min(rotace, p_rotace)) < 10) { sp = 1; } else { sp = Math.floor((Math.max(rotace, p_rotace) - Math.min(rotace, p_rotace)) / 10); } if (Math.ceil(rotace) != Math.ceil(p_rotace)) { if ((Math.ceil(p_rotace) < Math.ceil(rotace)) && ((rotace - sp) >= 0)) { prep = false; rotace = rotace - sp; } else if ((rotace + sp) <= 180) { prep = false; rotace = rotace + sp; } } if (Math.ceil(power) != Math.ceil(p_power)) { if ((Math.ceil(p_power) < Math.ceil(power)) && ((power - sp) >= 0)) { prep = false; power = power - sp; } else if ((power + sp) <= 180) { prep = false; power = power + sp; } } if (((Math.round(p_x) != Math.round(_x)) && (_root["tank_" + tank_number].fuel > 0)) && (p_move)) { prep = false; if (Math.round(p_x) < Math.round(_x)) { move_right(); } else { move_left(); } } if (prep) { return(true); } } function select_target() { vzd = 1000; i = 1; while (i <= _root.pocet_hracu) { vz = Math.abs(_x - _root["tank" + i]._x); if (((vz < vzd) && (i != tank_number)) && (_root["tank_" + i].live)) { vzd = vz; target = _root["tank" + i]; target_ = _root["tank_" + i]; } i++; } } function na_rade() { rounds++; par_active = false; calc_hill_up(); } function damage(damag, attacker, par) { armor = 1; arm = 1; i = 0; while (i < _root["tank_" + tank_number].specials[9]) { armor = armor / (1.12 / arm); arm = arm / 1.0002; i++; } if ((!sh_active) || (par)) { _root["tank_" + tank_number].energy = _root["tank_" + tank_number].energy - (damag * armor); } else { _root["shield" + tank_number].damage(damag, attacker); } if (_root["tank_" + tank_number].energy <= 0) { if (this != attacker) { _root["tank_" + attacker.tank_number].kills = _root["tank_" + attacker.tank_number].kills + 1; _root["tank_" + attacker.tank_number].score = _root["tank_" + attacker.tank_number].score + 5000; _root["tank_" + attacker.tank_number].total_score = _root["tank_" + attacker.tank_number].total_score + 5000; } else { _root["tank_" + tank_number].kills = _root["tank_" + tank_number].kills - 1; _root["tank_" + tank_number].score = _root["tank_" + tank_number].score - 2000; _root["tank_" + tank_number].total_score = _root["tank_" + tank_number].total_score - 2000; } } if (this != attacker) { _root["tank_" + attacker.tank_number].score = _root["tank_" + attacker.tank_number].score + (damag * 100); _root["tank_" + attacker.tank_number].total_score = _root["tank_" + attacker.tank_number].total_score + (damag * 100); } else { if (par) { damag = damag / 3; } _root["tank_" + tank_number].score = _root["tank_" + tank_number].score - Math.round(damag * 50); _root["tank_" + tank_number].total_score = _root["tank_" + tank_number].total_score - Math.round(damag * 50); if (_root["tank_" + tank_number].score < 0) { _root["tank_" + tank_number].score = 0; } } } function fire() { if (_root.debugging) { save_inf(); } last_wind = _root.vitr; first_frame = true; _root.attachMovie(_root.weapons[_root["tank_" + tank_number].cur_gun][4], "strela", 1000); countVect = 0; randVect = new Array(); i = 0; while (i <= 13) { if (_root["tank_" + tank_number].guns[i] > 0) { randVect[countVect] = i; countVect++; } i++; } trace(randVect); _root["tank_" + tank_number].cur_gun = randVect[random(randVect.length)]; _root["tank_" + tank_number].guns[_root["tank_" + tank_number].cur_gun]--; _root.strela._rotation = rotace - 90; _root.strela._x = _x; _root.strela._y = _y - 1; _root.strela.strela.vo = power; _root.strela.strela.owner = _root[_name]; _root[_name + "_hlaven"].play(); playing = false; } function save_inf() { _root.z_target = target; _root.z_target_name = target_.name; _root.z_target_energy = target_.energy; _root.z_target_live = target_.live; _root.z_name = _root["tank_" + tank_number].name; _root.z_energy = _root["tank_" + tank_number].energy; if (_x > target._x) { _root.z_pos = "right"; } else { _root.z_pos = "left"; } _root.z_x = _x; _root.z_y = _y; _root.z_tar_x = target._x; _root.z_tar_y = target._y; _root.z_last_vitr = last_wind; _root.z_vitr = _root.vitr; _root.z_wind_koef_vzd_koef = wind_koef_vzd_koef; _root.z_angle = rotace; _root.z_power = power; _root.z_y_koef = y_koef; _root.z_vzd_koef_k = vzd_koef_k; _root.z_last_shot_x = last_shot_x; _root.z_last_shot_y = last_shot_y; _root.z_last_shot_vzd = last_shot_vzd; _root.z_last_shot_y_vzd = y_vzd; _root.z_last_shot_x_vzd = x_vzd; _root.z_dif = dif; fscommand ("SAVE", ((((((("debug/" add _root.game) add "_") add rounds) add "_") add _root.z_pos) add "_") add _root["tank_" + tank_number].name) add ".txt"); } dif = _root["tank_" + tank_number].dif; _y = ((_root["land" + Math.round(_x)]._y - (_root["land" + Math.round(_x)]._height / 2)) - 4); i = 0; while (i < _width) { cur = _root["land" + Math.floor((_x - (_width / 2)) + i)]; if (hitTest(cur)) { cur._y = cur._y + ((_y + (_height / 2)) - (cur._y - (cur._height / 2))); } i++; } if (_root["tank_" + tank_number].specials[0] > 0) { par = true; } _root.attachMovie("hlaven", _name + "_hlaven", 10010 + tank_number); rotace = (random(67) * 2) + 46; _root[_name + "_hlaven"]._x = _x; _root[_name + "_hlaven"]._y = _y - 1; _root[_name + "_hlaven"]._rotation = rotace; power = 50; playing = false; testing = false; par_active = false; par_out = false; par_used = false; sh_active = false; _root["t" + tank_number] = _root["tank" + tank_number]; first_shot = true; first_frame = true; calc_frame = true; fuel_c = 1 / (_root["tank_" + tank_number].specials[10] + 1); rounds = 0; p_move = false; select_target();
Symbol 21 MovieClip [ai_normal] Frame 2
if (_y > 400) { _root["tank_" + tank_number].live = false; _root["tank_" + tank_number].energy = 0; _root["tank_" + tank_number].score = _root["tank_" + tank_number].score - 2000; _root.hracu--; if (_root["tank_" + tank_number].score < 0) { _root["tank_" + tank_number].score = 0; } gotoAndPlay (4); } if (_root["tank_" + tank_number].energy <= 0) { _root["tank_" + tank_number].energy = 0; _root["tank_" + tank_number].live = false; gotoAndPlay (4); } _root[_name + "_hlaven"]._x = _x; _root[_name + "_hlaven"]._y = _y - 1; if (sh_active) { _root["shield" + tank_number]._x = _x; _root["shield" + tank_number]._y = _y; } if (playing) { if ((!target_.live) && (first_frame)) { rounds = 1; select_target(); } if (rounds == 1) { if (first_frame) { i = 1; while (i <= _root.pocet_hracu) { if ((_root["tank" + i].playing && (i != tank_number)) && (_root["tank_" + i].live)) { _root["tank" + i].playing = false; _root.test(); } i++; } first_shot = true; calc_first_shot(); } } else if (first_frame) { calc_shot(); } first_frame = false; _root.rotace = rotace; _root.power = power; if (prepare_shot()) { fire(); } na_zemi = false; left = true; right = true; i = 0; min = 500; gg = false; test_hill(); while (i < _width) { cur = _root["land" + Math.round((_x - (_width / 2)) + i)]; if (pasy.hitTest(cur)) { na_zemi = true; if (par_out) { par_out = false; _root["parachute" + tank_number].removeMovieClip(); } if (fall > 0.4) { if (fall < 0.8) { damage(Math.round(fall * 25), this, true); } else { damage(Math.round((fall * fall) * 3000), this, true); } } fall = 0; } top = cur._y - (cur._height / 2); if ((top < min) && (na_zemi)) { gg = true; min = top; } if ((((i + 1) >= _width) && (na_zemi)) && (gg)) { _y = (min - 2); gg = false; } if (!na_zemi) { if ((fall >= 0.2) && (par)) { if (!par_active) { par_active = true; _root["tank_" + i].specials[0] = _root["tank_" + i].specials[0] - 1; } if (!par_out) { _root.attachMovie("parachute", "parachute" + tank_number, 9000 + tank_number); } par_out = true; } _y = (_y + fall); if (!par_out) { fall = fall + 0.01; } else { _root["parachute" + tank_number]._x = _x; _root["parachute" + tank_number]._y = _y - 7.5; fall = 0.2; _x = (_x + (_root.vitr / 3000)); } } i++; } if (power > _root["tank_" + tank_number].energy) { power = _root["tank_" + tank_number].energy; } _root[_name + "_hlaven"]._rotation = rotace; } if (testing) { i = 0; min = 500; gg = false; test_hill(); while (i < _width) { cur = _root["land" + Math.round((_x - (_width / 2)) + i)]; if (pasy.hitTest(cur)) { if (fall > 0.4) { if (fall < 0.8) { damage(Math.round(fall * 25), this, true); } else { damage(Math.round((fall * fall) * 80), this, true); } } if (par_out) { par_out = false; _root["parachute" + tank_number].removeMovieClip(); } na_zemi = true; fall = 0; } top = cur._y - (cur._height / 2); if ((top < min) && (na_zemi)) { gg = true; min = top; } if ((((i + 1) >= _width) && (na_zemi)) && (gg)) { _y = (min - 2); gg = false; } if (fall > 0.001) { test = false; } if (!na_zemi) { if ((fall >= 0.2) && (par)) { if (!par_active) { par_active = true; _root["tank_" + tank_number].specials[0] = _root["tank_" + tank_number].specials[0] - 1; } if (!par_out) { _root.attachMovie("parachute", "parachute" + tank_number, 9000 + tank_number); } par_out = true; } _y = (_y + fall); if (!par_out) { fall = fall + 0.01; } else { _root["parachute" + tank_number]._x = _x; _root["parachute" + tank_number]._y = _y - 7.5; fall = 0.2; _x = (_x + (_root.vitr / 3000)); } } i++; } if (fall > 0.001) { test = false; } test_hill(); x3 = x2; x2 = x1; x1 = Math.round(_x); y3 = y2; y2 = y1; y1 = Math.round(_y * 10) / 10; if ((y1 == y3) && (x1 == x3)) { test = true; } if (test) { testing = false; _root[_name + "test"] = false; } _root[_name + "_hlaven"]._x = _x; _root[_name + "_hlaven"]._y = _y - 1; test = true; }
Symbol 21 MovieClip [ai_normal] Frame 3
gotoAndPlay (2);
Symbol 21 MovieClip [ai_normal] Frame 4
_root[_name + "_hlaven"].removeMovieClip(); _root["parachute" + tank_number].removeMovieClip(); _root["shield" + tank_number].removeMovieClip(); _root.hracu--;
Symbol 21 MovieClip [ai_normal] Frame 9
i = 0; while (i < _width) { cur = _root["land" + Math.round((_x - (_width / 2)) + i)]; x = cur._x; y = cur._y; h = cur._y - (cur._height / 2); if (hitTest(x, h, true)) { vzr = Math.cos(0.017 * (Math.sqrt(((_x - x) * (_x - x)) + ((_y - h) * (_y - h))) * (180 / _width))); cur._height = cur._height - (30 * vzr); cur._y = cur._y + (15 * vzr); } else if (hitTest(_root["land" + Math.round((xx - (_width / 2)) + i)])) { cur._height = cur._height - (50 / Math.abs(_x - x)); cur._y = cur._y + ((50 / Math.abs(_x - x)) / 2); } i++; } i = 1; while (i <= _root.pocet_hracu) { current = _root["tank" + i]; if ((hitTest(current) || (hitTest(_root["shield" + i]))) && (i != tank_number)) { x = _x - current._x; y = _y - current._y; vzd = Math.sqrt((x * x) + (y * y)); if (!current.sh_active) { damg = Math.round(_width / ((vzd + 1) / 14)); if (damg > _root["tank_" + i].energy) { damg = _root["tank_" + i].energy; } } else { damg = Math.round(_width / (((vzd / 2) + 1) / 18)); } current.damage(damg, this); } i++; }
Symbol 21 MovieClip [ai_normal] Frame 15
if (playing) { _root.test(); } stop();
Symbol 24 MovieClip [ai_hard] Frame 1
function test_hill() { calc_hill_up(); if (((_root["land" + Math.ceil(_x - (_width / 2))]._y - (_root["land" + Math.ceil(_x - (_width / 2))]._height / 2)) < (_y - hill_up)) || ((_root["land" + Math.floor(_x - (_width / 2))]._y - (_root["land" + Math.floor(_x - (_width / 2))]._height / 2)) < (_y - hill_up))) { _x = (_x + 0.7); test = false; left = false; right = false; } else if (((_root["land" + Math.floor(_x + (_width / 2))]._y - (_root["land" + Math.floor(_x + (_width / 2))]._height / 2)) < (_y - hill_up)) || ((_root["land" + Math.ceil(_x + (_width / 2))]._y - (_root["land" + Math.ceil(_x + (_width / 2))]._height / 2)) < (_y - hill_up))) { left = false; right = false; _x = (_x - 0.7); test = false; } else { left = true; right = true; } } function blik() { _root.attachMovie("blk", "blik", 10030); _root.blik._x = _x; _root.blik._y = _y - 10; } function calc_hill_up() { hill_up = (0.5 + _root["tank_" + tank_number].specials[11]) - (fall * 10); } function move_left() { _x = (_x - 0.5); _root["tank_" + tank_number].fuel = _root["tank_" + tank_number].fuel - fuel_c; moving = true; i = 1; while (i < (_root.pocet_hracu + 1)) { if (hitTest(_root["tank" + i]) && (i != tank_number)) { _x = (_x + 0.6); } i++; } } function move_right() { _x = (_x + 0.5); _root["tank_" + tank_number].fuel = _root["tank_" + tank_number].fuel - fuel_c; moving = true; i = 1; while (i < (_root.pocet_hracu + 1)) { if (hitTest(_root["tank" + i]) && (i != tank_number)) { _x = (_x - 0.6); } i++; } } function activate_shield(shield) { _root.attachMovie(_root.specials[2 + shield][4], "shield" + tank_number, 5040 + tank_number); _root["shield" + tank_number].num = tank_number; _root["tank_" + tank_number].specials[2 + shield]--; sh_active = true; _root["t" + tank_number] = _root["shield" + tank_number]; } function disable_shield() { _root["shield" + tank_number].disable(); sh_active = false; _root["t" + tank_number] = _root["tank" + tank_number]; } function p_m(par) { if (par > 0) { return(1); } return(-1); } function calc_first_shot() { _root.z_ai_dif = "hard"; p_rotace = 90 + (p_m(target._x - _x) * 45); p_x = _x; p_power = Math.abs(_x - target._x) / (2 + (Math.abs(_x - target._x) / 80)); if (p_power >= _root["tank_" + tank_number].energy) { p_power = _root["tank_" + tank_number].energy; } } function calc_shot() { last_shot_vzd = Math.sqrt(Math.abs((_x - last_shot_x) * (_x - last_shot_x)) + Math.abs((_y - last_shot_y) * (_y - last_shot_y))); target_vzd = Math.sqrt(Math.abs((_x - target._x) * (_x - target._x)) + Math.abs((_y - target._y) * (_y - target._y))); x_vzd = Math.abs(last_shot_x - target._x); y_vzd = Math.abs(last_shot_y - target._y); if ((power >= _root["tank_" + tank_number].energy) || (power == 100)) { full_power = true; } else { full_power = false; } wind_change_koef = 11; wind_koef_vzd_koef = 420; vzd_koef = 14; vzd_koef_k = 9 + (Math.abs(_x - last_shot_x) / 80); y_vzd_koef = 40; y_koef = 30; rot_r = 102 - ((200 - Math.abs(_x - target._x)) / 30); rot_l = 78 + ((200 - Math.abs(_x - target._x)) / 30); if (target._x > _x) { wind_koef_vzd_koef = wind_koef_vzd_koef - ((180 - rotace) * 3); y_koef = y_koef + ((135 - rotace) * 1.7); if (last_shot_x < _x) { _root.z_f_used = "1.1"; p_rotace = p_rotace + ((((_x - last_shot_x) / 10) + ((target._x - _x) / 20)) - (_root.vitr / 50)); } else if ((((last_shot_vzd > 60) || (target_vzd < 70)) || (power < 10)) && ((power < 70) || (last_shot_vzd > 200))) { _root.z_f_used = "1.2.1.failed"; if (last_shot_x >= target._x) { if (x_vzd > 20) { _root.z_f_used = "1.2.1.1.1"; p_power = p_power - (((x_vzd / ((vzd_koef + 2.5) - (Math.abs(135 - rotace) / vzd_koef_k))) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) - ((last_shot_y - target._y) / y_koef)); } else { _root.z_f_used = "1.2.1.1.2"; p_power = p_power - ((x_vzd / ((vzd_koef - 1) - (Math.abs(135 - rotace) / vzd_koef_k))) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))); } } else if (last_shot_y < target._y) { if (target._y < _y) { if ((((((((_y - target._y) > 80) && (y_vzd < 80)) && (y_vzd > 20)) && (last_shot_vzd < 100)) && (target_vzd > 220)) && (power > 30)) && (rotace > (rot_r - (_root.vitr / 7)))) { _root.z_f_used = "1.2.1.2.1.1.1"; p_rotace = p_rotace - ((((rotace - (rot_r - (_root.vitr / 7))) / 4) + (_root.vitr / 20)) - (target_vzd / 100)); } else if (rotace < (rot_r - (_root.vitr / 7))) { _root.z_f_used = "1.2.1.2.1.1.2."; p_power = p_power + (((x_vzd / (vzd_koef - (Math.abs(135 - rotace) / vzd_koef_k))) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + ((last_shot_y - target._y) / y_koef)); } else if ((y_vzd < 30) && (x_vzd < 200)) { _root.z_f_used = "1.2.1.2.1.1.3"; p_power = p_power + (((x_vzd / (vzd_koef - (Math.abs(135 - rotace) / vzd_koef_k))) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + ((last_shot_y - target._y) / y_koef)); } else if (y_vzd >= 30) { if ((((target._x - _x) > 300) && (power < 50)) && (rotace < 110)) { _root.z_f_used = "1.2.1.2.1.1.4.1"; p_power = p_power + ((x_vzd / (vzd_koef / 3)) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))); } else if (rotace > (rot_r - (_root.vitr / 7))) { if (p_rotace <= 135) { _root.z_f_used = "1.2.1.2.1.1.4.2.1"; p_power = p_power + ((((((x_vzd / (vzd_koef * 2)) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + (y_vzd / y_vzd_koef)) + ((135 - rotace) / 8)) - (_root.vitr / 15)) + ((rotace - (rot_r - (_root.vitr / 7))) / 8)); } else { _root.z_f_used = "1.2.1.2.1.1.4.2.2"; p_power = p_power + ((((x_vzd / (vzd_koef * 2)) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + (y_vzd / y_vzd_koef)) - (_root.vitr / 15)); } p_rotace = p_rotace - (((rotace - (rot_r - (_root.vitr / 7))) / 4.5) + (y_vzd / y_vzd_koef)); } } } else if ((((((((target._y - _y) < 70) && (y_vzd < 100)) && (y_vzd > 20)) && (last_shot_vzd < 100)) && (target_vzd > 250)) && (power > 30)) && (rotace > (rot_r - (_root.vitr / 7)))) { _root.z_f_used = "1.2.1.2.1.2.1"; p_rotace = p_rotace - ((((rotace - (rot_r - (_root.vitr / 7))) / 4.5) + (_root.vitr / 20)) - (target_vzd / 100)); } else if (rotace < (rot_r - (_root.vitr / 7))) { _root.z_f_used = "1.2.1.2.1.2.2"; p_power = p_power + (((x_vzd / (vzd_koef - (Math.abs(135 - rotace) / vzd_koef_k))) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + ((last_shot_y - target._y) / y_koef)); } else if ((y_vzd < 30) && (x_vzd < 200)) { _root.z_f_used = "1.2.1.2.1.2.3"; p_power = p_power + (((x_vzd / (vzd_koef - (Math.abs(135 - rotace) / vzd_koef_k))) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + ((last_shot_y - target._y) / y_koef)); } else if (y_vzd >= 30) { if (((target._y - _y) > 200) && (last_shot_y > _y)) { _root.z_f_used = "1.2.1.2.1.2.4.1"; if (p_rotace > 120) { _root.z_f_used = "1.2.1.2.1.2.4.1.1"; p_power = p_power + ((x_vzd / (vzd_koef / 1.5)) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))); } else { _root.z_f_used = "1.2.1.2.1.2.4.1.2"; p_power = p_power + ((x_vzd / (vzd_koef / 2)) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))); } } else if ((((target._x - _x) > 300) && (power < 50)) && (rotace < 110)) { _root.z_f_used = "1.2.1.2.1.2.4.2."; p_power = p_power + ((x_vzd / (vzd_koef / 3)) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))); } else if (rotace > (rot_r - (_root.vitr / 7))) { if (p_rotace <= 135) { _root.z_f_used = "1.2.1.2.1.2.4.3.1."; p_power = p_power + ((((((x_vzd / (vzd_koef * 2)) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) - (y_vzd / y_vzd_koef)) + ((135 - rotace) / 8)) - (_root.vitr / 15)) + ((rotace - (rot_r - (_root.vitr / 7))) / 8)); } else { _root.z_f_used = "1.2.1.2.1.2.4.3.2."; p_power = p_power + ((((x_vzd / (vzd_koef * 2)) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) - (y_vzd / y_vzd_koef)) - (_root.vitr / 15)); } p_rotace = p_rotace - (((rotace - (rot_r - (_root.vitr / 7))) / 4.5) + (y_vzd / y_vzd_koef)); } } } else if ((((last_shot_vzd < 150) && ((target._x - _x) < 170)) || (last_shot_vzd >= 100)) || ((last_shot_vzd < 100) && (power < 30))) { if (_y > target._y) { p_power = p_power + (((x_vzd / (vzd_koef - (Math.abs(135 - rotace) / vzd_koef_k))) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + ((last_shot_y - target._y) / y_koef)); _root.z_f_used = "1.2.1.2.2.1.1"; } else if ((target._y - _y) > 100) { _root.z_f_used = "1.2.1.2.2.1.2.1"; p_power = p_power + ((x_vzd / (vzd_koef - (Math.abs(135 - rotace) / vzd_koef_k))) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))); } else { _root.z_f_used = "1.2.1.2.2.1.2.2"; p_power = p_power + (((x_vzd / (vzd_koef - (Math.abs(135 - rotace) / vzd_koef_k))) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + ((last_shot_y - target._y) / y_koef)); } } else if (rotace < ((rot_r - 5) - (root.vitr / 7))) { _root.z_f_used = "1.2.1.2.2.2"; p_rotace = p_rotace + ((((135 - rotace) / 10) + target._x) - (_x / 100)); } else { _root.z_f_used = "1.2.1.2.2.3"; p_rotace = p_rotace - ((rotace - (rot_r - (_root.vitr / 7))) / 2); p_power = p_power + (((x_vzd / (vzd_koef - (Math.abs(135 - rotace) / vzd_koef_k))) / 1.5) + ((rotace - (rot_r - (_root.vitr / 7))) / 5)); } } else if (((_y - target._y) > 100) && ((target._x - _x) < 100)) { _root.z_f_used = "1.2.2.1"; p_rotace = p_rotace - ((rotace - (rot_r - (_root.vitr / 7))) / 2); } else { _root.z_f_used = "1.2.2.2"; p_rotace = p_rotace - (((rotace - (rot_r - (_root.vitr / 7))) / 2) - ((target._x - _x) / 100)); } } else { wind_koef_vzd_koef = wind_koef_vzd_koef - (rotace * 3); y_koef = y_koef + ((rotace - 45) * 1.7); if (last_shot_x > _x) { _root.z_f_used = "2.1"; p_rotace = p_rotace - ((((last_shot_x - _x) / 10) + ((_x - target._x) / 20)) + (_root.vitr / 50)); } else if ((((last_shot_vzd > 60) || (target_vzd < 70)) || (power < 10)) && ((power < 70) || (last_shot_vzd > 200))) { _root.z_f_used = "2.2.1.failed"; if (last_shot_x <= target._x) { if (x_vzd > 20) { _root.z_f_used = "2.2.1.1.1"; p_power = p_power - (((x_vzd / ((vzd_koef + 2.5) - (Math.abs(45 - rotace) / vzd_koef_k))) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) - ((last_shot_y - target._y) / y_koef)); } else { _root.z_f_used = "2.2.1.1.2"; p_power = p_power - ((x_vzd / ((vzd_koef - 1) - (Math.abs(45 - rotace) / vzd_koef_k))) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))); } } else if (last_shot_y < target._y) { if (target._y < _y) { if ((((((((_y - target._y) > 80) && (y_vzd < 80)) && (y_vzd > 20)) && (last_shot_vzd < 100)) && (target_vzd > 220)) && (power > 30)) && (rotace > (rot_l + (_root.vitr / 7)))) { _root.z_f_used = "2.2.1.2.1.1.1"; p_rotace = p_rotace + (((((rot_l + (_root.vitr / 7)) - rotace) / 4) - (_root.vitr / 20)) - (target_vzd / 100)); } else if (rotace > (rot_l + (_root.vitr / 7))) { _root.z_f_used = "2.2.1.2.1.1.2"; p_power = p_power + (((x_vzd / (vzd_koef - (Math.abs(rotace - 45) / vzd_koef_k))) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(_x - last_shot_x) / wind_koef_vzd_koef)))) + ((last_shot_y - target._y) / y_koef)); } else if ((y_vzd < 30) && (x_vzd < 200)) { _root.z_f_used = "2.2.1.2.1.1.3"; p_power = p_power + (((x_vzd / (vzd_koef - (Math.abs(rotace - 45) / vzd_koef_k))) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(_x - last_shot_x) / wind_koef_vzd_koef)))) + ((last_shot_y - target._y) / y_koef)); } else if (y_vzd >= 30) { if ((((_x - target._x) > 300) && (power < 50)) && (rotace > 70)) { _root.z_f_used = "2.2.1.2.1.1.4.1"; p_power = p_power + ((x_vzd / (vzd_koef / 3)) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(_x - last_shot_x) / wind_koef_vzd_koef)))); } else if (rotace < (rot_l + (_root.vitr / 7))) { if (p_rotace >= 45) { _root.z_f_used = "2.2.1.2.1.1.4.2.1"; p_power = p_power + ((((((x_vzd / (vzd_koef * 2)) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + (y_vzd / y_vzd_koef)) + ((rotace - 45) / 8)) + (_root.vitr / 15)) + (((rot_l + (_root.vitr / 7)) - rotace) / 8)); } else { _root.z_f_used = "2.2.1.2.1.1.4.2.2"; p_power = p_power + ((((x_vzd / (vzd_koef * 2)) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + (y_vzd / y_vzd_koef)) + (_root.vitr / 15)); } p_rotace = p_rotace + ((((rot_l + (_root.vitr / 7)) - rotace) / 4.5) + (y_vzd / y_vzd_koef)); } } } else if ((((((((target._y - _y) < 70) && (y_vzd < 100)) && (y_vzd > 20)) && (last_shot_vzd < 100)) && (target_vzd > 250)) && (power > 30)) && (rotace < (rot_l - (_root.vitr / 7)))) { _root.z_f_used = "2.2.1.2.1.2.1"; p_rotace = p_rotace + (((((rot_l + (_root.vitr / 7)) - rotace) / 4.5) - (_root.vitr / 20)) - (target_vzd / 100)); } else if (rotace > (rot_l + (_root.vitr / 7))) { _root.z_f_used = "2.2.1.2.1.2.2"; p_power = p_power + (((x_vzd / (vzd_koef - (Math.abs(rotace - 45) / vzd_koef_k))) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(_x - last_shot_x) / wind_koef_vzd_koef)))) + ((last_shot_y - target._y) / y_koef)); } else if ((y_vzd < 30) && (x_vzd < 200)) { _root.z_f_used = "2.2.1.2.1.2.3"; p_power = p_power + (((x_vzd / (vzd_koef - (Math.abs(45 - rotace) / vzd_koef_k))) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + ((last_shot_y - target._y) / y_koef)); } else if (y_vzd >= 30) { if (((target._y - _y) > 200) && (last_shot_y > _y)) { if (p_rotace < 60) { _root.z_f_used = "2.2.1.2.1.2.4.1.1"; p_power = p_power + ((x_vzd / (vzd_koef / 1.5)) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))); } else { _root.z_f_used = "2.2.1.2.1.2.4.1.2"; p_power = p_power + ((x_vzd / (vzd_koef / 2)) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))); } } else if ((((_x - target._x) > 300) && (power < 50)) && (rotace > 70)) { _root.z_f_used = "2.2.1.2.1.2.4.2"; p_power = p_power + ((x_vzd / (vzd_koef / 3)) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))); } else if (rotace < (rot_l + (_root.vitr / 7))) { if (p_rotace >= 45) { _root.z_f_used = "2.2.1.2.1.2.4.3.1"; p_power = p_power + ((((((x_vzd / (vzd_koef * 2)) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + (y_vzd / y_vzd_koef)) + ((rotace - 45) / 8)) + (_root.vitr / 15)) + (((rot_l + (_root.vitr / 7)) - rotace) / 8)); } else { _root.z_f_used = "2.2.1.2.1.2.4.3.2"; p_power = p_power + ((((x_vzd / (vzd_koef * 2)) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + (y_vzd / y_vzd_koef)) + (_root.vitr / 15)); } p_rotace = p_rotace + ((((rot_l + (_root.vitr / 7)) - rotace) / 4.5) + (y_vzd / y_vzd_koef)); } } } else if ((((last_shot_vzd < 150) && ((_x - target._x) < 170)) || (last_shot_vzd >= 100)) || ((last_shot_vzd < 100) && (power < 30))) { if (_y > target._y) { p_power = p_power + (((x_vzd / (vzd_koef - (Math.abs(rotace - 45) / vzd_koef_k))) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + ((last_shot_y - target._y) / y_koef)); _root.z_f_used = "2.2.1.2.2.1.1"; } else if ((target._y - _y) > 100) { _root.z_f_used = "2.2.1.2.2.1.2.1"; p_power = p_power + ((x_vzd / (vzd_koef - (Math.abs(rotace - 45) / vzd_koef_k))) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))); } else { _root.z_f_used = "2.2.1.2.2.1.2.2"; p_power = p_power + (((x_vzd / (vzd_koef - (Math.abs(rotace - 45) / vzd_koef_k))) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + ((last_shot_y - target._y) / y_koef)); } } else if (rotace > ((rot_l + 5) + (root.vitr / 7))) { _root.z_f_used = "2.2.1.2.2.2"; p_rotace = p_rotace - ((((rotace - 45) / 10) + _x) - (target._x / 100)); } else { _root.z_f_used = "2.2.1.2.2.3"; p_rotace = p_rotace + (((rot_l + (_root.vitr / 7)) - rotace) / 3); p_power = p_power + (((x_vzd / (vzd_koef - (Math.abs(rotace - 45) / vzd_koef_k))) / 1.5) + (((rot_l + (_root.vitr / 7)) - rotace) / 5)); } } else if (((_y - target._y) > 100) && ((_x - target._x) < 100)) { _root.z_f_used = "2.2.2.1"; p_rotace = p_rotace + (((rot_l + (_root.vitr / 7)) - rotace) / 2); } else { _root.z_f_used = "2.2.2.2"; p_rotace = p_rotace + ((((rot_l + (_root.vitr / 7)) - rotace) / 2) - ((target._x - _x) / 100)); } } if (p_power > 100) { p_power = 100; } if (p_power >= _root["tank_" + tank_number].energy) { p_power = _root["tank_" + tank_number].energy; if (target._x > _x) { if (p_rotace < 135) { if (p_power > 70) { p_power = p_power - ((135 - p_rotace) / 2.5); } p_rotace = p_rotace + ((135 - p_rotace) / 3); } } else if (p_rotace > 45) { if (p_power > 70) { p_power = p_power - ((p_rotace - 45) / 2.5); } p_rotace = p_rotace - ((p_rotace - 45) / 3); } } if (p_power < 0) { p_power = 0; } if (p_rotace < 0) { p_rotace = 0; } else if (p_rotace > 180) { p_rotace = 180; } } function prepare_shot() { prep = true; if ((Math.max(rotace, p_rotace) - Math.min(rotace, p_rotace)) < 10) { sp = 1; } else { sp = Math.floor((Math.max(rotace, p_rotace) - Math.min(rotace, p_rotace)) / 10); } if (Math.ceil(rotace) != Math.ceil(p_rotace)) { if ((Math.ceil(p_rotace) < Math.ceil(rotace)) && ((rotace - sp) >= 0)) { prep = false; rotace = rotace - sp; } else if ((rotace + sp) <= 180) { prep = false; rotace = rotace + sp; } } if (Math.ceil(power) != Math.ceil(p_power)) { if ((Math.ceil(p_power) < Math.ceil(power)) && ((power - sp) >= 0)) { prep = false; power = power - sp; } else if ((power + sp) <= 180) { prep = false; power = power + sp; } } if (((Math.round(p_x) != Math.round(_x)) && (_root["tank_" + tank_number].fuel > 0)) && (p_move)) { prep = false; if (Math.round(p_x) < Math.round(_x)) { move_right(); } else { move_left(); } } if (prep) { return(true); } } function select_target() { vzd = 1000; i = 1; while (i <= _root.pocet_hracu) { vz = Math.abs(_x - _root["tank" + i]._x); if (((vz < vzd) && (i != tank_number)) && (_root["tank_" + i].live)) { vzd = vz; target = _root["tank" + i]; target_ = _root["tank_" + i]; } i++; } } function na_rade() { rounds++; par_active = false; calc_hill_up(); } function damage(damag, attacker, par) { armor = 1; arm = 1; i = 0; while (i < _root["tank_" + tank_number].specials[9]) { armor = armor / (1.12 / arm); arm = arm / 1.0002; i++; } if ((!sh_active) || (par)) { _root["tank_" + tank_number].energy = _root["tank_" + tank_number].energy - (damag * armor); } else { _root["shield" + tank_number].damage(damag, attacker); } if (_root["tank_" + tank_number].energy <= 0) { if (this != attacker) { _root["tank_" + attacker.tank_number].kills = _root["tank_" + attacker.tank_number].kills + 1; _root["tank_" + attacker.tank_number].score = _root["tank_" + attacker.tank_number].score + 5000; _root["tank_" + attacker.tank_number].total_score = _root["tank_" + attacker.tank_number].total_score + 5000; } else { _root["tank_" + tank_number].kills = _root["tank_" + tank_number].kills - 1; _root["tank_" + tank_number].score = _root["tank_" + tank_number].score - 2000; _root["tank_" + tank_number].total_score = _root["tank_" + tank_number].total_score - 2000; } } if (this != attacker) { _root["tank_" + attacker.tank_number].score = _root["tank_" + attacker.tank_number].score + (damag * 100); _root["tank_" + attacker.tank_number].total_score = _root["tank_" + attacker.tank_number].total_score + (damag * 100); } else { if (par) { damag = damag / 3; } _root["tank_" + tank_number].score = _root["tank_" + tank_number].score - Math.round(damag * 50); _root["tank_" + tank_number].total_score = _root["tank_" + tank_number].total_score - Math.round(damag * 50); if (_root["tank_" + tank_number].score < 0) { _root["tank_" + tank_number].score = 0; } } } function fire() { if (_root.debugging) { save_inf(); } last_wind = _root.vitr; first_frame = true; _root.attachMovie(_root.weapons[_root["tank_" + tank_number].cur_gun][4], "strela", 1000); maxValue = 0; i = 0; while (i <= 13) { if (_root["tank_" + tank_number].guns[i] > 0) { if (i > maxValue) { maxValue = i; } } i++; } _root["tank_" + tank_number].cur_gun = maxValue; _root["tank_" + tank_number].guns[_root["tank_" + tank_number].cur_gun]--; _root.strela._rotation = rotace - 90; _root.strela._x = _x; _root.strela._y = _y - 1; _root.strela.strela.vo = power; _root.strela.strela.owner = _root[_name]; _root[_name + "_hlaven"].play(); playing = false; } function save_inf() { _root.z_target = target; _root.z_target_name = target_.name; _root.z_target_energy = target_.energy; _root.z_target_live = target_.live; _root.z_name = _root["tank_" + tank_number].name; _root.z_energy = _root["tank_" + tank_number].energy; if (_x > target._x) { _root.z_pos = "right"; } else { _root.z_pos = "left"; } _root.z_x = _x; _root.z_y = _y; _root.z_tar_x = target._x; _root.z_tar_y = target._y; _root.z_last_vitr = last_wind; _root.z_vitr = _root.vitr; _root.z_wind_koef_vzd_koef = wind_koef_vzd_koef; _root.z_angle = rotace; _root.z_power = power; _root.z_y_koef = y_koef; _root.z_vzd_koef_k = vzd_koef_k; _root.z_last_shot_x = last_shot_x; _root.z_last_shot_y = last_shot_y; _root.z_last_shot_vzd = last_shot_vzd; _root.z_last_shot_y_vzd = y_vzd; _root.z_last_shot_x_vzd = x_vzd; _root.z_dif = dif; fscommand ("SAVE", ((((((("debug/" add _root.game) add "_") add rounds) add "_") add _root.z_pos) add "_") add _root["tank_" + tank_number].name) add ".txt"); } dif = _root["tank_" + tank_number].dif; _y = ((_root["land" + Math.round(_x)]._y - (_root["land" + Math.round(_x)]._height / 2)) - 4); i = 0; while (i < _width) { cur = _root["land" + Math.floor((_x - (_width / 2)) + i)]; if (hitTest(cur)) { cur._y = cur._y + ((_y + (_height / 2)) - (cur._y - (cur._height / 2))); } i++; } if (_root["tank_" + tank_number].specials[0] > 0) { par = true; } _root.attachMovie("hlaven", _name + "_hlaven", 10010 + tank_number); rotace = (random(67) * 2) + 46; _root[_name + "_hlaven"]._x = _x; _root[_name + "_hlaven"]._y = _y - 1; _root[_name + "_hlaven"]._rotation = rotace; power = 50; playing = false; testing = false; par_active = false; par_out = false; par_used = false; sh_active = false; _root["t" + tank_number] = _root["tank" + tank_number]; first_shot = true; first_frame = true; calc_frame = true; fuel_c = 1 / (_root["tank_" + tank_number].specials[10] + 1); rounds = 0; p_move = false; select_target();
Symbol 24 MovieClip [ai_hard] Frame 2
if (_y > 400) { _root["tank_" + tank_number].live = false; _root["tank_" + tank_number].energy = 0; _root["tank_" + tank_number].score = _root["tank_" + tank_number].score - 2000; _root.hracu--; if (_root["tank_" + tank_number].score < 0) { _root["tank_" + tank_number].score = 0; } gotoAndPlay (4); } if (_root["tank_" + tank_number].energy <= 0) { _root["tank_" + tank_number].energy = 0; _root["tank_" + tank_number].live = false; gotoAndPlay (4); } _root[_name + "_hlaven"]._x = _x; _root[_name + "_hlaven"]._y = _y - 1; if (sh_active) { _root["shield" + tank_number]._x = _x; _root["shield" + tank_number]._y = _y; } if (playing) { if ((!target_.live) && (first_frame)) { rounds = 1; select_target(); } if (rounds == 1) { if (first_frame) { i = 1; while (i <= _root.pocet_hracu) { if ((_root["tank" + i].playing && (i != tank_number)) && (_root["tank_" + i].live)) { _root["tank" + i].playing = false; _root.test(); } i++; } first_shot = true; calc_first_shot(); } } else if (first_frame) { calc_shot(); } first_frame = false; _root.rotace = rotace; _root.power = power; if (prepare_shot()) { fire(); } na_zemi = false; left = true; right = true; i = 0; min = 500; gg = false; test_hill(); while (i < _width) { cur = _root["land" + Math.round((_x - (_width / 2)) + i)]; if (pasy.hitTest(cur)) { na_zemi = true; if (par_out) { par_out = false; _root["parachute" + tank_number].removeMovieClip(); } if (fall > 0.4) { if (fall < 0.8) { damage(Math.round(fall * 25), this, true); } else { damage(Math.round((fall * fall) * 3000), this, true); } } fall = 0; } top = cur._y - (cur._height / 2); if ((top < min) && (na_zemi)) { gg = true; min = top; } if ((((i + 1) >= _width) && (na_zemi)) && (gg)) { _y = (min - 2); gg = false; } if (!na_zemi) { if ((fall >= 0.2) && (par)) { if (!par_active) { par_active = true; _root["tank_" + i].specials[0] = _root["tank_" + i].specials[0] - 1; } if (!par_out) { _root.attachMovie("parachute", "parachute" + tank_number, 9000 + tank_number); } par_out = true; } _y = (_y + fall); if (!par_out) { fall = fall + 0.01; } else { _root["parachute" + tank_number]._x = _x; _root["parachute" + tank_number]._y = _y - 7.5; fall = 0.2; _x = (_x + (_root.vitr / 3000)); } } i++; } if (power > _root["tank_" + tank_number].energy) { power = _root["tank_" + tank_number].energy; } _root[_name + "_hlaven"]._rotation = rotace; } if (testing) { i = 0; min = 500; gg = false; test_hill(); while (i < _width) { cur = _root["land" + Math.round((_x - (_width / 2)) + i)]; if (pasy.hitTest(cur)) { if (fall > 0.4) { if (fall < 0.8) { damage(Math.round(fall * 25), this, true); } else { damage(Math.round((fall * fall) * 80), this, true); } } if (par_out) { par_out = false; _root["parachute" + tank_number].removeMovieClip(); } na_zemi = true; fall = 0; } top = cur._y - (cur._height / 2); if ((top < min) && (na_zemi)) { gg = true; min = top; } if ((((i + 1) >= _width) && (na_zemi)) && (gg)) { _y = (min - 2); gg = false; } if (fall > 0.001) { test = false; } if (!na_zemi) { if ((fall >= 0.2) && (par)) { if (!par_active) { par_active = true; _root["tank_" + tank_number].specials[0] = _root["tank_" + tank_number].specials[0] - 1; } if (!par_out) { _root.attachMovie("parachute", "parachute" + tank_number, 9000 + tank_number); } par_out = true; } _y = (_y + fall); if (!par_out) { fall = fall + 0.01; } else { _root["parachute" + tank_number]._x = _x; _root["parachute" + tank_number]._y = _y - 7.5; fall = 0.2; _x = (_x + (_root.vitr / 3000)); } } i++; } if (fall > 0.001) { test = false; } test_hill(); x3 = x2; x2 = x1; x1 = Math.round(_x); y3 = y2; y2 = y1; y1 = Math.round(_y * 10) / 10; if ((y1 == y3) && (x1 == x3)) { test = true; } if (test) { testing = false; _root[_name + "test"] = false; } _root[_name + "_hlaven"]._x = _x; _root[_name + "_hlaven"]._y = _y - 1; test = true; }
Symbol 24 MovieClip [ai_hard] Frame 3
gotoAndPlay (2);
Symbol 24 MovieClip [ai_hard] Frame 4
_root[_name + "_hlaven"].removeMovieClip(); _root["parachute" + tank_number].removeMovieClip(); _root["shield" + tank_number].removeMovieClip(); _root.hracu--;
Symbol 24 MovieClip [ai_hard] Frame 9
i = 0; while (i < _width) { cur = _root["land" + Math.round((_x - (_width / 2)) + i)]; x = cur._x; y = cur._y; h = cur._y - (cur._height / 2); if (hitTest(x, h, true)) { vzr = Math.cos(0.017 * (Math.sqrt(((_x - x) * (_x - x)) + ((_y - h) * (_y - h))) * (180 / _width))); cur._height = cur._height - (30 * vzr); cur._y = cur._y + (15 * vzr); } else if (hitTest(_root["land" + Math.round((xx - (_width / 2)) + i)])) { cur._height = cur._height - (50 / Math.abs(_x - x)); cur._y = cur._y + ((50 / Math.abs(_x - x)) / 2); } i++; } i = 1; while (i <= _root.pocet_hracu) { current = _root["tank" + i]; if ((hitTest(current) || (hitTest(_root["shield" + i]))) && (i != tank_number)) { x = _x - current._x; y = _y - current._y; vzd = Math.sqrt((x * x) + (y * y)); if (!current.sh_active) { damg = Math.round(_width / ((vzd + 1) / 14)); if (damg > _root["tank_" + i].energy) { damg = _root["tank_" + i].energy; } } else { damg = Math.round(_width / (((vzd / 2) + 1) / 18)); } current.damage(damg, this); } i++; }
Symbol 24 MovieClip [ai_hard] Frame 15
if (playing) { _root.test(); } stop();
Symbol 27 MovieClip [ai_very_hard] Frame 1
function test_hill() { calc_hill_up(); if (((_root["land" + Math.ceil(_x - (_width / 2))]._y - (_root["land" + Math.ceil(_x - (_width / 2))]._height / 2)) < (_y - hill_up)) || ((_root["land" + Math.floor(_x - (_width / 2))]._y - (_root["land" + Math.floor(_x - (_width / 2))]._height / 2)) < (_y - hill_up))) { _x = (_x + 0.7); test = false; left = false; right = false; } else if (((_root["land" + Math.floor(_x + (_width / 2))]._y - (_root["land" + Math.floor(_x + (_width / 2))]._height / 2)) < (_y - hill_up)) || ((_root["land" + Math.ceil(_x + (_width / 2))]._y - (_root["land" + Math.ceil(_x + (_width / 2))]._height / 2)) < (_y - hill_up))) { left = false; right = false; _x = (_x - 0.7); test = false; } else { left = true; right = true; } } function blik() { _root.attachMovie("blk", "blik", 10030); _root.blik._x = _x; _root.blik._y = _y - 10; } function calc_hill_up() { hill_up = (0.5 + _root["tank_" + tank_number].specials[11]) - (fall * 10); } function move_left() { _x = (_x - 0.5); _root["tank_" + tank_number].fuel = _root["tank_" + tank_number].fuel - fuel_c; moving = true; i = 1; while (i < (_root.pocet_hracu + 1)) { if (hitTest(_root["tank" + i]) && (i != tank_number)) { _x = (_x + 0.6); } i++; } } function move_right() { _x = (_x + 0.5); _root["tank_" + tank_number].fuel = _root["tank_" + tank_number].fuel - fuel_c; moving = true; i = 1; while (i < (_root.pocet_hracu + 1)) { if (hitTest(_root["tank" + i]) && (i != tank_number)) { _x = (_x - 0.6); } i++; } } function activate_shield(shield) { _root.attachMovie(_root.specials[2 + shield][4], "shield" + tank_number, 5040 + tank_number); _root["shield" + tank_number].num = tank_number; _root["tank_" + tank_number].specials[2 + shield]--; sh_active = true; _root["t" + tank_number] = _root["shield" + tank_number]; } function disable_shield() { _root["shield" + tank_number].disable(); sh_active = false; _root["t" + tank_number] = _root["tank" + tank_number]; } function p_m(par) { if (par > 0) { return(1); } return(-1); } function calc_first_shot() { p_rotace = 90 + (p_m(target._x - _x) * 45); p_x = _x; p_power = ((Math.abs(_x - target._x) / (2 + (Math.abs(_x - target._x) / 80))) - ((p_m(target._x - _x) * _root.vitr) / 13)) + ((_y - target._y) / 20); if (p_power >= _root["tank_" + tank_number].energy) { p_power = _root["tank_" + tank_number].energy; } } function calc_shot() { last_shot_vzd = Math.sqrt(Math.abs((_x - last_shot_x) * (_x - last_shot_x)) + Math.abs((_y - last_shot_y) * (_y - last_shot_y))); target_vzd = Math.sqrt(Math.abs((_x - target._x) * (_x - target._x)) + Math.abs((_y - target._y) * (_y - target._y))); x_vzd = Math.abs(last_shot_x - target._x); y_vzd = Math.abs(last_shot_y - target._y); if ((power >= _root["tank_" + tank_number].energy) || (power == 100)) { full_power = true; } else { full_power = false; } wind_change_koef = 7; wind_koef_vzd_koef = 380; vzd_koef = 10.9; vzd_koef_k = 7 + (Math.abs(_x - last_shot_x) / 80); y_vzd_koef = 30; y_koef = 22; rot_r = 100 - ((200 - Math.abs(_x - target._x)) / 30); rot_l = 80 + ((200 - Math.abs(_x - target._x)) / 30); if (target._x > _x) { wind_koef_vzd_koef = wind_koef_vzd_koef - ((180 - rotace) * 3); y_koef = y_koef + ((135 - rotace) * 1.7); if (last_shot_x < _x) { _root.z_f_used = "1.1"; p_rotace = p_rotace + ((((_x - last_shot_x) / 10) + ((target._x - _x) / 20)) - (_root.vitr / 50)); } else if ((((last_shot_vzd > 60) || (target_vzd < 70)) || (power < 10)) && ((power < 70) || (last_shot_vzd > 200))) { _root.z_f_used = "1.2.1.failed"; if (last_shot_x >= target._x) { if (x_vzd > 20) { _root.z_f_used = "1.2.1.1.1"; p_power = p_power - (((x_vzd / ((vzd_koef + 2.5) - (Math.abs(135 - rotace) / vzd_koef_k))) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) - ((last_shot_y - target._y) / y_koef)); } else { _root.z_f_used = "1.2.1.1.2"; p_power = p_power - ((x_vzd / ((vzd_koef - 1) - (Math.abs(135 - rotace) / vzd_koef_k))) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))); } } else if (last_shot_y < target._y) { if (target._y < _y) { if ((((((((_y - target._y) > 80) && (y_vzd < 80)) && (y_vzd > 20)) && (last_shot_vzd < 100)) && (target_vzd > 220)) && (power > 30)) && (rotace > (rot_r - (_root.vitr / 7)))) { _root.z_f_used = "1.2.1.2.1.1.1"; p_rotace = p_rotace - ((((rotace - (rot_r - (_root.vitr / 7))) / 4) + (_root.vitr / 20)) - (target_vzd / 100)); } else if (rotace < (rot_r - (_root.vitr / 7))) { _root.z_f_used = "1.2.1.2.1.1.2."; p_power = p_power + (((x_vzd / (vzd_koef - (Math.abs(135 - rotace) / vzd_koef_k))) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + ((last_shot_y - target._y) / y_koef)); } else if ((y_vzd < 30) && (x_vzd < 200)) { _root.z_f_used = "1.2.1.2.1.1.3"; p_power = p_power + (((x_vzd / (vzd_koef - (Math.abs(135 - rotace) / vzd_koef_k))) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + ((last_shot_y - target._y) / y_koef)); } else if (y_vzd >= 30) { if ((((target._x - _x) > 300) && (power < 50)) && (rotace < 110)) { _root.z_f_used = "1.2.1.2.1.1.4.1"; p_power = p_power + ((x_vzd / (vzd_koef / 3)) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))); } else if (rotace > (rot_r - (_root.vitr / 7))) { if (p_rotace <= 135) { _root.z_f_used = "1.2.1.2.1.1.4.2.1"; p_power = p_power + ((((((x_vzd / (vzd_koef * 2)) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + (y_vzd / y_vzd_koef)) + ((135 - rotace) / 8)) - (_root.vitr / 15)) + ((rotace - (rot_r - (_root.vitr / 7))) / 8)); } else { _root.z_f_used = "1.2.1.2.1.1.4.2.2"; p_power = p_power + ((((x_vzd / (vzd_koef * 2)) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + (y_vzd / y_vzd_koef)) - (_root.vitr / 15)); } p_rotace = p_rotace - (((rotace - (rot_r - (_root.vitr / 7))) / 4.5) + (y_vzd / y_vzd_koef)); } } } else if ((((((((target._y - _y) < 70) && (y_vzd < 100)) && (y_vzd > 20)) && (last_shot_vzd < 100)) && (target_vzd > 250)) && (power > 30)) && (rotace > (rot_r - (_root.vitr / 7)))) { _root.z_f_used = "1.2.1.2.1.2.1"; p_rotace = p_rotace - ((((rotace - (rot_r - (_root.vitr / 7))) / 4.5) + (_root.vitr / 20)) - (target_vzd / 100)); } else if (rotace < (rot_r - (_root.vitr / 7))) { _root.z_f_used = "1.2.1.2.1.2.2"; p_power = p_power + (((x_vzd / (vzd_koef - (Math.abs(135 - rotace) / vzd_koef_k))) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + ((last_shot_y - target._y) / y_koef)); } else if ((y_vzd < 30) && (x_vzd < 200)) { _root.z_f_used = "1.2.1.2.1.2.3"; p_power = p_power + (((x_vzd / (vzd_koef - (Math.abs(135 - rotace) / vzd_koef_k))) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + ((last_shot_y - target._y) / y_koef)); } else if (y_vzd >= 30) { if (((target._y - _y) > 200) && (last_shot_y > _y)) { _root.z_f_used = "1.2.1.2.1.2.4.1"; if (p_rotace > 120) { _root.z_f_used = "1.2.1.2.1.2.4.1.1"; p_power = p_power + ((x_vzd / (vzd_koef / 1.5)) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))); } else { _root.z_f_used = "1.2.1.2.1.2.4.1.2"; p_power = p_power + ((x_vzd / (vzd_koef / 2)) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))); } } else if ((((target._x - _x) > 300) && (power < 50)) && (rotace < 110)) { _root.z_f_used = "1.2.1.2.1.2.4.2."; p_power = p_power + ((x_vzd / (vzd_koef / 3)) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))); } else if (rotace > (rot_r - (_root.vitr / 7))) { if (p_rotace <= 135) { _root.z_f_used = "1.2.1.2.1.2.4.3.1."; p_power = p_power + ((((((x_vzd / (vzd_koef * 2)) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) - (y_vzd / y_vzd_koef)) + ((135 - rotace) / 8)) - (_root.vitr / 15)) + ((rotace - (rot_r - (_root.vitr / 7))) / 8)); } else { _root.z_f_used = "1.2.1.2.1.2.4.3.2."; p_power = p_power + ((((x_vzd / (vzd_koef * 2)) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) - (y_vzd / y_vzd_koef)) - (_root.vitr / 15)); } p_rotace = p_rotace - (((rotace - (rot_r - (_root.vitr / 7))) / 4.5) + (y_vzd / y_vzd_koef)); } } } else if ((((last_shot_vzd < 150) && ((target._x - _x) < 170)) || (last_shot_vzd >= 100)) || ((last_shot_vzd < 100) && (power < 30))) { if (_y > target._y) { p_power = p_power + (((x_vzd / (vzd_koef - (Math.abs(135 - rotace) / vzd_koef_k))) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + ((last_shot_y - target._y) / y_koef)); _root.z_f_used = "1.2.1.2.2.1.1"; } else if ((target._y - _y) > 100) { _root.z_f_used = "1.2.1.2.2.1.2.1"; p_power = p_power + ((x_vzd / (vzd_koef - (Math.abs(135 - rotace) / vzd_koef_k))) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))); } else { _root.z_f_used = "1.2.1.2.2.1.2.2"; p_power = p_power + (((x_vzd / (vzd_koef - (Math.abs(135 - rotace) / vzd_koef_k))) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + ((last_shot_y - target._y) / y_koef)); } } else if (rotace < ((rot_r - 5) - (root.vitr / 7))) { _root.z_f_used = "1.2.1.2.2.2"; p_rotace = p_rotace + ((((135 - rotace) / 10) + target._x) - (_x / 100)); } else { _root.z_f_used = "1.2.1.2.2.3"; p_rotace = p_rotace - ((rotace - (rot_r - (_root.vitr / 7))) / 2); p_power = p_power + (((x_vzd / (vzd_koef - (Math.abs(135 - rotace) / vzd_koef_k))) / 1.5) + ((rotace - (rot_r - (_root.vitr / 7))) / 5)); } } else if (((_y - target._y) > 100) && ((target._x - _x) < 100)) { _root.z_f_used = "1.2.2.1"; p_rotace = p_rotace - ((rotace - (rot_r - (_root.vitr / 7))) / 2); } else { _root.z_f_used = "1.2.2.2"; p_rotace = p_rotace - (((rotace - (rot_r - (_root.vitr / 7))) / 2) - ((target._x - _x) / 100)); } } else { wind_koef_vzd_koef = wind_koef_vzd_koef - (rotace * 3); y_koef = y_koef + ((rotace - 45) * 1.7); if (last_shot_x > _x) { _root.z_f_used = "2.1"; p_rotace = p_rotace - ((((last_shot_x - _x) / 10) + ((_x - target._x) / 20)) + (_root.vitr / 50)); } else if ((((last_shot_vzd > 60) || (target_vzd < 70)) || (power < 10)) && ((power < 70) || (last_shot_vzd > 200))) { _root.z_f_used = "2.2.1.failed"; if (last_shot_x <= target._x) { if (x_vzd > 20) { _root.z_f_used = "2.2.1.1.1"; p_power = p_power - (((x_vzd / ((vzd_koef + 2.5) - (Math.abs(45 - rotace) / vzd_koef_k))) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) - ((last_shot_y - target._y) / y_koef)); } else { _root.z_f_used = "2.2.1.1.2"; p_power = p_power - ((x_vzd / ((vzd_koef - 1) - (Math.abs(45 - rotace) / vzd_koef_k))) - ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))); } } else if (last_shot_y < target._y) { if (target._y < _y) { if ((((((((_y - target._y) > 80) && (y_vzd < 80)) && (y_vzd > 20)) && (last_shot_vzd < 100)) && (target_vzd > 220)) && (power > 30)) && (rotace > (rot_l + (_root.vitr / 7)))) { _root.z_f_used = "2.2.1.2.1.1.1"; p_rotace = p_rotace + (((((rot_l + (_root.vitr / 7)) - rotace) / 4) - (_root.vitr / 20)) - (target_vzd / 100)); } else if (rotace > (rot_l + (_root.vitr / 7))) { _root.z_f_used = "2.2.1.2.1.1.2"; p_power = p_power + (((x_vzd / (vzd_koef - (Math.abs(rotace - 45) / vzd_koef_k))) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(_x - last_shot_x) / wind_koef_vzd_koef)))) + ((last_shot_y - target._y) / y_koef)); } else if ((y_vzd < 30) && (x_vzd < 200)) { _root.z_f_used = "2.2.1.2.1.1.3"; p_power = p_power + (((x_vzd / (vzd_koef - (Math.abs(rotace - 45) / vzd_koef_k))) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(_x - last_shot_x) / wind_koef_vzd_koef)))) + ((last_shot_y - target._y) / y_koef)); } else if (y_vzd >= 30) { if ((((_x - target._x) > 300) && (power < 50)) && (rotace > 70)) { _root.z_f_used = "2.2.1.2.1.1.4.1"; p_power = p_power + ((x_vzd / (vzd_koef / 3)) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(_x - last_shot_x) / wind_koef_vzd_koef)))); } else if (rotace < (rot_l + (_root.vitr / 7))) { if (p_rotace >= 45) { _root.z_f_used = "2.2.1.2.1.1.4.2.1"; p_power = p_power + ((((((x_vzd / (vzd_koef * 2)) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + (y_vzd / y_vzd_koef)) + ((rotace - 45) / 8)) + (_root.vitr / 15)) + (((rot_l + (_root.vitr / 7)) - rotace) / 8)); } else { _root.z_f_used = "2.2.1.2.1.1.4.2.2"; p_power = p_power + ((((x_vzd / (vzd_koef * 2)) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + (y_vzd / y_vzd_koef)) + (_root.vitr / 15)); } p_rotace = p_rotace + ((((rot_l + (_root.vitr / 7)) - rotace) / 4.5) + (y_vzd / y_vzd_koef)); } } } else if ((((((((target._y - _y) < 70) && (y_vzd < 100)) && (y_vzd > 20)) && (last_shot_vzd < 100)) && (target_vzd > 250)) && (power > 30)) && (rotace < (rot_l - (_root.vitr / 7)))) { _root.z_f_used = "2.2.1.2.1.2.1"; p_rotace = p_rotace + (((((rot_l + (_root.vitr / 7)) - rotace) / 4.5) - (_root.vitr / 20)) - (target_vzd / 100)); } else if (rotace > (rot_l + (_root.vitr / 7))) { _root.z_f_used = "2.2.1.2.1.2.2"; p_power = p_power + (((x_vzd / (vzd_koef - (Math.abs(rotace - 45) / vzd_koef_k))) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(_x - last_shot_x) / wind_koef_vzd_koef)))) + ((last_shot_y - target._y) / y_koef)); } else if ((y_vzd < 30) && (x_vzd < 200)) { _root.z_f_used = "2.2.1.2.1.2.3"; p_power = p_power + (((x_vzd / (vzd_koef - (Math.abs(45 - rotace) / vzd_koef_k))) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + ((last_shot_y - target._y) / y_koef)); } else if (y_vzd >= 30) { if (((target._y - _y) > 200) && (last_shot_y > _y)) { if (p_rotace < 60) { _root.z_f_used = "2.2.1.2.1.2.4.1.1"; p_power = p_power + ((x_vzd / (vzd_koef / 1.5)) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))); } else { _root.z_f_used = "2.2.1.2.1.2.4.1.2"; p_power = p_power + ((x_vzd / (vzd_koef / 2)) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))); } } else if ((((_x - target._x) > 300) && (power < 50)) && (rotace > 70)) { _root.z_f_used = "2.2.1.2.1.2.4.2"; p_power = p_power + ((x_vzd / (vzd_koef / 3)) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))); } else if (rotace < (rot_l + (_root.vitr / 7))) { if (p_rotace >= 45) { _root.z_f_used = "2.2.1.2.1.2.4.3.1"; p_power = p_power + ((((((x_vzd / (vzd_koef * 2)) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + (y_vzd / y_vzd_koef)) + ((rotace - 45) / 8)) + (_root.vitr / 15)) + (((rot_l + (_root.vitr / 7)) - rotace) / 8)); } else { _root.z_f_used = "2.2.1.2.1.2.4.3.2"; p_power = p_power + ((((x_vzd / (vzd_koef * 2)) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + (y_vzd / y_vzd_koef)) + (_root.vitr / 15)); } p_rotace = p_rotace + ((((rot_l + (_root.vitr / 7)) - rotace) / 4.5) + (y_vzd / y_vzd_koef)); } } } else if ((((last_shot_vzd < 150) && ((_x - target._x) < 170)) || (last_shot_vzd >= 100)) || ((last_shot_vzd < 100) && (power < 30))) { if (_y > target._y) { p_power = p_power + (((x_vzd / (vzd_koef - (Math.abs(rotace - 45) / vzd_koef_k))) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + ((last_shot_y - target._y) / y_koef)); _root.z_f_used = "2.2.1.2.2.1.1"; } else if ((target._y - _y) > 100) { _root.z_f_used = "2.2.1.2.2.1.2.1"; p_power = p_power + ((x_vzd / (vzd_koef - (Math.abs(rotace - 45) / vzd_koef_k))) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))); } else { _root.z_f_used = "2.2.1.2.2.1.2.2"; p_power = p_power + (((x_vzd / (vzd_koef - (Math.abs(rotace - 45) / vzd_koef_k))) + ((_root.vitr - last_wind) / (wind_change_koef - (Math.abs(last_shot_x - _x) / wind_koef_vzd_koef)))) + ((last_shot_y - target._y) / y_koef)); } } else if (rotace > ((rot_l + 5) + (root.vitr / 7))) { _root.z_f_used = "2.2.1.2.2.2"; p_rotace = p_rotace - ((((rotace - 45) / 10) + _x) - (target._x / 100)); } else { _root.z_f_used = "2.2.1.2.2.3"; p_rotace = p_rotace + (((rot_l + (_root.vitr / 7)) - rotace) / 3); p_power = p_power + (((x_vzd / (vzd_koef - (Math.abs(rotace - 45) / vzd_koef_k))) / 1.5) + (((rot_l + (_root.vitr / 7)) - rotace) / 5)); } } else if (((_y - target._y) > 100) && ((_x - target._x) < 100)) { _root.z_f_used = "2.2.2.1"; p_rotace = p_rotace + (((rot_l + (_root.vitr / 7)) - rotace) / 2); } else { _root.z_f_used = "2.2.2.2"; p_rotace = p_rotace + ((((rot_l + (_root.vitr / 7)) - rotace) / 2) - ((target._x - _x) / 100)); } } if (p_power > 100) { p_power = 100; } if (p_power >= _root["tank_" + tank_number].energy) { p_power = _root["tank_" + tank_number].energy; if (target._x > _x) { if (p_rotace < 135) { if (p_power > 70) { p_power = p_power - ((135 - p_rotace) / 2.5); } p_rotace = p_rotace + ((135 - p_rotace) / 3); } } else if (p_rotace > 45) { if (p_power > 70) { p_power = p_power - ((p_rotace - 45) / 2.5); } p_rotace = p_rotace - ((p_rotace - 45) / 3); } } if (p_power < 0) { p_power = 0; } if (p_rotace < 0) { p_rotace = 0; } else if (p_rotace > 180) { p_rotace = 180; } } function prepare_shot() { prep = true; if ((Math.max(rotace, p_rotace) - Math.min(rotace, p_rotace)) < 10) { sp = 1; } else { sp = Math.floor((Math.max(rotace, p_rotace) - Math.min(rotace, p_rotace)) / 10); } if (Math.ceil(rotace) != Math.ceil(p_rotace)) { if ((Math.ceil(p_rotace) < Math.ceil(rotace)) && ((rotace - sp) >= 0)) { prep = false; rotace = rotace - sp; } else if ((rotace + sp) <= 180) { prep = false; rotace = rotace + sp; } } if (Math.ceil(power) != Math.ceil(p_power)) { if ((Math.ceil(p_power) < Math.ceil(power)) && ((power - sp) >= 0)) { prep = false; power = power - sp; } else if ((power + sp) <= 180) { prep = false; power = power + sp; } } if (((Math.round(p_x) != Math.round(_x)) && (_root["tank_" + tank_number].fuel > 0)) && (p_move)) { prep = false; if (Math.round(p_x) < Math.round(_x)) { move_right(); } else { move_left(); } } if (prep) { return(true); } } function select_target() { vzd = 1000; i = 1; while (i <= _root.pocet_hracu) { vz = Math.abs(_x - _root["tank" + i]._x); if (((vz < vzd) && (i != tank_number)) && (_root["tank_" + i].live)) { vzd = vz; target = _root["tank" + i]; target_ = _root["tank_" + i]; } i++; } } function na_rade() { rounds++; par_active = false; calc_hill_up(); } function damage(damag, attacker, par) { armor = 1; arm = 1; i = 0; while (i < _root["tank_" + tank_number].specials[9]) { armor = armor / (1.12 / arm); arm = arm / 1.0002; i++; } if ((!sh_active) || (par)) { _root["tank_" + tank_number].energy = _root["tank_" + tank_number].energy - (damag * armor); } else { _root["shield" + tank_number].damage(damag, attacker); } if (_root["tank_" + tank_number].energy <= 0) { if (this != attacker) { _root["tank_" + attacker.tank_number].kills = _root["tank_" + attacker.tank_number].kills + 1; _root["tank_" + attacker.tank_number].score = _root["tank_" + attacker.tank_number].score + 5000; _root["tank_" + attacker.tank_number].total_score = _root["tank_" + attacker.tank_number].total_score + 5000; } else { _root["tank_" + tank_number].kills = _root["tank_" + tank_number].kills - 1; _root["tank_" + tank_number].score = _root["tank_" + tank_number].score - 2000; _root["tank_" + tank_number].total_score = _root["tank_" + tank_number].total_score - 2000; } } if (this != attacker) { _root["tank_" + attacker.tank_number].score = _root["tank_" + attacker.tank_number].score + (damag * 100); _root["tank_" + attacker.tank_number].total_score = _root["tank_" + attacker.tank_number].total_score + (damag * 100); } else { if (par) { damag = damag / 3; } _root["tank_" + tank_number].score = _root["tank_" + tank_number].score - Math.round(damag * 50); _root["tank_" + tank_number].total_score = _root["tank_" + tank_number].total_score - Math.round(damag * 50); if (_root["tank_" + tank_number].score < 0) { _root["tank_" + tank_number].score = 0; } } } function fire() { if (_root.debugging) { save_inf(); } last_wind = _root.vitr; first_frame = true; _root.attachMovie(_root.weapons[_root["tank_" + tank_number].cur_gun][4], "strela", 1000); maxValue = 0; i = 0; while (i <= 13) { if (_root["tank_" + tank_number].guns[i] > 0) { if (i > maxValue) { maxValue = i; } } i++; } _root["tank_" + tank_number].cur_gun = maxValue; _root["tank_" + tank_number].guns[_root["tank_" + tank_number].cur_gun]--; _root.strela._rotation = rotace - 90; _root.strela._x = _x; _root.strela._y = _y - 1; _root.strela.strela.vo = power; _root.strela.strela.owner = _root[_name]; _root[_name + "_hlaven"].play(); playing = false; } function save_inf() { _root.z_target = target; _root.z_target_name = target_.name; _root.z_target_energy = target_.energy; _root.z_target_live = target_.live; _root.z_name = _root["tank_" + tank_number].name; _root.z_energy = _root["tank_" + tank_number].energy; if (_x > target._x) { _root.z_pos = "right"; } else { _root.z_pos = "left"; } _root.z_x = _x; _root.z_y = _y; _root.z_tar_x = target._x; _root.z_tar_y = target._y; _root.z_last_vitr = last_wind; _root.z_vitr = _root.vitr; _root.z_wind_koef_vzd_koef = wind_koef_vzd_koef; _root.z_angle = rotace; _root.z_power = power; _root.z_y_koef = y_koef; _root.z_vzd_koef_k = vzd_koef_k; _root.z_last_shot_x = last_shot_x; _root.z_last_shot_y = last_shot_y; _root.z_last_shot_vzd = last_shot_vzd; _root.z_last_shot_y_vzd = y_vzd; _root.z_last_shot_x_vzd = x_vzd; _root.z_dif = dif; fscommand ("SAVE", ((((((("debug/" add _root.game) add "_") add rounds) add "_") add _root.z_pos) add "_") add _root["tank_" + tank_number].name) add ".txt"); } dif = _root["tank_" + tank_number].dif; _y = ((_root["land" + Math.round(_x)]._y - (_root["land" + Math.round(_x)]._height / 2)) - 4); i = 0; while (i < _width) { cur = _root["land" + Math.floor((_x - (_width / 2)) + i)]; if (hitTest(cur)) { cur._y = cur._y + ((_y + (_height / 2)) - (cur._y - (cur._height / 2))); } i++; } if (_root["tank_" + tank_number].specials[0] > 0) { par = true; } _root.attachMovie("hlaven", _name + "_hlaven", 10010 + tank_number); rotace = (random(67) * 2) + 46; _root[_name + "_hlaven"]._x = _x; _root[_name + "_hlaven"]._y = _y - 1; _root[_name + "_hlaven"]._rotation = rotace; power = 50; playing = false; testing = false; par_active = false; par_out = false; par_used = false; sh_active = false; _root["t" + tank_number] = _root["tank" + tank_number]; first_shot = true; first_frame = true; calc_frame = true; fuel_c = 1 / (_root["tank_" + tank_number].specials[10] + 1); rounds = 0; p_move = false; select_target();
Symbol 27 MovieClip [ai_very_hard] Frame 2
if (_y > 400) { _root["tank_" + tank_number].live = false; _root["tank_" + tank_number].energy = 0; _root["tank_" + tank_number].score = _root["tank_" + tank_number].score - 2000; _root.hracu--; if (_root["tank_" + tank_number].score < 0) { _root["tank_" + tank_number].score = 0; } gotoAndPlay (4); } if (_root["tank_" + tank_number].energy <= 0) { _root["tank_" + tank_number].energy = 0; _root["tank_" + tank_number].live = false; gotoAndPlay (4); } _root[_name + "_hlaven"]._x = _x; _root[_name + "_hlaven"]._y = _y - 1; if (sh_active) { _root["shield" + tank_number]._x = _x; _root["shield" + tank_number]._y = _y; } if (playing) { if ((!target_.live) && (first_frame)) { rounds = 1; select_target(); } if (rounds == 1) { if (first_frame) { i = 1; while (i <= _root.pocet_hracu) { if ((_root["tank" + i].playing && (i != tank_number)) && (_root["tank_" + i].live)) { _root["tank" + i].playing = false; _root.test(); } i++; } first_shot = true; calc_first_shot(); } } else if (first_frame) { calc_shot(); } first_frame = false; _root.rotace = rotace; _root.power = power; if (prepare_shot()) { fire(); } na_zemi = false; left = true; right = true; i = 0; min = 500; gg = false; test_hill(); while (i < _width) { cur = _root["land" + Math.round((_x - (_width / 2)) + i)]; if (pasy.hitTest(cur)) { na_zemi = true; if (par_out) { par_out = false; _root["parachute" + tank_number].removeMovieClip(); } if (fall > 0.4) { if (fall < 0.8) { damage(Math.round(fall * 25), this, true); } else { damage(Math.round((fall * fall) * 3000), this, true); } } fall = 0; } top = cur._y - (cur._height / 2); if ((top < min) && (na_zemi)) { gg = true; min = top; } if ((((i + 1) >= _width) && (na_zemi)) && (gg)) { _y = (min - 2); gg = false; } if (!na_zemi) { if ((fall >= 0.2) && (par)) { if (!par_active) { par_active = true; _root["tank_" + i].specials[0] = _root["tank_" + i].specials[0] - 1; } if (!par_out) { _root.attachMovie("parachute", "parachute" + tank_number, 9000 + tank_number); } par_out = true; } _y = (_y + fall); if (!par_out) { fall = fall + 0.01; } else { _root["parachute" + tank_number]._x = _x; _root["parachute" + tank_number]._y = _y - 7.5; fall = 0.2; _x = (_x + (_root.vitr / 3000)); } } i++; } if (power > _root["tank_" + tank_number].energy) { power = _root["tank_" + tank_number].energy; } _root[_name + "_hlaven"]._rotation = rotace; } if (testing) { i = 0; min = 500; gg = false; test_hill(); while (i < _width) { cur = _root["land" + Math.round((_x - (_width / 2)) + i)]; if (pasy.hitTest(cur)) { if (fall > 0.4) { if (fall < 0.8) { damage(Math.round(fall * 25), this, true); } else { damage(Math.round((fall * fall) * 80), this, true); } } if (par_out) { par_out = false; _root["parachute" + tank_number].removeMovieClip(); } na_zemi = true; fall = 0; } top = cur._y - (cur._height / 2); if ((top < min) && (na_zemi)) { gg = true; min = top; } if ((((i + 1) >= _width) && (na_zemi)) && (gg)) { _y = (min - 2); gg = false; } if (fall > 0.001) { test = false; } if (!na_zemi) { if ((fall >= 0.2) && (par)) { if (!par_active) { par_active = true; _root["tank_" + tank_number].specials[0] = _root["tank_" + tank_number].specials[0] - 1; } if (!par_out) { _root.attachMovie("parachute", "parachute" + tank_number, 9000 + tank_number); } par_out = true; } _y = (_y + fall); if (!par_out) { fall = fall + 0.01; } else { _root["parachute" + tank_number]._x = _x; _root["parachute" + tank_number]._y = _y - 7.5; fall = 0.2; _x = (_x + (_root.vitr / 3000)); } } i++; } if (fall > 0.001) { test = false; } test_hill(); x3 = x2; x2 = x1; x1 = Math.round(_x); y3 = y2; y2 = y1; y1 = Math.round(_y * 10) / 10; if ((y1 == y3) && (x1 == x3)) { test = true; } if (test) { testing = false; _root[_name + "test"] = false; } _root[_name + "_hlaven"]._x = _x; _root[_name + "_hlaven"]._y = _y - 1; test = true; }
Symbol 27 MovieClip [ai_very_hard] Frame 3
gotoAndPlay (2);
Symbol 27 MovieClip [ai_very_hard] Frame 4
_root[_name + "_hlaven"].removeMovieClip(); _root["parachute" + tank_number].removeMovieClip(); _root["shield" + tank_number].removeMovieClip(); _root.hracu--;
Symbol 27 MovieClip [ai_very_hard] Frame 9
i = 0; while (i < _width) { cur = _root["land" + Math.round((_x - (_width / 2)) + i)]; x = cur._x; y = cur._y; h = cur._y - (cur._height / 2); if (hitTest(x, h, true)) { vzr = Math.cos(0.017 * (Math.sqrt(((_x - x) * (_x - x)) + ((_y - h) * (_y - h))) * (180 / _width))); cur._height = cur._height - (30 * vzr); cur._y = cur._y + (15 * vzr); } else if (hitTest(_root["land" + Math.round((xx - (_width / 2)) + i)])) { cur._height = cur._height - (50 / Math.abs(_x - x)); cur._y = cur._y + ((50 / Math.abs(_x - x)) / 2); } i++; } i = 1; while (i <= _root.pocet_hracu) { current = _root["tank" + i]; if ((hitTest(current) || (hitTest(_root["shield" + i]))) && (i != tank_number)) { x = _x - current._x; y = _y - current._y; vzd = Math.sqrt((x * x) + (y * y)); if (!current.sh_active) { damg = Math.round(_width / ((vzd + 1) / 14)); if (damg > _root["tank_" + i].energy) { damg = _root["tank_" + i].energy; } } else { damg = Math.round(_width / (((vzd / 2) + 1) / 18)); } current.damage(damg, this); } i++; }
Symbol 27 MovieClip [ai_very_hard] Frame 15
if (playing) { _root.test(); } stop();
Symbol 30 MovieClip [tank] Frame 1
function test_hill() { calc_hill_up(); if (((_root["land" + Math.ceil(_x - (_width / 2))]._y - (_root["land" + Math.ceil(_x - (_width / 2))]._height / 2)) < (_y - hill_up)) || ((_root["land" + Math.floor(_x - (_width / 2))]._y - (_root["land" + Math.floor(_x - (_width / 2))]._height / 2)) < (_y - hill_up))) { _x = (_x + 0.7); test = false; left = false; right = false; } else if (((_root["land" + Math.floor(_x + (_width / 2))]._y - (_root["land" + Math.floor(_x + (_width / 2))]._height / 2)) < (_y - hill_up)) || ((_root["land" + Math.ceil(_x + (_width / 2))]._y - (_root["land" + Math.ceil(_x + (_width / 2))]._height / 2)) < (_y - hill_up))) { left = false; right = false; _x = (_x - 0.7); test = false; } else { left = true; right = true; } } function blik() { _root.attachMovie("blk", "blik", 10030); _root.blik._x = _x; _root.blik._y = _y - 10; } function calc_hill_up() { hill_up = (0.5 + _root["tank_" + tank_number].specials[11]) - (fall * 10); } function move_left() { _x = (_x - 0.5); _root["tank_" + tank_number].fuel = _root["tank_" + tank_number].fuel - fuel_c; moving = true; i = 1; while (i < (_root.pocet_hracu + 1)) { if (hitTest(_root["tank" + i]) && (i != tank_number)) { _x = (_x + 0.6); } i++; } } function move_right() { _x = (_x + 0.5); _root["tank_" + tank_number].fuel = _root["tank_" + tank_number].fuel - fuel_c; moving = true; i = 1; while (i < (_root.pocet_hracu + 1)) { if (hitTest(_root["tank" + i]) && (i != tank_number)) { _x = (_x - 0.6); } i++; } } function activate_shield(shield) { _root.attachMovie(_root.specials[2 + shield][4], "shield" + tank_number, 5040 + tank_number); _root["shield" + tank_number].num = tank_number; _root["tank_" + tank_number].specials[2 + shield]--; sh_active = true; _root["t" + tank_number] = _root["shield" + tank_number]; } function disable_shield() { _root["shield" + tank_number].disable(); sh_active = false; _root["t" + tank_number] = _root["tank" + tank_number]; } function damage(damag, attacker, par) { armor = 1; arm = 1; i = 0; while (i < _root["tank_" + tank_number].specials[9]) { armor = armor / (1.12 / arm); arm = arm / 1.0002; i++; } if ((!sh_active) || (par)) { _root["tank_" + tank_number].energy = _root["tank_" + tank_number].energy - (damag * armor); } else { _root["shield" + tank_number].damage(damag, attacker); } if (_root["tank_" + tank_number].energy <= 0) { if (this != attacker) { _root["tank_" + attacker.tank_number].kills = _root["tank_" + attacker.tank_number].kills + 1; _root["tank_" + attacker.tank_number].score = _root["tank_" + attacker.tank_number].score + 5000; _root["tank_" + attacker.tank_number].total_score = _root["tank_" + attacker.tank_number].total_score + 5000; } else { _root["tank_" + tank_number].kills = _root["tank_" + tank_number].kills - 1; _root["tank_" + tank_number].score = _root["tank_" + tank_number].score - 2000; _root["tank_" + tank_number].total_score = _root["tank_" + tank_number].total_score - 2000; } } if (this != attacker) { _root["tank_" + attacker.tank_number].score = _root["tank_" + attacker.tank_number].score + (damag * 100); _root["tank_" + attacker.tank_number].total_score = _root["tank_" + attacker.tank_number].total_score + (damag * 100); } else { if (par) { damag = damag / 3; } _root["tank_" + tank_number].score = _root["tank_" + tank_number].score - Math.round(damag * 50); _root["tank_" + tank_number].total_score = _root["tank_" + tank_number].total_score - Math.round(damag * 50); if (_root["tank_" + tank_number].score < 0) { _root["tank_" + tank_number].score = 0; } } } function na_rade() { par_active = false; calc_hill_up(); } function fire() { testing = true; _root.attachMovie(_root.weapons[_root["tank_" + tank_number].cur_gun][4], "strela", 1000); if (_root["tank_" + tank_number].cur_gun != 0) { _root["tank_" + tank_number].guns[_root["tank_" + tank_number].cur_gun]--; if (_root["tank_" + tank_number].guns[_root["tank_" + tank_number].cur_gun] == 0) { _root["tank_" + tank_number].cur_gun = 0; } } _root.strela._rotation = rotace - 90; _root.strela._x = _x; _root.strela._y = _y - 1; _root.strela.strela.vo = power; _root.strela.strela.owner = _root[_name]; _root[_name + "_hlaven"].play(); playing = false; } _root.myTank = tank_number; _y = ((_root["land" + Math.round(_x)]._y - (_root["land" + Math.round(_x)]._height / 2)) - 4); i = 0; while (i < _width) { cur = _root["land" + Math.floor((_x - (_width / 2)) + i)]; if (hitTest(cur)) { cur._y = cur._y + ((_y + (_height / 2)) - (cur._y - (cur._height / 2))); } i++; } if (_root["tank_" + tank_number].specials[0] > 0) { par = true; } _root.attachMovie("hlaven", _name + "_hlaven", 10010 + tank_number); rotace = (random(67) * 2) + 46; _root[_name + "_hlaven"]._x = _x; _root[_name + "_hlaven"]._y = _y - 1; _root[_name + "_hlaven"]._rotation = rotace; power = 50; playing = false; testing = false; par_active = false; par_out = false; par_used = false; sh_active = false; _root["t" + tank_number] = _root["tank" + tank_number]; fuel_c = 1 / (_root["tank_" + tank_number].specials[10] + 1);
Symbol 30 MovieClip [tank] Frame 2
if (_y > 400) { _root["tank_" + tank_number].live = false; _root["tank_" + tank_number].energy = 0; _root["tank_" + tank_number].score = _root["tank_" + tank_number].score - 2000; _root.hracu--; if (_root["tank_" + tank_number].score < 0) { _root["tank_" + tank_number].score = 0; } gotoAndPlay (4); } if (_root["tank_" + tank_number].energy <= 0) { _root["tank_" + tank_number].energy = 0; _root["tank_" + tank_number].live = false; gotoAndPlay (4); } _root[_name + "_hlaven"]._x = _x; _root[_name + "_hlaven"]._y = _y - 1; if (sh_active) { _root["shield" + tank_number]._x = _x; _root["shield" + tank_number]._y = _y; } if (playing) { _root.rotace = rotace; _root.power = power; if (((Key.isDown(37) && (left)) && (_root["tank_" + tank_number].fuel > 0)) && (_x > 10)) { move_left(); } else if (((Key.isDown(39) && (right)) && (_root["tank_" + tank_number].fuel > 0)) && (_x < 540)) { move_right(); } else { moving = false; } if (Key.isDown(32)) { fire(); } na_zemi = false; left = true; right = true; i = 0; min = 500; gg = false; test_hill(); while (i < _width) { cur = _root["land" + Math.round((_x - (_width / 2)) + i)]; if (pasy.hitTest(cur)) { na_zemi = true; if (par_out) { par_out = false; _root["parachute" + tank_number].removeMovieClip(); } if (fall > 0.4) { if (fall < 2) { damage(Math.round(fall * 25), this, true); } else { damage(Math.round((fall * fall) * 3000), this, true); } } fall = 0; } top = cur._y - (cur._height / 2); if ((top < min) && (na_zemi)) { gg = true; min = top; } if ((((i + 1) >= _width) && (na_zemi)) && (gg)) { _y = (min - 2); gg = false; } if (!na_zemi) { if ((fall >= 0.2) && (par)) { if (!par_active) { par_active = true; _root["tank_" + i].specials[0] = _root["tank_" + i].specials[0] - 1; } if (!par_out) { _root.attachMovie("parachute", "parachute" + tank_number, 9000 + tank_number); } par_out = true; } _y = (_y + fall); if (!par_out) { fall = fall + 0.01; } else { _root["parachute" + tank_number]._x = _x; _root["parachute" + tank_number]._y = _y - 7.5; fall = 0.2; _x = (_x + (_root.vitr / 3000)); } } i++; } if ((Key.isDown(33) && (power < 100)) && (power <= _root["tank_" + tank_number].energy)) { power = power + 1; } else if (Key.isDown(34) && (power > 0)) { power = power - 1; } if (power > _root["tank_" + tank_number].energy) { power = _root["tank_" + tank_number].energy; } if (Key.isDown(38) && (rotace < 180)) { rotace = rotace + 2; } if (Key.isDown(40) && (rotace > 0)) { rotace = rotace - 2; } _root[_name + "_hlaven"]._rotation = rotace; } if (testing) { i = 0; min = 500; gg = false; test_hill(); while (i < _width) { cur = _root["land" + Math.round((_x - (_width / 2)) + i)]; if (pasy.hitTest(cur)) { if (fall > 0.4) { if (fall < 0.8) { damage(Math.round(fall * 25), this, true); } else { damage(Math.round((fall * fall) * 80), this, true); } } if (par_out) { par_out = false; _root["parachute" + tank_number].removeMovieClip(); } na_zemi = true; fall = 0; } top = cur._y - (cur._height / 2); if ((top < min) && (na_zemi)) { gg = true; min = top; } if ((((i + 1) >= _width) && (na_zemi)) && (gg)) { _y = (min - 2); gg = false; } if (fall > 0.001) { test = false; } if (!na_zemi) { if ((fall >= 0.2) && (par)) { if (!par_active) { par_active = true; _root["tank_" + tank_number].specials[0] = _root["tank_" + tank_number].specials[0] - 1; } if (!par_out) { _root.attachMovie("parachute", "parachute" + tank_number, 9000 + tank_number); } par_out = true; } _y = (_y + fall); if (!par_out) { fall = fall + 0.01; } else { _root["parachute" + tank_number]._x = _x; _root["parachute" + tank_number]._y = _y - 7.5; fall = 0.2; _x = (_x + (_root.vitr / 3000)); } } i++; } if (fall > 0.001) { test = false; } test_hill(); x3 = x2; x2 = x1; x1 = Math.round(_x); y3 = y2; y2 = y1; y1 = Math.round(_y * 10) / 10; if ((y1 == y3) && (x1 == x3)) { test = true; } if (test) { testing = false; _root[_name + "test"] = false; } _root[_name + "_hlaven"]._x = _x; _root[_name + "_hlaven"]._y = _y - 1; test = true; }
Symbol 30 MovieClip [tank] Frame 3
gotoAndPlay (2);
Symbol 30 MovieClip [tank] Frame 4
_root[_name + "_hlaven"].removeMovieClip(); _root["parachute" + tank_number].removeMovieClip(); _root["shield" + tank_number].removeMovieClip(); _root.hracu--;
Symbol 30 MovieClip [tank] Frame 9
i = 0; while (i < _width) { cur = _root["land" + Math.round((_x - (_width / 2)) + i)]; x = cur._x; y = cur._y; h = cur._y - (cur._height / 2); if (hitTest(x, h, true)) { vzr = Math.cos(0.017 * (Math.sqrt(((_x - x) * (_x - x)) + ((_y - h) * (_y - h))) * (180 / _width))); cur._height = cur._height - (30 * vzr); cur._y = cur._y + (15 * vzr); } else if (hitTest(_root["land" + Math.round((xx - (_width / 2)) + i)])) { cur._height = cur._height - (50 / Math.abs(_x - x)); cur._y = cur._y + ((50 / Math.abs(_x - x)) / 2); } i++; } i = 1; while (i <= _root.pocet_hracu) { current = _root["tank" + i]; if ((hitTest(current) || (hitTest(_root["shield" + i]))) && (i != tank_number)) { x = _x - current._x; y = _y - current._y; vzd = Math.sqrt((x * x) + (y * y)); if (!current.sh_active) { damg = Math.round(_width / ((vzd + 1) / 14)); if (damg > _root["tank_" + i].energy) { damg = _root["tank_" + i].energy; } } else { damg = Math.round(_width / (((vzd / 2) + 1) / 18)); } current.damage(damg, this); } i++; }
Symbol 30 MovieClip [tank] Frame 15
if (playing) { _root.test(); } stop();
Symbol 35 MovieClip Frame 1
function bum() { par1 = 35; par2 = 30; par3 = 30; i = 0; while (i < _width) { cur = _root["land" + Math.round((_parent._x - (_width / 2)) + i)]; xx = _parent._x; yy = _parent._y; x = cur._x; y = cur._y; h = cur._y - (cur._height / 2); if (hitTest(x, h, true)) { vzr = Math.cos(0.017 * (Math.sqrt(((xx - x) * (xx - x)) + ((yy - h) * (yy - h))) * (180 / _width))); cur._height = cur._height - (par1 * vzr); cur._y = cur._y + (par2 * vzr); } else if (hitTest(_root["land" + Math.round((xx - (_width / 2)) + i)])) { cur._height = cur._height - (par3 * Math.cos(0.017 * (Math.abs(xx - x) * (180 / _width)))); cur._y = cur._y + ((par3 * Math.cos(0.017 * (Math.abs(xx - x) * (180 / _width)))) / 2); } i++; } par4 = 22; par5 = 40; owner.last_shot_x = _parent._x; owner.last_shot_y = _parent._y; owner.last_shot_out = false; i = 1; while (i <= _root.pocet_hracu) { current = _root["tank" + i]; if (hitTest(current) || (hitTest(_root["shield" + i]))) { x = _parent._x - current._x; y = _parent._y - current._y; vzd = Math.sqrt((x * x) + (y * y)); if (!current.sh_active) { damg = Math.round(_width / ((vzd + 1) / par4)); if (damg > _root["tank_" + i].energy) { damg = _root["tank_" + i].energy; } } else { damg = Math.round(_width / (((vzd / 2) + 1) / par5)); } current.damage(damg, owner); } i++; } } stop();
Symbol 35 MovieClip Frame 6
bum(); f._rotation = f._rotation - _parent._rotation;
Symbol 35 MovieClip Frame 12
_root.test(); _parent.removeMovieClip();
Instance of Symbol 35 MovieClip "strela" in Symbol 36 MovieClip [nuke_g] Frame 1
onClipEvent (load) { stop(); depth = 10040; uhel = (-_parent._rotation) + 90; g = 9.81; t = 0; x = _parent._x; hit = true; y = _parent._y; vox = Math.cos((Math.PI/180) * uhel) * vo; voy = Math.sin(0.017 * uhel) * vo; _root.shot_flying = true; } onClipEvent (enterFrame) { if (((_parent._x < 0) || (_parent._x > 550)) || (_y > 400)) { _root.shot_flying = false; owner.last_shot_x = _parent._x; owner.last_shot_y = _parent._y; owner.last_shot_out = true; _root.test(); _parent.removeMovieClip(); } if (_currentframe == 1) { _parent._x = x + (vox * t); _parent._y = (y - (voy * t)) + ((g / 2) * (t * t)); vox = vox + (_root.vitr / 600); } if (hitTest(_root["land" + Math.round(_parent._x)])) { play(); } i = 1; while (i <= _root.pocet_hracu) { if (hitTest(_root["t" + i]) && (i != owner.tank_number)) { play(); } if ((hitTest(owner) || (hitTest(_root["shield" + owner.tank_number]))) && (hit == false)) { play(); } i++; } if ((!hitTest(owner)) && (hit)) { _parent.swapDepths(depth); } if (((!hitTest(owner)) && (hitTest(_root["shield" + owner.tank_number]) == false)) && (hit == true)) { hit = false; } t = t + 0.1; }
Symbol 37 MovieClip Frame 1
function bum() { par1 = 30; par2 = 15; par3 = 15; i = 0; while (i < _width) { cur = _root["land" + Math.round((_parent._x - (_width / 2)) + i)]; xx = _parent._x; yy = _parent._y; x = cur._x; y = cur._y; h = cur._y - (cur._height / 2); if (hitTest(x, h, true)) { vzr = Math.cos(0.017 * (Math.sqrt(((xx - x) * (xx - x)) + ((yy - h) * (yy - h))) * (180 / _width))); cur._height = cur._height - (par1 * vzr); cur._y = cur._y + (par2 * vzr); } else if (hitTest(_root["land" + Math.round((xx - (_width / 2)) + i)])) { cur._height = cur._height - (par3 * Math.cos(0.017 * (Math.abs(xx - x) * (180 / _width)))); cur._y = cur._y + ((par3 * Math.cos(0.017 * (Math.abs(xx - x) * (180 / _width)))) / 2); } i++; } par4 = 17; par5 = 24; owner.last_shot_x = _parent._x; owner.last_shot_y = _parent._y; owner.last_shot_out = false; i = 1; while (i <= _root.pocet_hracu) { current = _root["tank" + i]; if (hitTest(current) || (hitTest(_root["shield" + i]))) { x = _parent._x - current._x; y = _parent._y - current._y; vzd = Math.sqrt((x * x) + (y * y)); if (!current.sh_active) { damg = Math.round(_width / ((vzd + 1) / par4)); if (damg > _root["tank_" + i].energy) { damg = _root["tank_" + i].energy; } } else { damg = Math.round(_width / (((vzd / 2) + 1) / par5)); } current.damage(damg, owner); } i++; } } stop();
Symbol 37 MovieClip Frame 6
bum(); f._rotation = f._rotation - _parent._rotation;
Symbol 37 MovieClip Frame 12
_root.test(); _parent.removeMovieClip();
Instance of Symbol 37 MovieClip "strela" in Symbol 38 MovieClip [bnuke_g] Frame 1
onClipEvent (load) { stop(); depth = 10040; uhel = (-_parent._rotation) + 90; g = 9.81; t = 0; x = _parent._x; hit = true; y = _parent._y; vox = Math.cos((Math.PI/180) * uhel) * vo; voy = Math.sin(0.017 * uhel) * vo; _root.shot_flying = true; } onClipEvent (enterFrame) { if (((_parent._x < 0) || (_parent._x > 550)) || (_y > 400)) { _root.shot_flying = false; owner.last_shot_x = _parent._x; owner.last_shot_y = _parent._y; owner.last_shot_out = true; _root.test(); _parent.removeMovieClip(); } if (_currentframe == 1) { _parent._x = x + (vox * t); _parent._y = (y - (voy * t)) + ((g / 2) * (t * t)); vox = vox + (_root.vitr / 600); } if (hitTest(_root["land" + Math.round(_parent._x)])) { play(); } i = 1; while (i <= _root.pocet_hracu) { if (hitTest(_root["t" + i]) && (i != owner.tank_number)) { play(); } if ((hitTest(owner) || (hitTest(_root["shield" + owner.tank_number]))) && (hit == false)) { play(); } i++; } if ((!hitTest(owner)) && (hit)) { _parent.swapDepths(depth); } if (((!hitTest(owner)) && (hitTest(_root["shield" + owner.tank_number]) == false)) && (hit == true)) { hit = false; } t = t + 0.1; }
Symbol 39 MovieClip Frame 1
function bum() { par1 = 15; par2 = 7.5; par3 = 15; i = 0; while (i < _width) { cur = _root["land" + Math.round((_parent._x - (_width / 2)) + i)]; xx = _parent._x; yy = _parent._y; x = cur._x; y = cur._y; h = cur._y - (cur._height / 2); if (hitTest(x, h, true)) { vzr = Math.cos(0.017 * (Math.sqrt(((xx - x) * (xx - x)) + ((yy - h) * (yy - h))) * (180 / _width))); cur._height = cur._height - (par1 * vzr); cur._y = cur._y + (par2 * vzr); } else if (hitTest(_root["land" + Math.round((xx - (_width / 2)) + i)])) { cur._height = cur._height - (par3 * Math.cos(0.017 * (Math.abs(xx - x) * (180 / _width)))); cur._y = cur._y + ((par3 * Math.cos(0.017 * (Math.abs(xx - x) * (180 / _width)))) / 2); } i++; } par4 = 13; par5 = 20; owner.last_shot_x = _parent._x; owner.last_shot_y = _parent._y; owner.last_shot_out = false; i = 1; while (i <= _root.pocet_hracu) { current = _root["tank" + i]; if (hitTest(current) || (hitTest(_root["shield" + i]))) { x = _parent._x - current._x; y = _parent._y - current._y; vzd = Math.sqrt((x * x) + (y * y)); if (!current.sh_active) { damg = Math.round(_width / ((vzd + 1) / par4)); if (damg > _root["tank_" + i].energy) { damg = _root["tank_" + i].energy; } } else { damg = Math.round(_width / (((vzd / 2) + 1) / par5)); } current.damage(damg, owner); } i++; } } function bum2() { i = 0; while (i < 7) { _root.attachMovie("bnuke_c", "strela" + i, 1001 + i); _root["strela" + i].depth = 10041 + i; _root["strela" + i]._rotation = _parent._rotation; _root["strela" + i].strela.x = x + (_root.vitr / 7); _root["strela" + i].strela.y = y; _root["strela" + i].strela.t = t; _root["strela" + i].strela.vox = vox; _root["strela" + i].strela.voy = voy; _root["strela" + i].strela.vo = vo; _root["strela" + i].strela.owner = owner; _root["strela" + i].strela.st_number = i; _root["strela" + i].strela.inc = -3 + i; i++; } } stop();
Symbol 39 MovieClip Frame 6
bum(); f._rotation = f._rotation - _parent._rotation;
Symbol 39 MovieClip Frame 12
test_ = true; i = 0; while (i < 7) { if (this["shot" + i] != true) { test_ = false; break; } i++; } if (test_ || (end)) { gotoAndStop (14); }
Symbol 39 MovieClip Frame 13
gotoAndPlay(_currentframe - 1);
Symbol 39 MovieClip Frame 14
_root.test(); _parent.removeMovieClip();
Instance of Symbol 39 MovieClip "strela" in Symbol 40 MovieClip [death_g] Frame 1
onClipEvent (load) { stop(); depth = 10040; uhel = (-_parent._rotation) + 90; g = 9.81; t = 0; x = _parent._x; hit = true; y = _parent._y; vox = Math.cos((Math.PI/180) * uhel) * vo; voy = Math.sin(0.017 * uhel) * vo; _root.shot_flying = true; } onClipEvent (enterFrame) { if (((_parent._x < 0) || (_parent._x > 550)) || (_y > 400)) { gotoAndPlay (12); } if (_currentframe == 1) { _parent._x = x + (vox * t); _parent._y = (y - (voy * t)) + ((g / 2) * (t * t)); vox = vox + (_root.vitr / 600); } if (hitTest(_root["land" + Math.round(_parent._x)])) { play(); } i = 1; while (i <= _root.pocet_hracu) { if (hitTest(_root["tank" + i]) && (i != owner.tank_number)) { play(); } if (hitTest(owner) && (hit == false)) { play(); } i++; } if (!hitTest(owner)) { hit = false; } if ((Math.round(t * 10) / 10) == 3) { if (_currentframe == 1) { bum2(); } else { end = true; } } t = t + 0.1; }
Symbol 41 MovieClip Frame 1
function bum() { par1 = 15; par2 = 7.5; par3 = 15; i = 0; while (i < _width) { cur = _root["land" + Math.round((_parent._x - (_width / 2)) + i)]; xx = _parent._x; yy = _parent._y; x = cur._x; y = cur._y; h = cur._y - (cur._height / 2); if (hitTest(x, h, true)) { vzr = Math.cos(0.017 * (Math.sqrt(((xx - x) * (xx - x)) + ((yy - h) * (yy - h))) * (180 / _width))); cur._height = cur._height - (par1 * vzr); cur._y = cur._y + (par2 * vzr); } else if (hitTest(_root["land" + Math.round((xx - (_width / 2)) + i)])) { cur._height = cur._height - (par3 * Math.cos(0.017 * (Math.abs(xx - x) * (180 / _width)))); cur._y = cur._y + ((par3 * Math.cos(0.017 * (Math.abs(xx - x) * (180 / _width)))) / 2); } i++; } par4 = 13; par5 = 18; owner.last_shot_x = _parent._x; owner.last_shot_y = _parent._y; owner.last_shot_out = false; i = 1; while (i <= _root.pocet_hracu) { current = _root["tank" + i]; if (hitTest(current) || (hitTest(_root["shield" + i]))) { x = _parent._x - current._x; y = _parent._y - current._y; vzd = Math.sqrt((x * x) + (y * y)); if (!current.sh_active) { damg = Math.round(_width / ((vzd + 1) / par4)); if (damg > _root["tank_" + i].energy) { damg = _root["tank_" + i].energy; } } else { damg = Math.round(_width / (((vzd / 2) + 1) / par5)); } current.damage(damg, owner); } i++; } } function bum2() { i = 0; while (i < 5) { _root.attachMovie("missile_funky", "strela" + i, 1001 + i); _root["strela" + i].depth = 10041 + i; _root["strela" + i]._rotation = _parent._rotation; _root["strela" + i].strela.x = x + (_root.vitr / 7); _root["strela" + i].strela.y = y; _root["strela" + i].strela.t = t; _root["strela" + i].strela.vox = vox; _root["strela" + i].strela.voy = voy; _root["strela" + i].strela.vo = vo; _root["strela" + i].strela.owner = owner; _root["strela" + i].strela.st_number = i; _root["strela" + i].strela.inc = -2 + i; i++; } } stop();
Symbol 41 MovieClip Frame 6
bum(); f._rotation = f._rotation - _parent._rotation;
Symbol 41 MovieClip Frame 12
test_ = true; i = 0; while (i < 5) { if (this["shot" + i] != true) { test_ = false; break; } i++; } if (test_ || (end)) { gotoAndStop (14); }
Symbol 41 MovieClip Frame 13
gotoAndPlay(_currentframe - 1);
Symbol 41 MovieClip Frame 14
_root.test(); _parent.removeMovieClip();
Instance of Symbol 41 MovieClip "strela" in Symbol 42 MovieClip [mirv_g] Frame 1
onClipEvent (load) { stop(); depth = 10040; uhel = (-_parent._rotation) + 90; g = 9.81; t = 0; x = _parent._x; hit = true; y = _parent._y; vox = Math.cos((Math.PI/180) * uhel) * vo; voy = Math.sin(0.017 * uhel) * vo; _root.shot_flying = true; } onClipEvent (enterFrame) { if (((_parent._x < 0) || (_parent._x > 550)) || (_y > 400)) { gotoAndPlay (12); } if (_currentframe == 1) { _parent._x = x + (vox * t); _parent._y = (y - (voy * t)) + ((g / 2) * (t * t)); vox = vox + (_root.vitr / 600); } if (hitTest(_root["land" + Math.round(_parent._x)])) { play(); } i = 1; while (i <= _root.pocet_hracu) { if (hitTest(_root["tank" + i]) && (i != owner.tank_number)) { play(); } if (hitTest(owner) && (hit == false)) { play(); } i++; } if (!hitTest(owner)) { hit = false; } if ((Math.round(t * 10) / 10) == 3) { if (_currentframe == 1) { bum2(); } else { end = true; } } t = t + 0.1; }
Symbol 43 MovieClip Frame 1
function bum() { par1 = 15; par2 = 7.5; par3 = 15; i = 0; while (i < _width) { cur = _root["land" + Math.round((_parent._x - (_width / 2)) + i)]; xx = _parent._x; yy = _parent._y; x = cur._x; y = cur._y; h = cur._y - (cur._height / 2); if (hitTest(x, h, true)) { vzr = Math.cos(0.017 * (Math.sqrt(((xx - x) * (xx - x)) + ((yy - h) * (yy - h))) * (180 / _width))); cur._height = cur._height - (par1 * vzr); cur._y = cur._y + (par2 * vzr); } else if (hitTest(_root["land" + Math.round((xx - (_width / 2)) + i)])) { cur._height = cur._height - (par3 * Math.cos(0.017 * (Math.abs(xx - x) * (180 / _width)))); cur._y = cur._y + ((par3 * Math.cos(0.017 * (Math.abs(xx - x) * (180 / _width)))) / 2); } i++; } par4 = 13; par5 = 18; owner.last_shot_x = _parent._x; owner.last_shot_y = _parent._y; owner.last_shot_out = false; i = 1; while (i <= _root.pocet_hracu) { current = _root["tank" + i]; if (hitTest(current) || (hitTest(_root["shield" + i]))) { x = _parent._x - current._x; y = _parent._y - current._y; vzd = Math.sqrt((x * x) + (y * y)); if (!current.sh_active) { damg = Math.round(_width / ((vzd + 1) / par4)); if (damg > _root["tank_" + i].energy) { damg = _root["tank_" + i].energy; } } else { damg = Math.round(_width / (((vzd / 2) + 1) / par5)); } current.damage(damg, owner); } i++; } } stop();
Symbol 43 MovieClip Frame 4
i = 0; while (i < 5) { _root.attachMovie("missile_funky", "strela" + i, 1001 + i); _root["strela" + i].depth = 10041 + i; _root["strela" + i]._rotation = random(90) - 45; _root["strela" + i]._x = _parent._x; _root["strela" + i]._y = _parent._y - 5; _root["strela" + i].strela.vo = random(30) + 15; _root["strela" + i].strela.owner = owner; _root["strela" + i].strela.st_number = i; _root["strela" + i].strela.x = _root["strela" + i]._x; _root["strela" + i].strela.y = _root["strela" + i]._y; _root["strela" + i].strela.t = 0; i++; }
Symbol 43 MovieClip Frame 6
bum(); f._rotation = f._rotation - _parent._rotation;
Symbol 43 MovieClip Frame 12
test_ = true; i = 0; while (i < 5) { if (this["shot" + i] != true) { test_ = false; break; } i++; } if (test_ == true) { gotoAndStop (14); }
Symbol 43 MovieClip Frame 13
gotoAndPlay(_currentframe - 1);
Symbol 43 MovieClip Frame 14
_root.test(); _parent.removeMovieClip();
Instance of Symbol 43 MovieClip "strela" in Symbol 44 MovieClip [funky_g] Frame 1
onClipEvent (load) { stop(); depth = 10040; uhel = (-_parent._rotation) + 90; g = 9.81; t = 0; x = _parent._x; hit = true; y = _parent._y; vox = Math.cos((Math.PI/180) * uhel) * vo; voy = Math.sin(0.017 * uhel) * vo; _root.shot_flying = true; } onClipEvent (enterFrame) { if (((_parent._x < 0) || (_parent._x > 550)) || (_y > 400)) { _root.shot_flying = false; owner.last_shot_x = _parent._x; owner.last_shot_y = _parent._y; owner.last_shot_out = true; _root.test(); _parent.removeMovieClip(); } if (_currentframe == 1) { _parent._x = x + (vox * t); _parent._y = (y - (voy * t)) + ((g / 2) * (t * t)); vox = vox + (_root.vitr / 600); } if (hitTest(_root["land" + Math.round(_parent._x)])) { play(); } i = 1; while (i <= _root.pocet_hracu) { if (hitTest(_root["t" + i]) && (i != owner.tank_number)) { play(); } if ((hitTest(owner) || (hitTest(_root["shield" + owner.tank_number]))) && (hit == false)) { play(); } i++; } if ((!hitTest(owner)) && (hit)) { _parent.swapDepths(depth); } if (((!hitTest(owner)) && (hitTest(_root["shield" + owner.tank_number]) == false)) && (hit == true)) { hit = false; } t = t + 0.1; }
Symbol 45 MovieClip Frame 1
function bum() { par1 = 30; par2 = 15; par3 = 15; i = 0; while (i < _width) { cur = _root["land" + Math.round((_parent._x - (_width / 2)) + i)]; xx = _parent._x; yy = _parent._y; x = cur._x; y = cur._y; h = cur._y - (cur._height / 2); if (hitTest(x, h, true)) { vzr = Math.cos(0.017 * (Math.sqrt(((xx - x) * (xx - x)) + ((yy - h) * (yy - h))) * (180 / _width))); cur._height = cur._height - (par1 * vzr); cur._y = cur._y + (par2 * vzr); } else if (hitTest(_root["land" + Math.round((xx - (_width / 2)) + i)])) { cur._height = cur._height - (par3 * Math.cos(0.017 * (Math.abs(xx - x) * (180 / _width)))); cur._y = cur._y + ((par3 * Math.cos(0.017 * (Math.abs(xx - x) * (180 / _width)))) / 2); } i++; } par4 = 17; par5 = 24; owner.last_shot_x = _parent._x; owner.last_shot_y = _parent._y; owner.last_shot_out = false; i = 1; while (i <= _root.pocet_hracu) { current = _root["tank" + i]; if (hitTest(current) || (hitTest(_root["shield" + i]))) { x = _parent._x - current._x; y = _parent._y - current._y; vzd = Math.sqrt((x * x) + (y * y)); if (!current.sh_active) { damg = Math.round(_width / ((vzd + 1) / par4)); if (damg > _root["tank_" + i].energy) { damg = _root["tank_" + i].energy; } } else { damg = Math.round(_width / (((vzd / 2) + 1) / par5)); } current.damage(damg, owner); } i++; } } stop();
Symbol 45 MovieClip Frame 6
bum(); f._rotation = f._rotation - _parent._rotation;
Symbol 45 MovieClip Frame 12
_root.strela.strela["shot" + st_number] = true; _parent.removeMovieClip();
Instance of Symbol 45 MovieClip "strela" in Symbol 46 MovieClip [bnuke_c] Frame 1
onClipEvent (load) { stop(); uhel = (-_parent._rotation) + 90; g = 9.81; hit = true; vox = Math.cos((Math.PI/180) * uhel) * vo; voy = Math.sin(0.017 * uhel) * vo; } onClipEvent (enterFrame) { if (((_parent._x < 0) || (_parent._x > 550)) || (_y > 400)) { _root.strela.strela["shot" + st_number] = true; _parent.removeMovieClip(); } if (_currentframe == 1) { _parent._x = x + (vox * t); _parent._y = (y - (voy * t)) + ((g / 2) * (t * t)); vox = vox + (_root.vitr / 600); vox = vox + (inc / 20); } if (hitTest(_root["land" + Math.round(_parent._x)])) { play(); } i = 1; while (i <= _root.pocet_hracu) { if (hitTest(_root["t" + i]) && (i != owner.tank_number)) { play(); } if ((hitTest(owner) || (hitTest(_root["shield" + owner.tank_number]))) && (hit == false)) { play(); } i++; } if ((!hitTest(owner)) && (hit)) { _parent.swapDepths(depth); } if (((!hitTest(owner)) && (hitTest(_root["shield" + owner.tank_number]) == false)) && (hit == true)) { hit = false; } t = t + 0.1; }
Symbol 47 MovieClip Frame 1
function bum() { par1 = 15; par2 = 7.5; par3 = 15; i = 0; while (i < _width) { cur = _root["land" + Math.round((_parent._x - (_width / 2)) + i)]; xx = _parent._x; yy = _parent._y; x = cur._x; y = cur._y; h = cur._y - (cur._height / 2); if (hitTest(x, h, true)) { vzr = Math.cos(0.017 * (Math.sqrt(((xx - x) * (xx - x)) + ((yy - h) * (yy - h))) * (180 / _width))); cur._height = cur._height - (par1 * vzr); cur._y = cur._y + (par2 * vzr); } else if (hitTest(_root["land" + Math.round((xx - (_width / 2)) + i)])) { cur._height = cur._height - (par3 * Math.cos(0.017 * (Math.abs(xx - x) * (180 / _width)))); cur._y = cur._y + ((par3 * Math.cos(0.017 * (Math.abs(xx - x) * (180 / _width)))) / 2); } i++; } par4 = 13; par5 = 18; owner.last_shot_x = _parent._x; owner.last_shot_y = _parent._y; owner.last_shot_out = false; i = 1; while (i <= _root.pocet_hracu) { current = _root["tank" + i]; if (hitTest(current) || (hitTest(_root["shield" + i]))) { x = _parent._x - current._x; y = _parent._y - current._y; vzd = Math.sqrt((x * x) + (y * y)); if (!current.sh_active) { damg = Math.round(_width / ((vzd + 1) / par4)); if (damg > _root["tank_" + i].energy) { damg = _root["tank_" + i].energy; } } else { damg = Math.round(_width / (((vzd / 2) + 1) / par5)); } current.damage(damg, owner); } i++; } } stop();
Symbol 47 MovieClip Frame 6
bum(); f._rotation = f._rotation - _parent._rotation;
Symbol 47 MovieClip Frame 12
_root.strela.strela["shot" + st_number] = true; _parent.removeMovieClip();
Instance of Symbol 47 MovieClip "strela" in Symbol 48 MovieClip [amissile] Frame 1
onClipEvent (load) { stop(); y = -50; if (uhel == 0) { x = (x - 120) + (num * 20); } else { x = (x + 120) - (num * 20); } g = 9.81; st_number = num; vo = 10; vox = Math.cos((Math.PI/180) * uhel) * vo; voy = Math.sin(0.017 * uhel) * vo; t = 0; } onClipEvent (enterFrame) { if (_parent._y > 400) { _root.strela.strela["shot" + st_number] = true; _parent.removeMovieClip(); } if (_currentframe == 1) { _parent._x = x + (vox * t); _parent._y = (y - (voy * t)) + ((g / 2) * (t * t)); } if (hitTest(_root["land" + Math.round(_parent._x)])) { play(); } i = 1; while (i <= _root.pocet_hracu) { if (hitTest(_root["t" + i])) { play(); } i++; } t = t + 0.12; }
Symbol 49 MovieClip Frame 1
function bum() { par1 = 15; par2 = 7.5; par3 = 15; i = 0; while (i < _width) { cur = _root["land" + Math.round((_parent._x - (_width / 2)) + i)]; xx = _parent._x; yy = _parent._y; x = cur._x; y = cur._y; h = cur._y - (cur._height / 2); if (hitTest(x, h, true)) { vzr = Math.cos(0.017 * (Math.sqrt(((xx - x) * (xx - x)) + ((yy - h) * (yy - h))) * (180 / _width))); cur._height = cur._height - (par1 * vzr); cur._y = cur._y + (par2 * vzr); } else if (hitTest(_root["land" + Math.round((xx - (_width / 2)) + i)])) { cur._height = cur._height - (par3 * Math.cos(0.017 * (Math.abs(xx - x) * (180 / _width)))); cur._y = cur._y + ((par3 * Math.cos(0.017 * (Math.abs(xx - x) * (180 / _width)))) / 2); } i++; } par4 = 13; par5 = 18; owner.last_shot_x = _parent._x; owner.last_shot_y = _parent._y; owner.last_shot_out = false; i = 1; while (i <= _root.pocet_hracu) { current = _root["tank" + i]; if (hitTest(current) || (hitTest(_root["shield" + i]))) { x = _parent._x - current._x; y = _parent._y - current._y; vzd = Math.sqrt((x * x) + (y * y)); if (!current.sh_active) { damg = Math.round(_width / ((vzd + 1) / par4)); if (damg > _root["tank_" + i].energy) { damg = _root["tank_" + i].energy; } } else { damg = Math.round(_width / (((vzd / 2) + 1) / par5)); } current.damage(damg, owner); } i++; } } stop();
Symbol 49 MovieClip Frame 6
bum(); f._rotation = f._rotation - _parent._rotation;
Symbol 49 MovieClip Frame 12
_root.strela.strela["shot" + st_number] = true; _parent.removeMovieClip();
Instance of Symbol 49 MovieClip "strela" in Symbol 50 MovieClip [missile_funky] Frame 1
onClipEvent (load) { stop(); uhel = (-_parent._rotation) + 90; g = 9.81; hit = true; vox = Math.cos((Math.PI/180) * uhel) * vo; voy = Math.sin(0.017 * uhel) * vo; } onClipEvent (enterFrame) { if (((_parent._x < 0) || (_parent._x > 550)) || (_y > 400)) { _root.strela.strela["shot" + st_number] = true; _parent.removeMovieClip(); } if (_currentframe == 1) { _parent._x = x + (vox * t); _parent._y = (y - (voy * t)) + ((g / 2) * (t * t)); vox = vox + (_root.vitr / 600); vox = vox + (inc / 20); } if (hitTest(_root["land" + Math.round(_parent._x)])) { play(); } i = 1; while (i <= _root.pocet_hracu) { if (hitTest(_root["t" + i]) && (i != owner.tank_number)) { play(); } if ((hitTest(owner) || (hitTest(_root["shield" + owner.tank_number]))) && (hit == false)) { play(); } i++; } if ((!hitTest(owner)) && (hit)) { _parent.swapDepths(depth); } if (((!hitTest(owner)) && (hitTest(_root["shield" + owner.tank_number]) == false)) && (hit == true)) { hit = false; } t = t + 0.1; }
Symbol 51 MovieClip Frame 1
function bum() { par1 = 35; par2 = 30; par3 = 30; i = 0; while (i < _width) { cur = _root["land" + Math.round((_parent._x - (_width / 2)) + i)]; xx = _parent._x; yy = _parent._y; x = cur._x; y = cur._y; h = cur._y - (cur._height / 2); if (hitTest(x, h, true)) { vzr = Math.cos(0.017 * (Math.sqrt(((xx - x) * (xx - x)) + ((yy - h) * (yy - h))) * (180 / _width))); cur._height = cur._height - (par1 * vzr); cur._y = cur._y + (par2 * vzr); } else if (hitTest(_root["land" + Math.round((xx - (_width / 2)) + i)])) { cur._height = cur._height - (par3 * Math.cos(0.017 * (Math.abs(xx - x) * (180 / _width)))); cur._y = cur._y + ((par3 * Math.cos(0.017 * (Math.abs(xx - x) * (180 / _width)))) / 2); } i++; } par4 = 19; par5 = 36; owner.last_shot_x = _parent._x; owner.last_shot_y = _parent._y; owner.last_shot_out = false; i = 1; while (i <= _root.pocet_hracu) { current = _root["tank" + i]; if (hitTest(current) || (hitTest(_root["shield" + i]))) { x = _parent._x - current._x; y = _parent._y - current._y; vzd = Math.sqrt((x * x) + (y * y)); if (!current.sh_active) { damg = Math.round(_width / ((vzd + 1) / par4)); if (damg > _root["tank_" + i].energy) { damg = _root["tank_" + i].energy; } } else { damg = Math.round(_width / (((vzd / 2) + 1) / par5)); } current.damage(damg, owner); } i++; } } stop();
Symbol 51 MovieClip Frame 6
bum(); f._rotation = f._rotation - _parent._rotation;
Symbol 51 MovieClip Frame 12
_root.test(); _parent.removeMovieClip();
Instance of Symbol 51 MovieClip "strela" in Symbol 52 MovieClip [hroller2_g] Frame 1
onClipEvent (load) { stop(); first = true; second = false; start = true; depth = 10040; uhel = (-_parent._rotation) + 90; g = 9.81; t = 0; x = _parent._x; hit = true; y = _parent._y; vox = Math.cos((Math.PI/180) * uhel) * vo; voy = Math.sin(0.017 * uhel) * vo; _root.shot_flying = true; } onClipEvent (enterFrame) { if (((_parent._x < 0) || (_parent._x > 550)) || (_parent._y > 400)) { _root.shot_flying = false; _root.test(); _parent.removeMovieClip(); } i = 1; while (i <= _root.pocet_hracu) { if (hitTest(_root["t" + i]) && (i != owner.tank_number)) { play(); first = false; second = false; } if ((hitTest(owner) || (hitTest(_root["shield" + owner.tank_number]))) && (hit == false)) { play(); first = false; second = false; } i++; } if ((!hitTest(owner)) && (hitTest(_root["shield" + owner.tank_number]) == false)) { hit = false; } if (first) { _parent._x = x + (vox * t); _parent._y = (y - (voy * t)) + ((g / 2) * (t * t)); vox = vox + (_root.vitr / 600); if (hitTest(_root["land" + Math.round(_parent._x)])) { first = false; second = true; } t = t + 0.1; } if (second) { lastx = Math.round(_parent._x); if (start) { cur = _root["land" + Math.round(_parent._x)]; cury = cur._y - (cur._height / 2); _parent._y = cury; curl = _root["land" + (Math.round(_parent._x) - 1)]; curly = curl._y - (curl._height / 2); curp = _root["land" + (Math.round(_parent._x) + 1)]; curpy = curp._y - (curp._height / 2); if ((cury >= curly) || (cury >= curpy)) { if (cury <= curly) { smer = "right"; } else if (cury <= curpy) { smer = "left"; } } else { second = false; play(); } start = false; } if (smer == "left") { cur = _root["land" + Math.round(_parent._x)]; cury = cur._y - (cur._height / 2); _parent._y = cury; curl = _root["land" + (Math.round(_parent._x) - 1)]; curly = curl._y - (curl._height / 2); if (cury >= curly) { _parent._x = _parent._x - 1; } else { second = false; play(); } } else if (smer == "right") { cur = _root["land" + Math.round(_parent._x)]; cury = cur._y - (cur._height / 2); _parent._y = cury; curp = _root["land" + (Math.round(_parent._x) + 1)]; curpy = curp._y - (curp._height / 2); if (cury >= curpy) { _parent._x = _parent._x + 1; } else { second = false; play(); } } if (Math.round(lastx) == Math.round(_parent._x)) { if (_parent._x > owner._x) { smer = "right"; } else { smer = "left"; } } } }
Instance of Symbol 51 MovieClip "strela" in Symbol 53 MovieClip [hroller_g] Frame 1
onClipEvent (load) { stop(); first = true; second = false; start = true; depth = 10040; uhel = (-_parent._rotation) + 90; g = 9.81; t = 0; x = _parent._x; hit = true; y = _parent._y; vox = Math.cos((Math.PI/180) * uhel) * vo; voy = Math.sin(0.017 * uhel) * vo; _root.shot_flying = true; } onClipEvent (enterFrame) { if (((_parent._x < 0) || (_parent._x > 550)) || (_parent._y > 400)) { _root.shot_flying = false; _root.test(); _parent.removeMovieClip(); } i = 1; while (i <= _root.pocet_hracu) { if (hitTest(_root["t" + i]) && (i != owner.tank_number)) { play(); first = false; second = false; } if ((hitTest(owner) || (hitTest(_root["shield" + owner.tank_number]))) && (hit == false)) { play(); first = false; second = false; } i++; } if ((!hitTest(owner)) && (hitTest(_root["shield" + owner.tank_number]) == false)) { hit = false; } if (first) { _parent._x = x + (vox * t); _parent._y = (y - (voy * t)) + ((g / 2) * (t * t)); vox = vox + (_root.vitr / 600); if (hitTest(_root["land" + Math.round(_parent._x)])) { first = false; second = true; } t = t + 0.1; } if (second) { lastx = Math.round(_parent._x); if (start) { cur = _root["land" + Math.round(_parent._x)]; cury = cur._y - (cur._height / 2); _parent._y = cury; curl = _root["land" + (Math.round(_parent._x) - 1)]; curly = curl._y - (curl._height / 2); curp = _root["land" + (Math.round(_parent._x) + 1)]; curpy = curp._y - (curp._height / 2); if ((cury <= curly) || (cury <= curpy)) { if (cury <= curly) { smer = "left"; } else if (cury <= curpy) { smer = "right"; } } else { second = false; play(); } start = false; } if (smer == "left") { cur = _root["land" + Math.round(_parent._x)]; cury = cur._y - (cur._height / 2); _parent._y = cury; curl = _root["land" + (Math.round(_parent._x) - 1)]; curly = curl._y - (curl._height / 2); if (cury <= curly) { _parent._x = _parent._x - 1; } else { second = false; play(); } } else if (smer == "right") { cur = _root["land" + Math.round(_parent._x)]; cury = cur._y - (cur._height / 2); _parent._y = cury; curp = _root["land" + (Math.round(_parent._x) + 1)]; curpy = curp._y - (curp._height / 2); if (cury <= curpy) { _parent._x = _parent._x + 1; } else { second = false; play(); } } if (Math.round(lastx) == Math.round(_parent._x)) { if (_parent._x > owner._x) { smer = right; } else { smer = left; } } } }
Symbol 54 MovieClip Frame 1
function bum() { par1 = 30; par2 = 15; par3 = 15; i = 0; while (i < _width) { cur = _root["land" + Math.round((_parent._x - (_width / 2)) + i)]; xx = _parent._x; yy = _parent._y; x = cur._x; y = cur._y; h = cur._y - (cur._height / 2); if (hitTest(x, h, true)) { vzr = Math.cos(0.017 * (Math.sqrt(((xx - x) * (xx - x)) + ((yy - h) * (yy - h))) * (180 / _width))); cur._height = cur._height - (par1 * vzr); cur._y = cur._y + (par2 * vzr); } else if (hitTest(_root["land" + Math.round((xx - (_width / 2)) + i)])) { cur._height = cur._height - (par3 * Math.cos(0.017 * (Math.abs(xx - x) * (180 / _width)))); cur._y = cur._y + ((par3 * Math.cos(0.017 * (Math.abs(xx - x) * (180 / _width)))) / 2); } i++; } par4 = 13; par5 = 18; owner.last_shot_x = _parent._x; owner.last_shot_y = _parent._y; owner.last_shot_out = false; i = 1; while (i <= _root.pocet_hracu) { current = _root["tank" + i]; if (hitTest(current) || (hitTest(_root["shield" + i]))) { x = _parent._x - current._x; y = _parent._y - current._y; vzd = Math.sqrt((x * x) + (y * y)); if (!current.sh_active) { damg = Math.round(_width / ((vzd + 1) / par4)); if (damg > _root["tank_" + i].energy) { damg = _root["tank_" + i].energy; } } else { damg = Math.round(_width / (((vzd / 2) + 1) / par5)); } current.damage(damg, owner); } i++; } } stop();
Symbol 54 MovieClip Frame 6
bum(); f._rotation = f._rotation - _parent._rotation;
Symbol 54 MovieClip Frame 12
_root.test(); _parent.removeMovieClip();
Instance of Symbol 54 MovieClip "strela" in Symbol 55 MovieClip [roller2_g] Frame 1
onClipEvent (load) { stop(); first = true; second = false; start = true; depth = 10040; uhel = (-_parent._rotation) + 90; g = 9.81; t = 0; x = _parent._x; hit = true; y = _parent._y; vox = Math.cos((Math.PI/180) * uhel) * vo; voy = Math.sin(0.017 * uhel) * vo; _root.shot_flying = true; } onClipEvent (enterFrame) { if (((_parent._x < 0) || (_parent._x > 550)) || (_parent._y > 400)) { _root.shot_flying = false; _root.test(); _parent.removeMovieClip(); } i = 1; while (i <= _root.pocet_hracu) { if (hitTest(_root["t" + i]) && (i != owner.tank_number)) { play(); first = false; second = false; } if ((hitTest(owner) || (hitTest(_root["shield" + owner.tank_number]))) && (hit == false)) { play(); first = false; second = false; } i++; } if ((!hitTest(owner)) && (hitTest(_root["shield" + owner.tank_number]) == false)) { hit = false; } if (first) { _parent._x = x + (vox * t); _parent._y = (y - (voy * t)) + ((g / 2) * (t * t)); vox = vox + (_root.vitr / 600); if (hitTest(_root["land" + Math.round(_parent._x)])) { first = false; second = true; } t = t + 0.1; } if (second) { lastx = Math.round(_parent._x); if (start) { cur = _root["land" + Math.round(_parent._x)]; cury = cur._y - (cur._height / 2); _parent._y = cury; curl = _root["land" + (Math.round(_parent._x) - 1)]; curly = curl._y - (curl._height / 2); curp = _root["land" + (Math.round(_parent._x) + 1)]; curpy = curp._y - (curp._height / 2); if ((cury >= curly) || (cury >= curpy)) { if (cury <= curly) { smer = "right"; } else if (cury <= curpy) { smer = "left"; } } else { second = false; play(); } start = false; } if (smer == "left") { cur = _root["land" + Math.round(_parent._x)]; cury = cur._y - (cur._height / 2); _parent._y = cury; curl = _root["land" + (Math.round(_parent._x) - 1)]; curly = curl._y - (curl._height / 2); if (cury >= curly) { _parent._x = _parent._x - 1; } else { second = false; play(); } } else if (smer == "right") { cur = _root["land" + Math.round(_parent._x)]; cury = cur._y - (cur._height / 2); _parent._y = cury; curp = _root["land" + (Math.round(_parent._x) + 1)]; curpy = curp._y - (curp._height / 2); if (cury >= curpy) { _parent._x = _parent._x + 1; } else { second = false; play(); } } if (Math.round(lastx) == Math.round(_parent._x)) { if (_parent._x > owner._x) { smer = "right"; } else { smer = "left"; } } } }
Instance of Symbol 54 MovieClip "strela" in Symbol 56 MovieClip [roller_g] Frame 1
onClipEvent (load) { stop(); first = true; second = false; start = true; depth = 10040; uhel = (-_parent._rotation) + 90; g = 9.81; t = 0; x = _parent._x; hit = true; y = _parent._y; vox = Math.cos((Math.PI/180) * uhel) * vo; voy = Math.sin(0.017 * uhel) * vo; _root.shot_flying = true; } onClipEvent (enterFrame) { if (((_parent._x < 0) || (_parent._x > 550)) || (_parent._y > 400)) { _root.shot_flying = false; _root.test(); _parent.removeMovieClip(); } i = 1; while (i <= _root.pocet_hracu) { if (hitTest(_root["t" + i]) && (i != owner.tank_number)) { play(); first = false; second = false; } if ((hitTest(owner) || (hitTest(_root["shield" + owner.tank_number]))) && (hit == false)) { play(); first = false; second = false; } i++; } if ((!hitTest(owner)) && (hitTest(_root["shield" + owner.tank_number]) == false)) { hit = false; } if (first) { _parent._x = x + (vox * t); _parent._y = (y - (voy * t)) + ((g / 2) * (t * t)); vox = vox + (_root.vitr / 600); if (hitTest(_root["land" + Math.round(_parent._x)])) { first = false; second = true; } t = t + 0.1; } if (second) { lastx = Math.round(_parent._x); if (start) { cur = _root["land" + Math.round(_parent._x)]; cury = cur._y - (cur._height / 2); _parent._y = cury; curl = _root["land" + (Math.round(_parent._x) - 1)]; curly = curl._y - (curl._height / 2); curp = _root["land" + (Math.round(_parent._x) + 1)]; curpy = curp._y - (curp._height / 2); if ((cury <= curly) || (cury <= curpy)) { if (cury <= curly) { smer = "left"; } else if (cury <= curpy) { smer = "right"; } } else { second = false; play(); } start = false; } if (smer == "left") { cur = _root["land" + Math.round(_parent._x)]; cury = cur._y - (cur._height / 2); _parent._y = cury; curl = _root["land" + (Math.round(_parent._x) - 1)]; curly = curl._y - (curl._height / 2); if (cury <= curly) { _parent._x = _parent._x - 1; } else { second = false; play(); } } else if (smer == "right") { cur = _root["land" + Math.round(_parent._x)]; cury = cur._y - (cur._height / 2); _parent._y = cury; curp = _root["land" + (Math.round(_parent._x) + 1)]; curpy = curp._y - (curp._height / 2); if (cury <= curpy) { _parent._x = _parent._x + 1; } else { second = false; play(); } } if (Math.round(lastx) == Math.round(_parent._x)) { if (_parent._x > owner._x) { smer = right; } else { smer = left; } } } }
Symbol 57 MovieClip Frame 1
function bum() { par1 = 15; par2 = 7.5; par3 = 15; i = 0; while (i < _width) { cur = _root["land" + Math.round((_parent._x - (_width / 2)) + i)]; xx = _parent._x; yy = _parent._y; x = cur._x; y = cur._y; h = cur._y - (cur._height / 2); if (hitTest(x, h, true)) { vzr = Math.cos(0.017 * (Math.sqrt(((xx - x) * (xx - x)) + ((yy - h) * (yy - h))) * (180 / _width))); cur._height = cur._height - (par1 * vzr); cur._y = cur._y + (par2 * vzr); } else if (hitTest(_root["land" + Math.round((xx - (_width / 2)) + i)])) { cur._height = cur._height - (par3 * Math.cos(0.017 * (Math.abs(xx - x) * (180 / _width)))); cur._y = cur._y + ((par3 * Math.cos(0.017 * (Math.abs(xx - x) * (180 / _width)))) / 2); } i++; } par4 = 13; par5 = 20; owner.last_shot_x = _parent._x; owner.last_shot_y = _parent._y; owner.last_shot_out = false; i = 1; while (i <= _root.pocet_hracu) { current = _root["tank" + i]; if (hitTest(current) || (hitTest(_root["shield" + i]))) { x = _parent._x - current._x; y = _parent._y - current._y; vzd = Math.sqrt((x * x) + (y * y)); if (!current.sh_active) { damg = Math.round(_width / ((vzd + 1) / par4)); if (damg > _root["tank_" + i].energy) { damg = _root["tank_" + i].energy; } } else { damg = Math.round(_width / (((vzd / 2) + 1) / par5)); } current.damage(damg, owner); } i++; } } stop();
Symbol 57 MovieClip Frame 6
bum(); f._rotation = f._rotation - _parent._rotation;
Symbol 57 MovieClip Frame 12
_root.test(); _parent.removeMovieClip();
Instance of Symbol 57 MovieClip "strela" in Symbol 58 MovieClip [broller2_g] Frame 1
onClipEvent (load) { stop(); first = true; second = false; start = true; depth = 10040; uhel = (-_parent._rotation) + 90; g = 9.81; t = 0; x = _parent._x; hit = true; y = _parent._y; vox = Math.cos((Math.PI/180) * uhel) * vo; voy = Math.sin(0.017 * uhel) * vo; _root.shot_flying = true; } onClipEvent (enterFrame) { if (((_parent._x < 0) || (_parent._x > 550)) || (_parent._y > 400)) { _root.shot_flying = false; _root.test(); _parent.removeMovieClip(); } i = 1; while (i <= _root.pocet_hracu) { if (hitTest(_root["t" + i]) && (i != owner.tank_number)) { play(); first = false; second = false; } if ((hitTest(owner) || (hitTest(_root["shield" + owner.tank_number]))) && (hit == false)) { play(); first = false; second = false; } i++; } if ((!hitTest(owner)) && (hitTest(_root["shield" + owner.tank_number]) == false)) { hit = false; } if (first) { _parent._x = x + (vox * t); _parent._y = (y - (voy * t)) + ((g / 2) * (t * t)); vox = vox + (_root.vitr / 600); if (hitTest(_root["land" + Math.round(_parent._x)])) { first = false; second = true; } t = t + 0.1; } if (second) { lastx = Math.round(_parent._x); if (start) { cur = _root["land" + Math.round(_parent._x)]; cury = cur._y - (cur._height / 2); _parent._y = cury; curl = _root["land" + (Math.round(_parent._x) - 1)]; curly = curl._y - (curl._height / 2); curp = _root["land" + (Math.round(_parent._x) + 1)]; curpy = curp._y - (curp._height / 2); if ((cury >= curly) || (cury >= curpy)) { if (cury <= curly) { smer = "right"; } else if (cury <= curpy) { smer = "left"; } } else { second = false; play(); } start = false; } if (smer == "left") { cur = _root["land" + Math.round(_parent._x)]; cury = cur._y - (cur._height / 2); _parent._y = cury; curl = _root["land" + (Math.round(_parent._x) - 1)]; curly = curl._y - (curl._height / 2); if (cury >= curly) { _parent._x = _parent._x - 1; } else { second = false; play(); } } else if (smer == "right") { cur = _root["land" + Math.round(_parent._x)]; cury = cur._y - (cur._height / 2); _parent._y = cury; curp = _root["land" + (Math.round(_parent._x) + 1)]; curpy = curp._y - (curp._height / 2); if (cury >= curpy) { _parent._x = _parent._x + 1; } else { second = false; play(); } } if (Math.round(lastx) == Math.round(_parent._x)) { if (_parent._x > owner._x) { smer = "right"; } else { smer = "left"; } } } }
Instance of Symbol 57 MovieClip "strela" in Symbol 59 MovieClip [broller_g] Frame 1
onClipEvent (load) { stop(); first = true; second = false; start = true; depth = 10040; uhel = (-_parent._rotation) + 90; g = 9.81; t = 0; x = _parent._x; hit = true; y = _parent._y; vox = Math.cos((Math.PI/180) * uhel) * vo; voy = Math.sin(0.017 * uhel) * vo; _root.shot_flying = true; } onClipEvent (enterFrame) { if (((_parent._x < 0) || (_parent._x > 550)) || (_parent._y > 400)) { _root.shot_flying = false; _root.test(); _parent.removeMovieClip(); } i = 1; while (i <= _root.pocet_hracu) { if (hitTest(_root["t" + i]) && (i != owner.tank_number)) { play(); first = false; second = false; } if ((hitTest(owner) || (hitTest(_root["shield" + owner.tank_number]))) && (hit == false)) { play(); first = false; second = false; } i++; } if ((!hitTest(owner)) && (hitTest(_root["shield" + owner.tank_number]) == false)) { hit = false; } if (first) { _parent._x = x + (vox * t); _parent._y = (y - (voy * t)) + ((g / 2) * (t * t)); vox = vox + (_root.vitr / 600); if (hitTest(_root["land" + Math.round(_parent._x)])) { first = false; second = true; } t = t + 0.1; } if (second) { lastx = Math.round(_parent._x); if (start) { cur = _root["land" + Math.round(_parent._x)]; cury = cur._y - (cur._height / 2); _parent._y = cury; curl = _root["land" + (Math.round(_parent._x) - 1)]; curly = curl._y - (curl._height / 2); curp = _root["land" + (Math.round(_parent._x) + 1)]; curpy = curp._y - (curp._height / 2); if ((cury <= curly) || (cury <= curpy)) { if (cury <= curly) { smer = "left"; } else if (cury <= curpy) { smer = "right"; } } else { second = false; play(); } start = false; } if (smer == "left") { cur = _root["land" + Math.round(_parent._x)]; cury = cur._y - (cur._height / 2); _parent._y = cury; curl = _root["land" + (Math.round(_parent._x) - 1)]; curly = curl._y - (curl._height / 2); if (cury <= curly) { _parent._x = _parent._x - 1; } else { second = false; play(); } } else if (smer == "right") { cur = _root["land" + Math.round(_parent._x)]; cury = cur._y - (cur._height / 2); _parent._y = cury; curp = _root["land" + (Math.round(_parent._x) + 1)]; curpy = curp._y - (curp._height / 2); if (cury <= curpy) { _parent._x = _parent._x + 1; } else { second = false; play(); } } if (Math.round(lastx) == Math.round(_parent._x)) { if (_parent._x > owner._x) { smer = right; } else { smer = left; } } } }
Symbol 60 MovieClip Frame 1
stop();
Symbol 60 MovieClip Frame 2
test_ = true; i = 0; while (i < 5) { if (this["shot" + i] != true) { test_ = false; break; } i++; } if (test_) { gotoAndStop (4); }
Symbol 60 MovieClip Frame 3
gotoAndPlay(_currentframe - 1);
Symbol 60 MovieClip Frame 4
_root.shot_flying = false; _root.test(); _parent.removeMovieClip();
Instance of Symbol 60 MovieClip "strela" in Symbol 61 MovieClip [astrike_g] Frame 1
onClipEvent (load) { f = false; _root[_root.na_rade._name + "_hlaven"].gotoAndStop(1); stop(); Mouse.hide(); _root.attachMovie("astrikecur", "cursor", 1100000); startDrag (_root.cursor, true); uhel = 0; } onClipEvent (mouseUp) { if (!f) { f = true; stopDrag(); _root.cursor._x = -20; Mouse.show(); x = _root._xmouse; i = 0; while (i < 5) { _root.attachMovie("amissile", "strela" + i, 1001 + i); _root["strela" + i].strela.num = i; _root["strela" + i].strela.x = x; _root["strela" + i].strela.uhel = uhel; _root["strela" + i].strela.owner = owner; i++; } gotoAndPlay (2); } } onClipEvent (keyDown) { if (Key.getCode() == 37) { uhel = 0; _root.cursor._xscale = 100; } else if (Key.getCode() == 39) { uhel = 180; _root.cursor._xscale = -100; } }
Symbol 62 MovieClip Frame 1
function bum() { par1 = 15; par2 = 7.5; par3 = 15; i = 0; while (i < _width) { cur = _root["land" + Math.round((_parent._x - (_width / 2)) + i)]; xx = _parent._x; yy = _parent._y; x = cur._x; y = cur._y; h = cur._y - (cur._height / 2); if (hitTest(x, h, true)) { vzr = Math.cos(0.017 * (Math.sqrt(((xx - x) * (xx - x)) + ((yy - h) * (yy - h))) * (180 / _width))); cur._height = cur._height - (par1 * vzr); cur._y = cur._y + (par2 * vzr); } else if (hitTest(_root["land" + Math.round((xx - (_width / 2)) + i)])) { cur._height = cur._height - (par3 * Math.cos(0.017 * (Math.abs(xx - x) * (180 / _width)))); cur._y = cur._y + ((par3 * Math.cos(0.017 * (Math.abs(xx - x) * (180 / _width)))) / 2); } i++; } par4 = 13; par5 = 18; owner.last_shot_x = _parent._x; owner.last_shot_y = _parent._y; owner.last_shot_out = false; i = 1; while (i <= _root.pocet_hracu) { current = _root["tank" + i]; if (hitTest(current) || (hitTest(_root["shield" + i]))) { x = _parent._x - current._x; y = _parent._y - current._y; vzd = Math.sqrt((x * x) + (y * y)); if (!current.sh_active) { damg = Math.round(_width / ((vzd + 1) / par4)); if (damg > _root["tank_" + i].energy) { damg = _root["tank_" + i].energy; } } else { damg = Math.round(_width / (((vzd / 2) + 1) / par5)); } current.damage(damg, owner); } i++; } } stop();
Symbol 62 MovieClip Frame 6
bum(); f._rotation = f._rotation - _parent._rotation;
Symbol 62 MovieClip Frame 12
_root.test(); _parent.removeMovieClip();
Instance of Symbol 62 MovieClip "strela" in Symbol 63 MovieClip [missile_g] Frame 1
onClipEvent (load) { stop(); depth = 10040; uhel = (-_parent._rotation) + 90; g = 9.81; t = 0; x = _parent._x; hit = true; y = _parent._y; vox = Math.cos((Math.PI/180) * uhel) * vo; voy = Math.sin(0.017 * uhel) * vo; _root.shot_flying = true; } onClipEvent (enterFrame) { if (((_parent._x < 0) || (_parent._x > 550)) || (_y > 400)) { _root.shot_flying = false; owner.last_shot_x = _parent._x; owner.last_shot_y = _parent._y; owner.last_shot_out = true; _root.test(); _parent.removeMovieClip(); } if (_currentframe == 1) { _parent._x = x + (vox * t); _parent._y = (y - (voy * t)) + ((g / 2) * (t * t)); vox = vox + (_root.vitr / 600); } if (hitTest(_root["land" + Math.round(_parent._x)])) { play(); } i = 1; while (i <= _root.pocet_hracu) { if (hitTest(_root["t" + i]) && (i != owner.tank_number)) { play(); } if ((hitTest(owner) || (hitTest(_root["shield" + owner.tank_number]))) && (hit == false)) { play(); } i++; } if ((!hitTest(owner)) && (hit)) { _parent.swapDepths(depth); } if (((!hitTest(owner)) && (hitTest(_root["shield" + owner.tank_number]) == false)) && (hit == true)) { hit = false; } t = t + 0.1; }
Symbol 64 MovieClip Frame 1
function bum() { par1 = 15; par2 = 7.5; par3 = 15; i = 0; while (i < _width) { cur = _root["land" + Math.round((_parent._x - (_width / 2)) + i)]; xx = _parent._x; yy = _parent._y; x = cur._x; y = cur._y; h = cur._y - (cur._height / 2); if (hitTest(x, h, true)) { vzr = Math.cos(0.017 * (Math.sqrt(((xx - x) * (xx - x)) + ((yy - h) * (yy - h))) * (180 / _width))); cur._height = cur._height - (par1 * vzr); cur._y = cur._y + (par2 * vzr); } else if (hitTest(_root["land" + Math.round((xx - (_width / 2)) + i)])) { cur._height = cur._height - (par3 * Math.cos(0.017 * (Math.abs(xx - x) * (180 / _width)))); cur._y = cur._y + ((par3 * Math.cos(0.017 * (Math.abs(xx - x) * (180 / _width)))) / 2); } i++; } par4 = 5; par5 = 13; owner.last_shot_x = _parent._x; owner.last_shot_y = _parent._y; owner.last_shot_out = false; i = 1; while (i <= _root.pocet_hracu) { current = _root["tank" + i]; if (hitTest(current) || (hitTest(_root["shield" + i]))) { x = _parent._x - current._x; y = _parent._y - current._y; vzd = Math.sqrt((x * x) + (y * y)); if (!current.sh_active) { damg = Math.round(_width / ((vzd + 1) / par4)); if (damg > _root["tank_" + i].energy) { damg = _root["tank_" + i].energy; } } else { damg = Math.round(_width / (((vzd / 2) + 1) / par5)); } current.damage(damg, owner); } i++; } } stop();
Symbol 64 MovieClip Frame 6
bum(); f._rotation = f._rotation - _parent._rotation;
Symbol 64 MovieClip Frame 12
_root.shot_flying = false; _root.test(); _parent.removeMovieClip();
Instance of Symbol 64 MovieClip "strela" in Symbol 65 MovieClip [bmissile_g] Frame 1
onClipEvent (load) { stop(); depth = 10040; uhel = (-_parent._rotation) + 90; g = 9.81; t = 0; x = _parent._x; hit = true; y = _parent._y; vox = Math.cos((Math.PI/180) * uhel) * vo; voy = Math.sin(0.017 * uhel) * vo; _root.shot_flying = true; } onClipEvent (enterFrame) { if (((_parent._x < 0) || (_parent._x > 550)) || (_y > 400)) { _root.shot_flying = false; owner.last_shot_x = _parent._x; owner.last_shot_y = _parent._y; owner.last_shot_out = true; _root.test(); _parent.removeMovieClip(); } if (_currentframe == 1) { _parent._x = x + (vox * t); _parent._y = (y - (voy * t)) + ((g / 2) * (t * t)); vox = vox + (_root.vitr / 600); } if (hitTest(_root["land" + Math.round(_parent._x)])) { play(); } i = 1; while (i <= _root.pocet_hracu) { if (hitTest(_root["t" + i]) && (i != owner.tank_number)) { play(); } if ((hitTest(owner) || (hitTest(_root["shield" + owner.tank_number]))) && (hit == false)) { play(); } i++; } if ((!hitTest(owner)) && (hit)) { _parent.swapDepths(depth); } if (((!hitTest(owner)) && (hitTest(_root["shield" + owner.tank_number]) == false)) && (hit == true)) { hit = false; } t = t + 0.1; }
Symbol 69 MovieClip Frame 1
this._x = this._x + (_root.vitr / 80); if (this._x > 360) { this._x = -360; } if (this._x < -360) { this._x = 360; }
Symbol 69 MovieClip Frame 2
gotoAndPlay (1);
Symbol 78 MovieClip Frame 1
this._x = this._x + (_root.vitr / 80); if (this._x > 360) { this._x = -360; } if (this._x < -360) { this._x = 360; }
Symbol 78 MovieClip Frame 2
gotoAndPlay (1);
Instance of Symbol 78 MovieClip in Symbol 90 MovieClip [krajina3] Frame 1
onClipEvent (enterFrame) { this._x = this._x + 0.2; if (this._x > 460) { this._x = -60; } }
Instance of Symbol 78 MovieClip in Symbol 90 MovieClip [krajina3] Frame 1
onClipEvent (enterFrame) { this._x = this._x + 0.2; if (this._x > 460) { this._x = -60; } }
Symbol 92 MovieClip [hlaven] Frame 1
stop();
Symbol 117 Button
on (release, keyPress "q") { if (_root.na_rade.type == "tank") { view_backward(); } }
Symbol 118 Button
on (release, keyPress "w") { if (_root.na_rade.type == "tank") { view_forward(); } }
Symbol 123 MovieClip Frame 1
function change_icon() { this.attachMovie(_root.weapons[_root["tank_" + _root.na_rade.tank_number].cur_gun][0], "gun_ico", 1000101); gun_ico._x = -55; gun_ico._y = 0; name = _root.weapons[_root["tank_" + _root.na_rade.tank_number].cur_gun][1]; count = _root["tank_" + _root.na_rade.tank_number].guns[_root["tank_" + _root.na_rade.tank_number].cur_gun]; }
Symbol 126 Button
on (press) { if (_root.na_rade.type == "tank") { if (_root["tank_" + _root.na_rade.tank_number].energy <= 100) { startDrag ("", false, 0, 100 - _root["tank_" + _root.na_rade.tank_number].energy, 0, 100); } else { startDrag ("", false, 0, 0, 0, 100); } _parent.sdrag = true; } } on (release, releaseOutside) { _parent.sdrag = false; stopDrag(); }
Symbol 133 Button
on (press) { if ((_root["tank_" + _root.na_rade.tank_number].fuel > 0) && (_root.na_rade.playing)) { left = true; } } on (release, releaseOutside) { left = false; }
Symbol 134 Button
on (press) { if ((_root["tank_" + _root.na_rade.tank_number].fuel > 0) && (_root.na_rade.playing)) { right = true; } } on (release, releaseOutside) { right = false; }
Symbol 140 Button
on (press) { if (_root.na_rade.type == "tank") { startDrag ("", true, -90, 0, 90, 0); _parent.sdrag = true; } } on (release, releaseOutside) { stopDrag(); _parent.sdrag = false; }
Symbol 147 Button
on (release) { if (_root.na_rade.playing && (_root.na_rade.type == "tank")) { _root.na_rade.fire(); } }
Symbol 150 MovieClip Frame 1
stop();
Symbol 150 MovieClip Frame 2
stop();
Symbol 152 Button
on (release) { _quality = "HIGH"; quality = "HIGH"; rad1.gotoAndStop(2); rad2.gotoAndStop(1); rad3.gotoAndStop(1); }
Symbol 153 Button
on (release) { _quality = "MEDIUM"; quality = "MEDIUM"; rad1.gotoAndStop(1); rad3.gotoAndStop(1); rad2.gotoAndStop(2); }
Symbol 154 Button
on (release) { _quality = "LOW"; quality = "LOW"; rad1.gotoAndStop(1); rad2.gotoAndStop(1); rad3.gotoAndStop(2); }
Symbol 178 Button
on (release) { if ((_root["tank_" + _root.na_rade.tank_number].energy + 10) <= _root["tank_" + _root.na_rade.tank_number].max_energy) { _root["tank_" + _root.na_rade.tank_number].energy = _root["tank_" + _root.na_rade.tank_number].energy + 10; } else { _root["tank_" + _root.na_rade.tank_number].energy = _root["tank_" + _root.na_rade.tank_number].max_energy; } _root["tank_" + _root.na_rade.tank_number].specials[1]--; refresh(); }
Symbol 181 MovieClip Frame 1
stop();
Symbol 186 Button
on (release) { _root.na_rade.par = true; refresh(); }
Symbol 190 Button
on (release) { _root.na_rade.par = false; refresh(); }
Symbol 191 MovieClip Frame 1
stop();
Symbol 196 Button
on (release) { _root["tank_" + _root.na_rade.tank_number].specials[7]--; Mouse.hide(); _root.attachMovie("teleport_a", "tel", 10100); startDrag ("_root.tel", true); gotoAndStop (2); }
Symbol 199 MovieClip Frame 1
stop();
Symbol 203 Button
on (release) { gotoAndStop (2); }
Symbol 209 Button
on (rollOver) { gotoAndStop (2); } on (rollOut) { gotoAndStop (1); } on (release) { _root.na_rade.activate_shield(1); _parent.refresh(); }
Symbol 212 MovieClip Frame 1
stop(); refresh();
Symbol 212 MovieClip Frame 2
count = _root["tank_" + _root.na_rade.tank_number].specials[3];
Symbol 213 Button
on (rollOver) { gotoAndStop (2); } on (rollOut) { gotoAndStop (1); } on (release) { _root.na_rade.activate_shield(2); _parent.refresh(); }
Symbol 215 MovieClip Frame 1
stop(); refresh();
Symbol 215 MovieClip Frame 2
count = _root["tank_" + _root.na_rade.tank_number].specials[4];
Symbol 220 Button
on (rollOver) { gotoAndStop (2); } on (rollOut) { gotoAndStop (1); } on (release) { _root.na_rade.activate_shield(3); _parent.refresh(); }
Symbol 222 MovieClip Frame 1
stop(); refresh();
Symbol 222 MovieClip Frame 2
count = _root["tank_" + _root.na_rade.tank_number].specials[5];
Symbol 226 Button
on (rollOver) { gotoAndStop (2); } on (rollOut) { gotoAndStop (1); } on (release) { _root.na_rade.activate_shield(4); _parent.refresh(); }
Symbol 229 MovieClip Frame 1
stop(); refresh();
Symbol 229 MovieClip Frame 2
count = _root["tank_" + _root.na_rade.tank_number].specials[6];
Symbol 233 Button
on (release) { _root.na_rade.disable_shield(); _parent.refresh(); }
Symbol 234 MovieClip Frame 1
stop(); refresh();
Symbol 235 MovieClip Frame 1
stop(); _parent.sh_active = false;
Symbol 235 MovieClip Frame 2
_parent.sh_active = true;
Instance of Symbol 205 MovieClip in Symbol 235 MovieClip Frame 2
onClipEvent (mouseMove) { if ((((_xmouse > (_x + (_width / 2))) || (_xmouse < (_x - (_width / 2)))) || (_ymouse > (_y + (_height / 2)))) || (_ymouse < (_y - (_height / 2)))) { _parent.gotoAndStop(1); } }
Instance of Symbol 212 MovieClip "sh1" in Symbol 235 MovieClip Frame 2
onClipEvent (load) { function refresh() { if ((_root["tank_" + _root.na_rade.tank_number].specials[3] > 0) && (_root.na_rade.sh_active == false)) { gotoAndStop (1); } else { gotoAndStop (3); } } }
Instance of Symbol 215 MovieClip "sh2" in Symbol 235 MovieClip Frame 2
onClipEvent (load) { function refresh() { if ((_root["tank_" + _root.na_rade.tank_number].specials[4] > 0) && (_root.na_rade.sh_active == false)) { gotoAndStop (1); } else { gotoAndStop (3); } } }
Instance of Symbol 222 MovieClip "sh3" in Symbol 235 MovieClip Frame 2
onClipEvent (load) { function refresh() { if ((_root["tank_" + _root.na_rade.tank_number].specials[5] > 0) && (_root.na_rade.sh_active == false)) { gotoAndStop (1); } else { gotoAndStop (3); } } }
Instance of Symbol 229 MovieClip "sh4" in Symbol 235 MovieClip Frame 2
onClipEvent (load) { function refresh() { if ((_root["tank_" + _root.na_rade.tank_number].specials[6] > 0) && (_root.na_rade.sh_active == false)) { gotoAndStop (1); } else { gotoAndStop (3); } } }
Instance of Symbol 234 MovieClip "sh_d" in Symbol 235 MovieClip Frame 2
onClipEvent (load) { function refresh() { if (_root.na_rade.sh_active) { gotoAndStop (1); } else { gotoAndStop (2); } } }
Symbol 235 MovieClip Frame 3
stop();
Symbol 236 MovieClip [panel] Frame 1
function player_changed() { ico.change_icon(); sort_score(); refresh_icons(); } function refresh_icons() { repair.refresh(); parachutes.refresh(); teleport.refresh(); shields.refresh(); } function sort_score() { i = 1; while (i < (_root.pocet_hracu + 1)) { this["score" + i].score = _root["tank_" + i].total_score; i++; } i = 1; while (i < (_root.pocet_hracu + 1)) { Set("t" + i, _root.pocet_hracu); i++; } c = 1; while (c < (_root.pocet_hracu + 1)) { i = 1; while (i < (_root.pocet_hracu + 1)) { if ((_root["tank_" + c].total_score >= _root["tank_" + i].total_score) && (c != i)) { this["t" + c] = this["t" + c] - 1; } i++; } c++; } p1 = new Object(); p1.total_score = -1E18; i = 1; while (i < (_root.pocet_hracu + 1)) { if (_root["tank_" + i].total_score > p1.total_score) { p1 = _root["tank_" + i]; this["score" + i]._y = 53.5; } i++; } p2 = new Object(); p2.total_score = -1E19; i = 1; while (i < (_root.pocet_hracu + 1)) { if ((_root["tank_" + i].total_score > p2.total_score) && (p1 != _root["tank_" + i])) { p2 = _root["tank_" + i]; this["score" + i]._y = 69.6; } i++; } p3 = new Object(); p3.total_score = -1E19; i = 1; while (i < (_root.pocet_hracu + 1)) { if (((_root["tank_" + i].total_score > p3.total_score) && (p1 != _root["tank_" + i])) && (p2 != _root["tank_" + i])) { p3 = _root["tank_" + i]; this["score" + i]._y = 86.75; } i++; } p4 = new Object(); p4.total_score = -1E19; i = 1; while (i < (_root.pocet_hracu + 1)) { if ((((_root["tank_" + i].total_score > p4.total_score) && (p1 != _root["tank_" + i])) && (p2 != _root["tank_" + i])) && (p3 != _root["tank_" + i])) { p4 = _root["tank_" + i]; this["score" + i]._y = 103.9; } i++; } p5 = new Object(); p5.total_score = -1E19; i = 1; while (i < (_root.pocet_hracu + 1)) { if (((((_root["tank_" + i].total_score > p5.total_score) && (p1 != _root["tank_" + i])) && (p2 != _root["tank_" + i])) && (p3 != _root["tank_" + i])) && (p4 != _root["tank_" + i])) { p5 = _root["tank_" + i]; this["score" + i]._y = 121.05; } i++; } } cl = new Color(name); i = 1; while (i < (_root.pocet_hracu + 1)) { this.attachMovie("score_tab", "score" + i, 1090000 + i); this["score" + i]._x = 66; this["score" + i]._y = (14.15 * i) + 34.15; this["score" + i].name = _root["tank_" + i].name; this["score" + i].score = _root["tank_" + i].total_score; i++; } player_changed();
Instance of Symbol 123 MovieClip "ico" in Symbol 236 MovieClip [panel] Frame 1
onClipEvent (load) { function view_forward() { d = false; i = _root["tank_" + _root.na_rade.tank_number].cur_gun + 1; while (i <= _root.weapons.length) { if (_root["tank_" + _root.na_rade.tank_number].guns[i] > 0) { _root["tank_" + _root.na_rade.tank_number].cur_gun = i; d = true; this.change_icon(); break; } i++; } if (d == false) { i = 0; while (i <= _root.weapons.length) { if (_root["tank_" + _root.na_rade.tank_number].guns[i] > 0) { _root["tank_" + _root.na_rade.tank_number].cur_gun = i; this.change_icon(); break; } i++; } } } function view_backward() { d = false; i = _root["tank_" + _root.na_rade.tank_number].cur_gun - 1; while (i >= 0) { if (_root["tank_" + _root.na_rade.tank_number].guns[i] > 0) { _root["tank_" + _root.na_rade.tank_number].cur_gun = i; d = true; this.change_icon(); break; } i--; } if (d == false) { i = _root.weapons.length; while (i >= 0) { if (_root["tank_" + _root.na_rade.tank_number].guns[i] > 0) { _root["tank_" + _root.na_rade.tank_number].cur_gun = i; this.change_icon(); break; } i--; } } } }
Instance of Symbol 132 MovieClip "pow" in Symbol 236 MovieClip [panel] Frame 1
onClipEvent (load) { sdrag = false; } onClipEvent (enterFrame) { if (sdrag) { _root.na_rade.power = 100 - Math.round(pow._y); if (pow._y < 0) { pow._y = 0; } } else { pow._y = 100 - _root.na_rade.power; } shadow._y = -_root["tank_" + _root.na_rade.tank_number].energy; }
Instance of Symbol 136 MovieClip "fuel_ar" in Symbol 236 MovieClip [panel] Frame 1
onClipEvent (enterFrame) { if (_root.na_rade.type == "tank") { if (left) { _root.na_rade.move_left(); } else if (right) { _root.na_rade.move_right(); } if (_root["tank_" + _root.na_rade.tank_number].fuel == 0) { left = false; right = false; } } }
Instance of Symbol 142 MovieClip in Symbol 236 MovieClip [panel] Frame 1
onClipEvent (enterFrame) { if (sdrag) { _root.na_rade.rotace = 90 + Math.round(drag._x); } else { drag._x = -90 + _root.na_rade.rotace; } }
Instance of Symbol 150 MovieClip "rad1" in Symbol 236 MovieClip [panel] Frame 1
onClipEvent (load) { if (_quality == "HIGH") { gotoAndStop (2); } else if (_quality == "MEDIUM") { _parent.rad2.gotoAndStop(2); } else if (_quality == "LOW") { _parent.rad3.gotoAndStop(2); } }
Instance of Symbol 181 MovieClip "repair" in Symbol 236 MovieClip [panel] Frame 1
onClipEvent (load) { function refresh() { if (((_root["tank_" + _root.na_rade.tank_number].energy < _root["tank_" + _root.na_rade.tank_number].max_energy) && (_root["tank_" + _root.na_rade.tank_number].specials[1] > 0)) && (_root.na_rade.type == "tank")) { gotoAndStop (1); } else { gotoAndStop (2); } count = _root["tank_" + _root.na_rade.tank_number].specials[1]; } }
Instance of Symbol 191 MovieClip "parachutes" in Symbol 236 MovieClip [panel] Frame 1
onClipEvent (load) { function refresh() { count = _root["tank_" + _root.na_rade.tank_number].specials[0]; if (((count == 0) && (_root.na_rade.par_used == false)) || (_root.na_rade.type == "ai")) { gotoAndStop (3); } else if (_root.na_rade.par) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 199 MovieClip "teleport" in Symbol 236 MovieClip [panel] Frame 1
onClipEvent (load) { function refresh() { count = _root["tank_" + _root.na_rade.tank_number].specials[7]; if ((count > 0) && (_root.na_rade.type == "tank")) { gotoAndStop (1); } else { gotoAndStop (2); } } }
Instance of Symbol 235 MovieClip "shields" in Symbol 236 MovieClip [panel] Frame 1
onClipEvent (load) { function refresh() { if (_root.na_rade.type == "tank") { sh1.refresh(); sh2.refresh(); sh3.refresh(); sh4.refresh(); sh_d.refresh(); } else { gotoAndStop (3); } } }
Symbol 236 MovieClip [panel] Frame 2
if (sh_active) { fuel_ar.gotoAndStop(2); } else { fuel_ar.gotoAndStop(1); } num = _root.na_rade.tank_number; power = _root.power; rotation = _root.rotace; energy = Math.round(_root["tank_" + num].energy); fuel = Math.round(_root["tank_" + num].fuel); kills = _root["tank_" + num].kills; name.name = _root["tank_" + num].name; score = _root["tank_" + num].score; vitr = Math.abs(_root.vitr); vitr_uk._xscale = _root.vitr; tank.hlaven._rotation = _root.na_rade.rotace;
Symbol 236 MovieClip [panel] Frame 3
gotoAndPlay (2);
Symbol 239 MovieClip [blk] Frame 35
this.removeMovieClip();
Symbol 256 Button
on (release) { _root.clona.next_player(); }
Symbol 260 MovieClip [clona] Frame 1
function next_player() { if (cur < _root.pocet_hracu) { cur++; if (_root["tank_" + cur].type == "tank") { view_weapons(); } else { _root["tank_" + cur].buy(); next_player(); } } else { score._visible = false; player._visible = false; buymenu._y = -500; remove_weapons(); _root.gotoAndStop("vytv_ter"); stops = false; projizdi = true; } st = false; i = cur + 1; while (i <= _root.pocet_hracu) { if (_root["tank_" + i].type == "tank") { st = true; break; } i++; } if ((cur == _root.pocet_hracu) || (st == false)) { buymenu.but_capt = "Start!"; } } function purchasing_fc() { view_weapons(); score._visible = true; clr = new Color(player); player._visible = true; clr.setRGB(_root["tank_" + cur].col); buymenu._x = 140; buymenu._y = 80; if (cur == 0) { next_player(); } } function view_weapons() { i = 0; while (i < _root.weapons.length) { this["weapon" + i].removeMovieClip(); i++; } sc = _root["tank_" + cur].score; score.score = sc; player.player = _root["tank_" + cur].name; clr.setRGB(_root["tank_" + cur].col); i = 0; while (i < _root.weapons.length) { this.attachMovie("weapon", "weapon" + i, 1000060 + i); this["weapon" + i].icon_link = _root.weapons[i][0]; this["weapon" + i].caption = _root.weapons[i][1]; this["weapon" + i].price = _root.weapons[i][2]; this["weapon" + i].count = _root.weapons[i][3]; this["weapon" + i].num = i; this["weapon" + i]._x = -140; this["weapon" + i]._y = -140 + (this["weapon" + i]._height * i); i++; } i = 0; while (i < _root.specials.length) { this.attachMovie("special", "special" + i, 1000080 + i); this["special" + i].icon_link = _root.specials[i][0]; this["special" + i].caption = _root.specials[i][1]; this["special" + i].price = _root.specials[i][2]; this["special" + i].count = _root.specials[i][3]; this["special" + i].num = i; this["special" + i]._x = 140; this["special" + i]._y = -140 + (this["special" + i]._height * i); i++; } } function purchase_weapon(num) { _root["tank_" + cur].guns[num] = _root["tank_" + cur].guns[num] + _root.weapons[num][3]; _root["tank_" + cur].score = _root["tank_" + cur].score - _root.weapons[num][2]; view_weapons(); } function purchase_special(num) { _root["tank_" + cur].specials[num] = _root["tank_" + cur].specials[num] + _root.specials[num][3]; _root["tank_" + cur].score = _root["tank_" + cur].score - _root.specials[num][2]; view_weapons(); } function remove_weapons() { i = 0; while (i < 20) { this["weapon" + i].removeMovieClip(); this["special" + i].removeMovieClip(); i++; } } if (ch != true) { speed = 16; k = 920; } cur = 0;
Instance of Symbol 246 MovieClip "l" in Symbol 260 MovieClip [clona] Frame 1
onClipEvent (load) { speed = _parent.speed; first = true; x = _x; k = _parent.k; } onClipEvent (enterFrame) { if (_root.clona.projizdi) { speed = speed - ((137.5 + Math.abs(_x)) / k); if (_x > -137.5) { _x = -137.5; if (_parent.frame != null) { _root.gotoAndStop("alegereJucatori"); } } _x = (_x + speed); if ((speed < 0) && (_x < x)) { if (_parent.stops) { _parent.removeMovieClip(); } else { _root.play(); _parent.removeMovieClip(); } } } else if (_x < -137.5) { speed = speed - ((137.5 + Math.abs(_x)) / k); _x = (_x + speed); } else { _x = -137.5; _root.pozadi.removeMovieClip(); _root.panel.removeMovieClip(); if (_parent.purchasing && (first)) { first = false; _parent.purchasing_fc(); } } }
Instance of Symbol 248 MovieClip "score" in Symbol 260 MovieClip [clona] Frame 1
onClipEvent (load) { _visible = false; }
Instance of Symbol 250 MovieClip "player" in Symbol 260 MovieClip [clona] Frame 1
onClipEvent (load) { _visible = false; }
Instance of Symbol 253 MovieClip "r" in Symbol 260 MovieClip [clona] Frame 1
onClipEvent (load) { speed = _parent.speed; k = _parent.k; } onClipEvent (enterFrame) { if (_root.clona.projizdi) { speed = speed - ((137.5 + Math.abs(_x)) / k); _x = (_x - speed); if (_x < 137.5) { _x = 137.5; } } else if (_x > 137.5) { speed = speed - ((137.5 + Math.abs(_x)) / k); _x = (_x - speed); } else { _x = 137; } }
Symbol 263 Button
on (release) { if (price <= _root["tank_" + _root.clona.cur].score) { _root.clona.purchase_special(num); } }
Symbol 269 MovieClip [special] Frame 1
if (price <= _root["tank_" + _root.clona.cur].score) { w_caption = caption; w2_caption = ""; } else { w2_caption = caption; w_caption = ""; } w_price = price; w_count = count; t_count = _root["tank_" + _root.clona.cur].specials[num]; this.attachMovie(icon_link, "icon", 1000120 + num); icon._y = 0.4; icon._x = -74;
Symbol 271 Button
on (release) { if (price <= _root["tank_" + _root.clona.cur].score) { _root.clona.purchase_weapon(num); } }
Symbol 277 MovieClip [weapon] Frame 1
if (price <= _root["tank_" + _root.clona.cur].score) { w_caption = caption; w2_caption = ""; } else { w2_caption = caption; w_caption = ""; } w_price = price; w_count = count; t_count = _root["tank_" + _root.clona.cur].guns[num]; this.attachMovie(icon_link, "icon", 1000060 + num); icon._y = 0.4; icon._x = -74;
Symbol 320 MovieClip [teleport_a] Frame 1
stop(); _root.na_rade.playing = false;
Instance of Symbol 318 MovieClip in Symbol 320 MovieClip [teleport_a] Frame 1
onClipEvent (mouseDown) { stopDrag(); _parent.play(); _parent.tary = _parent._y; _parent.tarx = _parent._x; }
Symbol 320 MovieClip [teleport_a] Frame 10
Mouse.show(); _x = _root.na_rade._x; _y = _root.na_rade._y;
Symbol 320 MovieClip [teleport_a] Frame 17
_root.na_rade._visible = false; _root["shield" + _root.na_rade.tank_number]._visible = false; _root[("tank" + _root.na_rade.tank_number) + "_hlaven"]._visible = false;
Symbol 320 MovieClip [teleport_a] Frame 35
_x = tarx; _y = tary;
Symbol 320 MovieClip [teleport_a] Frame 41
_root.na_rade._visible = true; _root[("tank" + _root.na_rade.tank_number) + "_hlaven"]._visible = true; _root.na_rade._x = _x; _root.na_rade._y = _y; _root[("tank" + _root.na_rade.tank_number) + "_hlaven"]._x = _x; _root[("tank" + _root.na_rade.tank_number) + "_hlaven"]._y = _y - 1; _root["shield" + _root.na_rade.tank_number]._visible = true; _root["shield" + _root.na_rade.tank_number]._x = _x; _root["shield" + _root.na_rade.tank_number]._y = _y;
Symbol 320 MovieClip [teleport_a] Frame 48
_root.test(); this.removeMovieClip();
Symbol 326 MovieClip [weak_sh] Frame 1
function damage(dam, attacker) { en = en - dam; _alpha = Math.round((en / en_max) * 100); if (en <= 0) { _root["tank" + num].sh_active = false; _root["t" + num] = _root["tank" + num]; _root["tank" + num].damage(Math.abs(en) * 2, attacker); this.removeMovieClip(); } } function disable() { this.removeMovieClip(); } en = 100; en_max = 100;
Symbol 328 MovieClip [shield_sh] Frame 1
function damage(dam, attacker) { en = en - dam; _alpha = Math.round((en / en_max) * 100); if (en <= 0) { _root["tank" + num].sh_active = false; _root["t" + num] = _root["tank" + num]; _root["tank" + num].damage(Math.abs(en) * 2, attacker); this.removeMovieClip(); } } function disable() { this.removeMovieClip(); } en = 200; en_max = 200;
Symbol 330 MovieClip [strong_sh] Frame 1
function damage(dam, attacker) { en = en - dam; _alpha = Math.round((en / en_max) * 100); if (en <= 0) { _root["tank" + num].sh_active = false; _root["t" + num] = _root["tank" + num]; _root["tank" + num].damage(Math.abs(en) * 2, attacker); this.removeMovieClip(); } } function disable() { this.removeMovieClip(); } en_max = 400; en = 400;
Symbol 332 MovieClip [super_sh] Frame 1
function damage(dam, attacker) { en = en - dam; _alpha = Math.round((en / en_max) * 100); if (en <= 0) { _root["tank" + num].sh_active = false; _root["t" + num] = _root["tank" + num]; _root["tank" + num].damage(Math.abs(en) * 2, attacker); this.removeMovieClip(); } } function disable() { this.removeMovieClip(); } en = 600; en_max = 600;
Symbol 334 Button
on (release) { getURL ("http://www.freeonlinegames.com/?tanks", "_blank"); }
Symbol 338 MovieClip Frame 1
stop();
Symbol 349 MovieClip Frame 1
stop();
Symbol 359 MovieClip Frame 50
stop(); _parent.play();
Symbol 400 MovieClip Frame 1
stop();
Symbol 400 MovieClip Frame 28
gotoAndPlay ("loop");
Symbol 413 Button
on (release) { if (!_root.released) { m1.gotoAndStop(2); m2.gotoAndStop(1); m3.gotoAndStop(1); m4.gotoAndStop(1); _root.krajina = 1; } }
Symbol 414 Button
on (release) { if (!_root.released) { m1.gotoAndStop(1); m2.gotoAndStop(2); m3.gotoAndStop(1); m4.gotoAndStop(1); _root.krajina = 2; } }
Symbol 415 Button
on (release) { if (!_root.released) { m1.gotoAndStop(1); m2.gotoAndStop(1); m3.gotoAndStop(2); m4.gotoAndStop(1); _root.krajina = 3; } }
Symbol 416 Button
on (release) { if (!_root.released) { m1.gotoAndStop(1); m2.gotoAndStop(1); m3.gotoAndStop(1); m4.gotoAndStop(2); _root.krajina = 0; } }
Instance of Symbol 150 MovieClip "m4" in Symbol 417 MovieClip Frame 1
onClipEvent (load) { gotoAndStop (2); }
Symbol 421 Button
on (release) { if (released == false) { _root.attachMovie("clona", "clona", 1000001); _root.clona._x = 275; _root.clona._y = 200; _root.clona.projizdi = true; _root.clona.frame = 2; _root.clona.stops = true; released = true; } }
Symbol 425 Button
on (release) { if ((_root.pocet_hracu < 5) && (_root.released == false)) { _root.pocet_hracu++; pocet = _root.pocet_hracu; } }
Symbol 426 Button
on (release) { if ((_root.pocet_hracu > 2) && (_root.released == false)) { _root.pocet_hracu--; pocet = _root.pocet_hracu; } }
Symbol 427 MovieClip Frame 1
pocet = _root.pocet_hracu;
Symbol 434 Button
on (release) { targetul1 = ("http://www.freeonlinegames.com/downloads/" + _parent.wynume) + ".exe"; getURL (targetul1); }
Symbol 442 MovieClip Frame 1
stop(); if (_parent.wyaliniere == "Centru") { this.gotoAndStop(2); } if (_parent.wyaliniere == "Dreapta") { this.gotoAndStop(3); }
Symbol 442 MovieClip Frame 2
wxculoarea2 = new Color(but1); myColorTransform = new Object(); myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"}; wxculoarea2.setTransform(myColorTransform);
Symbol 442 MovieClip Frame 3
wxculoarea2 = new Color(but1); myColorTransform = new Object(); myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"}; wxculoarea2.setTransform(myColorTransform);
Symbol 443 Button
on (release) { targetul2 = "http://www.freeonlinegames.com/?" + _parent.wynume; getURL (targetul2, "_blank"); }
Symbol 446 Button
on (release) { targetul2 = "http://www.freeonlinegames.com/?" + _parent.wynume; getURL (targetul2); }
Symbol 451 MovieClip Frame 1
stop(); if (_parent.wyaliniere == "Centru") { this.gotoAndStop(2); } if (_parent.wyaliniere == "Dreapta") { this.gotoAndStop(3); }
Symbol 451 MovieClip Frame 2
wxculoarea2 = new Color(but2); myColorTransform = new Object(); myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"}; wxculoarea2.setTransform(myColorTransform);
Symbol 451 MovieClip Frame 3
wxculoarea2 = new Color(but2); myColorTransform = new Object(); myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"}; wxculoarea2.setTransform(myColorTransform);
Symbol 452 Button
on (release) { targetul3 = "http://www.freegamesforyourwebsite.com/?" + _parent.wynume; getURL (targetul3, "_blank"); }
Symbol 455 Button
on (release) { targetul3 = "http://www.freegamesforyourwebsite.com/?" + _parent.wynume; getURL (targetul3); }
Symbol 456 MovieClip Frame 1
stop(); if (_parent.wyaliniere == "Centru") { this.gotoAndStop(2); } if (_parent.wyaliniere == "Dreapta") { this.gotoAndStop(3); }
Symbol 456 MovieClip Frame 2
wxculoarea2 = new Color(but3); myColorTransform = new Object(); myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"}; wxculoarea2.setTransform(myColorTransform);
Symbol 456 MovieClip Frame 3
wxculoarea2 = new Color(but3); myColorTransform = new Object(); myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"}; wxculoarea2.setTransform(myColorTransform);
Symbol 461 Button
on (release) { targetul1 = ("http://www.freeonlinegames.com/downloads/" + _parent.wynume) + ".exe"; getURL (targetul1); }
Symbol 462 MovieClip Frame 1
stop();
Symbol 465 Button
on (release) { targetul2 = "http://www.freeonlinegames.com/?" + _parent.wynume; getURL (targetul2); }
Symbol 466 MovieClip Frame 1
stop();
Symbol 467 Button
on (release, keyPress "p") { _parent.instructionsFunction(); }
Symbol 474 MovieClip Frame 1
stop(); if (_parent.wyaliniere == "Centru") { this.gotoAndStop(2); } if (_parent.wyaliniere == "Dreapta") { this.gotoAndStop(3); }
Symbol 474 MovieClip Frame 2
wxculoarea2 = new Color(but4); myColorTransform = new Object(); myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"}; wxculoarea2.setTransform(myColorTransform);
Symbol 474 MovieClip Frame 3
wxculoarea2 = new Color(but4); myColorTransform = new Object(); myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"}; wxculoarea2.setTransform(myColorTransform);
Symbol 475 Button
on (release, keyPress "p") { _parent.instructionsFunction(); }
Symbol 476 MovieClip Frame 1
stop();
Symbol 477 MovieClip Frame 1
function instructionsFunction() { _root.instructions._x = 145; _root.instructions._y = 251.4; } stop(); if ((wyasezare == "Orizontal") && (wyinstructions == false)) { this.gotoAndStop(2); } if (((wyasezare == "Vertical") && (wyinstructions == true)) && (wypozitie == "Sus")) { this.gotoAndStop(3); } if (((wyasezare == "Vertical") && (wyinstructions == true)) && (wypozitie == "Jos")) { this.gotoAndStop(4); } if (((wyasezare == "Orizontal") && (wyinstructions == true)) && (wypozitie == "Sus")) { this.gotoAndStop(5); } if (((wyasezare == "Orizontal") && (wyinstructions == true)) && (wypozitie == "Jos")) { this.gotoAndStop(6); } my_color = new Color(my_mc); my_color.setRGB(wyculoare); myValue = my_color.getRGB().toString(16); trace(myValue.length); if (myValue.length == 5) { myValue = "0" + myValue; } if (myValue.length == 4) { myValue = "00" + myValue; } if (myValue.length == 3) { myValue = "000" + myValue; } if (myValue.length == 2) { myValue = "0000" + myValue; } if (myValue.length == 1) { myValue = "00000" + myValue; } xtbcolor = myValue; xrtb5 = Number("0x" + xtbcolor.slice(0, 2)) - 1; xgtb5 = Number("0x" + xtbcolor.slice(2, 4)) - 1; xbtb5 = Number("0x" + xtbcolor.slice(4, 6)) - 1; wxculoarea2 = new Color(wynbut1.but1); wxculoarea3 = new Color(wynbut2.but2); wxculoarea4 = new Color(wynbut3.but3); wxculoarea5 = new Color(wynbut4.but4); myColorTransform = new Object(); myColorTransform = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"}; wxculoarea2.setTransform(myColorTransform); wxculoarea3.setTransform(myColorTransform); wxculoarea4.setTransform(myColorTransform); wxculoarea5.setTransform(myColorTransform);
Symbol 477 MovieClip Frame 2
stop(); my_color = new Color(my_mc); my_color.setRGB(wyculoare); myValue = my_color.getRGB().toString(16); trace(myValue.length); if (myValue.length == 5) { myValue = "0" + myValue; } if (myValue.length == 4) { myValue = "00" + myValue; } if (myValue.length == 3) { myValue = "000" + myValue; } if (myValue.length == 2) { myValue = "0000" + myValue; } if (myValue.length == 1) { myValue = "00000" + myValue; } xtbcolor = myValue; xrtb5 = Number("0x" + xtbcolor.slice(0, 2)) - 1; xgtb5 = Number("0x" + xtbcolor.slice(2, 4)) - 1; xbtb5 = Number("0x" + xtbcolor.slice(4, 6)) - 1; wxculoarea2 = new Color(wynbut1.but1); wxculoarea3 = new Color(wynbut2.but2); wxculoarea4 = new Color(wynbut3.but3); wxculoarea5 = new Color(wynbut4.but4); myColorTransform = new Object(); myColorTransform = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"}; wxculoarea2.setTransform(myColorTransform); wxculoarea3.setTransform(myColorTransform); wxculoarea4.setTransform(myColorTransform); wxculoarea5.setTransform(myColorTransform);
Symbol 477 MovieClip Frame 3
stop(); my_color = new Color(my_mc); my_color.setRGB(wyculoare); myValue = my_color.getRGB().toString(16); trace(myValue.length); if (myValue.length == 5) { myValue = "0" + myValue; } if (myValue.length == 4) { myValue = "00" + myValue; } if (myValue.length == 3) { myValue = "000" + myValue; } if (myValue.length == 2) { myValue = "0000" + myValue; } if (myValue.length == 1) { myValue = "00000" + myValue; } xtbcolor = myValue; xrtb5 = Number("0x" + xtbcolor.slice(0, 2)) - 1; xgtb5 = Number("0x" + xtbcolor.slice(2, 4)) - 1; xbtb5 = Number("0x" + xtbcolor.slice(4, 6)) - 1; wxculoarea2 = new Color(wynbut1.but1); wxculoarea3 = new Color(wynbut2.but2); wxculoarea4 = new Color(wynbut3.but3); wxculoarea5 = new Color(wynbut4.but4); myColorTransform = new Object(); myColorTransform = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"}; wxculoarea2.setTransform(myColorTransform); wxculoarea3.setTransform(myColorTransform); wxculoarea4.setTransform(myColorTransform); wxculoarea5.setTransform(myColorTransform);
Symbol 477 MovieClip Frame 4
stop(); my_color = new Color(my_mc); my_color.setRGB(wyculoare); myValue = my_color.getRGB().toString(16); trace(myValue.length); if (myValue.length == 5) { myValue = "0" + myValue; } if (myValue.length == 4) { myValue = "00" + myValue; } if (myValue.length == 3) { myValue = "000" + myValue; } if (myValue.length == 2) { myValue = "0000" + myValue; } if (myValue.length == 1) { myValue = "00000" + myValue; } xtbcolor = myValue; xrtb5 = Number("0x" + xtbcolor.slice(0, 2)) - 1; xgtb5 = Number("0x" + xtbcolor.slice(2, 4)) - 1; xbtb5 = Number("0x" + xtbcolor.slice(4, 6)) - 1; wxculoarea2 = new Color(wynbut1.but1); wxculoarea3 = new Color(wynbut2.but2); wxculoarea4 = new Color(wynbut3.but3); wxculoarea5 = new Color(wynbut4.but4); myColorTransform = new Object(); myColorTransform = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"}; wxculoarea2.setTransform(myColorTransform); wxculoarea3.setTransform(myColorTransform); wxculoarea4.setTransform(myColorTransform); wxculoarea5.setTransform(myColorTransform);
Symbol 477 MovieClip Frame 5
stop(); my_color = new Color(my_mc); my_color.setRGB(wyculoare); myValue = my_color.getRGB().toString(16); trace(myValue.length); if (myValue.length == 5) { myValue = "0" + myValue; } if (myValue.length == 4) { myValue = "00" + myValue; } if (myValue.length == 3) { myValue = "000" + myValue; } if (myValue.length == 2) { myValue = "0000" + myValue; } if (myValue.length == 1) { myValue = "00000" + myValue; } xtbcolor = myValue; xrtb5 = Number("0x" + xtbcolor.slice(0, 2)) - 1; xgtb5 = Number("0x" + xtbcolor.slice(2, 4)) - 1; xbtb5 = Number("0x" + xtbcolor.slice(4, 6)) - 1; wxculoarea2 = new Color(wynbut1.but1); wxculoarea3 = new Color(wynbut2.but2); wxculoarea4 = new Color(wynbut3.but3); wxculoarea5 = new Color(wynbut4.but4); myColorTransform = new Object(); myColorTransform = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"}; wxculoarea2.setTransform(myColorTransform); wxculoarea3.setTransform(myColorTransform); wxculoarea4.setTransform(myColorTransform); wxculoarea5.setTransform(myColorTransform);
Symbol 477 MovieClip Frame 6
stop(); my_color = new Color(my_mc); my_color.setRGB(wyculoare); myValue = my_color.getRGB().toString(16); trace(myValue.length); if (myValue.length == 5) { myValue = "0" + myValue; } if (myValue.length == 4) { myValue = "00" + myValue; } if (myValue.length == 3) { myValue = "000" + myValue; } if (myValue.length == 2) { myValue = "0000" + myValue; } if (myValue.length == 1) { myValue = "00000" + myValue; } xtbcolor = myValue; xrtb5 = Number("0x" + xtbcolor.slice(0, 2)) - 1; xgtb5 = Number("0x" + xtbcolor.slice(2, 4)) - 1; xbtb5 = Number("0x" + xtbcolor.slice(4, 6)) - 1; wxculoarea2 = new Color(wynbut1.but1); wxculoarea3 = new Color(wynbut2.but2); wxculoarea4 = new Color(wynbut3.but3); wxculoarea5 = new Color(wynbut4.but4); myColorTransform = new Object(); myColorTransform = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"}; wxculoarea2.setTransform(myColorTransform); wxculoarea3.setTransform(myColorTransform); wxculoarea4.setTransform(myColorTransform); wxculoarea5.setTransform(myColorTransform);
Symbol 480 MovieClip Frame 1
stop();
Symbol 487 Button
on (release) { _root.instructions._x = -266; }
Instance of Symbol 480 MovieClip in Symbol 488 MovieClip Frame 1
onClipEvent (load) { _root.stop(); fscommand ("allowscale", "false"); }
Symbol 493 Button
on (release) { getURL ("http://www.freegamesforyourwebsite.com/?tanks", "_blank"); }
Symbol 498 MovieClip Frame 1
stop();
Symbol 499 Button
on (release) { if (!_root.released) { if (type == "tank") { type = "ai"; check.gotoAndStop(2); } else { type = "tank"; check.gotoAndStop(1); } } }
Symbol 504 Button
on (release) { if (!_root.released) { m1.gotoAndStop(2); m2.gotoAndStop(1); m3.gotoAndStop(1); m4.gotoAndStop(1); m5.gotoAndStop(1); m6.gotoAndStop(1); _root.col = 15737856 /* 0xF02400 */; } }
Symbol 505 Button
on (release) { if (!_root.released) { m1.gotoAndStop(1); m2.gotoAndStop(2); m3.gotoAndStop(1); m4.gotoAndStop(1); m5.gotoAndStop(1); m6.gotoAndStop(1); _root.col = 52275; } }
Symbol 506 Button
on (release) { if (!_root.released) { m1.gotoAndStop(1); m2.gotoAndStop(1); m3.gotoAndStop(2); m4.gotoAndStop(1); m5.gotoAndStop(1); m6.gotoAndStop(1); _root.col = 13311; } }
Symbol 507 Button
on (release) { if (!_root.released) { m1.gotoAndStop(1); m2.gotoAndStop(1); m3.gotoAndStop(1); m4.gotoAndStop(2); m5.gotoAndStop(1); m6.gotoAndStop(1); _root.col = 3355443 /* 0x333333 */; } }
Symbol 508 Button
on (release) { if (!_root.released) { m1.gotoAndStop(1); m2.gotoAndStop(1); m3.gotoAndStop(1); m4.gotoAndStop(1); m5.gotoAndStop(2); m6.gotoAndStop(1); _root.col = 15785743 /* 0xF0DF0F */; } }
Symbol 509 Button
on (release) { if (!_root.released) { m1.gotoAndStop(1); m2.gotoAndStop(1); m3.gotoAndStop(1); m4.gotoAndStop(1); m5.gotoAndStop(1); m6.gotoAndStop(2); _root.col = 15373056 /* 0xEA9300 */; } }
Instance of Symbol 150 MovieClip "m4" in Symbol 510 MovieClip Frame 1
onClipEvent (load) { gotoAndStop (2); }
Instance of Symbol 150 MovieClip "m5" in Symbol 510 MovieClip Frame 1
onClipEvent (load) { gotoAndStop (1); }
Instance of Symbol 150 MovieClip "m6" in Symbol 510 MovieClip Frame 1
onClipEvent (load) { gotoAndStop (1); }
Symbol 512 Button
on (release) { if (cur <= pocet_hracu) { if (_root.name != "") { _root["tank_" + cur].name = _root.name; } else { _root["tank_" + cur].name = "Player " + cur; } _root["tank_" + cur].col = _root.col; _root["tank_" + cur].type = type; if (type == "ai") { _root["tank_" + cur].dif = dif; } _root.name = ""; cur++; if (cur <= pocet_hracu) { cislo = "Player " + cur; } else { _root.gotoAndPlay("vytv_ter"); } if (cur == pocet_hracu) { _root.uk = "START ! "; } } }
Symbol 521 Button
on (release) { if (!_root.released) { m1.gotoAndStop(2); m2.gotoAndStop(1); m3.gotoAndStop(1); m4.gotoAndStop(1); m5.gotoAndStop(1); m6.gotoAndStop(1); _root.dif = "Very_easy"; } }
Symbol 522 Button
on (release) { if (!_root.released) { m1.gotoAndStop(1); m2.gotoAndStop(2); m3.gotoAndStop(1); m4.gotoAndStop(1); m5.gotoAndStop(1); m6.gotoAndStop(1); _root.dif = "easy"; } }
Symbol 523 Button
on (release) { if (!_root.released) { m1.gotoAndStop(1); m2.gotoAndStop(1); m3.gotoAndStop(2); m4.gotoAndStop(1); m5.gotoAndStop(1); m6.gotoAndStop(1); _root.dif = "normal"; } }
Symbol 524 Button
on (release) { if (!_root.released) { m1.gotoAndStop(1); m2.gotoAndStop(1); m3.gotoAndStop(1); m4.gotoAndStop(2); m5.gotoAndStop(1); m6.gotoAndStop(1); _root.dif = "hard"; } }
Symbol 525 Button
on (release) { if (!_root.released) { m1.gotoAndStop(1); m2.gotoAndStop(1); m3.gotoAndStop(1); m4.gotoAndStop(1); m5.gotoAndStop(2); m6.gotoAndStop(1); _root.dif = "very_hard"; } }
Instance of Symbol 150 MovieClip "m3" in Symbol 526 MovieClip Frame 1
onClipEvent (load) { gotoAndStop (2); }
Instance of Symbol 150 MovieClip "m5" in Symbol 526 MovieClip Frame 1
onClipEvent (load) { gotoAndStop (1); }
Symbol 545 MovieClip Frame 1
stop();
Symbol 548 Button
on (release) { targetul3 = "http://www.freegamesforyourwebsite.com/?" + _parent.wxnume; getURL (targetul3, "_blank"); }
Symbol 549 Button
on (release) { targetul2 = "http://www.freeonlinegames.com/?" + _parent.wxnume; getURL (targetul2, "_blank"); }
Symbol 550 Button
on (release) { _parent.mainMenuFunction(); }
Symbol 551 Button
on (release) { targetul1 = ("http://www.freeonlinegames.com/downloads/" + _parent.wxnume) + ".exe"; getURL (targetul1); }
Symbol 552 Button
on (release, keyPress "p") { _parent.pauseFunction(); }
Symbol 553 Button
on (release, keyPress "s") { _parent.soundFunction(); }
Symbol 564 Button
on (release, keyPress "p") { _parent.soundFunction(); }
Symbol 565 MovieClip Frame 1
stop(); wxculoarea3 = new Color(but1); wxculoarea4 = new Color(but2); wxculoarea5 = new Color(but3); wxculoarea6 = new Color(but4); wxculoarea7 = new Color(but5); wxculoarea8 = new Color(but6); myColorTransform2 = new Object(); myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"}; wxculoarea3.setTransform(myColorTransform2); wxculoarea4.setTransform(myColorTransform2); wxculoarea5.setTransform(myColorTransform2); wxculoarea6.setTransform(myColorTransform2); wxculoarea7.setTransform(myColorTransform2); wxculoarea8.setTransform(myColorTransform2); _parent.wxbutno = 6; if (((_parent.wxdownload == false) && (_parent.wxpause == true)) && (_parent.wxsound == true)) { this.gotoAndStop(2); _parent.wxbutno = 5; } if (((_parent.wxdownload == true) && (_parent.wxpause == false)) && (_parent.wxsound == true)) { this.gotoAndStop(3); _parent.wxbutno = 5; } if (((_parent.wxdownload == true) && (_parent.wxpause == true)) && (_parent.wxsound == false)) { this.gotoAndStop(4); _parent.wxbutno = 5; } if (((_parent.wxdownload == false) && (_parent.wxpause == false)) && (_parent.wxsound == true)) { this.gotoAndStop(5); _parent.wxbutno = 4; } if (((_parent.wxdownload == false) && (_parent.wxpause == true)) && (_parent.wxsound == false)) { this.gotoAndStop(6); _parent.wxbutno = 4; } if (((_parent.wxdownload == true) && (_parent.wxpause == false)) && (_parent.wxsound == false)) { this.gotoAndStop(7); _parent.wxbutno = 4; } if (((_parent.wxdownload == false) && (_parent.wxpause == false)) && (_parent.wxsound == false)) { this.gotoAndStop(8); _parent.wxbutno = 3; }
Symbol 565 MovieClip Frame 2
wxculoarea3 = new Color(but1); wxculoarea4 = new Color(but2); wxculoarea5 = new Color(but3); wxculoarea6 = new Color(but4); wxculoarea7 = new Color(but5); wxculoarea8 = new Color(but6); myColorTransform2 = new Object(); myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"}; wxculoarea3.setTransform(myColorTransform2); wxculoarea4.setTransform(myColorTransform2); wxculoarea5.setTransform(myColorTransform2); wxculoarea6.setTransform(myColorTransform2); wxculoarea7.setTransform(myColorTransform2); wxculoarea8.setTransform(myColorTransform2);
Symbol 565 MovieClip Frame 3
wxculoarea3 = new Color(but1); wxculoarea4 = new Color(but2); wxculoarea5 = new Color(but3); wxculoarea6 = new Color(but4); wxculoarea7 = new Color(but5); wxculoarea8 = new Color(but6); myColorTransform2 = new Object(); myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"}; wxculoarea3.setTransform(myColorTransform2); wxculoarea4.setTransform(myColorTransform2); wxculoarea5.setTransform(myColorTransform2); wxculoarea6.setTransform(myColorTransform2); wxculoarea7.setTransform(myColorTransform2); wxculoarea8.setTransform(myColorTransform2);
Symbol 565 MovieClip Frame 4
wxculoarea3 = new Color(but1); wxculoarea4 = new Color(but2); wxculoarea5 = new Color(but3); wxculoarea6 = new Color(but4); wxculoarea7 = new Color(but5); wxculoarea8 = new Color(but6); myColorTransform2 = new Object(); myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"}; wxculoarea3.setTransform(myColorTransform2); wxculoarea4.setTransform(myColorTransform2); wxculoarea5.setTransform(myColorTransform2); wxculoarea6.setTransform(myColorTransform2); wxculoarea7.setTransform(myColorTransform2); wxculoarea8.setTransform(myColorTransform2);
Symbol 565 MovieClip Frame 5
wxculoarea3 = new Color(but1); wxculoarea4 = new Color(but2); wxculoarea5 = new Color(but3); wxculoarea6 = new Color(but4); wxculoarea7 = new Color(but5); wxculoarea8 = new Color(but6); myColorTransform2 = new Object(); myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"}; wxculoarea3.setTransform(myColorTransform2); wxculoarea4.setTransform(myColorTransform2); wxculoarea5.setTransform(myColorTransform2); wxculoarea6.setTransform(myColorTransform2); wxculoarea7.setTransform(myColorTransform2); wxculoarea8.setTransform(myColorTransform2);
Symbol 565 MovieClip Frame 6
wxculoarea3 = new Color(but1); wxculoarea4 = new Color(but2); wxculoarea5 = new Color(but3); wxculoarea6 = new Color(but4); wxculoarea7 = new Color(but5); wxculoarea8 = new Color(but6); myColorTransform2 = new Object(); myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"}; wxculoarea3.setTransform(myColorTransform2); wxculoarea4.setTransform(myColorTransform2); wxculoarea5.setTransform(myColorTransform2); wxculoarea6.setTransform(myColorTransform2); wxculoarea7.setTransform(myColorTransform2); wxculoarea8.setTransform(myColorTransform2);
Symbol 565 MovieClip Frame 7
wxculoarea3 = new Color(but1); wxculoarea4 = new Color(but2); wxculoarea5 = new Color(but3); wxculoarea6 = new Color(but4); wxculoarea7 = new Color(but5); wxculoarea8 = new Color(but6); myColorTransform2 = new Object(); myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"}; wxculoarea3.setTransform(myColorTransform2); wxculoarea4.setTransform(myColorTransform2); wxculoarea5.setTransform(myColorTransform2); wxculoarea6.setTransform(myColorTransform2); wxculoarea7.setTransform(myColorTransform2); wxculoarea8.setTransform(myColorTransform2);
Symbol 565 MovieClip Frame 8
wxculoarea3 = new Color(but1); wxculoarea4 = new Color(but2); wxculoarea5 = new Color(but3); wxculoarea6 = new Color(but4); wxculoarea7 = new Color(but5); wxculoarea8 = new Color(but6); myColorTransform2 = new Object(); myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"}; wxculoarea3.setTransform(myColorTransform2); wxculoarea4.setTransform(myColorTransform2); wxculoarea5.setTransform(myColorTransform2); wxculoarea6.setTransform(myColorTransform2); wxculoarea7.setTransform(myColorTransform2); wxculoarea8.setTransform(myColorTransform2);
Symbol 570 Button
on (press) { _parent.play(); }
Symbol 573 MovieClip Frame 1
stop(); if (_parent.wxaliniere == "Dreapta-Jos") { this.gotoAndStop(2); } if ((_parent.wxaliniere == "Dreapta-Sus") && (_parent.wxbutno == 6)) { this.gotoAndStop(3); } if ((_parent.wxaliniere == "Dreapta-Sus") && (_parent.wxbutno == 5)) { this.gotoAndStop(5); } if ((_parent.wxaliniere == "Dreapta-Sus") && (_parent.wxbutno == 4)) { this.gotoAndStop(6); } if ((_parent.wxaliniere == "Dreapta-Sus") && (_parent.wxbutno == 3)) { this.gotoAndStop(7); } if ((_parent.wxaliniere == "Stanga-Sus") && (_parent.wxbutno == 6)) { this.gotoAndStop(4); } if ((_parent.wxaliniere == "Stanga-Sus") && (_parent.wxbutno == 5)) { this.gotoAndStop(8); } if ((_parent.wxaliniere == "Stanga-Sus") && (_parent.wxbutno == 4)) { this.gotoAndStop(9); } if ((_parent.wxaliniere == "Stanga-Sus") && (_parent.wxbutno == 3)) { this.gotoAndStop(10); }
Symbol 573 MovieClip Frame 2
tg._x = 147; tg._y = 1.1;
Symbol 573 MovieClip Frame 3
tg._x = 147; tg._y = -174.9;
Symbol 573 MovieClip Frame 4
tg._x = 1.5; tg._y = -174.9;
Symbol 573 MovieClip Frame 5
tg._x = 147; tg._y = -152.4;
Symbol 573 MovieClip Frame 6
tg._x = 147; tg._y = -128.9;
Symbol 573 MovieClip Frame 7
tg._x = 147; tg._y = -104.9;
Symbol 573 MovieClip Frame 8
tg._x = 1.5; tg._y = -151.4;
Symbol 573 MovieClip Frame 9
tg._x = 1.5; tg._y = -128.4;
Symbol 573 MovieClip Frame 10
tg._x = 1.5; tg._y = -104.9;
Symbol 591 MovieClip Frame 1
stop(); this.onRollOver = function () { if (_parent._parent._currentframe <= 10) { _parent._parent.gotoAndPlay(11); } }; if (_parent._parent.wxbutno == 5) { this.gotoAndStop(2); } if (_parent._parent.wxbutno == 4) { this.gotoAndStop(3); } if (_parent._parent.wxbutno == 3) { this.gotoAndStop(4); }
Symbol 592 MovieClip Frame 1
stop(); if ((_parent.wxaliniere == "Stanga-Sus") || (_parent.wxaliniere == "Dreapta-Sus")) { this.gotoAndStop(2); }
Symbol 593 MovieClip Frame 1
function pauseFunction() { } function soundFunction() { } function mainMenuFunction() { released = false; _root.clona.frame = null; i = 0; while (i <= 550) { _root["land" + i].removeMovieClip(); i++; } i = 0; while (i < 100) { _root["strom" + i].removeMovieClip(); i++; } i = 1; while (i <= _root.pocet_hracu) { _root["shield" + i].removeMovieClip(); _root["parachute" + i].removeMovieClip(); _root["tank" + i].removeMovieClip(); _root[("tank" + i) + "_hlaven"].removeMovieClip(); i++; } _root.strela.removeMovieClip(); _root.border.removeMovieClip(); removeMovieClip(this); _root.gotoAndPlay("finalJoc"); } stop(); wxnguides._alpha = 0; my_color = new Color(my_mc); my_color.setRGB(wxculoare); myValue = my_color.getRGB().toString(16); trace(myValue.length); if (myValue.length == 5) { myValue = "0" + myValue; } if (myValue.length == 4) { myValue = "00" + myValue; } if (myValue.length == 3) { myValue = "000" + myValue; } if (myValue.length == 2) { myValue = "0000" + myValue; } if (myValue.length == 1) { myValue = "00000" + myValue; } xtbcolor = myValue; xrtb5 = Number("0x" + xtbcolor.slice(0, 2)) - 1; xgtb5 = Number("0x" + xtbcolor.slice(2, 4)) - 1; xbtb5 = Number("0x" + xtbcolor.slice(4, 6)) - 1; wxculoarea2 = new Color(wxnmenu.tg); myColorTransform = new Object(); myColorTransform = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"}; wxculoarea2.setTransform(myColorTransform); wxculoarea3 = new Color(wxnfer); myColorTransform2 = new Object(); myColorTransform2 = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"}; wxculoarea3.setTransform(myColorTransform2);
Symbol 593 MovieClip Frame 10
stop();
Symbol 594 MovieClip Frame 1
stop();
Symbol 594 MovieClip Frame 36
i = 0; while (i <= 550) { _root["land" + i].removeMovieClip(); i++; } i = 0; while (i < 100) { _root["strom" + i].removeMovieClip(); i++; } i = 1; while (i <= _root.pocet_hracu) { _root["shield" + i].removeMovieClip(); _root["parachute" + i].removeMovieClip(); _root["tank" + i].removeMovieClip(); _root[("tank" + i) + "_hlaven"].removeMovieClip(); _root["tank_" + i].fuel = _root["tank_" + i].specials[2]; i++; } _root.strela.removeMovieClip(); _root.attachMovie("clona", "clona", 1000001); _root.clona._x = 275; _root.clona._y = 200; _root.clona.purchasing = true; _root.vitr = 0; _root.pozadi.slunce.gotoAndStop(1); _root.clona.ch = true; _root.clona.speed = 10; _root.clona.speed = 10; _root.clona.k = 2340; _root.clona.k = 2340;

Library Items

Symbol 1 GraphicUsed by:2
Symbol 2 MovieClip [strom_2]Uses:1
Symbol 3 GraphicUsed by:4
Symbol 4 MovieClip [strom_1]Uses:3
Symbol 5 GraphicUsed by:15 18 21 24 27 30 108
Symbol 6 GraphicUsed by:7
Symbol 7 MovieClipUses:6Used by:15 18 21 24 27 30 108
Symbol 8 GraphicUsed by:9
Symbol 9 MovieClipUses:8Used by:15 18 21 24 27 30 108
Symbol 10 GraphicUsed by:15 18 21 24 27 30
Symbol 11 ShapeTweeningUsed by:15
Symbol 12 GraphicUsed by:15 18 21 24 27 30
Symbol 13 ShapeTweeningUsed by:15
Symbol 14 GraphicUsed by:15 18 21 24 27 30
Symbol 15 MovieClip [ai_very_easy]Uses:5 7 9 10 11 12 13 14
Symbol 16 ShapeTweeningUsed by:18
Symbol 17 ShapeTweeningUsed by:18
Symbol 18 MovieClip [ai_easy]Uses:5 7 9 10 16 12 17 14
Symbol 19 ShapeTweeningUsed by:21
Symbol 20 ShapeTweeningUsed by:21
Symbol 21 MovieClip [ai_normal]Uses:5 7 9 10 19 12 20 14
Symbol 22 ShapeTweeningUsed by:24
Symbol 23 ShapeTweeningUsed by:24
Symbol 24 MovieClip [ai_hard]Uses:5 7 9 10 22 12 23 14
Symbol 25 ShapeTweeningUsed by:27
Symbol 26 ShapeTweeningUsed by:27
Symbol 27 MovieClip [ai_very_hard]Uses:5 7 9 10 25 12 26 14
Symbol 28 ShapeTweeningUsed by:30
Symbol 29 ShapeTweeningUsed by:30
Symbol 30 MovieClip [tank]Uses:5 7 9 10 28 12 29 14
Symbol 31 GraphicUsed by:35 37 39 41 43 45 47 49 51 54 57 62 64 546
Symbol 32 GraphicUsed by:33
Symbol 33 MovieClipUses:32Used by:35 37 39 41 43 45 47 49 51 54 57 62 64
Symbol 34 GraphicUsed by:35 37 39 41 43 45 47 49 51 54 57 62 64
Symbol 35 MovieClipUses:31 33 34Used by:36
Symbol 36 MovieClip [nuke_g]Uses:35
Symbol 37 MovieClipUses:31 33 34Used by:38
Symbol 38 MovieClip [bnuke_g]Uses:37
Symbol 39 MovieClipUses:31 33 34Used by:40
Symbol 40 MovieClip [death_g]Uses:39
Symbol 41 MovieClipUses:31 33 34Used by:42
Symbol 42 MovieClip [mirv_g]Uses:41
Symbol 43 MovieClipUses:31 33 34Used by:44
Symbol 44 MovieClip [funky_g]Uses:43
Symbol 45 MovieClipUses:31 33 34Used by:46
Symbol 46 MovieClip [bnuke_c]Uses:45
Symbol 47 MovieClipUses:31 33 34Used by:48
Symbol 48 MovieClip [amissile]Uses:47
Symbol 49 MovieClipUses:31 33 34Used by:50
Symbol 50 MovieClip [missile_funky]Uses:49
Symbol 51 MovieClipUses:31 33 34Used by:52 53
Symbol 52 MovieClip [hroller2_g]Uses:51
Symbol 53 MovieClip [hroller_g]Uses:51
Symbol 54 MovieClipUses:31 33 34Used by:55 56
Symbol 55 MovieClip [roller2_g]Uses:54
Symbol 56 MovieClip [roller_g]Uses:54
Symbol 57 MovieClipUses:31 33 34Used by:58 59
Symbol 58 MovieClip [broller2_g]Uses:57
Symbol 59 MovieClip [broller_g]Uses:57
Symbol 60 MovieClipUsed by:61
Symbol 61 MovieClip [astrike_g]Uses:60
Symbol 62 MovieClipUses:31 33 34Used by:63
Symbol 63 MovieClip [missile_g]Uses:62
Symbol 64 MovieClipUses:31 33 34Used by:65
Symbol 65 MovieClip [bmissile_g]Uses:64
Symbol 66 GraphicUsed by:67
Symbol 67 MovieClipUses:66Used by:75 90
Symbol 68 GraphicUsed by:69
Symbol 69 MovieClipUses:68Used by:75
Symbol 70 GraphicUsed by:71
Symbol 71 MovieClipUses:70Used by:75
Symbol 72 GraphicUsed by:74 574
Symbol 73 GraphicUsed by:74
Symbol 74 MovieClipUses:72 73Used by:75 82 90
Symbol 75 MovieClip [krajina2]Uses:67 69 71 74
Symbol 76 GraphicUsed by:82
Symbol 77 GraphicUsed by:78
Symbol 78 MovieClipUses:77Used by:81 90
Symbol 79 GraphicUsed by:80
Symbol 80 MovieClipUses:79Used by:81
Symbol 81 MovieClipUses:78 80Used by:82
Symbol 82 MovieClip [krajina1]Uses:76 74 81
Symbol 83 GraphicUsed by:90
Symbol 84 GraphicUsed by:89
Symbol 85 GraphicUsed by:86
Symbol 86 MovieClipUses:85Used by:89
Symbol 87 GraphicUsed by:88
Symbol 88 MovieClipUses:87Used by:89
Symbol 89 MovieClipUses:84 86 88Used by:90
Symbol 90 MovieClip [krajina3]Uses:83 67 74 78 89
Symbol 91 GraphicUsed by:92
Symbol 92 MovieClip [hlaven]Uses:91Used by:108
Symbol 93 GraphicUsed by:236
Symbol 94 FontUsed by:95 96 97 100 101 102 109 110 119 120 121 122 137 144 145 155 156 157 158 159 160 161 165 166 167 168 169 170 179 180 187 188 197 198 309 310 311 312
Symbol 95 EditableTextUses:94Used by:236
Symbol 96 EditableTextUses:94Used by:236
Symbol 97 EditableTextUses:94Used by:236
Symbol 98 GraphicUsed by:99
Symbol 99 MovieClipUses:98Used by:236
Symbol 100 EditableTextUses:94Used by:236
Symbol 101 EditableTextUses:94Used by:103
Symbol 102 EditableTextUses:94Used by:103
Symbol 103 MovieClipUses:101 102Used by:236
Symbol 104 GraphicUsed by:105
Symbol 105 MovieClip [fuel]Uses:104Used by:236
Symbol 106 GraphicUsed by:107
Symbol 107 MovieClipUses:106Used by:236
Symbol 108 MovieClipUses:5 7 9 92Used by:236
Symbol 109 EditableTextUses:94Used by:236
Symbol 110 EditableTextUses:94Used by:236
Symbol 111 GraphicUsed by:112
Symbol 112 MovieClipUses:111Used by:236
Symbol 113 GraphicUsed by:123
Symbol 114 GraphicUsed by:117 118 133 134 425 426
Symbol 115 GraphicUsed by:117 118 133 134 425 426
Symbol 116 GraphicUsed by:117 118 133 134 425 426
Symbol 117 ButtonUses:114 115 116Used by:123
Symbol 118 ButtonUses:114 115 116Used by:123
Symbol 119 EditableTextUses:94Used by:123
Symbol 120 EditableTextUses:94Used by:123
Symbol 121 EditableTextUses:94Used by:123
Symbol 122 EditableTextUses:94Used by:123
Symbol 123 MovieClipUses:113 117 118 119 120 121 122Used by:236
Symbol 124 GraphicUsed by:132
Symbol 125 GraphicUsed by:126 140
Symbol 126 ButtonUses:125Used by:128
Symbol 127 GraphicUsed by:128
Symbol 128 MovieClipUses:126 127Used by:132
Symbol 129 GraphicUsed by:132
Symbol 130 GraphicUsed by:131
Symbol 131 MovieClipUses:130Used by:132
Symbol 132 MovieClipUses:124 128 129 131Used by:236
Symbol 133 ButtonUses:114 115 116Used by:136
Symbol 134 ButtonUses:114 115 116Used by:136
Symbol 135 GraphicUsed by:136
Symbol 136 MovieClipUses:133 134 135Used by:236
Symbol 137 EditableTextUses:94Used by:236
Symbol 138 GraphicUsed by:142
Symbol 139 GraphicUsed by:141
Symbol 140 ButtonUses:125Used by:141
Symbol 141 MovieClipUses:139 140Used by:142
Symbol 142 MovieClipUses:138 141Used by:236
Symbol 143 GraphicUsed by:147
Symbol 144 EditableTextUses:94Used by:147
Symbol 145 EditableTextUses:94Used by:147
Symbol 146 GraphicUsed by:147
Symbol 147 ButtonUses:143 144 145 146Used by:236
Symbol 148 GraphicUsed by:150
Symbol 149 GraphicUsed by:150
Symbol 150 MovieClipUses:148 149Used by:236 417 510 526
Symbol 151 GraphicUsed by:152 153 154 413 414 415 416 504 505 506 507 508 509 521 522 523 524 525 594
Symbol 152 ButtonUses:151Used by:236
Symbol 153 ButtonUses:151Used by:236
Symbol 154 ButtonUses:151Used by:236
Symbol 155 EditableTextUses:94Used by:236
Symbol 156 EditableTextUses:94Used by:236
Symbol 157 EditableTextUses:94Used by:236
Symbol 158 EditableTextUses:94Used by:236
Symbol 159 EditableTextUses:94Used by:236
Symbol 160 EditableTextUses:94Used by:236
Symbol 161 EditableTextUses:94Used by:236
Symbol 162 FontUsed by:163 164
Symbol 163 TextUses:162Used by:236
Symbol 164 TextUses:162Used by:236
Symbol 165 TextUses:94Used by:236
Symbol 166 TextUses:94Used by:236
Symbol 167 TextUses:94Used by:236
Symbol 168 TextUses:94Used by:236
Symbol 169 TextUses:94Used by:236
Symbol 170 TextUses:94Used by:236
Symbol 171 GraphicUsed by:236
Symbol 172 GraphicUsed by:173
Symbol 173 MovieClip [repair]Uses:172Used by:181
Symbol 174 GraphicUsed by:178
Symbol 175 FontUsed by:176 185 189 195 202 208 211 214 219 221 225 228 232 247 249 264 265 266 267 268 272 273 274 275 276
Symbol 176 TextUses:175Used by:178
Symbol 177 GraphicUsed by:178 186 190 196 203 209 213 220 226 233 487 544 545
Symbol 178 ButtonUses:174 176 177Used by:181
Symbol 179 EditableTextUses:94Used by:181
Symbol 180 EditableTextUses:94Used by:181
Symbol 181 MovieClipUses:173 178 179 180Used by:236
Symbol 182 GraphicUsed by:183
Symbol 183 MovieClip [par]Uses:182Used by:191
Symbol 184 GraphicUsed by:186 190 203 209 213 226 233
Symbol 185 TextUses:175Used by:186
Symbol 186 ButtonUses:184 185 177Used by:191
Symbol 187 EditableTextUses:94Used by:191
Symbol 188 EditableTextUses:94Used by:191
Symbol 189 TextUses:175Used by:190
Symbol 190 ButtonUses:184 189 177Used by:191
Symbol 191 MovieClipUses:183 186 187 188 190Used by:236
Symbol 192 GraphicUsed by:193
Symbol 193 MovieClip [teleport]Uses:192Used by:199
Symbol 194 GraphicUsed by:196
Symbol 195 TextUses:175Used by:196
Symbol 196 ButtonUses:194 195 177Used by:199
Symbol 197 EditableTextUses:94Used by:199
Symbol 198 EditableTextUses:94Used by:199
Symbol 199 MovieClipUses:193 196 197 198Used by:236
Symbol 200 GraphicUsed by:201
Symbol 201 MovieClip [shield]Uses:200Used by:215 235
Symbol 202 TextUses:175Used by:203 213
Symbol 203 ButtonUses:184 202 177Used by:235
Symbol 204 GraphicUsed by:205
Symbol 205 MovieClipUses:204Used by:235
Symbol 206 GraphicUsed by:207
Symbol 207 MovieClip [sshield]Uses:206Used by:212
Symbol 208 TextUses:175Used by:209
Symbol 209 ButtonUses:184 208 177Used by:212
Symbol 210 GraphicUsed by:212 215 222
Symbol 211 EditableTextUses:175Used by:212
Symbol 212 MovieClipUses:207 209 210 211Used by:235
Symbol 213 ButtonUses:184 202 177Used by:215
Symbol 214 EditableTextUses:175Used by:215
Symbol 215 MovieClipUses:201 213 210 214Used by:235
Symbol 216 GraphicUsed by:217
Symbol 217 MovieClip [stshield]Uses:216Used by:222
Symbol 218 GraphicUsed by:220
Symbol 219 TextUses:175Used by:220
Symbol 220 ButtonUses:218 219 177Used by:222
Symbol 221 EditableTextUses:175Used by:222
Symbol 222 MovieClipUses:217 220 210 221Used by:235
Symbol 223 GraphicUsed by:224
Symbol 224 MovieClip [spshield]Uses:223Used by:229
Symbol 225 TextUses:175Used by:226
Symbol 226 ButtonUses:184 225 177Used by:229
Symbol 227 GraphicUsed by:229
Symbol 228 EditableTextUses:175Used by:229
Symbol 229 MovieClipUses:224 226 227 228Used by:235
Symbol 230 GraphicUsed by:231
Symbol 231 MovieClipUses:230Used by:234
Symbol 232 TextUses:175Used by:233
Symbol 233 ButtonUses:184 232 177Used by:234
Symbol 234 MovieClipUses:231 233Used by:235
Symbol 235 MovieClipUses:201 203 205 212 215 222 229 234Used by:236
Symbol 236 MovieClip [panel]Uses:93 95 96 97 99 100 103 105 107 108 109 110 112 123 132 136 137 142 147 150 152 153 154 155 156 157 158 159 160 161 163 164 165 166 167 168 169 170 171 181 191 199 235
Symbol 237 GraphicUsed by:238 239
Symbol 238 MovieClipUses:237Used by:239
Symbol 239 MovieClip [blk]Uses:238 237
Symbol 240 GraphicUsed by:241
Symbol 241 MovieClip [upmove]Uses:240
Symbol 242 GraphicUsed by:243
Symbol 243 MovieClip [uphill]Uses:242
Symbol 244 BitmapUsed by:245
Symbol 245 GraphicUses:244Used by:246
Symbol 246 MovieClipUses:245Used by:260
Symbol 247 EditableTextUses:175Used by:248
Symbol 248 MovieClipUses:247Used by:260
Symbol 249 EditableTextUses:175Used by:250
Symbol 250 MovieClipUses:249Used by:260
Symbol 251 BitmapUsed by:252
Symbol 252 GraphicUses:251Used by:253
Symbol 253 MovieClipUses:252Used by:260
Symbol 254 GraphicUsed by:256
Symbol 255 GraphicUsed by:256
Symbol 256 ButtonUses:254 255Used by:259
Symbol 257 FontUsed by:258 405 406 407 408 409 410 411 412 428 429 430 431 479 481 482 483 489 490 500 501 502 503 511 513 515 516 517 518 519 520 527 528 529 530 531 532 534 535 536 537 538 539 540
Symbol 258 EditableTextUses:257Used by:259
Symbol 259 MovieClip [buymenu]Uses:256 258Used by:260
Symbol 260 MovieClip [clona]Uses:246 248 250 253 259
Symbol 261 GraphicUsed by:269
Symbol 262 GraphicUsed by:263 271
Symbol 263 ButtonUses:262Used by:269
Symbol 264 EditableTextUses:175Used by:269
Symbol 265 EditableTextUses:175Used by:269
Symbol 266 EditableTextUses:175Used by:269
Symbol 267 EditableTextUses:175Used by:269
Symbol 268 EditableTextUses:175Used by:269
Symbol 269 MovieClip [special]Uses:261 263 264 265 266 267 268
Symbol 270 GraphicUsed by:277
Symbol 271 ButtonUses:262Used by:277
Symbol 272 EditableTextUses:175Used by:277
Symbol 273 EditableTextUses:175Used by:277
Symbol 274 EditableTextUses:175Used by:277
Symbol 275 EditableTextUses:175Used by:277
Symbol 276 EditableTextUses:175Used by:277
Symbol 277 MovieClip [weapon]Uses:270 271 272 273 274 275 276
Symbol 278 GraphicUsed by:279
Symbol 279 MovieClip [mirv]Uses:278
Symbol 280 GraphicUsed by:281
Symbol 281 MovieClip [laser]Uses:280
Symbol 282 GraphicUsed by:283
Symbol 283 MovieClip [ldevastor]Uses:282
Symbol 284 GraphicUsed by:285
Symbol 285 MovieClip [astrike]Uses:284
Symbol 286 GraphicUsed by:287 288
Symbol 287 MovieClip [hroller2]Uses:286
Symbol 288 MovieClip [hroller]Uses:286
Symbol 289 GraphicUsed by:290 291
Symbol 290 MovieClip [roller2]Uses:289
Symbol 291 MovieClip [roller]Uses:289
Symbol 292 GraphicUsed by:293 294
Symbol 293 MovieClip [broller2]Uses:292
Symbol 294 MovieClip [broller]Uses:292
Symbol 295 GraphicUsed by:296
Symbol 296 MovieClip [death]Uses:295
Symbol 297 GraphicUsed by:298
Symbol 298 MovieClip [funky]Uses:297
Symbol 299 GraphicUsed by:300
Symbol 300 MovieClip [nuke]Uses:299
Symbol 301 GraphicUsed by:302
Symbol 302 MovieClip [bmissile]Uses:301
Symbol 303 GraphicUsed by:304
Symbol 304 MovieClip [missile]Uses:303
Symbol 305 GraphicUsed by:306
Symbol 306 MovieClip [bnuke]Uses:305
Symbol 307 GraphicUsed by:308
Symbol 308 MovieClip [astrikecur]Uses:307
Symbol 309 EditableTextUses:94Used by:313
Symbol 310 EditableTextUses:94Used by:313
Symbol 311 EditableTextUses:94Used by:313
Symbol 312 EditableTextUses:94Used by:313
Symbol 313 MovieClip [score_tab]Uses:309 310 311 312
Symbol 314 GraphicUsed by:315
Symbol 315 MovieClip [parachute]Uses:314
Symbol 316 GraphicUsed by:320
Symbol 317 GraphicUsed by:318 499
Symbol 318 MovieClipUses:317Used by:320
Symbol 319 GraphicUsed by:320
Symbol 320 MovieClip [teleport_a]Uses:316 318 319
Symbol 321 GraphicUsed by:322
Symbol 322 MovieClip [uparmor]Uses:321
Symbol 323 GraphicUsed by:324
Symbol 324 MovieClip [upenergy]Uses:323
Symbol 325 GraphicUsed by:326
Symbol 326 MovieClip [weak_sh]Uses:325
Symbol 327 GraphicUsed by:328
Symbol 328 MovieClip [shield_sh]Uses:327
Symbol 329 GraphicUsed by:330
Symbol 330 MovieClip [strong_sh]Uses:329
Symbol 331 GraphicUsed by:332
Symbol 332 MovieClip [super_sh]Uses:331
Symbol 333 GraphicUsed by:334
Symbol 334 ButtonUses:333Used by:Timeline
Symbol 335 ShapeTweeningUsed by:338
Symbol 336 GraphicUsed by:338
Symbol 337 GraphicUsed by:338
Symbol 338 MovieClipUses:335 336 337Used by:Timeline
Symbol 339 GraphicUsed by:494  Timeline
Symbol 340 GraphicUsed by:349
Symbol 341 FontUsed by:342
Symbol 342 EditableTextUses:341Used by:349
Symbol 343 ShapeTweeningUsed by:349
Symbol 344 FontUsed by:345 346
Symbol 345 TextUses:344Used by:349
Symbol 346 TextUses:344Used by:347
Symbol 347 MovieClipUses:346Used by:349
Symbol 348 GraphicUsed by:349
Symbol 349 MovieClipUses:340 342 343 345 347 348Used by:Timeline
Symbol 350 BitmapUsed by:351
Symbol 351 GraphicUses:350Used by:359
Symbol 352 GraphicUsed by:359
Symbol 353 FontUsed by:354 356 357
Symbol 354 TextUses:353Used by:359
Symbol 355 SoundUsed by:359
Symbol 356 TextUses:353Used by:359
Symbol 357 TextUses:353Used by:359
Symbol 358 SoundUsed by:359
Symbol 359 MovieClipUses:351 352 354 355 356 357 358Used by:400
Symbol 360 BitmapUsed by:361
Symbol 361 GraphicUses:360Used by:400
Symbol 362 BitmapUsed by:363
Symbol 363 GraphicUses:362Used by:400
Symbol 364 BitmapUsed by:365
Symbol 365 GraphicUses:364Used by:400
Symbol 366 BitmapUsed by:367
Symbol 367 GraphicUses:366Used by:400
Symbol 368 BitmapUsed by:369
Symbol 369 GraphicUses:368Used by:400
Symbol 370 BitmapUsed by:371
Symbol 371 GraphicUses:370Used by:400
Symbol 372 BitmapUsed by:373
Symbol 373 GraphicUses:372Used by:400
Symbol 374 BitmapUsed by:375
Symbol 375 GraphicUses:374Used by:400
Symbol 376 BitmapUsed by:377
Symbol 377 GraphicUses:376Used by:400
Symbol 378 BitmapUsed by:379
Symbol 379 GraphicUses:378Used by:400
Symbol 380 BitmapUsed by:381
Symbol 381 GraphicUses:380Used by:400
Symbol 382 BitmapUsed by:383
Symbol 383 GraphicUses:382Used by:400
Symbol 384 BitmapUsed by:385
Symbol 385 GraphicUses:384Used by:400
Symbol 386 BitmapUsed by:387
Symbol 387 GraphicUses:386Used by:400
Symbol 388 BitmapUsed by:389
Symbol 389 GraphicUses:388Used by:400
Symbol 390 BitmapUsed by:391
Symbol 391 GraphicUses:390Used by:400
Symbol 392 BitmapUsed by:393
Symbol 393 GraphicUses:392Used by:400
Symbol 394 BitmapUsed by:395
Symbol 395 GraphicUses:394Used by:400
Symbol 396 BitmapUsed by:397
Symbol 397 GraphicUses:396Used by:400
Symbol 398 BitmapUsed by:399
Symbol 399 GraphicUses:398Used by:400
Symbol 400 MovieClipUses:359 361 363 365 367 369 371 373 375 377 379 381 383 385 387 389 391 393 395 397 399Used by:Timeline
Symbol 401 BitmapUsed by:402
Symbol 402 GraphicUses:401Used by:403
Symbol 403 MovieClipUses:402Used by:544  Timeline
Symbol 404 GraphicUsed by:Timeline
Symbol 405 TextUses:257Used by:417
Symbol 406 TextUses:257Used by:417
Symbol 407 TextUses:257Used by:417
Symbol 408 TextUses:257Used by:417
Symbol 409 TextUses:257Used by:417
Symbol 410 TextUses:257Used by:417
Symbol 411 TextUses:257Used by:417
Symbol 412 TextUses:257Used by:417
Symbol 413 ButtonUses:151Used by:417
Symbol 414 ButtonUses:151Used by:417
Symbol 415 ButtonUses:151Used by:417
Symbol 416 ButtonUses:151Used by:417
Symbol 417 MovieClipUses:150 405 406 407 408 409 410 411 412 413 414 415 416Used by:Timeline
Symbol 418 GraphicUsed by:421 512
Symbol 419 GraphicUsed by:421 512
Symbol 420 GraphicUsed by:421 512
Symbol 421 ButtonUses:418 419 420Used by:Timeline
Symbol 422 GraphicUsed by:427
Symbol 423 FontUsed by:424
Symbol 424 EditableTextUses:423Used by:427
Symbol 425 ButtonUses:114 115 116Used by:427
Symbol 426 ButtonUses:114 115 116Used by:427
Symbol 427 MovieClipUses:422 424 425 426Used by:Timeline
Symbol 428 TextUses:257Used by:Timeline
Symbol 429 TextUses:257Used by:Timeline
Symbol 430 TextUses:257Used by:Timeline
Symbol 431 TextUses:257Used by:Timeline
Symbol 432 GraphicUsed by:434 443 446 452 455 467 548 549 550 551 552 553 564
Symbol 433 GraphicUsed by:434 443 446 452 455 467 548 549 550 551 552 553 564
Symbol 434 ButtonUses:432 433Used by:442 462
Symbol 435 FontUsed by:436 437 438 439 440 441 444 445 447 448 449 450 453 454 468 469 470 471 472 473 554 555 556 557 558 559 560 561 562 563 571 572
Symbol 436 TextUses:435Used by:442 462
Symbol 437 TextUses:435Used by:442 462
Symbol 438 TextUses:435Used by:442 462
Symbol 439 TextUses:435Used by:442 462
Symbol 440 TextUses:435Used by:442 462
Symbol 441 TextUses:435Used by:442 462
Symbol 442 MovieClipUses:434 436 437 438 439 440 441Used by:477
Symbol 443 ButtonUses:432 433Used by:451
Symbol 444 TextUses:435Used by:451 466
Symbol 445 TextUses:435Used by:451 466
Symbol 446 ButtonUses:432 433Used by:451 466
Symbol 447 TextUses:435Used by:451 466
Symbol 448 TextUses:435Used by:451 466
Symbol 449 TextUses:435Used by:451 466
Symbol 450 TextUses:435Used by:451 466
Symbol 451 MovieClipUses:443 444 445 446 447 448 449 450Used by:477
Symbol 452 ButtonUses:432 433Used by:456
Symbol 453 TextUses:435Used by:456 565
Symbol 454 TextUses:435Used by:456 565
Symbol 455 ButtonUses:432 433Used by:456
Symbol 456 MovieClipUses:452 453 454 455Used by:477
Symbol 457 GraphicUsed by:458
Symbol 458 MovieClipUses:457Used by:477
Symbol 459 GraphicUsed by:461
Symbol 460 GraphicUsed by:461
Symbol 461 ButtonUses:459 460Used by:462
Symbol 462 MovieClipUses:461 436 437 434 438 439 440 441Used by:477
Symbol 463 GraphicUsed by:465 475
Symbol 464 GraphicUsed by:465 475
Symbol 465 ButtonUses:463 464Used by:466
Symbol 466 MovieClipUses:465 444 445 446 447 448 449 450Used by:477
Symbol 467 ButtonUses:432 433Used by:474 476
Symbol 468 TextUses:435Used by:474 476
Symbol 469 TextUses:435Used by:474 476
Symbol 470 TextUses:435Used by:474 476
Symbol 471 TextUses:435Used by:474 476
Symbol 472 TextUses:435Used by:474 476
Symbol 473 TextUses:435Used by:474 476
Symbol 474 MovieClipUses:467 468 469 470 471 472 473Used by:477
Symbol 475 ButtonUses:463 464Used by:476
Symbol 476 MovieClipUses:475 468 469 467 470 471 472 473Used by:477
Symbol 477 MovieClipUses:442 451 456 458 462 466 474 476Used by:Timeline
Symbol 478 GraphicUsed by:488
Symbol 479 TextUses:257Used by:488
Symbol 480 MovieClipUsed by:488
Symbol 481 TextUses:257Used by:488
Symbol 482 TextUses:257Used by:488
Symbol 483 TextUses:257Used by:488
Symbol 484 GraphicUsed by:488
Symbol 485 GraphicUsed by:487
Symbol 486 GraphicUsed by:487
Symbol 487 ButtonUses:485 486 177Used by:488
Symbol 488 MovieClipUses:478 479 480 481 482 483 484 487Used by:Timeline
Symbol 489 TextUses:257Used by:Timeline
Symbol 490 TextUses:257Used by:Timeline
Symbol 491 GraphicUsed by:493
Symbol 492 GraphicUsed by:493
Symbol 493 ButtonUses:491 492Used by:Timeline
Symbol 494 MovieClipUses:339Used by:Timeline
Symbol 495 GraphicUsed by:Timeline
Symbol 496 GraphicUsed by:498  Timeline
Symbol 497 GraphicUsed by:498
Symbol 498 MovieClipUses:496 497Used by:Timeline
Symbol 499 ButtonUses:317Used by:Timeline
Symbol 500 EditableTextUses:257Used by:Timeline
Symbol 501 TextUses:257Used by:Timeline
Symbol 502 EditableTextUses:257Used by:Timeline
Symbol 503 TextUses:257Used by:Timeline
Symbol 504 ButtonUses:151Used by:510
Symbol 505 ButtonUses:151Used by:510
Symbol 506 ButtonUses:151Used by:510
Symbol 507 ButtonUses:151Used by:510
Symbol 508 ButtonUses:151Used by:510
Symbol 509 ButtonUses:151Used by:510
Symbol 510 MovieClipUses:150 504 505 506 507 508 509Used by:Timeline
Symbol 511 EditableTextUses:257Used by:Timeline
Symbol 512 ButtonUses:418 419 420Used by:Timeline
Symbol 513 TextUses:257Used by:Timeline
Symbol 514 GraphicUsed by:533
Symbol 515 TextUses:257Used by:533
Symbol 516 TextUses:257Used by:533
Symbol 517 TextUses:257Used by:533
Symbol 518 TextUses:257Used by:533
Symbol 519 TextUses:257Used by:533
Symbol 520 TextUses:257Used by:533
Symbol 521 ButtonUses:151Used by:526
Symbol 522 ButtonUses:151Used by:526
Symbol 523 ButtonUses:151Used by:526
Symbol 524 ButtonUses:151Used by:526
Symbol 525 ButtonUses:151Used by:526
Symbol 526 MovieClipUses:150 521 522 523 524 525Used by:533
Symbol 527 TextUses:257Used by:533
Symbol 528 TextUses:257Used by:533
Symbol 529 TextUses:257Used by:533
Symbol 530 TextUses:257Used by:533
Symbol 531 TextUses:257Used by:533
Symbol 532 TextUses:257Used by:533
Symbol 533 MovieClipUses:514 515 516 517 518 519 520 526 527 528 529 530 531 532Used by:Timeline
Symbol 534 TextUses:257Used by:Timeline
Symbol 535 TextUses:257Used by:Timeline
Symbol 536 TextUses:257Used by:Timeline
Symbol 537 EditableTextUses:257Used by:Timeline
Symbol 538 EditableTextUses:257Used by:Timeline
Symbol 539 TextUses:257Used by:541
Symbol 540 TextUses:257Used by:541
Symbol 541 MovieClipUses:539 540Used by:544
Symbol 542 GraphicUsed by:543
Symbol 543 MovieClipUses:542Used by:544
Symbol 544 MovieClipUses:403 177 541 543Used by:Timeline
Symbol 545 MovieClipUses:177Used by:Timeline
Symbol 546 MovieClipUses:31Used by:Timeline
Symbol 547 GraphicUsed by:565
Symbol 548 ButtonUses:432 433Used by:565
Symbol 549 ButtonUses:432 433Used by:565
Symbol 550 ButtonUses:432 433Used by:565
Symbol 551 ButtonUses:432 433Used by:565
Symbol 552 ButtonUses:432 433Used by:565
Symbol 553 ButtonUses:432 433Used by:565
Symbol 554 TextUses:435Used by:565
Symbol 555 TextUses:435Used by:565
Symbol 556 TextUses:435Used by:565
Symbol 557 TextUses:435Used by:565
Symbol 558 TextUses:435Used by:565
Symbol 559 TextUses:435Used by:565
Symbol 560 TextUses:435Used by:565
Symbol 561 TextUses:435Used by:565
Symbol 562 TextUses:435Used by:565
Symbol 563 TextUses:435Used by:565
Symbol 564 ButtonUses:432 433Used by:565
Symbol 565 MovieClipUses:547 548 549 550 551 552 553 554 453 555 556 557 558 559 454 560 561 562 563 564Used by:593
Symbol 566 GraphicUsed by:570
Symbol 567 GraphicUsed by:570
Symbol 568 GraphicUsed by:570
Symbol 569 GraphicUsed by:570
Symbol 570 ButtonUses:566 567 568 569Used by:573
Symbol 571 TextUses:435Used by:573
Symbol 572 TextUses:435Used by:573
Symbol 573 MovieClipUses:570 571 572Used by:593
Symbol 574 MovieClipUses:72Used by:593
Symbol 575 GraphicUsed by:586
Symbol 576 FontUsed by:577 578 579 580 581 582 583 584 585
Symbol 577 TextUses:576Used by:586
Symbol 578 TextUses:576Used by:586
Symbol 579 TextUses:576Used by:586
Symbol 580 TextUses:576Used by:586
Symbol 581 TextUses:576Used by:586
Symbol 582 TextUses:576Used by:586
Symbol 583 TextUses:576Used by:586
Symbol 584 TextUses:576Used by:586
Symbol 585 TextUses:576Used by:586
Symbol 586 MovieClipUses:575 577 578 579 580 581 582 583 584 585Used by:593
Symbol 587 GraphicUsed by:591
Symbol 588 GraphicUsed by:591
Symbol 589 GraphicUsed by:591
Symbol 590 GraphicUsed by:591
Symbol 591 MovieClipUses:587 588 589 590Used by:592
Symbol 592 MovieClipUses:591Used by:593
Symbol 593 MovieClipUses:565 573 574 586 592Used by:Timeline
Symbol 594 MovieClipUses:151Used by:Timeline
Symbol 595 GraphicUsed by:Timeline

Instance Names

"prel"Frame 1Symbol 338 MovieClip
"prel"Frame 5Symbol 349 MovieClip
"instructions"Frame 175Symbol 488 MovieClip
"borderGame"Frame 175Symbol 494 MovieClip
"check"Frame 176Symbol 498 MovieClip
"uv"Frame 177Symbol 544 MovieClip
"land"Frame 178Symbol 545 MovieClip
"theMenu"Frame 179Symbol 593 MovieClip
"pasy"Symbol 15 MovieClip [ai_very_easy] Frame 1Symbol 7 MovieClip
"col"Symbol 15 MovieClip [ai_very_easy] Frame 1Symbol 9 MovieClip
"pasy"Symbol 18 MovieClip [ai_easy] Frame 1Symbol 7 MovieClip
"col"Symbol 18 MovieClip [ai_easy] Frame 1Symbol 9 MovieClip
"pasy"Symbol 21 MovieClip [ai_normal] Frame 1Symbol 7 MovieClip
"col"Symbol 21 MovieClip [ai_normal] Frame 1Symbol 9 MovieClip
"pasy"Symbol 24 MovieClip [ai_hard] Frame 1Symbol 7 MovieClip
"col"Symbol 24 MovieClip [ai_hard] Frame 1Symbol 9 MovieClip
"pasy"Symbol 27 MovieClip [ai_very_hard] Frame 1Symbol 7 MovieClip
"col"Symbol 27 MovieClip [ai_very_hard] Frame 1Symbol 9 MovieClip
"pasy"Symbol 30 MovieClip [tank] Frame 1Symbol 7 MovieClip
"col"Symbol 30 MovieClip [tank] Frame 1Symbol 9 MovieClip
"f"Symbol 35 MovieClip Frame 2Symbol 33 MovieClip
"strela"Symbol 36 MovieClip [nuke_g] Frame 1Symbol 35 MovieClip
"f"Symbol 37 MovieClip Frame 2Symbol 33 MovieClip
"strela"Symbol 38 MovieClip [bnuke_g] Frame 1Symbol 37 MovieClip
"f"Symbol 39 MovieClip Frame 2Symbol 33 MovieClip
"strela"Symbol 40 MovieClip [death_g] Frame 1Symbol 39 MovieClip
"f"Symbol 41 MovieClip Frame 2Symbol 33 MovieClip
"strela"Symbol 42 MovieClip [mirv_g] Frame 1Symbol 41 MovieClip
"f"Symbol 43 MovieClip Frame 2Symbol 33 MovieClip
"strela"Symbol 44 MovieClip [funky_g] Frame 1Symbol 43 MovieClip
"f"Symbol 45 MovieClip Frame 2Symbol 33 MovieClip
"strela"Symbol 46 MovieClip [bnuke_c] Frame 1Symbol 45 MovieClip
"f"Symbol 47 MovieClip Frame 2Symbol 33 MovieClip
"strela"Symbol 48 MovieClip [amissile] Frame 1Symbol 47 MovieClip
"f"Symbol 49 MovieClip Frame 2Symbol 33 MovieClip
"strela"Symbol 50 MovieClip [missile_funky] Frame 1Symbol 49 MovieClip
"f"Symbol 51 MovieClip Frame 2Symbol 33 MovieClip
"strela"Symbol 52 MovieClip [hroller2_g] Frame 1Symbol 51 MovieClip
"strela"Symbol 53 MovieClip [hroller_g] Frame 1Symbol 51 MovieClip
"f"Symbol 54 MovieClip Frame 2Symbol 33 MovieClip
"strela"Symbol 55 MovieClip [roller2_g] Frame 1Symbol 54 MovieClip
"strela"Symbol 56 MovieClip [roller_g] Frame 1Symbol 54 MovieClip
"f"Symbol 57 MovieClip Frame 2Symbol 33 MovieClip
"strela"Symbol 58 MovieClip [broller2_g] Frame 1Symbol 57 MovieClip
"strela"Symbol 59 MovieClip [broller_g] Frame 1Symbol 57 MovieClip
"strela"Symbol 61 MovieClip [astrike_g] Frame 1Symbol 60 MovieClip
"f"Symbol 62 MovieClip Frame 2Symbol 33 MovieClip
"strela"Symbol 63 MovieClip [missile_g] Frame 1Symbol 62 MovieClip
"f"Symbol 64 MovieClip Frame 2Symbol 33 MovieClip
"strela"Symbol 65 MovieClip [bmissile_g] Frame 1Symbol 64 MovieClip
"slunce"Symbol 75 MovieClip [krajina2] Frame 1Symbol 74 MovieClip
"slunce"Symbol 82 MovieClip [krajina1] Frame 1Symbol 74 MovieClip
"krajina1"Symbol 82 MovieClip [krajina1] Frame 1Symbol 81 MovieClip
"slunce"Symbol 90 MovieClip [krajina3] Frame 1Symbol 74 MovieClip
"pasy"Symbol 108 MovieClip Frame 1Symbol 7 MovieClip
"col"Symbol 108 MovieClip Frame 1Symbol 9 MovieClip
"hlaven"Symbol 108 MovieClip Frame 1Symbol 92 MovieClip [hlaven]
"pow"Symbol 132 MovieClip Frame 1Symbol 128 MovieClip
"shadow"Symbol 132 MovieClip Frame 1Symbol 131 MovieClip
"drag"Symbol 142 MovieClip Frame 1Symbol 141 MovieClip
"sh1"Symbol 235 MovieClip Frame 2Symbol 212 MovieClip
"sh2"Symbol 235 MovieClip Frame 2Symbol 215 MovieClip
"sh3"Symbol 235 MovieClip Frame 2Symbol 222 MovieClip
"sh4"Symbol 235 MovieClip Frame 2Symbol 229 MovieClip
"sh_d"Symbol 235 MovieClip Frame 2Symbol 234 MovieClip
"vitr_uk"Symbol 236 MovieClip [panel] Frame 1Symbol 99 MovieClip
"name"Symbol 236 MovieClip [panel] Frame 1Symbol 103 MovieClip
"ico"Symbol 236 MovieClip [panel] Frame 1Symbol 123 MovieClip
"pow"Symbol 236 MovieClip [panel] Frame 1Symbol 132 MovieClip
"fuel_ar"Symbol 236 MovieClip [panel] Frame 1Symbol 136 MovieClip
"tank"Symbol 236 MovieClip [panel] Frame 1Symbol 108 MovieClip
"rad1"Symbol 236 MovieClip [panel] Frame 1Symbol 150 MovieClip
"rad2"Symbol 236 MovieClip [panel] Frame 1Symbol 150 MovieClip
"rad3"Symbol 236 MovieClip [panel] Frame 1Symbol 150 MovieClip
"repair"Symbol 236 MovieClip [panel] Frame 1Symbol 181 MovieClip
"parachutes"Symbol 236 MovieClip [panel] Frame 1Symbol 191 MovieClip
"teleport"Symbol 236 MovieClip [panel] Frame 1Symbol 199 MovieClip
"shields"Symbol 236 MovieClip [panel] Frame 1Symbol 235 MovieClip
"l"Symbol 260 MovieClip [clona] Frame 1Symbol 246 MovieClip
"score"Symbol 260 MovieClip [clona] Frame 1Symbol 248 MovieClip
"player"Symbol 260 MovieClip [clona] Frame 1Symbol 250 MovieClip
"r"Symbol 260 MovieClip [clona] Frame 1Symbol 253 MovieClip
"buymenu"Symbol 260 MovieClip [clona] Frame 1Symbol 259 MovieClip [buymenu]
"m1"Symbol 417 MovieClip Frame 1Symbol 150 MovieClip
"m2"Symbol 417 MovieClip Frame 1Symbol 150 MovieClip
"m3"Symbol 417 MovieClip Frame 1Symbol 150 MovieClip
"m4"Symbol 417 MovieClip Frame 1Symbol 150 MovieClip
"but1"Symbol 442 MovieClip Frame 1Symbol 434 Button
"but2"Symbol 451 MovieClip Frame 1Symbol 443 Button
"but2"Symbol 451 MovieClip Frame 2Symbol 446 Button
"but3"Symbol 456 MovieClip Frame 1Symbol 452 Button
"but3"Symbol 456 MovieClip Frame 2Symbol 455 Button
"but1"Symbol 462 MovieClip Frame 1Symbol 461 Button
"but1"Symbol 462 MovieClip Frame 2Symbol 434 Button
"but2"Symbol 466 MovieClip Frame 1Symbol 465 Button
"but2"Symbol 466 MovieClip Frame 2Symbol 446 Button
"but4"Symbol 474 MovieClip Frame 1Symbol 467 Button
"but4"Symbol 476 MovieClip Frame 1Symbol 475 Button
"but4"Symbol 476 MovieClip Frame 2Symbol 467 Button
"wynbut1"Symbol 477 MovieClip Frame 1Symbol 442 MovieClip
"wynbut2"Symbol 477 MovieClip Frame 1Symbol 451 MovieClip
"wynbut3"Symbol 477 MovieClip Frame 1Symbol 456 MovieClip
"my_mc"Symbol 477 MovieClip Frame 1Symbol 458 MovieClip
"wynbut1"Symbol 477 MovieClip Frame 2Symbol 462 MovieClip
"wynbut2"Symbol 477 MovieClip Frame 2Symbol 466 MovieClip
"wynbut1"Symbol 477 MovieClip Frame 3Symbol 442 MovieClip
"wynbut2"Symbol 477 MovieClip Frame 3Symbol 451 MovieClip
"wynbut4"Symbol 477 MovieClip Frame 3Symbol 474 MovieClip
"wynbut4"Symbol 477 MovieClip Frame 5Symbol 476 MovieClip
"wynbut1"Symbol 477 MovieClip Frame 5Symbol 462 MovieClip
"wynbut2"Symbol 477 MovieClip Frame 5Symbol 466 MovieClip
"m1"Symbol 510 MovieClip Frame 1Symbol 150 MovieClip
"m2"Symbol 510 MovieClip Frame 1Symbol 150 MovieClip
"m3"Symbol 510 MovieClip Frame 1Symbol 150 MovieClip
"m4"Symbol 510 MovieClip Frame 1Symbol 150 MovieClip
"m5"Symbol 510 MovieClip Frame 1Symbol 150 MovieClip
"m6"Symbol 510 MovieClip Frame 1Symbol 150 MovieClip
"m1"Symbol 526 MovieClip Frame 1Symbol 150 MovieClip
"m2"Symbol 526 MovieClip Frame 1Symbol 150 MovieClip
"m3"Symbol 526 MovieClip Frame 1Symbol 150 MovieClip
"m4"Symbol 526 MovieClip Frame 1Symbol 150 MovieClip
"m5"Symbol 526 MovieClip Frame 1Symbol 150 MovieClip
"napis"Symbol 544 MovieClip Frame 1Symbol 541 MovieClip
"percent"Symbol 544 MovieClip Frame 1Symbol 543 MovieClip
"but3"Symbol 565 MovieClip Frame 1Symbol 548 Button
"but2"Symbol 565 MovieClip Frame 1Symbol 549 Button
"but6"Symbol 565 MovieClip Frame 1Symbol 550 Button
"but1"Symbol 565 MovieClip Frame 1Symbol 551 Button
"but4"Symbol 565 MovieClip Frame 1Symbol 552 Button
"but5"Symbol 565 MovieClip Frame 1Symbol 553 Button
"but2"Symbol 565 MovieClip Frame 2Symbol 548 Button
"but1"Symbol 565 MovieClip Frame 2Symbol 549 Button
"but5"Symbol 565 MovieClip Frame 2Symbol 550 Button
"but3"Symbol 565 MovieClip Frame 2Symbol 552 Button
"but4"Symbol 565 MovieClip Frame 2Symbol 564 Button
"but3"Symbol 565 MovieClip Frame 3Symbol 548 Button
"but2"Symbol 565 MovieClip Frame 3Symbol 549 Button
"but1"Symbol 565 MovieClip Frame 3Symbol 551 Button
"but4"Symbol 565 MovieClip Frame 4Symbol 552 Button
"but2"Symbol 565 MovieClip Frame 5Symbol 548 Button
"but1"Symbol 565 MovieClip Frame 5Symbol 549 Button
"but4"Symbol 565 MovieClip Frame 5Symbol 550 Button
"but3"Symbol 565 MovieClip Frame 5Symbol 564 Button
"but3"Symbol 565 MovieClip Frame 6Symbol 552 Button
"but3"Symbol 565 MovieClip Frame 7Symbol 548 Button
"but2"Symbol 565 MovieClip Frame 7Symbol 549 Button
"but1"Symbol 565 MovieClip Frame 7Symbol 551 Button
"but2"Symbol 565 MovieClip Frame 8Symbol 548 Button
"but1"Symbol 565 MovieClip Frame 8Symbol 549 Button
"but3"Symbol 565 MovieClip Frame 8Symbol 550 Button
"tg"Symbol 573 MovieClip Frame 1Symbol 570 Button
"wxnfer"Symbol 593 MovieClip Frame 1Symbol 565 MovieClip
"wxnmenu"Symbol 593 MovieClip Frame 1Symbol 573 MovieClip
"my_mc"Symbol 593 MovieClip Frame 1Symbol 574 MovieClip
"wxnguides"Symbol 593 MovieClip Frame 1Symbol 586 MovieClip
"wxnfer"Symbol 593 MovieClip Frame 2Symbol 565 MovieClip

Special Tags

Protect (24)Timeline Frame 10 bytes ""
ExportAssets (56)Timeline Frame 1Symbol 2 as "strom_2"
ExportAssets (56)Timeline Frame 1Symbol 4 as "strom_1"
ExportAssets (56)Timeline Frame 1Symbol 15 as "ai_very_easy"
ExportAssets (56)Timeline Frame 1Symbol 18 as "ai_easy"
ExportAssets (56)Timeline Frame 1Symbol 21 as "ai_normal"
ExportAssets (56)Timeline Frame 1Symbol 24 as "ai_hard"
ExportAssets (56)Timeline Frame 1Symbol 27 as "ai_very_hard"
ExportAssets (56)Timeline Frame 1Symbol 30 as "tank"
ExportAssets (56)Timeline Frame 1Symbol 36 as "nuke_g"
ExportAssets (56)Timeline Frame 1Symbol 38 as "bnuke_g"
ExportAssets (56)Timeline Frame 1Symbol 40 as "death_g"
ExportAssets (56)Timeline Frame 1Symbol 42 as "mirv_g"
ExportAssets (56)Timeline Frame 1Symbol 44 as "funky_g"
ExportAssets (56)Timeline Frame 1Symbol 46 as "bnuke_c"
ExportAssets (56)Timeline Frame 1Symbol 48 as "amissile"
ExportAssets (56)Timeline Frame 1Symbol 50 as "missile_funky"
ExportAssets (56)Timeline Frame 1Symbol 52 as "hroller2_g"
ExportAssets (56)Timeline Frame 1Symbol 53 as "hroller_g"
ExportAssets (56)Timeline Frame 1Symbol 55 as "roller2_g"
ExportAssets (56)Timeline Frame 1Symbol 56 as "roller_g"
ExportAssets (56)Timeline Frame 1Symbol 58 as "broller2_g"
ExportAssets (56)Timeline Frame 1Symbol 59 as "broller_g"
ExportAssets (56)Timeline Frame 1Symbol 61 as "astrike_g"
ExportAssets (56)Timeline Frame 1Symbol 63 as "missile_g"
ExportAssets (56)Timeline Frame 1Symbol 65 as "bmissile_g"
ExportAssets (56)Timeline Frame 1Symbol 75 as "krajina2"
ExportAssets (56)Timeline Frame 1Symbol 82 as "krajina1"
ExportAssets (56)Timeline Frame 1Symbol 90 as "krajina3"
ExportAssets (56)Timeline Frame 1Symbol 92 as "hlaven"
ExportAssets (56)Timeline Frame 1Symbol 105 as "fuel"
ExportAssets (56)Timeline Frame 1Symbol 92 as "hlaven"
ExportAssets (56)Timeline Frame 1Symbol 173 as "repair"
ExportAssets (56)Timeline Frame 1Symbol 173 as "repair"
ExportAssets (56)Timeline Frame 1Symbol 183 as "par"
ExportAssets (56)Timeline Frame 1Symbol 183 as "par"
ExportAssets (56)Timeline Frame 1Symbol 183 as "par"
ExportAssets (56)Timeline Frame 1Symbol 193 as "teleport"
ExportAssets (56)Timeline Frame 1Symbol 193 as "teleport"
ExportAssets (56)Timeline Frame 1Symbol 201 as "shield"
ExportAssets (56)Timeline Frame 1Symbol 207 as "sshield"
ExportAssets (56)Timeline Frame 1Symbol 207 as "sshield"
ExportAssets (56)Timeline Frame 1Symbol 207 as "sshield"
ExportAssets (56)Timeline Frame 1Symbol 201 as "shield"
ExportAssets (56)Timeline Frame 1Symbol 201 as "shield"
ExportAssets (56)Timeline Frame 1Symbol 201 as "shield"
ExportAssets (56)Timeline Frame 1Symbol 217 as "stshield"
ExportAssets (56)Timeline Frame 1Symbol 217 as "stshield"
ExportAssets (56)Timeline Frame 1Symbol 217 as "stshield"
ExportAssets (56)Timeline Frame 1Symbol 224 as "spshield"
ExportAssets (56)Timeline Frame 1Symbol 224 as "spshield"
ExportAssets (56)Timeline Frame 1Symbol 224 as "spshield"
ExportAssets (56)Timeline Frame 1Symbol 201 as "shield"
ExportAssets (56)Timeline Frame 1Symbol 105 as "fuel"
ExportAssets (56)Timeline Frame 1Symbol 105 as "fuel"
ExportAssets (56)Timeline Frame 1Symbol 236 as "panel"
ExportAssets (56)Timeline Frame 1Symbol 239 as "blk"
ExportAssets (56)Timeline Frame 1Symbol 105 as "fuel"
ExportAssets (56)Timeline Frame 1Symbol 241 as "upmove"
ExportAssets (56)Timeline Frame 1Symbol 243 as "uphill"
ExportAssets (56)Timeline Frame 1Symbol 259 as "buymenu"
ExportAssets (56)Timeline Frame 1Symbol 260 as "clona"
ExportAssets (56)Timeline Frame 1Symbol 259 as "buymenu"
ExportAssets (56)Timeline Frame 1Symbol 269 as "special"
ExportAssets (56)Timeline Frame 1Symbol 277 as "weapon"
ExportAssets (56)Timeline Frame 1Symbol 279 as "mirv"
ExportAssets (56)Timeline Frame 1Symbol 281 as "laser"
ExportAssets (56)Timeline Frame 1Symbol 283 as "ldevastor"
ExportAssets (56)Timeline Frame 1Symbol 285 as "astrike"
ExportAssets (56)Timeline Frame 1Symbol 287 as "hroller2"
ExportAssets (56)Timeline Frame 1Symbol 288 as "hroller"
ExportAssets (56)Timeline Frame 1Symbol 290 as "roller2"
ExportAssets (56)Timeline Frame 1Symbol 291 as "roller"
ExportAssets (56)Timeline Frame 1Symbol 293 as "broller2"
ExportAssets (56)Timeline Frame 1Symbol 294 as "broller"
ExportAssets (56)Timeline Frame 1Symbol 296 as "death"
ExportAssets (56)Timeline Frame 1Symbol 298 as "funky"
ExportAssets (56)Timeline Frame 1Symbol 300 as "nuke"
ExportAssets (56)Timeline Frame 1Symbol 302 as "bmissile"
ExportAssets (56)Timeline Frame 1Symbol 304 as "missile"
ExportAssets (56)Timeline Frame 1Symbol 306 as "bnuke"
ExportAssets (56)Timeline Frame 1Symbol 308 as "astrikecur"
ExportAssets (56)Timeline Frame 1Symbol 313 as "score_tab"
ExportAssets (56)Timeline Frame 1Symbol 183 as "par"
ExportAssets (56)Timeline Frame 1Symbol 315 as "parachute"
ExportAssets (56)Timeline Frame 1Symbol 173 as "repair"
ExportAssets (56)Timeline Frame 1Symbol 193 as "teleport"
ExportAssets (56)Timeline Frame 1Symbol 320 as "teleport_a"
ExportAssets (56)Timeline Frame 1Symbol 322 as "uparmor"
ExportAssets (56)Timeline Frame 1Symbol 324 as "upenergy"
ExportAssets (56)Timeline Frame 1Symbol 207 as "sshield"
ExportAssets (56)Timeline Frame 1Symbol 224 as "spshield"
ExportAssets (56)Timeline Frame 1Symbol 217 as "stshield"
ExportAssets (56)Timeline Frame 1Symbol 201 as "shield"
ExportAssets (56)Timeline Frame 1Symbol 326 as "weak_sh"
ExportAssets (56)Timeline Frame 1Symbol 328 as "shield_sh"
ExportAssets (56)Timeline Frame 1Symbol 330 as "strong_sh"
ExportAssets (56)Timeline Frame 1Symbol 332 as "super_sh"

Labels

"loop1"Frame 1
"loop2"Frame 5
"loop3"Frame 11
"intro"Frame 15
"inceputJoc"Frame 175
"alegereJucatori"Frame 176
"vytv_ter"Frame 177
"jocA"Frame 178
"hra"Frame 179
"finalJoc"Frame 181
"loop"Symbol 400 MovieClip Frame 3

Dynamic Text Variables

powerSymbol 95 EditableText"100"
rotationSymbol 96 EditableText"180"
vitrSymbol 97 EditableText""
energySymbol 100 EditableText"100"
nameSymbol 101 EditableText"Name"
nameSymbol 102 EditableText"Name"
scoreSymbol 110 EditableText"999999"
nameSymbol 119 EditableText""
countSymbol 120 EditableText""
nameSymbol 121 EditableText""
countSymbol 122 EditableText""
fuelSymbol 137 EditableText"9999"
vitrSymbol 155 EditableText""
scoreSymbol 157 EditableText"999999"
powerSymbol 158 EditableText"100"
rotationSymbol 159 EditableText"180"
energySymbol 160 EditableText"100"
fuelSymbol 161 EditableText"9999"
countSymbol 179 EditableText"99"
countSymbol 180 EditableText"99"
countSymbol 187 EditableText"99"
countSymbol 188 EditableText"99"
countSymbol 197 EditableText"99"
countSymbol 198 EditableText"99"
countSymbol 211 EditableText"99"
countSymbol 214 EditableText"99"
countSymbol 221 EditableText"99"
countSymbol 228 EditableText"99"
scoreSymbol 247 EditableText""
playerSymbol 249 EditableText""
but_captSymbol 258 EditableText"Next player"
w_captionSymbol 264 EditableText"special"
w_priceSymbol 265 EditableText"200000"
w_countSymbol 266 EditableText"10"
t_countSymbol 267 EditableText"999"
w2_captionSymbol 268 EditableText"special"
w_captionSymbol 272 EditableText"weapon"
w_priceSymbol 273 EditableText"200000"
w_countSymbol 274 EditableText"10"
t_countSymbol 275 EditableText"999"
w2_captionSymbol 276 EditableText"weapon"
nameSymbol 309 EditableText"A A A B C D"
scoreSymbol 310 EditableText"1234567"
nameSymbol 311 EditableText"A A A B C D"
scoreSymbol 312 EditableText"1234567"
_parent.procentSymbol 342 EditableText"00"
pocetSymbol 424 EditableText"2"
cisloSymbol 500 EditableText""
nameSymbol 502 EditableText""
ukSymbol 511 EditableText""
cisloSymbol 537 EditableText""
ukSymbol 538 EditableText""




http://swfchan.com/6/25465/info.shtml
Created: 23/5 -2019 17:08:51 Last modified: 23/5 -2019 17:08:51 Server time: 19/05 -2024 03:59:20