Frame 2
player1 = 250;
player2 = 250;
weapons1 = 0;
weapons2 = 0;
hat1 = 0;
hat2 = 0;
ammos1 = 300;
ammos2 = 300;
speeder1 = 0;
speeder2 = 0;
damage1 = 0;
damage2 = 0;
stop();
Frame 3
stop();
Frame 4
stop();
Frame 5
player1 = 250;
player2 = 250;
stop();
Frame 6
if (_root.weapons1 == 0) {
tellTarget ("_root.gun.gun") {
gotoAndStop (1);
_root.damage1 = 2;
_root.speeder1 = 5;
};
}
if (_root.weapons1 == 1) {
tellTarget ("_root.gun.gun") {
gotoAndStop (2);
_root.damage1 = 3;
_root.speeder1 = 4;
};
}
if (_root.weapons1 == 2) {
tellTarget ("_root.gun.gun") {
gotoAndStop (3);
_root.damage1 = 1;
_root.speeder1 = 8;
};
}
if (_root.weapons1 == 3) {
tellTarget ("_root.gun.gun") {
gotoAndStop (4);
_root.damage1 = 4;
_root.speeder1 = 3;
};
}
if (_root.weapons2 == 0) {
tellTarget ("_root.gun2.gun2") {
gotoAndStop (1);
_root.damage2 = 2;
_root.speeder2 = 5;
};
}
if (_root.weapons2 == 1) {
tellTarget ("_root.gun2.gun2") {
gotoAndStop (2);
_root.damage2 = 3;
_root.speeder2 = 4;
};
}
if (_root.weapons2 == 2) {
tellTarget ("_root.gun2.gun2") {
gotoAndStop (3);
_root.damage2 = 1;
_root.speeder2 = 8;
};
}
if (_root.weapons2 == 3) {
tellTarget ("_root.gun2.gun2") {
gotoAndStop (4);
_root.damage2 = 4;
_root.speeder2 = 3;
};
}
if (_root.hat1 == 0) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (1);
};
}
if (_root.hat1 == 1) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (2);
};
}
if (_root.hat1 == 2) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (3);
};
}
if (_root.hat1 == 3) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (4);
};
}
if (_root.hat1 == 4) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (5);
};
}
if (_root.hat1 == 5) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (6);
};
}
if (_root.hat1 == 6) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (7);
};
}
if (_root.hat1 == 7) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (8);
};
}
if (_root.hat1 == 8) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (9);
};
}
if (_root.hat1 == 9) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (10);
};
}
if (_root.hat1 == 0) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (1);
};
}
if (_root.hat2 == 1) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (2);
};
}
if (_root.hat2 == 2) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (3);
};
}
if (_root.hat2 == 3) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (4);
};
}
if (_root.hat2 == 4) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (5);
};
}
if (_root.hat2 == 5) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (6);
};
}
if (_root.hat2 == 6) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (7);
};
}
if (_root.hat2 == 7) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (8);
};
}
if (_root.hat2 == 8) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (9);
};
}
if (_root.hat2 == 9) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (10);
};
}
function Bulllet() {
this.speed = speeder2;
}
_global.bulllet_depth = 1;
addBullet2 = function (x, y, rot) {
_root.attachMovie("bulllet", "bulllet_" + _global.bulllet_depth, _global.bulllet_depth, {_x:x, _y:y, _rotation:rot});
_global.bulllet_depth++;
};
degToRad = function (deg) {
rad = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
return(deg);
};
Bulllet.prototype = new MovieClip();
Bulllet.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (((((this._x < 0) || (this._x > 550)) || (this._y < 0)) || (this._y > 400)) || (_root.walls.hitTest(this._x, this._y, true))) {
this.removeMovieClip();
}
};
Object.registerClass("bulllet", Bulllet);
function Bullet() {
this.speed = speeder1;
}
_global.bullet_depth = 1;
addBullet = function (x, y, rot) {
_root.attachMovie("bullet", "bullet_" + _global.bullet_depth, _global.bullet_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet_depth++;
};
degToRad = function (deg) {
rad = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
return(deg);
};
Bullet.prototype = new MovieClip();
Bullet.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (((((this._x < 0) || (this._x > 550)) || (this._y < 0)) || (this._y > 400)) || (_root.walls.hitTest(this._x, this._y, true))) {
this.removeMovieClip();
}
};
Object.registerClass("bullet", Bullet);
Instance of Symbol 176 MovieClip "gun2" in Frame 6
onClipEvent (enterFrame) {
if (_root.walls.hitTest(_x + x, _y + y, true)) {
speed = 0.5;
}
}
onClipEvent (enterFrame) {
if (_root.player2 <= 0) {
_root.gotoAndPlay("DEAD1");
}
}
onClipEvent (load) {
speed = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(87)) {
speed = speed - 0.2;
}
if (Key.isDown(83)) {
speed = speed + 0.2;
}
if (Math.abs(speed) > 20) {
speed = speed * 0.7;
}
if (Key.isDown(65)) {
_rotation = (_rotation - 7);
}
if (Key.isDown(68)) {
_rotation = (_rotation + 7);
}
speed = speed * 0.9;
x = Math.sin(_rotation * (Math.PI/180)) * speed;
y = (Math.cos(_rotation * (Math.PI/180)) * speed) * -1;
if (!_root.land.hitTest(_x + x, _y + y, true)) {
_x = (_x + x);
_y = (_y + y);
} else {
speed = speed * -0.6;
}
}
Instance of Symbol 178 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_root.ammos2 > 0) {
if (Key.isDown(20)) {
_root.ammos2 = _root.ammos2 - 1;
_root.addBullet2(this._x, this._y, this._rotation);
tellTarget ("_root.gun2.shot") {
gotoAndPlay (2);
};
}
}
}
onClipEvent (load) {
speed = 0;
}
onClipEvent (enterFrame) {
_x = _root.gun2._x;
_y = _root.gun2._y;
if (Math.abs(speed) > 20) {
speed = speed * 0.7;
}
if (Key.isDown(65)) {
_rotation = (_rotation - 7);
}
if (Key.isDown(68)) {
_rotation = (_rotation + 7);
}
if (Key.isDown(18)) {
tellTarget ("_root.car") {
gotoAndPlay (2);
};
}
speed = speed * 0.9;
x = Math.sin(_rotation * (Math.PI/180)) * speed;
y = (Math.cos(_rotation * (Math.PI/180)) * speed) * -1;
if (!_root.walls.hitTest(_x + x, _y + y, true)) {
_x = (_x + x);
_y = (_y + y);
} else {
speed = speed * -0.6;
}
}
Instance of Symbol 179 MovieClip "gun" in Frame 6
onClipEvent (enterFrame) {
if (_root.walls.hitTest(_x + x, _y + y, true)) {
speed = 0.5;
}
}
onClipEvent (enterFrame) {
if (_root.player1 <= 0) {
_root.gotoAndPlay("DEAD2");
}
}
onClipEvent (load) {
speed = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(38)) {
speed = speed - 0.2;
}
if (Key.isDown(40)) {
speed = speed + 0.2;
}
if (Math.abs(speed) > 20) {
speed = speed * 0.7;
}
if (Key.isDown(37)) {
_rotation = (_rotation - 7);
}
if (Key.isDown(39)) {
_rotation = (_rotation + 7);
}
if (Key.isDown(18)) {
tellTarget ("_root.car") {
gotoAndPlay (2);
};
}
speed = speed * 0.9;
x = Math.sin(_rotation * (Math.PI/180)) * speed;
y = (Math.cos(_rotation * (Math.PI/180)) * speed) * -1;
if (!_root.land.hitTest(_x + x, _y + y, true)) {
_x = (_x + x);
_y = (_y + y);
} else {
speed = speed * -0.6;
}
}
Instance of Symbol 178 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_root.ammos1 > 0) {
if (Key.isDown(16)) {
_root.ammos1 = _root.ammos1 - 1;
_root.addBullet(this._x, this._y, this._rotation);
tellTarget ("_root.gun.shot") {
gotoAndPlay (2);
};
}
}
}
onClipEvent (load) {
speed = 0;
}
onClipEvent (enterFrame) {
_x = _root.gun._x;
_y = _root.gun._y;
if (Math.abs(speed) > 20) {
speed = speed * 0.7;
}
if (Key.isDown(37)) {
_rotation = (_rotation - 7);
}
if (Key.isDown(39)) {
_rotation = (_rotation + 7);
}
if (Key.isDown(18)) {
tellTarget ("_root.car") {
gotoAndPlay (2);
};
}
speed = speed * 0.9;
x = Math.sin(_rotation * (Math.PI/180)) * speed;
y = (Math.cos(_rotation * (Math.PI/180)) * speed) * -1;
if (!_root.walls.hitTest(_x + x, _y + y, true)) {
_x = (_x + x);
_y = (_y + y);
} else {
speed = speed * -0.6;
}
}
Instance of Symbol 195 MovieClip "box" in Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.gun)) {
setProperty(_root.box, _x , 50 + random(400));
setProperty(_root.box, _y , 50 + random(300));
_root.player1 = _root.player1 + 25;
tellTarget ("_root.box") {
gotoAndPlay (1);
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.gun2)) {
setProperty(_root.box, _x , 50 + random(400));
setProperty(_root.box, _y , 50 + random(300));
_root.player2 = _root.player2 + 25;
tellTarget ("_root.box") {
gotoAndPlay (1);
};
}
}
Instance of Symbol 196 MovieClip "naboje" in Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.gun)) {
setProperty(_root.naboje, _x , 50 + random(400));
setProperty(_root.naboje, _y , 50 + random(300));
_root.ammos1 = _root.ammos1 + 50;
tellTarget ("_root.naboje") {
gotoAndPlay (1);
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.gun2)) {
setProperty(_root.naboje, _x , 50 + random(400));
setProperty(_root.naboje, _y , 50 + random(300));
_root.ammos2 = _root.ammos2 + 50;
tellTarget ("_root.naboje") {
gotoAndPlay (1);
};
}
}
Frame 7
gotoAndStop (6);
Frame 8
if (_root.weapons1 == 0) {
tellTarget ("_root.gun.gun") {
gotoAndStop (1);
_root.damage1 = 2;
_root.speeder1 = 5;
};
}
if (_root.weapons1 == 1) {
tellTarget ("_root.gun.gun") {
gotoAndStop (2);
_root.damage1 = 3;
_root.speeder1 = 4;
};
}
if (_root.weapons1 == 2) {
tellTarget ("_root.gun.gun") {
gotoAndStop (3);
_root.damage1 = 1;
_root.speeder1 = 8;
};
}
if (_root.weapons1 == 3) {
tellTarget ("_root.gun.gun") {
gotoAndStop (4);
_root.damage1 = 4;
_root.speeder1 = 3;
};
}
if (_root.weapons2 == 0) {
tellTarget ("_root.gun2.gun2") {
gotoAndStop (1);
_root.damage2 = 2;
_root.speeder2 = 5;
};
}
if (_root.weapons2 == 1) {
tellTarget ("_root.gun2.gun2") {
gotoAndStop (2);
_root.damage2 = 3;
_root.speeder2 = 4;
};
}
if (_root.weapons2 == 2) {
tellTarget ("_root.gun2.gun2") {
gotoAndStop (3);
_root.damage2 = 1;
_root.speeder2 = 8;
};
}
if (_root.weapons2 == 3) {
tellTarget ("_root.gun2.gun2") {
gotoAndStop (4);
_root.damage2 = 4;
_root.speeder2 = 3;
};
}
if (_root.hat1 == 0) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (1);
};
}
if (_root.hat1 == 1) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (2);
};
}
if (_root.hat1 == 2) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (3);
};
}
if (_root.hat1 == 3) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (4);
};
}
if (_root.hat1 == 4) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (5);
};
}
if (_root.hat1 == 5) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (6);
};
}
if (_root.hat1 == 6) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (7);
};
}
if (_root.hat1 == 7) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (8);
};
}
if (_root.hat1 == 8) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (9);
};
}
if (_root.hat1 == 9) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (10);
};
}
if (_root.hat1 == 0) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (1);
};
}
if (_root.hat2 == 1) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (2);
};
}
if (_root.hat2 == 2) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (3);
};
}
if (_root.hat2 == 3) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (4);
};
}
if (_root.hat2 == 4) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (5);
};
}
if (_root.hat2 == 5) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (6);
};
}
if (_root.hat2 == 6) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (7);
};
}
if (_root.hat2 == 7) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (8);
};
}
if (_root.hat2 == 8) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (9);
};
}
if (_root.hat2 == 9) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (10);
};
}
stop();
function Bulllet() {
this.speed = speeder2;
}
_global.bulllet_depth = 1;
addBullet2 = function (x, y, rot) {
_root.attachMovie("bulllet", "bulllet_" + _global.bulllet_depth, _global.bulllet_depth, {_x:x, _y:y, _rotation:rot});
_global.bulllet_depth++;
};
degToRad = function (deg) {
rad = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
return(deg);
};
Bulllet.prototype = new MovieClip();
Bulllet.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (((((this._x < 0) || (this._x > 550)) || (this._y < 0)) || (this._y > 400)) || (_root.walls.hitTest(this._x, this._y, true))) {
this.removeMovieClip();
}
};
Object.registerClass("bulllet", Bulllet);
function Bullet() {
this.speed = speeder1;
}
_global.bullet_depth = 1;
addBullet = function (x, y, rot) {
_root.attachMovie("bullet", "bullet_" + _global.bullet_depth, _global.bullet_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet_depth++;
};
degToRad = function (deg) {
rad = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
return(deg);
};
Bullet.prototype = new MovieClip();
Bullet.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (((((this._x < 0) || (this._x > 550)) || (this._y < 0)) || (this._y > 400)) || (_root.walls.hitTest(this._x, this._y, true))) {
this.removeMovieClip();
}
};
Object.registerClass("bullet", Bullet);
Instance of Symbol 176 MovieClip "gun2" in Frame 8
onClipEvent (enterFrame) {
if (_root.walls.hitTest(_x + x, _y + y, true)) {
speed = 0.5;
}
}
onClipEvent (enterFrame) {
if (_root.player2 <= 0) {
_root.gotoAndPlay("DEAD1");
}
}
onClipEvent (load) {
speed = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(87)) {
speed = speed - 0.2;
}
if (Key.isDown(83)) {
speed = speed + 0.2;
}
if (Math.abs(speed) > 20) {
speed = speed * 0.7;
}
if (Key.isDown(65)) {
_rotation = (_rotation - 7);
}
if (Key.isDown(68)) {
_rotation = (_rotation + 7);
}
if (Key.isDown(18)) {
tellTarget ("_root.car") {
gotoAndPlay (2);
};
}
speed = speed * 0.9;
x = Math.sin(_rotation * (Math.PI/180)) * speed;
y = (Math.cos(_rotation * (Math.PI/180)) * speed) * -1;
if (!_root.land.hitTest(_x + x, _y + y, true)) {
_x = (_x + x);
_y = (_y + y);
} else {
speed = speed * -0.6;
}
}
Instance of Symbol 179 MovieClip "gun" in Frame 8
onClipEvent (enterFrame) {
if (_root.walls.hitTest(_x + x, _y + y, true)) {
speed = 0.5;
}
}
onClipEvent (enterFrame) {
if (_root.player1 <= 0) {
_root.gotoAndPlay("DEAD2");
}
}
onClipEvent (load) {
speed = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(38)) {
speed = speed - 0.2;
}
if (Key.isDown(40)) {
speed = speed + 0.2;
}
if (Math.abs(speed) > 20) {
speed = speed * 0.7;
}
if (Key.isDown(37)) {
_rotation = (_rotation - 7);
}
if (Key.isDown(39)) {
_rotation = (_rotation + 7);
}
if (Key.isDown(18)) {
tellTarget ("_root.car") {
gotoAndPlay (2);
};
}
speed = speed * 0.9;
x = Math.sin(_rotation * (Math.PI/180)) * speed;
y = (Math.cos(_rotation * (Math.PI/180)) * speed) * -1;
if (!_root.land.hitTest(_x + x, _y + y, true)) {
_x = (_x + x);
_y = (_y + y);
} else {
speed = speed * -0.6;
}
}
Instance of Symbol 178 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (_root.ammos1 > 0) {
if (Key.isDown(16)) {
_root.ammos1 = _root.ammos1 - 1;
_root.addBullet(this._x, this._y, this._rotation);
tellTarget ("_root.gun.shot") {
gotoAndPlay (2);
};
}
}
}
onClipEvent (load) {
speed = 0;
}
onClipEvent (enterFrame) {
_x = _root.gun._x;
_y = _root.gun._y;
if (Math.abs(speed) > 20) {
speed = speed * 0.7;
}
if (Key.isDown(37)) {
_rotation = (_rotation - 7);
}
if (Key.isDown(39)) {
_rotation = (_rotation + 7);
}
if (Key.isDown(18)) {
tellTarget ("_root.car") {
gotoAndPlay (2);
};
}
speed = speed * 0.9;
x = Math.sin(_rotation * (Math.PI/180)) * speed;
y = (Math.cos(_rotation * (Math.PI/180)) * speed) * -1;
if (!_root.walls.hitTest(_x + x, _y + y, true)) {
_x = (_x + x);
_y = (_y + y);
} else {
speed = speed * -0.6;
}
}
Instance of Symbol 178 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (_root.ammos2 > 0) {
if (Key.isDown(20)) {
_root.ammos2 = _root.ammos2 - 1;
_root.addBullet2(this._x, this._y, this._rotation);
tellTarget ("_root.gun2.shot") {
gotoAndPlay (2);
};
}
}
}
onClipEvent (load) {
speed = 0;
}
onClipEvent (enterFrame) {
_x = _root.gun2._x;
_y = _root.gun2._y;
if (Math.abs(speed) > 20) {
speed = speed * 0.7;
}
if (Key.isDown(65)) {
_rotation = (_rotation - 7);
}
if (Key.isDown(68)) {
_rotation = (_rotation + 7);
}
if (Key.isDown(18)) {
tellTarget ("_root.car") {
gotoAndPlay (2);
};
}
speed = speed * 0.9;
x = Math.sin(_rotation * (Math.PI/180)) * speed;
y = (Math.cos(_rotation * (Math.PI/180)) * speed) * -1;
if (!_root.walls.hitTest(_x + x, _y + y, true)) {
_x = (_x + x);
_y = (_y + y);
} else {
speed = speed * -0.6;
}
}
Instance of Symbol 195 MovieClip "box" in Frame 8
onClipEvent (enterFrame) {
if (this.hitTest(_root.gun)) {
setProperty(_root.box, _x , 50 + random(400));
setProperty(_root.box, _y , 50 + random(300));
_root.player1 = _root.player1 + 25;
tellTarget ("_root.box") {
gotoAndPlay (1);
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.gun2)) {
setProperty(_root.box, _x , 50 + random(400));
setProperty(_root.box, _y , 50 + random(300));
_root.player2 = _root.player2 + 25;
tellTarget ("_root.box") {
gotoAndPlay (1);
};
}
}
Instance of Symbol 196 MovieClip "naboje" in Frame 8
onClipEvent (enterFrame) {
if (this.hitTest(_root.gun)) {
setProperty(_root.naboje, _x , 50 + random(400));
setProperty(_root.naboje, _y , 50 + random(300));
_root.ammos1 = _root.ammos1 + 50;
tellTarget ("_root.naboje") {
gotoAndPlay (1);
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.gun2)) {
setProperty(_root.naboje, _x , 50 + random(400));
setProperty(_root.naboje, _y , 50 + random(300));
_root.ammos2 = _root.ammos2 + 50;
tellTarget ("_root.naboje") {
gotoAndPlay (1);
};
}
}
Frame 9
gotoAndPlay (8);
Frame 10
if (_root.weapons1 == 0) {
tellTarget ("_root.gun.gun") {
gotoAndStop (1);
_root.damage1 = 2;
_root.speeder1 = 5;
};
}
if (_root.weapons1 == 1) {
tellTarget ("_root.gun.gun") {
gotoAndStop (2);
_root.damage1 = 3;
_root.speeder1 = 4;
};
}
if (_root.weapons1 == 2) {
tellTarget ("_root.gun.gun") {
gotoAndStop (3);
_root.damage1 = 1;
_root.speeder1 = 8;
};
}
if (_root.weapons1 == 3) {
tellTarget ("_root.gun.gun") {
gotoAndStop (4);
_root.damage1 = 4;
_root.speeder1 = 3;
};
}
if (_root.weapons2 == 0) {
tellTarget ("_root.gun2.gun2") {
gotoAndStop (1);
_root.damage2 = 2;
_root.speeder2 = 5;
};
}
if (_root.weapons2 == 1) {
tellTarget ("_root.gun2.gun2") {
gotoAndStop (2);
_root.damage2 = 3;
_root.speeder2 = 4;
};
}
if (_root.weapons2 == 2) {
tellTarget ("_root.gun2.gun2") {
gotoAndStop (3);
_root.damage2 = 1;
_root.speeder2 = 8;
};
}
if (_root.weapons2 == 3) {
tellTarget ("_root.gun2.gun2") {
gotoAndStop (4);
_root.damage2 = 4;
_root.speeder2 = 3;
};
}
function Bulllet() {
this.speed = speeder2;
}
_global.bulllet_depth = 1;
addBullet2 = function (x, y, rot) {
_root.attachMovie("bulllet", "bulllet_" + _global.bulllet_depth, _global.bulllet_depth, {_x:x, _y:y, _rotation:rot});
_global.bulllet_depth++;
};
degToRad = function (deg) {
rad = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
return(deg);
};
Bulllet.prototype = new MovieClip();
Bulllet.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (((((this._x < 0) || (this._x > 550)) || (this._y < 0)) || (this._y > 400)) || (_root.walls.hitTest(this._x, this._y, true))) {
this.removeMovieClip();
}
};
Object.registerClass("bulllet", Bulllet);
function Bullet() {
this.speed = speeder1;
}
_global.bullet_depth = 1;
addBullet = function (x, y, rot) {
_root.attachMovie("bullet", "bullet_" + _global.bullet_depth, _global.bullet_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet_depth++;
};
degToRad = function (deg) {
rad = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
return(deg);
};
Bullet.prototype = new MovieClip();
Bullet.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (((((this._x < 0) || (this._x > 550)) || (this._y < 0)) || (this._y > 400)) || (_root.walls.hitTest(this._x, this._y, true))) {
this.removeMovieClip();
}
};
Object.registerClass("bullet", Bullet);
if (_root.hat1 == 0) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (1);
};
}
if (_root.hat1 == 1) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (2);
};
}
if (_root.hat1 == 2) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (3);
};
}
if (_root.hat1 == 3) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (4);
};
}
if (_root.hat1 == 4) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (5);
};
}
if (_root.hat1 == 5) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (6);
};
}
if (_root.hat1 == 6) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (7);
};
}
if (_root.hat1 == 7) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (8);
};
}
if (_root.hat1 == 8) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (9);
};
}
if (_root.hat1 == 9) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (10);
};
}
if (_root.hat1 == 0) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (1);
};
}
if (_root.hat2 == 1) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (2);
};
}
if (_root.hat2 == 2) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (3);
};
}
if (_root.hat2 == 3) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (4);
};
}
if (_root.hat2 == 4) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (5);
};
}
if (_root.hat2 == 5) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (6);
};
}
if (_root.hat2 == 6) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (7);
};
}
if (_root.hat2 == 7) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (8);
};
}
if (_root.hat2 == 8) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (9);
};
}
if (_root.hat2 == 9) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (10);
};
}
stop();
Instance of Symbol 176 MovieClip "gun2" in Frame 10
onClipEvent (enterFrame) {
if (_root.walls.hitTest(_x + x, _y + y, true)) {
speed = 0.5;
}
}
onClipEvent (enterFrame) {
if (_root.player2 <= 0) {
_root.gotoAndPlay("DEAD1");
}
}
onClipEvent (load) {
speed = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(87)) {
speed = speed - 0.2;
}
if (Key.isDown(83)) {
speed = speed + 0.2;
}
if (Math.abs(speed) > 20) {
speed = speed * 0.7;
}
if (Key.isDown(65)) {
_rotation = (_rotation - 7);
}
if (Key.isDown(68)) {
_rotation = (_rotation + 7);
}
if (Key.isDown(18)) {
tellTarget ("_root.car") {
gotoAndPlay (2);
};
}
speed = speed * 0.9;
x = Math.sin(_rotation * (Math.PI/180)) * speed;
y = (Math.cos(_rotation * (Math.PI/180)) * speed) * -1;
if (!_root.land.hitTest(_x + x, _y + y, true)) {
_x = (_x + x);
_y = (_y + y);
} else {
speed = speed * -0.6;
}
}
Instance of Symbol 179 MovieClip "gun" in Frame 10
onClipEvent (enterFrame) {
if (_root.walls.hitTest(_x + x, _y + y, true)) {
speed = 0.5;
}
}
onClipEvent (enterFrame) {
if (_root.player1 <= 0) {
_root.gotoAndPlay("DEAD2");
}
}
onClipEvent (load) {
speed = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(38)) {
speed = speed - 0.2;
}
if (Key.isDown(40)) {
speed = speed + 0.2;
}
if (Math.abs(speed) > 20) {
speed = speed * 0.7;
}
if (Key.isDown(37)) {
_rotation = (_rotation - 7);
}
if (Key.isDown(39)) {
_rotation = (_rotation + 7);
}
if (Key.isDown(18)) {
tellTarget ("_root.car") {
gotoAndPlay (2);
};
}
speed = speed * 0.9;
x = Math.sin(_rotation * (Math.PI/180)) * speed;
y = (Math.cos(_rotation * (Math.PI/180)) * speed) * -1;
if (!_root.land.hitTest(_x + x, _y + y, true)) {
_x = (_x + x);
_y = (_y + y);
} else {
speed = speed * -0.6;
}
}
Instance of Symbol 178 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (_root.ammos1 > 0) {
if (Key.isDown(16)) {
_root.ammos1 = _root.ammos1 - 1;
_root.addBullet(this._x, this._y, this._rotation);
tellTarget ("_root.gun.shot") {
gotoAndPlay (2);
};
}
}
}
onClipEvent (load) {
speed = 0;
}
onClipEvent (enterFrame) {
_x = _root.gun._x;
_y = _root.gun._y;
if (Math.abs(speed) > 20) {
speed = speed * 0.7;
}
if (Key.isDown(37)) {
_rotation = (_rotation - 7);
}
if (Key.isDown(39)) {
_rotation = (_rotation + 7);
}
if (Key.isDown(18)) {
tellTarget ("_root.car") {
gotoAndPlay (2);
};
}
speed = speed * 0.9;
x = Math.sin(_rotation * (Math.PI/180)) * speed;
y = (Math.cos(_rotation * (Math.PI/180)) * speed) * -1;
if (!_root.walls.hitTest(_x + x, _y + y, true)) {
_x = (_x + x);
_y = (_y + y);
} else {
speed = speed * -0.6;
}
}
Instance of Symbol 178 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (_root.ammos2 > 0) {
if (Key.isDown(20)) {
_root.ammos2 = _root.ammos2 - 1;
_root.addBullet2(this._x, this._y, this._rotation);
tellTarget ("_root.gun2.shot") {
gotoAndPlay (2);
};
}
}
}
onClipEvent (load) {
speed = 0;
}
onClipEvent (enterFrame) {
_x = _root.gun2._x;
_y = _root.gun2._y;
if (Math.abs(speed) > 20) {
speed = speed * 0.7;
}
if (Key.isDown(65)) {
_rotation = (_rotation - 7);
}
if (Key.isDown(68)) {
_rotation = (_rotation + 7);
}
if (Key.isDown(18)) {
tellTarget ("_root.car") {
gotoAndPlay (2);
};
}
speed = speed * 0.9;
x = Math.sin(_rotation * (Math.PI/180)) * speed;
y = (Math.cos(_rotation * (Math.PI/180)) * speed) * -1;
if (!_root.walls.hitTest(_x + x, _y + y, true)) {
_x = (_x + x);
_y = (_y + y);
} else {
speed = speed * -0.6;
}
}
Instance of Symbol 195 MovieClip "box" in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.gun)) {
setProperty(_root.box, _x , 50 + random(400));
setProperty(_root.box, _y , 50 + random(300));
_root.player1 = _root.player1 + 25;
tellTarget ("_root.box") {
gotoAndPlay (1);
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.gun2)) {
setProperty(_root.box, _x , 50 + random(400));
setProperty(_root.box, _y , 50 + random(300));
_root.player2 = _root.player2 + 25;
tellTarget ("_root.box") {
gotoAndPlay (1);
};
}
}
Instance of Symbol 196 MovieClip "naboje" in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.gun)) {
setProperty(_root.naboje, _x , 50 + random(400));
setProperty(_root.naboje, _y , 50 + random(300));
_root.ammos1 = _root.ammos1 + 50;
tellTarget ("_root.naboje") {
gotoAndPlay (1);
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.gun2)) {
setProperty(_root.naboje, _x , 50 + random(400));
setProperty(_root.naboje, _y , 50 + random(300));
_root.ammos2 = _root.ammos2 + 50;
tellTarget ("_root.naboje") {
gotoAndPlay (1);
};
}
}
Frame 11
gotoAndPlay (10);
Frame 12
if (_root.weapons1 == 0) {
tellTarget ("_root.gun.gun") {
gotoAndStop (1);
_root.damage1 = 2;
_root.speeder1 = 5;
};
}
if (_root.weapons1 == 1) {
tellTarget ("_root.gun.gun") {
gotoAndStop (2);
_root.damage1 = 3;
_root.speeder1 = 4;
};
}
if (_root.weapons1 == 2) {
tellTarget ("_root.gun.gun") {
gotoAndStop (3);
_root.damage1 = 1;
_root.speeder1 = 8;
};
}
if (_root.weapons1 == 3) {
tellTarget ("_root.gun.gun") {
gotoAndStop (4);
_root.damage1 = 4;
_root.speeder1 = 3;
};
}
if (_root.weapons2 == 0) {
tellTarget ("_root.gun2.gun2") {
gotoAndStop (1);
_root.damage2 = 2;
_root.speeder2 = 5;
};
}
if (_root.weapons2 == 1) {
tellTarget ("_root.gun2.gun2") {
gotoAndStop (2);
_root.damage2 = 3;
_root.speeder2 = 4;
};
}
if (_root.weapons2 == 2) {
tellTarget ("_root.gun2.gun2") {
gotoAndStop (3);
_root.damage2 = 1;
_root.speeder2 = 8;
};
}
if (_root.weapons2 == 3) {
tellTarget ("_root.gun2.gun2") {
gotoAndStop (4);
_root.damage2 = 4;
_root.speeder2 = 3;
};
}
function Bulllet() {
this.speed = speeder2;
}
_global.bulllet_depth = 1;
addBullet2 = function (x, y, rot) {
_root.attachMovie("bulllet", "bulllet_" + _global.bulllet_depth, _global.bulllet_depth, {_x:x, _y:y, _rotation:rot});
_global.bulllet_depth++;
};
degToRad = function (deg) {
rad = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
return(deg);
};
Bulllet.prototype = new MovieClip();
Bulllet.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (((((this._x < 0) || (this._x > 550)) || (this._y < 0)) || (this._y > 400)) || (_root.walls.hitTest(this._x, this._y, true))) {
this.removeMovieClip();
}
};
Object.registerClass("bulllet", Bulllet);
if (_root.hat1 == 0) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (1);
};
}
if (_root.hat1 == 1) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (2);
};
}
if (_root.hat1 == 2) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (3);
};
}
if (_root.hat1 == 3) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (4);
};
}
if (_root.hat1 == 4) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (5);
};
}
if (_root.hat1 == 5) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (6);
};
}
if (_root.hat1 == 6) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (7);
};
}
if (_root.hat1 == 7) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (8);
};
}
if (_root.hat1 == 8) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (9);
};
}
if (_root.hat1 == 9) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (10);
};
}
if (_root.hat1 == 0) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (1);
};
}
if (_root.hat2 == 1) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (2);
};
}
if (_root.hat2 == 2) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (3);
};
}
if (_root.hat2 == 3) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (4);
};
}
if (_root.hat2 == 4) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (5);
};
}
if (_root.hat2 == 5) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (6);
};
}
if (_root.hat2 == 6) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (7);
};
}
if (_root.hat2 == 7) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (8);
};
}
if (_root.hat2 == 8) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (9);
};
}
if (_root.hat2 == 9) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (10);
};
}
stop();
function Bullet() {
this.speed = speeder1;
}
_global.bullet_depth = 1;
addBullet = function (x, y, rot) {
_root.attachMovie("bullet", "bullet_" + _global.bullet_depth, _global.bullet_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet_depth++;
};
degToRad = function (deg) {
rad = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
return(deg);
};
Bullet.prototype = new MovieClip();
Bullet.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (((((this._x < 0) || (this._x > 550)) || (this._y < 0)) || (this._y > 400)) || (_root.walls.hitTest(this._x, this._y, true))) {
this.removeMovieClip();
}
};
Object.registerClass("bullet", Bullet);
Instance of Symbol 176 MovieClip "gun2" in Frame 12
onClipEvent (enterFrame) {
if (_root.walls.hitTest(_x + x, _y + y, true)) {
speed = 0.5;
}
}
onClipEvent (enterFrame) {
if (_root.player2 <= 0) {
_root.gotoAndPlay("DEAD1");
}
}
onClipEvent (load) {
speed = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(87)) {
speed = speed - 0.2;
}
if (Key.isDown(83)) {
speed = speed + 0.2;
}
if (Math.abs(speed) > 20) {
speed = speed * 0.7;
}
if (Key.isDown(65)) {
_rotation = (_rotation - 7);
}
if (Key.isDown(68)) {
_rotation = (_rotation + 7);
}
if (Key.isDown(18)) {
tellTarget ("_root.car") {
gotoAndPlay (2);
};
}
speed = speed * 0.9;
x = Math.sin(_rotation * (Math.PI/180)) * speed;
y = (Math.cos(_rotation * (Math.PI/180)) * speed) * -1;
if (!_root.land.hitTest(_x + x, _y + y, true)) {
_x = (_x + x);
_y = (_y + y);
} else {
speed = speed * -0.6;
}
}
Instance of Symbol 179 MovieClip "gun" in Frame 12
onClipEvent (enterFrame) {
if (_root.walls.hitTest(_x + x, _y + y, true)) {
speed = 0.5;
}
}
onClipEvent (enterFrame) {
if (_root.player1 <= 0) {
_root.gotoAndPlay("DEAD2");
}
}
onClipEvent (load) {
speed = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(38)) {
speed = speed - 0.2;
}
if (Key.isDown(40)) {
speed = speed + 0.2;
}
if (Math.abs(speed) > 20) {
speed = speed * 0.7;
}
if (Key.isDown(37)) {
_rotation = (_rotation - 7);
}
if (Key.isDown(39)) {
_rotation = (_rotation + 7);
}
if (Key.isDown(18)) {
tellTarget ("_root.car") {
gotoAndPlay (2);
};
}
speed = speed * 0.9;
x = Math.sin(_rotation * (Math.PI/180)) * speed;
y = (Math.cos(_rotation * (Math.PI/180)) * speed) * -1;
if (!_root.land.hitTest(_x + x, _y + y, true)) {
_x = (_x + x);
_y = (_y + y);
} else {
speed = speed * -0.6;
}
}
Instance of Symbol 178 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (_root.ammos1 > 0) {
if (Key.isDown(16)) {
_root.ammos1 = _root.ammos1 - 1;
_root.addBullet(this._x, this._y, this._rotation);
tellTarget ("_root.gun.shot") {
gotoAndPlay (2);
};
}
}
}
onClipEvent (load) {
speed = 0;
}
onClipEvent (enterFrame) {
_x = _root.gun._x;
_y = _root.gun._y;
if (Math.abs(speed) > 20) {
speed = speed * 0.7;
}
if (Key.isDown(37)) {
_rotation = (_rotation - 7);
}
if (Key.isDown(39)) {
_rotation = (_rotation + 7);
}
if (Key.isDown(18)) {
tellTarget ("_root.car") {
gotoAndPlay (2);
};
}
speed = speed * 0.9;
x = Math.sin(_rotation * (Math.PI/180)) * speed;
y = (Math.cos(_rotation * (Math.PI/180)) * speed) * -1;
if (!_root.walls.hitTest(_x + x, _y + y, true)) {
_x = (_x + x);
_y = (_y + y);
} else {
speed = speed * -0.6;
}
}
Instance of Symbol 178 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (_root.ammos2 > 0) {
if (Key.isDown(20)) {
_root.ammos2 = _root.ammos2 - 1;
_root.addBullet2(this._x, this._y, this._rotation);
tellTarget ("_root.gun2.shot") {
gotoAndPlay (2);
};
}
}
}
onClipEvent (load) {
speed = 0;
}
onClipEvent (enterFrame) {
_x = _root.gun2._x;
_y = _root.gun2._y;
if (Math.abs(speed) > 20) {
speed = speed * 0.7;
}
if (Key.isDown(65)) {
_rotation = (_rotation - 7);
}
if (Key.isDown(68)) {
_rotation = (_rotation + 7);
}
if (Key.isDown(18)) {
tellTarget ("_root.car") {
gotoAndPlay (2);
};
}
speed = speed * 0.9;
x = Math.sin(_rotation * (Math.PI/180)) * speed;
y = (Math.cos(_rotation * (Math.PI/180)) * speed) * -1;
if (!_root.walls.hitTest(_x + x, _y + y, true)) {
_x = (_x + x);
_y = (_y + y);
} else {
speed = speed * -0.6;
}
}
Instance of Symbol 195 MovieClip "box" in Frame 12
onClipEvent (enterFrame) {
if (this.hitTest(_root.gun)) {
setProperty(_root.box, _x , 50 + random(400));
setProperty(_root.box, _y , 50 + random(300));
_root.player1 = _root.player1 + 25;
tellTarget ("_root.box") {
gotoAndPlay (1);
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.gun2)) {
setProperty(_root.box, _x , 50 + random(400));
setProperty(_root.box, _y , 50 + random(300));
_root.player2 = _root.player2 + 25;
tellTarget ("_root.box") {
gotoAndPlay (1);
};
}
}
Instance of Symbol 196 MovieClip "naboje" in Frame 12
onClipEvent (enterFrame) {
if (this.hitTest(_root.gun)) {
setProperty(_root.naboje, _x , 50 + random(400));
setProperty(_root.naboje, _y , 50 + random(300));
_root.ammos1 = _root.ammos1 + 50;
tellTarget ("_root.naboje") {
gotoAndPlay (1);
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.gun2)) {
setProperty(_root.naboje, _x , 50 + random(400));
setProperty(_root.naboje, _y , 50 + random(300));
_root.ammos2 = _root.ammos2 + 50;
tellTarget ("_root.naboje") {
gotoAndPlay (1);
};
}
}
Frame 13
gotoAndPlay (12);
Frame 14
if (_root.weapons1 == 0) {
tellTarget ("_root.gun.gun") {
gotoAndStop (1);
_root.damage1 = 2;
_root.speeder1 = 5;
};
}
if (_root.weapons1 == 1) {
tellTarget ("_root.gun.gun") {
gotoAndStop (2);
_root.damage1 = 3;
_root.speeder1 = 4;
};
}
if (_root.weapons1 == 2) {
tellTarget ("_root.gun.gun") {
gotoAndStop (3);
_root.damage1 = 1;
_root.speeder1 = 8;
};
}
if (_root.weapons1 == 3) {
tellTarget ("_root.gun.gun") {
gotoAndStop (4);
_root.damage1 = 4;
_root.speeder1 = 3;
};
}
if (_root.weapons2 == 0) {
tellTarget ("_root.gun2.gun2") {
gotoAndStop (1);
_root.damage2 = 2;
_root.speeder2 = 5;
};
}
if (_root.weapons2 == 1) {
tellTarget ("_root.gun2.gun2") {
gotoAndStop (2);
_root.damage2 = 3;
_root.speeder2 = 4;
};
}
if (_root.weapons2 == 2) {
tellTarget ("_root.gun2.gun2") {
gotoAndStop (3);
_root.damage2 = 1;
_root.speeder2 = 8;
};
}
if (_root.weapons2 == 3) {
tellTarget ("_root.gun2.gun2") {
gotoAndStop (4);
_root.damage2 = 4;
_root.speeder2 = 3;
};
}
function Bulllet() {
this.speed = speeder2;
}
_global.bulllet_depth = 1;
addBullet2 = function (x, y, rot) {
_root.attachMovie("bulllet", "bulllet_" + _global.bulllet_depth, _global.bulllet_depth, {_x:x, _y:y, _rotation:rot});
_global.bulllet_depth++;
};
degToRad = function (deg) {
rad = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
return(deg);
};
Bulllet.prototype = new MovieClip();
Bulllet.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (((((this._x < 0) || (this._x > 550)) || (this._y < 0)) || (this._y > 400)) || (_root.walls.hitTest(this._x, this._y, true))) {
this.removeMovieClip();
}
};
Object.registerClass("bulllet", Bulllet);
if (_root.hat1 == 0) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (1);
};
}
if (_root.hat1 == 1) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (2);
};
}
if (_root.hat1 == 2) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (3);
};
}
if (_root.hat1 == 3) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (4);
};
}
if (_root.hat1 == 4) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (5);
};
}
if (_root.hat1 == 5) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (6);
};
}
if (_root.hat1 == 6) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (7);
};
}
if (_root.hat1 == 7) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (8);
};
}
if (_root.hat1 == 8) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (9);
};
}
if (_root.hat1 == 9) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (10);
};
}
if (_root.hat1 == 0) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (1);
};
}
if (_root.hat2 == 1) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (2);
};
}
if (_root.hat2 == 2) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (3);
};
}
if (_root.hat2 == 3) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (4);
};
}
if (_root.hat2 == 4) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (5);
};
}
if (_root.hat2 == 5) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (6);
};
}
if (_root.hat2 == 6) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (7);
};
}
if (_root.hat2 == 7) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (8);
};
}
if (_root.hat2 == 8) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (9);
};
}
if (_root.hat2 == 9) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (10);
};
}
stop();
function Bullet() {
this.speed = speeder1;
}
_global.bullet_depth = 1;
addBullet = function (x, y, rot) {
_root.attachMovie("bullet", "bullet_" + _global.bullet_depth, _global.bullet_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet_depth++;
};
degToRad = function (deg) {
rad = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
return(deg);
};
Bullet.prototype = new MovieClip();
Bullet.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (((((this._x < 0) || (this._x > 550)) || (this._y < 0)) || (this._y > 400)) || (_root.walls.hitTest(this._x, this._y, true))) {
this.removeMovieClip();
}
};
Object.registerClass("bullet", Bullet);
Instance of Symbol 176 MovieClip "gun2" in Frame 14
onClipEvent (enterFrame) {
if (_root.walls.hitTest(_x + x, _y + y, true)) {
speed = 0.5;
}
}
onClipEvent (enterFrame) {
if (_root.player2 <= 0) {
_root.gotoAndPlay("DEAD1");
}
}
onClipEvent (load) {
speed = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(87)) {
speed = speed - 0.2;
}
if (Key.isDown(83)) {
speed = speed + 0.2;
}
if (Math.abs(speed) > 20) {
speed = speed * 0.7;
}
if (Key.isDown(65)) {
_rotation = (_rotation - 7);
}
if (Key.isDown(68)) {
_rotation = (_rotation + 7);
}
if (Key.isDown(18)) {
tellTarget ("_root.car") {
gotoAndPlay (2);
};
}
speed = speed * 0.9;
x = Math.sin(_rotation * (Math.PI/180)) * speed;
y = (Math.cos(_rotation * (Math.PI/180)) * speed) * -1;
if (!_root.land.hitTest(_x + x, _y + y, true)) {
_x = (_x + x);
_y = (_y + y);
} else {
speed = speed * -0.6;
}
}
Instance of Symbol 179 MovieClip "gun" in Frame 14
onClipEvent (enterFrame) {
if (_root.walls.hitTest(_x + x, _y + y, true)) {
speed = 0.5;
}
}
onClipEvent (enterFrame) {
if (_root.player1 <= 0) {
_root.gotoAndPlay("DEAD2");
}
}
onClipEvent (load) {
speed = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(38)) {
speed = speed - 0.2;
}
if (Key.isDown(40)) {
speed = speed + 0.2;
}
if (Math.abs(speed) > 20) {
speed = speed * 0.7;
}
if (Key.isDown(37)) {
_rotation = (_rotation - 7);
}
if (Key.isDown(39)) {
_rotation = (_rotation + 7);
}
if (Key.isDown(18)) {
tellTarget ("_root.car") {
gotoAndPlay (2);
};
}
speed = speed * 0.9;
x = Math.sin(_rotation * (Math.PI/180)) * speed;
y = (Math.cos(_rotation * (Math.PI/180)) * speed) * -1;
if (!_root.land.hitTest(_x + x, _y + y, true)) {
_x = (_x + x);
_y = (_y + y);
} else {
speed = speed * -0.6;
}
}
Instance of Symbol 178 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (_root.ammos1 > 0) {
if (Key.isDown(16)) {
_root.ammos1 = _root.ammos1 - 1;
_root.addBullet(this._x, this._y, this._rotation);
tellTarget ("_root.gun.shot") {
gotoAndPlay (2);
};
}
}
}
onClipEvent (load) {
speed = 0;
}
onClipEvent (enterFrame) {
_x = _root.gun._x;
_y = _root.gun._y;
if (Math.abs(speed) > 20) {
speed = speed * 0.7;
}
if (Key.isDown(37)) {
_rotation = (_rotation - 7);
}
if (Key.isDown(39)) {
_rotation = (_rotation + 7);
}
if (Key.isDown(18)) {
tellTarget ("_root.car") {
gotoAndPlay (2);
};
}
speed = speed * 0.9;
x = Math.sin(_rotation * (Math.PI/180)) * speed;
y = (Math.cos(_rotation * (Math.PI/180)) * speed) * -1;
if (!_root.walls.hitTest(_x + x, _y + y, true)) {
_x = (_x + x);
_y = (_y + y);
} else {
speed = speed * -0.6;
}
}
Instance of Symbol 178 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (_root.ammos2 > 0) {
if (Key.isDown(20)) {
_root.ammos2 = _root.ammos2 - 1;
_root.addBullet2(this._x, this._y, this._rotation);
tellTarget ("_root.gun2.shot") {
gotoAndPlay (2);
};
}
}
}
onClipEvent (load) {
speed = 0;
}
onClipEvent (enterFrame) {
_x = _root.gun2._x;
_y = _root.gun2._y;
if (Math.abs(speed) > 20) {
speed = speed * 0.7;
}
if (Key.isDown(65)) {
_rotation = (_rotation - 7);
}
if (Key.isDown(68)) {
_rotation = (_rotation + 7);
}
if (Key.isDown(18)) {
tellTarget ("_root.car") {
gotoAndPlay (2);
};
}
speed = speed * 0.9;
x = Math.sin(_rotation * (Math.PI/180)) * speed;
y = (Math.cos(_rotation * (Math.PI/180)) * speed) * -1;
if (!_root.walls.hitTest(_x + x, _y + y, true)) {
_x = (_x + x);
_y = (_y + y);
} else {
speed = speed * -0.6;
}
}
Instance of Symbol 195 MovieClip "box" in Frame 14
onClipEvent (enterFrame) {
if (this.hitTest(_root.gun)) {
setProperty(_root.box, _x , 50 + random(400));
setProperty(_root.box, _y , 50 + random(300));
_root.player1 = _root.player1 + 25;
tellTarget ("_root.box") {
gotoAndPlay (1);
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.gun2)) {
setProperty(_root.box, _x , 50 + random(400));
setProperty(_root.box, _y , 50 + random(300));
_root.player2 = _root.player2 + 25;
tellTarget ("_root.box") {
gotoAndPlay (1);
};
}
}
Instance of Symbol 196 MovieClip "naboje" in Frame 14
onClipEvent (enterFrame) {
if (this.hitTest(_root.gun)) {
setProperty(_root.naboje, _x , 50 + random(400));
setProperty(_root.naboje, _y , 50 + random(300));
_root.ammos1 = _root.ammos1 + 50;
tellTarget ("_root.naboje") {
gotoAndPlay (1);
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.gun2)) {
setProperty(_root.naboje, _x , 50 + random(400));
setProperty(_root.naboje, _y , 50 + random(300));
_root.ammos2 = _root.ammos2 + 50;
tellTarget ("_root.naboje") {
gotoAndPlay (1);
};
}
}
Frame 15
gotoAndPlay (14);
Frame 16
if (_root.weapons1 == 0) {
tellTarget ("_root.gun.gun") {
gotoAndStop (1);
_root.damage1 = 2;
_root.speeder1 = 5;
};
}
if (_root.weapons1 == 1) {
tellTarget ("_root.gun.gun") {
gotoAndStop (2);
_root.damage1 = 3;
_root.speeder1 = 4;
};
}
if (_root.weapons1 == 2) {
tellTarget ("_root.gun.gun") {
gotoAndStop (3);
_root.damage1 = 1;
_root.speeder1 = 8;
};
}
if (_root.weapons1 == 3) {
tellTarget ("_root.gun.gun") {
gotoAndStop (4);
_root.damage1 = 4;
_root.speeder1 = 3;
};
}
if (_root.weapons2 == 0) {
tellTarget ("_root.gun2.gun2") {
gotoAndStop (1);
_root.damage2 = 2;
_root.speeder2 = 5;
};
}
if (_root.weapons2 == 1) {
tellTarget ("_root.gun2.gun2") {
gotoAndStop (2);
_root.damage2 = 3;
_root.speeder2 = 4;
};
}
if (_root.weapons2 == 2) {
tellTarget ("_root.gun2.gun2") {
gotoAndStop (3);
_root.damage2 = 1;
_root.speeder2 = 8;
};
}
if (_root.weapons2 == 3) {
tellTarget ("_root.gun2.gun2") {
gotoAndStop (4);
_root.damage2 = 4;
_root.speeder2 = 3;
};
}
function Bulllet() {
this.speed = speeder2;
}
_global.bulllet_depth = 1;
addBullet2 = function (x, y, rot) {
_root.attachMovie("bulllet", "bulllet_" + _global.bulllet_depth, _global.bulllet_depth, {_x:x, _y:y, _rotation:rot});
_global.bulllet_depth++;
};
degToRad = function (deg) {
rad = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
return(deg);
};
Bulllet.prototype = new MovieClip();
Bulllet.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (((((this._x < 0) || (this._x > 550)) || (this._y < 0)) || (this._y > 400)) || (_root.walls.hitTest(this._x, this._y, true))) {
this.removeMovieClip();
}
};
Object.registerClass("bulllet", Bulllet);
if (_root.hat1 == 0) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (1);
};
}
if (_root.hat1 == 1) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (2);
};
}
if (_root.hat1 == 2) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (3);
};
}
if (_root.hat1 == 3) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (4);
};
}
if (_root.hat1 == 4) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (5);
};
}
if (_root.hat1 == 5) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (6);
};
}
if (_root.hat1 == 6) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (7);
};
}
if (_root.hat1 == 7) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (8);
};
}
if (_root.hat1 == 8) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (9);
};
}
if (_root.hat1 == 9) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (10);
};
}
if (_root.hat1 == 0) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (1);
};
}
if (_root.hat2 == 1) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (2);
};
}
if (_root.hat2 == 2) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (3);
};
}
if (_root.hat2 == 3) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (4);
};
}
if (_root.hat2 == 4) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (5);
};
}
if (_root.hat2 == 5) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (6);
};
}
if (_root.hat2 == 6) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (7);
};
}
if (_root.hat2 == 7) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (8);
};
}
if (_root.hat2 == 8) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (9);
};
}
if (_root.hat2 == 9) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (10);
};
}
stop();
function Bullet() {
this.speed = speeder1;
}
_global.bullet_depth = 1;
addBullet = function (x, y, rot) {
_root.attachMovie("bullet", "bullet_" + _global.bullet_depth, _global.bullet_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet_depth++;
};
degToRad = function (deg) {
rad = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
return(deg);
};
Bullet.prototype = new MovieClip();
Bullet.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (((((this._x < 0) || (this._x > 550)) || (this._y < 0)) || (this._y > 400)) || (_root.walls.hitTest(this._x, this._y, true))) {
this.removeMovieClip();
}
};
Object.registerClass("bullet", Bullet);
Instance of Symbol 176 MovieClip "gun2" in Frame 16
onClipEvent (enterFrame) {
if (_root.walls.hitTest(_x + x, _y + y, true)) {
speed = 0.5;
}
}
onClipEvent (enterFrame) {
if (_root.player2 <= 0) {
_root.gotoAndPlay("DEAD1");
}
}
onClipEvent (load) {
speed = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(87)) {
speed = speed - 0.2;
}
if (Key.isDown(83)) {
speed = speed + 0.2;
}
if (Math.abs(speed) > 20) {
speed = speed * 0.7;
}
if (Key.isDown(65)) {
_rotation = (_rotation - 7);
}
if (Key.isDown(68)) {
_rotation = (_rotation + 7);
}
if (Key.isDown(18)) {
tellTarget ("_root.car") {
gotoAndPlay (2);
};
}
speed = speed * 0.9;
x = Math.sin(_rotation * (Math.PI/180)) * speed;
y = (Math.cos(_rotation * (Math.PI/180)) * speed) * -1;
if (!_root.land.hitTest(_x + x, _y + y, true)) {
_x = (_x + x);
_y = (_y + y);
} else {
speed = speed * -0.6;
}
}
Instance of Symbol 179 MovieClip "gun" in Frame 16
onClipEvent (enterFrame) {
if (_root.walls.hitTest(_x + x, _y + y, true)) {
speed = 0.5;
}
}
onClipEvent (enterFrame) {
if (_root.player1 <= 0) {
_root.gotoAndPlay("DEAD2");
}
}
onClipEvent (load) {
speed = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(38)) {
speed = speed - 0.2;
}
if (Key.isDown(40)) {
speed = speed + 0.2;
}
if (Math.abs(speed) > 20) {
speed = speed * 0.7;
}
if (Key.isDown(37)) {
_rotation = (_rotation - 7);
}
if (Key.isDown(39)) {
_rotation = (_rotation + 7);
}
if (Key.isDown(18)) {
tellTarget ("_root.car") {
gotoAndPlay (2);
};
}
speed = speed * 0.9;
x = Math.sin(_rotation * (Math.PI/180)) * speed;
y = (Math.cos(_rotation * (Math.PI/180)) * speed) * -1;
if (!_root.land.hitTest(_x + x, _y + y, true)) {
_x = (_x + x);
_y = (_y + y);
} else {
speed = speed * -0.6;
}
}
Instance of Symbol 178 MovieClip in Frame 16
onClipEvent (enterFrame) {
if (_root.ammos1 > 0) {
if (Key.isDown(16)) {
_root.ammos1 = _root.ammos1 - 1;
_root.addBullet(this._x, this._y, this._rotation);
tellTarget ("_root.gun.shot") {
gotoAndPlay (2);
};
}
}
}
onClipEvent (load) {
speed = 0;
}
onClipEvent (enterFrame) {
_x = _root.gun._x;
_y = _root.gun._y;
if (Math.abs(speed) > 20) {
speed = speed * 0.7;
}
if (Key.isDown(37)) {
_rotation = (_rotation - 7);
}
if (Key.isDown(39)) {
_rotation = (_rotation + 7);
}
if (Key.isDown(18)) {
tellTarget ("_root.car") {
gotoAndPlay (2);
};
}
speed = speed * 0.9;
x = Math.sin(_rotation * (Math.PI/180)) * speed;
y = (Math.cos(_rotation * (Math.PI/180)) * speed) * -1;
if (!_root.walls.hitTest(_x + x, _y + y, true)) {
_x = (_x + x);
_y = (_y + y);
} else {
speed = speed * -0.6;
}
}
Instance of Symbol 178 MovieClip in Frame 16
onClipEvent (enterFrame) {
if (_root.ammos2 > 0) {
if (Key.isDown(20)) {
_root.ammos2 = _root.ammos2 - 1;
_root.addBullet2(this._x, this._y, this._rotation);
tellTarget ("_root.gun2.shot") {
gotoAndPlay (2);
};
}
}
}
onClipEvent (load) {
speed = 0;
}
onClipEvent (enterFrame) {
_x = _root.gun2._x;
_y = _root.gun2._y;
if (Math.abs(speed) > 20) {
speed = speed * 0.7;
}
if (Key.isDown(65)) {
_rotation = (_rotation - 7);
}
if (Key.isDown(68)) {
_rotation = (_rotation + 7);
}
if (Key.isDown(18)) {
tellTarget ("_root.car") {
gotoAndPlay (2);
};
}
speed = speed * 0.9;
x = Math.sin(_rotation * (Math.PI/180)) * speed;
y = (Math.cos(_rotation * (Math.PI/180)) * speed) * -1;
if (!_root.walls.hitTest(_x + x, _y + y, true)) {
_x = (_x + x);
_y = (_y + y);
} else {
speed = speed * -0.6;
}
}
Instance of Symbol 195 MovieClip "box" in Frame 16
onClipEvent (enterFrame) {
if (this.hitTest(_root.gun)) {
setProperty(_root.box, _x , 50 + random(400));
setProperty(_root.box, _y , 50 + random(300));
_root.player1 = _root.player1 + 25;
tellTarget ("_root.box") {
gotoAndPlay (1);
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.gun2)) {
setProperty(_root.box, _x , 50 + random(400));
setProperty(_root.box, _y , 50 + random(300));
_root.player2 = _root.player2 + 25;
tellTarget ("_root.box") {
gotoAndPlay (1);
};
}
}
Instance of Symbol 196 MovieClip "naboje" in Frame 16
onClipEvent (enterFrame) {
if (this.hitTest(_root.gun)) {
setProperty(_root.naboje, _x , 50 + random(400));
setProperty(_root.naboje, _y , 50 + random(300));
_root.ammos1 = _root.ammos1 + 50;
tellTarget ("_root.naboje") {
gotoAndPlay (1);
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.gun2)) {
setProperty(_root.naboje, _x , 50 + random(400));
setProperty(_root.naboje, _y , 50 + random(300));
_root.ammos2 = _root.ammos2 + 50;
tellTarget ("_root.naboje") {
gotoAndPlay (1);
};
}
}
Frame 17
gotoAndPlay (16);
Frame 18
if (_root.weapons1 == 0) {
tellTarget ("_root.gun.gun") {
gotoAndStop (1);
_root.damage1 = 2;
_root.speeder1 = 5;
};
}
if (_root.weapons1 == 1) {
tellTarget ("_root.gun.gun") {
gotoAndStop (2);
_root.damage1 = 3;
_root.speeder1 = 4;
};
}
if (_root.weapons1 == 2) {
tellTarget ("_root.gun.gun") {
gotoAndStop (3);
_root.damage1 = 1;
_root.speeder1 = 8;
};
}
if (_root.weapons1 == 3) {
tellTarget ("_root.gun.gun") {
gotoAndStop (4);
_root.damage1 = 4;
_root.speeder1 = 3;
};
}
if (_root.weapons2 == 0) {
tellTarget ("_root.gun2.gun2") {
gotoAndStop (1);
_root.damage2 = 2;
_root.speeder2 = 5;
};
}
if (_root.weapons2 == 1) {
tellTarget ("_root.gun2.gun2") {
gotoAndStop (2);
_root.damage2 = 3;
_root.speeder2 = 4;
};
}
if (_root.weapons2 == 2) {
tellTarget ("_root.gun2.gun2") {
gotoAndStop (3);
_root.damage2 = 1;
_root.speeder2 = 8;
};
}
if (_root.weapons2 == 3) {
tellTarget ("_root.gun2.gun2") {
gotoAndStop (4);
_root.damage2 = 4;
_root.speeder2 = 3;
};
}
function Bulllet() {
this.speed = speeder2;
}
_global.bulllet_depth = 1;
addBullet2 = function (x, y, rot) {
_root.attachMovie("bulllet", "bulllet_" + _global.bulllet_depth, _global.bulllet_depth, {_x:x, _y:y, _rotation:rot});
_global.bulllet_depth++;
};
degToRad = function (deg) {
rad = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
return(deg);
};
Bulllet.prototype = new MovieClip();
Bulllet.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (((((this._x < 0) || (this._x > 550)) || (this._y < 0)) || (this._y > 400)) || (_root.walls.hitTest(this._x, this._y, true))) {
this.removeMovieClip();
}
};
Object.registerClass("bulllet", Bulllet);
if (_root.hat1 == 0) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (1);
};
}
if (_root.hat1 == 1) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (2);
};
}
if (_root.hat1 == 2) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (3);
};
}
if (_root.hat1 == 3) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (4);
};
}
if (_root.hat1 == 4) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (5);
};
}
if (_root.hat1 == 5) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (6);
};
}
if (_root.hat1 == 6) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (7);
};
}
if (_root.hat1 == 7) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (8);
};
}
if (_root.hat1 == 8) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (9);
};
}
if (_root.hat1 == 9) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (10);
};
}
if (_root.hat1 == 0) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (1);
};
}
if (_root.hat2 == 1) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (2);
};
}
if (_root.hat2 == 2) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (3);
};
}
if (_root.hat2 == 3) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (4);
};
}
if (_root.hat2 == 4) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (5);
};
}
if (_root.hat2 == 5) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (6);
};
}
if (_root.hat2 == 6) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (7);
};
}
if (_root.hat2 == 7) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (8);
};
}
if (_root.hat2 == 8) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (9);
};
}
if (_root.hat2 == 9) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (10);
};
}
stop();
function Bullet() {
this.speed = speeder1;
}
_global.bullet_depth = 1;
addBullet = function (x, y, rot) {
_root.attachMovie("bullet", "bullet_" + _global.bullet_depth, _global.bullet_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet_depth++;
};
degToRad = function (deg) {
rad = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
return(deg);
};
Bullet.prototype = new MovieClip();
Bullet.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (((((this._x < 0) || (this._x > 550)) || (this._y < 0)) || (this._y > 400)) || (_root.walls.hitTest(this._x, this._y, true))) {
this.removeMovieClip();
}
};
Object.registerClass("bullet", Bullet);
Instance of Symbol 176 MovieClip "gun2" in Frame 18
onClipEvent (enterFrame) {
if (_root.walls.hitTest(_x + x, _y + y, true)) {
speed = 0.5;
}
}
onClipEvent (enterFrame) {
if (_root.player2 <= 0) {
_root.gotoAndPlay("DEAD1");
}
}
onClipEvent (load) {
speed = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(87)) {
speed = speed - 0.2;
}
if (Key.isDown(83)) {
speed = speed + 0.2;
}
if (Math.abs(speed) > 20) {
speed = speed * 0.7;
}
if (Key.isDown(65)) {
_rotation = (_rotation - 7);
}
if (Key.isDown(68)) {
_rotation = (_rotation + 7);
}
if (Key.isDown(18)) {
tellTarget ("_root.car") {
gotoAndPlay (2);
};
}
speed = speed * 0.9;
x = Math.sin(_rotation * (Math.PI/180)) * speed;
y = (Math.cos(_rotation * (Math.PI/180)) * speed) * -1;
if (!_root.land.hitTest(_x + x, _y + y, true)) {
_x = (_x + x);
_y = (_y + y);
} else {
speed = speed * -0.6;
}
}
Instance of Symbol 179 MovieClip "gun" in Frame 18
onClipEvent (enterFrame) {
if (_root.walls.hitTest(_x + x, _y + y, true)) {
speed = 0.5;
}
}
onClipEvent (enterFrame) {
if (_root.player1 <= 0) {
_root.gotoAndPlay("DEAD2");
}
}
onClipEvent (load) {
speed = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(38)) {
speed = speed - 0.2;
}
if (Key.isDown(40)) {
speed = speed + 0.2;
}
if (Math.abs(speed) > 20) {
speed = speed * 0.7;
}
if (Key.isDown(37)) {
_rotation = (_rotation - 7);
}
if (Key.isDown(39)) {
_rotation = (_rotation + 7);
}
if (Key.isDown(18)) {
tellTarget ("_root.car") {
gotoAndPlay (2);
};
}
speed = speed * 0.9;
x = Math.sin(_rotation * (Math.PI/180)) * speed;
y = (Math.cos(_rotation * (Math.PI/180)) * speed) * -1;
if (!_root.land.hitTest(_x + x, _y + y, true)) {
_x = (_x + x);
_y = (_y + y);
} else {
speed = speed * -0.6;
}
}
Instance of Symbol 178 MovieClip in Frame 18
onClipEvent (enterFrame) {
if (_root.ammos1 > 0) {
if (Key.isDown(16)) {
_root.ammos1 = _root.ammos1 - 1;
_root.addBullet(this._x, this._y, this._rotation);
tellTarget ("_root.gun.shot") {
gotoAndPlay (2);
};
}
}
}
onClipEvent (load) {
speed = 0;
}
onClipEvent (enterFrame) {
_x = _root.gun._x;
_y = _root.gun._y;
if (Math.abs(speed) > 20) {
speed = speed * 0.7;
}
if (Key.isDown(37)) {
_rotation = (_rotation - 7);
}
if (Key.isDown(39)) {
_rotation = (_rotation + 7);
}
if (Key.isDown(18)) {
tellTarget ("_root.car") {
gotoAndPlay (2);
};
}
speed = speed * 0.9;
x = Math.sin(_rotation * (Math.PI/180)) * speed;
y = (Math.cos(_rotation * (Math.PI/180)) * speed) * -1;
if (!_root.walls.hitTest(_x + x, _y + y, true)) {
_x = (_x + x);
_y = (_y + y);
} else {
speed = speed * -0.6;
}
}
Instance of Symbol 178 MovieClip in Frame 18
onClipEvent (enterFrame) {
if (_root.ammos2 > 0) {
if (Key.isDown(20)) {
_root.ammos2 = _root.ammos2 - 1;
_root.addBullet2(this._x, this._y, this._rotation);
tellTarget ("_root.gun2.shot") {
gotoAndPlay (2);
};
}
}
}
onClipEvent (load) {
speed = 0;
}
onClipEvent (enterFrame) {
_x = _root.gun2._x;
_y = _root.gun2._y;
if (Math.abs(speed) > 20) {
speed = speed * 0.7;
}
if (Key.isDown(65)) {
_rotation = (_rotation - 7);
}
if (Key.isDown(68)) {
_rotation = (_rotation + 7);
}
if (Key.isDown(18)) {
tellTarget ("_root.car") {
gotoAndPlay (2);
};
}
speed = speed * 0.9;
x = Math.sin(_rotation * (Math.PI/180)) * speed;
y = (Math.cos(_rotation * (Math.PI/180)) * speed) * -1;
if (!_root.walls.hitTest(_x + x, _y + y, true)) {
_x = (_x + x);
_y = (_y + y);
} else {
speed = speed * -0.6;
}
}
Instance of Symbol 195 MovieClip "box" in Frame 18
onClipEvent (enterFrame) {
if (this.hitTest(_root.gun)) {
setProperty(_root.box, _x , 50 + random(400));
setProperty(_root.box, _y , 50 + random(300));
_root.player1 = _root.player1 + 25;
tellTarget ("_root.box") {
gotoAndPlay (1);
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.gun2)) {
setProperty(_root.box, _x , 50 + random(400));
setProperty(_root.box, _y , 50 + random(300));
_root.player2 = _root.player2 + 25;
tellTarget ("_root.box") {
gotoAndPlay (1);
};
}
}
Instance of Symbol 196 MovieClip "naboje" in Frame 18
onClipEvent (enterFrame) {
if (this.hitTest(_root.gun)) {
setProperty(_root.naboje, _x , 50 + random(400));
setProperty(_root.naboje, _y , 50 + random(300));
_root.ammos1 = _root.ammos1 + 50;
tellTarget ("_root.naboje") {
gotoAndPlay (1);
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.gun2)) {
setProperty(_root.naboje, _x , 50 + random(400));
setProperty(_root.naboje, _y , 50 + random(300));
_root.ammos2 = _root.ammos2 + 50;
tellTarget ("_root.naboje") {
gotoAndPlay (1);
};
}
}
Frame 19
gotoAndPlay (18);
Frame 20
if (_root.weapons1 == 0) {
tellTarget ("_root.gun.gun") {
gotoAndStop (1);
_root.damage1 = 2;
_root.speeder1 = 5;
};
}
if (_root.weapons1 == 1) {
tellTarget ("_root.gun.gun") {
gotoAndStop (2);
_root.damage1 = 3;
_root.speeder1 = 4;
};
}
if (_root.weapons1 == 2) {
tellTarget ("_root.gun.gun") {
gotoAndStop (3);
_root.damage1 = 1;
_root.speeder1 = 8;
};
}
if (_root.weapons1 == 3) {
tellTarget ("_root.gun.gun") {
gotoAndStop (4);
_root.damage1 = 4;
_root.speeder1 = 3;
};
}
if (_root.weapons2 == 0) {
tellTarget ("_root.gun2.gun2") {
gotoAndStop (1);
_root.damage2 = 2;
_root.speeder2 = 5;
};
}
if (_root.weapons2 == 1) {
tellTarget ("_root.gun2.gun2") {
gotoAndStop (2);
_root.damage2 = 3;
_root.speeder2 = 4;
};
}
if (_root.weapons2 == 2) {
tellTarget ("_root.gun2.gun2") {
gotoAndStop (3);
_root.damage2 = 1;
_root.speeder2 = 8;
};
}
if (_root.weapons2 == 3) {
tellTarget ("_root.gun2.gun2") {
gotoAndStop (4);
_root.damage2 = 4;
_root.speeder2 = 3;
};
}
function Bulllet() {
this.speed = speeder2;
}
_global.bulllet_depth = 1;
addBullet2 = function (x, y, rot) {
_root.attachMovie("bulllet", "bulllet_" + _global.bulllet_depth, _global.bulllet_depth, {_x:x, _y:y, _rotation:rot});
_global.bulllet_depth++;
};
degToRad = function (deg) {
rad = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
return(deg);
};
Bulllet.prototype = new MovieClip();
Bulllet.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (((((this._x < 0) || (this._x > 550)) || (this._y < 0)) || (this._y > 400)) || (_root.walls.hitTest(this._x, this._y, true))) {
this.removeMovieClip();
}
};
Object.registerClass("bulllet", Bulllet);
if (_root.hat1 == 0) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (1);
};
}
if (_root.hat1 == 1) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (2);
};
}
if (_root.hat1 == 2) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (3);
};
}
if (_root.hat1 == 3) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (4);
};
}
if (_root.hat1 == 4) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (5);
};
}
if (_root.hat1 == 5) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (6);
};
}
if (_root.hat1 == 6) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (7);
};
}
if (_root.hat1 == 7) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (8);
};
}
if (_root.hat1 == 8) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (9);
};
}
if (_root.hat1 == 9) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (10);
};
}
if (_root.hat1 == 0) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (1);
};
}
if (_root.hat2 == 1) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (2);
};
}
if (_root.hat2 == 2) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (3);
};
}
if (_root.hat2 == 3) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (4);
};
}
if (_root.hat2 == 4) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (5);
};
}
if (_root.hat2 == 5) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (6);
};
}
if (_root.hat2 == 6) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (7);
};
}
if (_root.hat2 == 7) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (8);
};
}
if (_root.hat2 == 8) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (9);
};
}
if (_root.hat2 == 9) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (10);
};
}
stop();
function Bullet() {
this.speed = speeder1;
}
_global.bullet_depth = 1;
addBullet = function (x, y, rot) {
_root.attachMovie("bullet", "bullet_" + _global.bullet_depth, _global.bullet_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet_depth++;
};
degToRad = function (deg) {
rad = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
return(deg);
};
Bullet.prototype = new MovieClip();
Bullet.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (((((this._x < 0) || (this._x > 550)) || (this._y < 0)) || (this._y > 400)) || (_root.walls.hitTest(this._x, this._y, true))) {
this.removeMovieClip();
}
};
Object.registerClass("bullet", Bullet);
Instance of Symbol 176 MovieClip "gun2" in Frame 20
onClipEvent (enterFrame) {
if (_root.walls.hitTest(_x + x, _y + y, true)) {
speed = 0.5;
}
}
onClipEvent (enterFrame) {
if (_root.player2 <= 0) {
_root.gotoAndPlay("DEAD1");
}
}
onClipEvent (load) {
speed = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(87)) {
speed = speed - 0.2;
}
if (Key.isDown(83)) {
speed = speed + 0.2;
}
if (Math.abs(speed) > 20) {
speed = speed * 0.7;
}
if (Key.isDown(65)) {
_rotation = (_rotation - 7);
}
if (Key.isDown(68)) {
_rotation = (_rotation + 7);
}
if (Key.isDown(18)) {
tellTarget ("_root.car") {
gotoAndPlay (2);
};
}
speed = speed * 0.9;
x = Math.sin(_rotation * (Math.PI/180)) * speed;
y = (Math.cos(_rotation * (Math.PI/180)) * speed) * -1;
if (!_root.land.hitTest(_x + x, _y + y, true)) {
_x = (_x + x);
_y = (_y + y);
} else {
speed = speed * -0.6;
}
}
Instance of Symbol 179 MovieClip "gun" in Frame 20
onClipEvent (enterFrame) {
if (_root.walls.hitTest(_x + x, _y + y, true)) {
speed = 0.5;
}
}
onClipEvent (enterFrame) {
if (_root.player1 <= 0) {
_root.gotoAndPlay("DEAD2");
}
}
onClipEvent (load) {
speed = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(38)) {
speed = speed - 0.2;
}
if (Key.isDown(40)) {
speed = speed + 0.2;
}
if (Math.abs(speed) > 20) {
speed = speed * 0.7;
}
if (Key.isDown(37)) {
_rotation = (_rotation - 7);
}
if (Key.isDown(39)) {
_rotation = (_rotation + 7);
}
if (Key.isDown(18)) {
tellTarget ("_root.car") {
gotoAndPlay (2);
};
}
speed = speed * 0.9;
x = Math.sin(_rotation * (Math.PI/180)) * speed;
y = (Math.cos(_rotation * (Math.PI/180)) * speed) * -1;
if (!_root.land.hitTest(_x + x, _y + y, true)) {
_x = (_x + x);
_y = (_y + y);
} else {
speed = speed * -0.6;
}
}
Instance of Symbol 178 MovieClip in Frame 20
onClipEvent (enterFrame) {
if (_root.ammos1 > 0) {
if (Key.isDown(16)) {
_root.ammos1 = _root.ammos1 - 1;
_root.addBullet(this._x, this._y, this._rotation);
tellTarget ("_root.gun.shot") {
gotoAndPlay (2);
};
}
}
}
onClipEvent (load) {
speed = 0;
}
onClipEvent (enterFrame) {
_x = _root.gun._x;
_y = _root.gun._y;
if (Math.abs(speed) > 20) {
speed = speed * 0.7;
}
if (Key.isDown(37)) {
_rotation = (_rotation - 7);
}
if (Key.isDown(39)) {
_rotation = (_rotation + 7);
}
if (Key.isDown(18)) {
tellTarget ("_root.car") {
gotoAndPlay (2);
};
}
speed = speed * 0.9;
x = Math.sin(_rotation * (Math.PI/180)) * speed;
y = (Math.cos(_rotation * (Math.PI/180)) * speed) * -1;
if (!_root.walls.hitTest(_x + x, _y + y, true)) {
_x = (_x + x);
_y = (_y + y);
} else {
speed = speed * -0.6;
}
}
Instance of Symbol 178 MovieClip in Frame 20
onClipEvent (enterFrame) {
if (_root.ammos2 > 0) {
if (Key.isDown(20)) {
_root.ammos2 = _root.ammos2 - 1;
_root.addBullet2(this._x, this._y, this._rotation);
tellTarget ("_root.gun2.shot") {
gotoAndPlay (2);
};
}
}
}
onClipEvent (load) {
speed = 0;
}
onClipEvent (enterFrame) {
_x = _root.gun2._x;
_y = _root.gun2._y;
if (Math.abs(speed) > 20) {
speed = speed * 0.7;
}
if (Key.isDown(65)) {
_rotation = (_rotation - 7);
}
if (Key.isDown(68)) {
_rotation = (_rotation + 7);
}
if (Key.isDown(18)) {
tellTarget ("_root.car") {
gotoAndPlay (2);
};
}
speed = speed * 0.9;
x = Math.sin(_rotation * (Math.PI/180)) * speed;
y = (Math.cos(_rotation * (Math.PI/180)) * speed) * -1;
if (!_root.walls.hitTest(_x + x, _y + y, true)) {
_x = (_x + x);
_y = (_y + y);
} else {
speed = speed * -0.6;
}
}
Instance of Symbol 195 MovieClip "box" in Frame 20
onClipEvent (enterFrame) {
if (this.hitTest(_root.gun)) {
setProperty(_root.box, _x , 50 + random(400));
setProperty(_root.box, _y , 50 + random(300));
_root.player1 = _root.player1 + 25;
tellTarget ("_root.box") {
gotoAndPlay (1);
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.gun2)) {
setProperty(_root.box, _x , 50 + random(400));
setProperty(_root.box, _y , 50 + random(300));
_root.player2 = _root.player2 + 25;
tellTarget ("_root.box") {
gotoAndPlay (1);
};
}
}
Instance of Symbol 196 MovieClip "naboje" in Frame 20
onClipEvent (enterFrame) {
if (this.hitTest(_root.gun)) {
setProperty(_root.naboje, _x , 50 + random(400));
setProperty(_root.naboje, _y , 50 + random(300));
_root.ammos1 = _root.ammos1 + 50;
tellTarget ("_root.naboje") {
gotoAndPlay (1);
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.gun2)) {
setProperty(_root.naboje, _x , 50 + random(400));
setProperty(_root.naboje, _y , 50 + random(300));
_root.ammos2 = _root.ammos2 + 50;
tellTarget ("_root.naboje") {
gotoAndPlay (1);
};
}
}
Frame 21
gotoAndPlay (20);
Frame 22
if (_root.weapons1 == 0) {
tellTarget ("_root.gun.gun") {
gotoAndStop (1);
_root.damage1 = 2;
_root.speeder1 = 5;
};
}
if (_root.weapons1 == 1) {
tellTarget ("_root.gun.gun") {
gotoAndStop (2);
_root.damage1 = 3;
_root.speeder1 = 4;
};
}
if (_root.weapons1 == 2) {
tellTarget ("_root.gun.gun") {
gotoAndStop (3);
_root.damage1 = 1;
_root.speeder1 = 8;
};
}
if (_root.weapons1 == 3) {
tellTarget ("_root.gun.gun") {
gotoAndStop (4);
_root.damage1 = 4;
_root.speeder1 = 3;
};
}
if (_root.weapons2 == 0) {
tellTarget ("_root.gun2.gun2") {
gotoAndStop (1);
_root.damage2 = 2;
_root.speeder2 = 5;
};
}
if (_root.weapons2 == 1) {
tellTarget ("_root.gun2.gun2") {
gotoAndStop (2);
_root.damage2 = 3;
_root.speeder2 = 4;
};
}
if (_root.weapons2 == 2) {
tellTarget ("_root.gun2.gun2") {
gotoAndStop (3);
_root.damage2 = 1;
_root.speeder2 = 8;
};
}
if (_root.weapons2 == 3) {
tellTarget ("_root.gun2.gun2") {
gotoAndStop (4);
_root.damage2 = 4;
_root.speeder2 = 3;
};
}
function Bulllet() {
this.speed = speeder2;
}
_global.bulllet_depth = 1;
addBullet2 = function (x, y, rot) {
_root.attachMovie("bulllet", "bulllet_" + _global.bulllet_depth, _global.bulllet_depth, {_x:x, _y:y, _rotation:rot});
_global.bulllet_depth++;
};
degToRad = function (deg) {
rad = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
return(deg);
};
Bulllet.prototype = new MovieClip();
Bulllet.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (((((this._x < 0) || (this._x > 550)) || (this._y < 0)) || (this._y > 400)) || (_root.walls.hitTest(this._x, this._y, true))) {
this.removeMovieClip();
}
};
Object.registerClass("bulllet", Bulllet);
if (_root.hat1 == 0) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (1);
};
}
if (_root.hat1 == 1) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (2);
};
}
if (_root.hat1 == 2) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (3);
};
}
if (_root.hat1 == 3) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (4);
};
}
if (_root.hat1 == 4) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (5);
};
}
if (_root.hat1 == 5) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (6);
};
}
if (_root.hat1 == 6) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (7);
};
}
if (_root.hat1 == 7) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (8);
};
}
if (_root.hat1 == 8) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (9);
};
}
if (_root.hat1 == 9) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (10);
};
}
if (_root.hat1 == 0) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (1);
};
}
if (_root.hat2 == 1) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (2);
};
}
if (_root.hat2 == 2) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (3);
};
}
if (_root.hat2 == 3) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (4);
};
}
if (_root.hat2 == 4) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (5);
};
}
if (_root.hat2 == 5) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (6);
};
}
if (_root.hat2 == 6) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (7);
};
}
if (_root.hat2 == 7) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (8);
};
}
if (_root.hat2 == 8) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (9);
};
}
if (_root.hat2 == 9) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (10);
};
}
stop();
function Bullet() {
this.speed = speeder1;
}
_global.bullet_depth = 1;
addBullet = function (x, y, rot) {
_root.attachMovie("bullet", "bullet_" + _global.bullet_depth, _global.bullet_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet_depth++;
};
degToRad = function (deg) {
rad = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
return(deg);
};
Bullet.prototype = new MovieClip();
Bullet.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (((((this._x < 0) || (this._x > 550)) || (this._y < 0)) || (this._y > 400)) || (_root.walls.hitTest(this._x, this._y, true))) {
this.removeMovieClip();
}
};
Object.registerClass("bullet", Bullet);
Instance of Symbol 176 MovieClip "gun2" in Frame 22
onClipEvent (enterFrame) {
if (_root.walls.hitTest(_x + x, _y + y, true)) {
speed = 0.5;
}
}
onClipEvent (enterFrame) {
if (_root.player2 <= 0) {
_root.gotoAndPlay("DEAD1");
}
}
onClipEvent (load) {
speed = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(87)) {
speed = speed - 0.2;
}
if (Key.isDown(83)) {
speed = speed + 0.2;
}
if (Math.abs(speed) > 20) {
speed = speed * 0.7;
}
if (Key.isDown(65)) {
_rotation = (_rotation - 7);
}
if (Key.isDown(68)) {
_rotation = (_rotation + 7);
}
if (Key.isDown(18)) {
tellTarget ("_root.car") {
gotoAndPlay (2);
};
}
speed = speed * 0.9;
x = Math.sin(_rotation * (Math.PI/180)) * speed;
y = (Math.cos(_rotation * (Math.PI/180)) * speed) * -1;
if (!_root.land.hitTest(_x + x, _y + y, true)) {
_x = (_x + x);
_y = (_y + y);
} else {
speed = speed * -0.6;
}
}
Instance of Symbol 179 MovieClip "gun" in Frame 22
onClipEvent (enterFrame) {
if (_root.walls.hitTest(_x + x, _y + y, true)) {
speed = 0.5;
}
}
onClipEvent (enterFrame) {
if (_root.player1 <= 0) {
_root.gotoAndPlay("DEAD2");
}
}
onClipEvent (load) {
speed = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(38)) {
speed = speed - 0.2;
}
if (Key.isDown(40)) {
speed = speed + 0.2;
}
if (Math.abs(speed) > 20) {
speed = speed * 0.7;
}
if (Key.isDown(37)) {
_rotation = (_rotation - 7);
}
if (Key.isDown(39)) {
_rotation = (_rotation + 7);
}
if (Key.isDown(18)) {
tellTarget ("_root.car") {
gotoAndPlay (2);
};
}
speed = speed * 0.9;
x = Math.sin(_rotation * (Math.PI/180)) * speed;
y = (Math.cos(_rotation * (Math.PI/180)) * speed) * -1;
if (!_root.land.hitTest(_x + x, _y + y, true)) {
_x = (_x + x);
_y = (_y + y);
} else {
speed = speed * -0.6;
}
}
Instance of Symbol 178 MovieClip in Frame 22
onClipEvent (enterFrame) {
if (_root.ammos1 > 0) {
if (Key.isDown(16)) {
_root.ammos1 = _root.ammos1 - 1;
_root.addBullet(this._x, this._y, this._rotation);
tellTarget ("_root.gun.shot") {
gotoAndPlay (2);
};
}
}
}
onClipEvent (load) {
speed = 0;
}
onClipEvent (enterFrame) {
_x = _root.gun._x;
_y = _root.gun._y;
if (Math.abs(speed) > 20) {
speed = speed * 0.7;
}
if (Key.isDown(37)) {
_rotation = (_rotation - 7);
}
if (Key.isDown(39)) {
_rotation = (_rotation + 7);
}
if (Key.isDown(18)) {
tellTarget ("_root.car") {
gotoAndPlay (2);
};
}
speed = speed * 0.9;
x = Math.sin(_rotation * (Math.PI/180)) * speed;
y = (Math.cos(_rotation * (Math.PI/180)) * speed) * -1;
if (!_root.walls.hitTest(_x + x, _y + y, true)) {
_x = (_x + x);
_y = (_y + y);
} else {
speed = speed * -0.6;
}
}
Instance of Symbol 178 MovieClip in Frame 22
onClipEvent (enterFrame) {
if (_root.ammos2 > 0) {
if (Key.isDown(20)) {
_root.ammos2 = _root.ammos2 - 1;
_root.addBullet2(this._x, this._y, this._rotation);
tellTarget ("_root.gun2.shot") {
gotoAndPlay (2);
};
}
}
}
onClipEvent (load) {
speed = 0;
}
onClipEvent (enterFrame) {
_x = _root.gun2._x;
_y = _root.gun2._y;
if (Math.abs(speed) > 20) {
speed = speed * 0.7;
}
if (Key.isDown(65)) {
_rotation = (_rotation - 7);
}
if (Key.isDown(68)) {
_rotation = (_rotation + 7);
}
if (Key.isDown(18)) {
tellTarget ("_root.car") {
gotoAndPlay (2);
};
}
speed = speed * 0.9;
x = Math.sin(_rotation * (Math.PI/180)) * speed;
y = (Math.cos(_rotation * (Math.PI/180)) * speed) * -1;
if (!_root.walls.hitTest(_x + x, _y + y, true)) {
_x = (_x + x);
_y = (_y + y);
} else {
speed = speed * -0.6;
}
}
Instance of Symbol 195 MovieClip "box" in Frame 22
onClipEvent (enterFrame) {
if (this.hitTest(_root.gun)) {
setProperty(_root.box, _x , 50 + random(400));
setProperty(_root.box, _y , 50 + random(300));
_root.player1 = _root.player1 + 25;
tellTarget ("_root.box") {
gotoAndPlay (1);
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.gun2)) {
setProperty(_root.box, _x , 50 + random(400));
setProperty(_root.box, _y , 50 + random(300));
_root.player2 = _root.player2 + 25;
tellTarget ("_root.box") {
gotoAndPlay (1);
};
}
}
Instance of Symbol 196 MovieClip "naboje" in Frame 22
onClipEvent (enterFrame) {
if (this.hitTest(_root.gun)) {
setProperty(_root.naboje, _x , 50 + random(400));
setProperty(_root.naboje, _y , 50 + random(300));
_root.ammos1 = _root.ammos1 + 50;
tellTarget ("_root.naboje") {
gotoAndPlay (1);
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.gun2)) {
setProperty(_root.naboje, _x , 50 + random(400));
setProperty(_root.naboje, _y , 50 + random(300));
_root.ammos2 = _root.ammos2 + 50;
tellTarget ("_root.naboje") {
gotoAndPlay (1);
};
}
}
Frame 23
gotoAndPlay (22);
Frame 24
if (_root.weapons1 == 0) {
tellTarget ("_root.gun.gun") {
gotoAndStop (1);
_root.damage1 = 2;
_root.speeder1 = 5;
};
}
if (_root.weapons1 == 1) {
tellTarget ("_root.gun.gun") {
gotoAndStop (2);
_root.damage1 = 3;
_root.speeder1 = 4;
};
}
if (_root.weapons1 == 2) {
tellTarget ("_root.gun.gun") {
gotoAndStop (3);
_root.damage1 = 1;
_root.speeder1 = 8;
};
}
if (_root.weapons1 == 3) {
tellTarget ("_root.gun.gun") {
gotoAndStop (4);
_root.damage1 = 4;
_root.speeder1 = 3;
};
}
if (_root.weapons2 == 0) {
tellTarget ("_root.gun2.gun2") {
gotoAndStop (1);
_root.damage2 = 2;
_root.speeder2 = 5;
};
}
if (_root.weapons2 == 1) {
tellTarget ("_root.gun2.gun2") {
gotoAndStop (2);
_root.damage2 = 3;
_root.speeder2 = 4;
};
}
if (_root.weapons2 == 2) {
tellTarget ("_root.gun2.gun2") {
gotoAndStop (3);
_root.damage2 = 1;
_root.speeder2 = 8;
};
}
if (_root.weapons2 == 3) {
tellTarget ("_root.gun2.gun2") {
gotoAndStop (4);
_root.damage2 = 4;
_root.speeder2 = 3;
};
}
function Bulllet() {
this.speed = speeder2;
}
_global.bulllet_depth = 1;
addBullet2 = function (x, y, rot) {
_root.attachMovie("bulllet", "bulllet_" + _global.bulllet_depth, _global.bulllet_depth, {_x:x, _y:y, _rotation:rot});
_global.bulllet_depth++;
};
degToRad = function (deg) {
rad = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
return(deg);
};
Bulllet.prototype = new MovieClip();
Bulllet.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (((((this._x < 0) || (this._x > 550)) || (this._y < 0)) || (this._y > 400)) || (_root.walls.hitTest(this._x, this._y, true))) {
this.removeMovieClip();
}
};
Object.registerClass("bulllet", Bulllet);
if (_root.hat1 == 0) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (1);
};
}
if (_root.hat1 == 1) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (2);
};
}
if (_root.hat1 == 2) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (3);
};
}
if (_root.hat1 == 3) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (4);
};
}
if (_root.hat1 == 4) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (5);
};
}
if (_root.hat1 == 5) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (6);
};
}
if (_root.hat1 == 6) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (7);
};
}
if (_root.hat1 == 7) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (8);
};
}
if (_root.hat1 == 8) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (9);
};
}
if (_root.hat1 == 9) {
tellTarget ("_root.gun.czapka.czapka") {
gotoAndStop (10);
};
}
if (_root.hat1 == 0) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (1);
};
}
if (_root.hat2 == 1) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (2);
};
}
if (_root.hat2 == 2) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (3);
};
}
if (_root.hat2 == 3) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (4);
};
}
if (_root.hat2 == 4) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (5);
};
}
if (_root.hat2 == 5) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (6);
};
}
if (_root.hat2 == 6) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (7);
};
}
if (_root.hat2 == 7) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (8);
};
}
if (_root.hat2 == 8) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (9);
};
}
if (_root.hat2 == 9) {
tellTarget ("_root.gun2.czapka1.czapka") {
gotoAndStop (10);
};
}
stop();
function Bullet() {
this.speed = speeder1;
}
_global.bullet_depth = 1;
addBullet = function (x, y, rot) {
_root.attachMovie("bullet", "bullet_" + _global.bullet_depth, _global.bullet_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet_depth++;
};
degToRad = function (deg) {
rad = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
return(deg);
};
Bullet.prototype = new MovieClip();
Bullet.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (((((this._x < 0) || (this._x > 550)) || (this._y < 0)) || (this._y > 400)) || (_root.walls.hitTest(this._x, this._y, true))) {
this.removeMovieClip();
}
};
Object.registerClass("bullet", Bullet);
Instance of Symbol 176 MovieClip "gun2" in Frame 24
onClipEvent (enterFrame) {
if (_root.walls.hitTest(_x + x, _y + y, true)) {
speed = 0.5;
}
}
onClipEvent (enterFrame) {
if (_root.player2 <= 0) {
_root.gotoAndPlay("DEAD1");
}
}
onClipEvent (load) {
speed = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(87)) {
speed = speed - 0.2;
}
if (Key.isDown(83)) {
speed = speed + 0.2;
}
if (Math.abs(speed) > 20) {
speed = speed * 0.7;
}
if (Key.isDown(65)) {
_rotation = (_rotation - 7);
}
if (Key.isDown(68)) {
_rotation = (_rotation + 7);
}
if (Key.isDown(18)) {
tellTarget ("_root.car") {
gotoAndPlay (2);
};
}
speed = speed * 0.9;
x = Math.sin(_rotation * (Math.PI/180)) * speed;
y = (Math.cos(_rotation * (Math.PI/180)) * speed) * -1;
if (!_root.land.hitTest(_x + x, _y + y, true)) {
_x = (_x + x);
_y = (_y + y);
} else {
speed = speed * -0.6;
}
}
Instance of Symbol 179 MovieClip "gun" in Frame 24
onClipEvent (enterFrame) {
if (_root.walls.hitTest(_x + x, _y + y, true)) {
speed = 0.5;
}
}
onClipEvent (enterFrame) {
if (_root.player1 <= 0) {
_root.gotoAndPlay("DEAD2");
}
}
onClipEvent (load) {
speed = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(38)) {
speed = speed - 0.2;
}
if (Key.isDown(40)) {
speed = speed + 0.2;
}
if (Math.abs(speed) > 20) {
speed = speed * 0.7;
}
if (Key.isDown(37)) {
_rotation = (_rotation - 7);
}
if (Key.isDown(39)) {
_rotation = (_rotation + 7);
}
if (Key.isDown(18)) {
tellTarget ("_root.car") {
gotoAndPlay (2);
};
}
speed = speed * 0.9;
x = Math.sin(_rotation * (Math.PI/180)) * speed;
y = (Math.cos(_rotation * (Math.PI/180)) * speed) * -1;
if (!_root.land.hitTest(_x + x, _y + y, true)) {
_x = (_x + x);
_y = (_y + y);
} else {
speed = speed * -0.6;
}
}
Instance of Symbol 178 MovieClip in Frame 24
onClipEvent (enterFrame) {
if (_root.ammos1 > 0) {
if (Key.isDown(16)) {
_root.ammos1 = _root.ammos1 - 1;
_root.addBullet(this._x, this._y, this._rotation);
tellTarget ("_root.gun.shot") {
gotoAndPlay (2);
};
}
}
}
onClipEvent (load) {
speed = 0;
}
onClipEvent (enterFrame) {
_x = _root.gun._x;
_y = _root.gun._y;
if (Math.abs(speed) > 20) {
speed = speed * 0.7;
}
if (Key.isDown(37)) {
_rotation = (_rotation - 7);
}
if (Key.isDown(39)) {
_rotation = (_rotation + 7);
}
if (Key.isDown(18)) {
tellTarget ("_root.car") {
gotoAndPlay (2);
};
}
speed = speed * 0.9;
x = Math.sin(_rotation * (Math.PI/180)) * speed;
y = (Math.cos(_rotation * (Math.PI/180)) * speed) * -1;
if (!_root.walls.hitTest(_x + x, _y + y, true)) {
_x = (_x + x);
_y = (_y + y);
} else {
speed = speed * -0.6;
}
}
Instance of Symbol 178 MovieClip in Frame 24
onClipEvent (enterFrame) {
if (_root.ammos2 > 0) {
if (Key.isDown(20)) {
_root.ammos2 = _root.ammos2 - 1;
_root.addBullet2(this._x, this._y, this._rotation);
tellTarget ("_root.gun2.shot") {
gotoAndPlay (2);
};
}
}
}
onClipEvent (load) {
speed = 0;
}
onClipEvent (enterFrame) {
_x = _root.gun2._x;
_y = _root.gun2._y;
if (Math.abs(speed) > 20) {
speed = speed * 0.7;
}
if (Key.isDown(65)) {
_rotation = (_rotation - 7);
}
if (Key.isDown(68)) {
_rotation = (_rotation + 7);
}
if (Key.isDown(18)) {
tellTarget ("_root.car") {
gotoAndPlay (2);
};
}
speed = speed * 0.9;
x = Math.sin(_rotation * (Math.PI/180)) * speed;
y = (Math.cos(_rotation * (Math.PI/180)) * speed) * -1;
if (!_root.walls.hitTest(_x + x, _y + y, true)) {
_x = (_x + x);
_y = (_y + y);
} else {
speed = speed * -0.6;
}
}
Instance of Symbol 195 MovieClip "box" in Frame 24
onClipEvent (enterFrame) {
if (this.hitTest(_root.gun)) {
setProperty(_root.box, _x , 50 + random(400));
setProperty(_root.box, _y , 50 + random(300));
_root.player1 = _root.player1 + 25;
tellTarget ("_root.box") {
gotoAndPlay (1);
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.gun2)) {
setProperty(_root.box, _x , 50 + random(400));
setProperty(_root.box, _y , 50 + random(300));
_root.player2 = _root.player2 + 25;
tellTarget ("_root.box") {
gotoAndPlay (1);
};
}
}
Instance of Symbol 196 MovieClip "naboje" in Frame 24
onClipEvent (enterFrame) {
if (this.hitTest(_root.gun)) {
setProperty(_root.naboje, _x , 50 + random(400));
setProperty(_root.naboje, _y , 50 + random(300));
_root.ammos1 = _root.ammos1 + 50;
tellTarget ("_root.naboje") {
gotoAndPlay (1);
};
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.gun2)) {
setProperty(_root.naboje, _x , 50 + random(400));
setProperty(_root.naboje, _y , 50 + random(300));
_root.ammos2 = _root.ammos2 + 50;
tellTarget ("_root.naboje") {
gotoAndPlay (1);
};
}
}
Frame 25
gotoAndPlay (24);
Frame 26
stop();
Frame 27
stop();
Symbol 6 MovieClip [MP5] Frame 1
stop();
Symbol 6 MovieClip [MP5] Frame 2
this._parent._parent.play();
_root.addBullet(this._parent._parent._parent._x, this._parent._parent._parent._y, this._parent._parent._parent._rotation, this._parent._parent._parent.weapon.damage, this._parent._parent._parent.kick);
_root.addShell(this._parent._parent._parent._x, this._parent._parent._parent._y, this._parent._parent._parent._rotation);
if (this._parent._parent._parent.kick < this._parent._parent._parent.weapon.max_kick) {
this._parent._parent._parent.kick = this._parent._parent._parent.kick + this._parent._parent._parent.weapon.kickback;
} else {
this._parent._parent._parent.kick = this._parent._parent._parent.weapon.max_kick;
}
Symbol 8 MovieClip [HK_28] Frame 1
stop();
Symbol 8 MovieClip [HK_28] Frame 2
this._parent._parent.play();
var i = ((-_global.OPTIONS.shotgun) * 2);
while (i <= (_global.OPTIONS.shotgun * 2)) {
_root.addBullet(this._parent._parent._parent._x, this._parent._parent._parent._y, this._parent._parent._parent._rotation + (i * _global.OPTIONS.drob), this._parent._parent._parent.weapon.damage, this._parent._parent._parent.kick);
i++;
}
_root.addShell(this._parent._parent._parent._x, this._parent._parent._parent._y, this._parent._parent._parent._rotation);
if (this._parent._parent._parent.kick < this._parent._parent._parent.weapon.max_kick) {
this._parent._parent._parent.kick = this._parent._parent._parent.kick + this._parent._parent._parent.weapon.kickback;
} else {
this._parent._parent._parent.kick = this._parent._parent._parent.weapon.max_kick;
}
Instance of Symbol 12 MovieClip in Symbol 13 MovieClip [bulllet] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.gun)) {
_root.player1 = _root.player1 - _root.damage2;
this._visible = 0;
tellTarget ("_root.blood") {
gotoAndPlay (2);
};
}
}
Symbol 16 MovieClip [Smoke] Frame 45
this.unloadMovie();
Symbol 18 MovieClip [MG_36] Frame 1
stop();
Symbol 18 MovieClip [MG_36] Frame 2
this._parent._parent.play();
_root.addBullet(this._parent._parent._parent._x, this._parent._parent._parent._y, this._parent._parent._parent._rotation, this._parent._parent._parent.weapon.damage, this._parent._parent._parent.kick);
_root.addShell(this._parent._parent._parent._x, this._parent._parent._parent._y, this._parent._parent._parent._rotation);
if (this._parent._parent._parent.kick < this._parent._parent._parent.weapon.max_kick) {
this._parent._parent._parent.kick = this._parent._parent._parent.kick + this._parent._parent._parent.weapon.kickback;
} else {
this._parent._parent._parent.kick = this._parent._parent._parent.weapon.max_kick;
}
Instance of Symbol 12 MovieClip in Symbol 19 MovieClip [bullet] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.gun2)) {
_root.player2 = _root.player2 - _root.damage1;
this._visible = 0;
tellTarget ("_root.blood") {
gotoAndPlay (2);
};
}
}
Symbol 40 MovieClip [Thompson] Frame 1
stop();
Symbol 40 MovieClip [Thompson] Frame 2
this._parent._parent.play();
_root.addBullet(this._parent._parent._parent._x, this._parent._parent._parent._y, this._parent._parent._parent._rotation, this._parent._parent._parent.weapon.damage, this._parent._parent._parent.kick);
_root.addShell(this._parent._parent._parent._x, this._parent._parent._parent._y, this._parent._parent._parent._rotation);
if (this._parent._parent._parent.kick < this._parent._parent._parent.weapon.max_kick) {
this._parent._parent._parent.kick = this._parent._parent._parent.kick + this._parent._parent._parent.weapon.kickback;
} else {
this._parent._parent._parent.kick = this._parent._parent._parent.weapon.max_kick;
}
Symbol 42 MovieClip [M_16] Frame 1
stop();
Symbol 42 MovieClip [M_16] Frame 2
this._parent._parent.play();
_root.addBullet(this._parent._parent._parent._x, this._parent._parent._parent._y, this._parent._parent._parent._rotation, this._parent._parent._parent.weapon.damage, this._parent._parent._parent.kick);
_root.addShell(this._parent._parent._parent._x, this._parent._parent._parent._y, this._parent._parent._parent._rotation);
if (this._parent._parent._parent.kick < this._parent._parent._parent.weapon.max_kick) {
this._parent._parent._parent.kick = this._parent._parent._parent.kick + this._parent._parent._parent.weapon.kickback;
} else {
this._parent._parent._parent.kick = this._parent._parent._parent.weapon.max_kick;
}
Symbol 44 MovieClip [AK_47] Frame 1
stop();
Symbol 44 MovieClip [AK_47] Frame 2
this._parent._parent.play();
_root.addBullet(this._parent._parent._parent._x, this._parent._parent._parent._y, this._parent._parent._parent._rotation, this._parent._parent._parent.weapon.damage, this._parent._parent._parent.kick);
_root.addShell(this._parent._parent._parent._x, this._parent._parent._parent._y, this._parent._parent._parent._rotation);
if (this._parent._parent._parent.kick < this._parent._parent._parent.weapon.max_kick) {
this._parent._parent._parent.kick = this._parent._parent._parent.kick + this._parent._parent._parent.weapon.kickback;
} else {
this._parent._parent._parent.kick = this._parent._parent._parent.weapon.max_kick;
}
Symbol 46 MovieClip [Colt_1917] Frame 1
stop();
Symbol 46 MovieClip [Colt_1917] Frame 2
this._parent._parent.play();
_root.addBullet(this._parent._parent._parent._x, this._parent._parent._parent._y, this._parent._parent._parent._rotation, this._parent._parent._parent.weapon.damage, this._parent._parent._parent.kick);
_root.addShell(this._parent._parent._parent._x, this._parent._parent._parent._y, this._parent._parent._parent._rotation);
if (this._parent._parent._parent.kick < this._parent._parent._parent.weapon.max_kick) {
this._parent._parent._parent.kick = this._parent._parent._parent.kick + this._parent._parent._parent.weapon.kickback;
} else {
this._parent._parent._parent.kick = this._parent._parent._parent.weapon.max_kick;
}
Symbol 58 Button
on (release) {
_root.play();
}
Symbol 59 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
setProperty(bar, _xscale , PercentLoaded);
} else {
gotoAndStop ("loaded");
}
Symbol 59 MovieClip Frame 2
gotoAndPlay (1);
Symbol 67 Button
on (release) {
gotoAndStop (5);
}
Symbol 71 Button
on (release) {
gotoAndStop (3);
}
Symbol 75 Button
on (release) {
gotoAndStop (4);
}
Symbol 79 Button
on (release) {
getURL ("http://www.newgrounds.com/portal/view/252216", "_blank");
}
Symbol 84 Button
on (release) {
_quality = "BEST";
}
Symbol 88 Button
on (release) {
_quality = "MEDIUM";
}
Symbol 92 Button
on (release) {
_quality = "LOW";
}
Symbol 96 Button
on (release) {
gotoAndStop (2);
}
Symbol 104 MovieClip Frame 1
stop();
Symbol 105 MovieClip Frame 1
stop();
Symbol 106 MovieClip Frame 1
stop();
Symbol 106 MovieClip Frame 2
stop();
Symbol 106 MovieClip Frame 3
stop();
Symbol 106 MovieClip Frame 4
stop();
Symbol 106 MovieClip Frame 5
gotoAndStop (1);
_root.weapons1 = 0;
_root.weapons2 = 0;
tellTarget ("_root.gun") {
gotoAndStop (1);
};
tellTarget ("_root.gun2") {
gotoAndStop (1);
};
Symbol 109 MovieClip Frame 1
stop();
_root.hat1 = 0;
_root.hat2 = 0;
Symbol 109 MovieClip Frame 2
stop();
hat1 = 0;
hat2 = 1;
hat3 = 0;
hat4 = 0;
hat5 = 0;
hat6 = 0;
Symbol 109 MovieClip Frame 3
stop();
hat1 = 0;
hat2 = 0;
hat3 = 1;
hat4 = 0;
hat5 = 0;
hat6 = 0;
Symbol 109 MovieClip Frame 4
stop();
hat1 = 0;
hat2 = 0;
hat3 = 0;
hat4 = 1;
hat5 = 0;
hat6 = 0;
Symbol 109 MovieClip Frame 5
stop();
hat1 = 0;
hat2 = 0;
hat3 = 0;
hat4 = 0;
hat5 = 1;
hat6 = 0;
Symbol 109 MovieClip Frame 6
stop();
hat1 = 0;
hat2 = 0;
hat3 = 0;
hat4 = 0;
hat5 = 0;
hat6 = 1;
Symbol 109 MovieClip Frame 7
stop();
Symbol 109 MovieClip Frame 8
stop();
Symbol 109 MovieClip Frame 9
stop();
Symbol 109 MovieClip Frame 10
stop();
Symbol 109 MovieClip Frame 11
gotoAndStop (1);
Symbol 116 Button
on (release) {
_root.hat1 = _root.hat1 + 1;
tellTarget ("_root.czapka.czapka") {
nextFrame();
};
}
Symbol 120 Button
on (release) {
gotoAndStop (6);
}
Symbol 124 Button
on (release) {
gotoAndStop (8);
}
Symbol 128 Button
on (release) {
gotoAndStop (10);
}
Symbol 132 Button
on (release) {
gotoAndStop (12);
}
Symbol 136 Button
on (release) {
gotoAndStop (14);
}
Symbol 140 Button
on (release) {
gotoAndStop (16);
}
Symbol 144 Button
on (release) {
_root.weapons1 = _root.weapons1 + 1;
tellTarget ("_root.gun") {
nextFrame();
};
}
Symbol 145 Button
on (release) {
_root.hat2 = _root.hat2 + 1;
tellTarget ("_root.czapka2.czapka") {
nextFrame();
};
}
Symbol 146 Button
on (release) {
_root.weapons2 = _root.weapons2 + 1;
tellTarget ("_root.gun2") {
nextFrame();
};
}
Symbol 150 Button
on (release) {
gotoAndStop (18);
}
Symbol 154 Button
on (release) {
gotoAndStop (20);
}
Symbol 158 Button
on (release) {
gotoAndStop (22);
}
Symbol 162 Button
on (release) {
gotoAndStop (24);
}
Symbol 173 MovieClip Frame 1
stop();
Symbol 195 MovieClip Frame 10
stop();
Symbol 196 MovieClip Frame 10
stop();
Symbol 214 MovieClip Frame 1
stop();
Symbol 252 MovieClip Frame 1
this.onEnterFrame = function () {
if ((_global.times % 6) == 0) {
this.attachMovie("Smoke", "sm_" + _global.times, _global.times, {_x:d(60), _y:d(60)});
}
};
Symbol 360 Button
on (release) {
gotoAndStop (2);
}