Frame 2
Frame 12
stop();
Frame 17
var loaded = 0;
_root.onEnterFrame = function () {
if (loaded == 100) {
loaded = undefined;
this.onEnterFrame = undefined;
play();
} else {
loaded = Math.round((this.getBytesLoaded() / this.getBytesTotal()) * 100);
this.youdapreloader.percentloaded_bar_mc._xscale = loaded;
this.youdapreloader.loaded_txt.text = loaded + "%";
stop();
}
};
stop();
Frame 24
rr.Entry.main();
stop();
Symbol 63 MovieClip [HSYouda] Frame 1
#initclip 279
Object.registerClass("HSYouda", rr.HSYouda);
#endinitclip
Symbol 74 MovieClip [planebox_blue] Frame 1
#initclip 274
Object.registerClass("planebox_blue", rr.control.PlaneBoxBlue);
#endinitclip
stop();
Symbol 80 MovieClip [planebox_green_small] Frame 1
#initclip 275
Object.registerClass("planebox_green_small", rr.control.PlaneBoxGreen);
#endinitclip
stop();
Symbol 88 MovieClip [planebox_red] Frame 1
#initclip 276
Object.registerClass("planebox_red", rr.control.PlaneBoxRed);
#endinitclip
stop();
Symbol 98 MovieClip [planebox_orange] Frame 1
#initclip 277
Object.registerClass("planebox_orange", rr.control.PlaneBoxOrange);
#endinitclip
stop();
Instance of Symbol 74 MovieClip [planebox_blue] in Symbol 99 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = 1;
}
Instance of Symbol 80 MovieClip [planebox_green_small] in Symbol 99 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = "";
}
Instance of Symbol 74 MovieClip [planebox_blue] in Symbol 99 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = 2;
}
Instance of Symbol 88 MovieClip [planebox_red] in Symbol 99 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = "";
}
Instance of Symbol 88 MovieClip [planebox_red] in Symbol 99 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = "";
}
Instance of Symbol 88 MovieClip [planebox_red] in Symbol 99 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = "";
}
Instance of Symbol 88 MovieClip [planebox_red] in Symbol 99 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = "";
}
Instance of Symbol 88 MovieClip [planebox_red] in Symbol 99 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = "";
}
Instance of Symbol 88 MovieClip [planebox_red] in Symbol 99 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = "";
}
Instance of Symbol 88 MovieClip [planebox_red] in Symbol 99 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = "";
}
Instance of Symbol 88 MovieClip [planebox_red] in Symbol 99 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = "";
}
Instance of Symbol 80 MovieClip [planebox_green_small] in Symbol 99 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = "";
}
Instance of Symbol 98 MovieClip [planebox_orange] in Symbol 99 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = 1;
}
Instance of Symbol 98 MovieClip [planebox_orange] in Symbol 99 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = 1;
}
Instance of Symbol 98 MovieClip [planebox_orange] in Symbol 99 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = 2;
}
Instance of Symbol 98 MovieClip [planebox_orange] in Symbol 99 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = 2;
}
Instance of Symbol 98 MovieClip [planebox_orange] in Symbol 99 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = 1;
}
Instance of Symbol 98 MovieClip [planebox_orange] in Symbol 99 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = 2;
}
Symbol 110 MovieClip [Total_Messerschmidt] Frame 1
#initclip 278
Object.registerClass("Total_Messerschmidt", rr.control.PlaneDisplay);
#endinitclip
Symbol 126 MovieClip [gameloader_mc] Frame 10
stop();
Symbol 3205 MovieClip [__Packages.rr.BaseClip] Frame 0
class rr.BaseClip extends MovieClip
{
var events;
function BaseClip () {
super();
}
function init() {
}
function addEventListener(evt, listener) {
if (events == undefined) {
events = new mx.events.EventDispatcher();
}
events.addEventListener(evt, listener);
}
function removeEventListener(evt, listener) {
events.removeEventListener(evt, listener);
}
var pi = Math.PI;
var cos = Math.cos;
var acos = Math.acos;
var sin = Math.sin;
var asin = Math.asin;
var atan2 = Math.atan2;
var abs = Math.abs;
var round = Math.round;
}
Symbol 3206 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0
class mx.events.EventDispatcher
{
function EventDispatcher () {
}
static function _removeEventListener(queue, event, handler) {
if (queue != undefined) {
var _local4 = queue.length;
var _local1;
_local1 = 0;
while (_local1 < _local4) {
var _local2 = queue[_local1];
if (_local2 == handler) {
queue.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
}
static function initialize(object) {
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.EventDispatcher();
}
object.addEventListener = _fEventDispatcher.addEventListener;
object.removeEventListener = _fEventDispatcher.removeEventListener;
object.dispatchEvent = _fEventDispatcher.dispatchEvent;
object.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchQueue(queueObj, eventObj) {
var _local7 = "__q_" + eventObj.type;
var _local4 = queueObj[_local7];
if (_local4 != undefined) {
var _local5;
for (_local5 in _local4) {
var _local1 = _local4[_local5];
var _local3 = typeof(_local1);
if ((_local3 == "object") || (_local3 == "movieclip")) {
if (_local1.handleEvent != undefined) {
_local1.handleEvent(eventObj);
}
if (_local1[eventObj.type] != undefined) {
if (exceptions[eventObj.type] == undefined) {
_local1[eventObj.type](eventObj);
}
}
} else {
_local1.apply(queueObj, [eventObj]);
}
}
}
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(this, eventObj);
}
function addEventListener(event, handler) {
var _local3 = "__q_" + event;
if (this[_local3] == undefined) {
this[_local3] = new Array();
}
_global.ASSetPropFlags(this, _local3, 1);
_removeEventListener(this[_local3], event, handler);
this[_local3].push(handler);
}
function removeEventListener(event, handler) {
var _local2 = "__q_" + event;
_removeEventListener(this[_local2], event, handler);
}
static var _fEventDispatcher = undefined;
static var exceptions = {move:1, draw:1, load:1};
}
Symbol 3207 MovieClip [__Packages.rr.control.PlaneDisplay] Frame 0
class rr.control.PlaneDisplay extends rr.BaseClip
{
var oranges, reds, blues, greens, _linkId, _parent, _visible, possibleWeapons, events;
function PlaneDisplay () {
super();
init();
}
function init() {
hide();
oranges = new Array();
reds = new Array();
blues = new Array();
greens = new Array();
setPossibleWeapons();
_global.planemenu.addEventListener("onUpgrade", this);
}
function get linkId() {
return(_linkId);
}
function set linkId(value) {
_linkId = value;
//return(linkId);
}
function show(showguides) {
_parent.guide1_mc._visible = false;
_parent.guide2_mc._visible = false;
if (showguides) {
if (_global.game.levelId == 1) {
_parent.guide1_mc.gotoAndPlay(1);
_parent.guide1_mc._visible = true;
}
if (_global.game.levelId == 2) {
_parent.guide2_mc.gotoAndPlay(1);
_parent.guide2_mc._visible = true;
}
}
_visible = true;
}
function hide() {
_visible = false;
}
function setPossibleWeapons() {
switch (_linkId) {
case "FockeWolf" :
possibleWeapons = ["AirMissile", "AirSeeker", "GroundMissile", "GroundSeeker", "BombNormal", "GunSingle", "GunDouble", "Propaganda", "EMPBomb"];
break;
case "BellHuey" :
possibleWeapons = ["AirMissile", "AirSeeker", "GroundMissile", "GroundSeeker", "BombNormal", "GunSingle", "GunDouble", "Propaganda", "EMPBomb"];
break;
case "MesserSchmidt" :
possibleWeapons = ["AirMissile", "AirSeeker", "GroundMissile", "GroundSeeker", "BombNormal", "BombHeavy", "GunSingle", "GunDouble", "Propaganda", "EMPBomb"];
break;
case "C47" :
possibleWeapons = ["AirMissile", "AirSeeker", "GroundMissile", "GroundSeeker", "BombNormal", "BombHeavy", "BombExtreme", "GunSingle", "GunDouble", "GunGatling", "Propaganda", "FuelBomb", "EMPBomb", "CarpetBomb"];
break;
case "Apache" :
possibleWeapons = ["AirMissile", "AirSeeker", "GroundMissile", "GroundSeeker", "BombNormal", "GunSingle", "GunDouble", "Propaganda", "EMPBomb"];
break;
case "A10" :
possibleWeapons = ["AirMissile", "AirSeeker", "GroundMissile", "GroundSeeker", "BombNormal", "BombHeavy", "BombExtreme", "GunSingle", "GunDouble", "GunGatling", "Propaganda", "FuelBomb", "EMPBomb", "CarpetBomb"];
break;
case "B2" :
possibleWeapons = ["AirMissile", "AirSeeker", "GroundMissile", "GroundSeeker", "BombNormal", "BombHeavy", "BombExtreme", "GunSingle", "GunDouble", "GunGatling", "Propaganda", "FuelBomb", "EMPBomb", "CarpetBomb", "NuclearBomb"];
break;
case "B52" :
possibleWeapons = ["AirMissile", "AirSeeker", "GroundMissile", "GroundSeeker", "BombNormal", "BombHeavy", "BombExtreme", "GunSingle", "GunDouble", "GunGatling", "Propaganda", "FuelBomb", "EMPBomb", "CarpetBomb", "NuclearBomb"];
}
}
function weaponAllowed(lid) {
var _local2 = 0;
while (_local2 < possibleWeapons.length) {
if (possibleWeapons[_local2] == lid) {
return(true);
}
_local2++;
}
return(false);
}
function getFreeBox(colour) {
var _local4;
var _local3;
switch (colour) {
case "orange" :
_local3 = oranges;
break;
case "red" :
_local3 = reds;
break;
case "blue" :
_local3 = blues;
break;
case "green" :
_local3 = greens;
}
var _local2 = 0;
while (_local2 < _local3.length) {
if (_local3[_local2].boxObject == undefined) {
_local4 = _local3[_local2];
break;
}
_local2++;
}
return(_local4);
}
function clear() {
events.dispatchEvent({type:"clear"});
}
function refreshBoxes() {
var _local3 = oranges.length;
var _local2 = 0;
while (_local2 < _local3) {
if (oranges[_local2].boxObject.count == 0) {
oranges[_local2].clear();
}
_local2++;
}
_local3 = reds.length;
_local2 = 0;
while (_local2 < _local3) {
if (reds[_local2].boxObject.count == 0) {
reds[_local2].clear();
}
_local2++;
}
_local3 = greens.length;
_local2 = 0;
while (_local2 < _local3) {
if (greens[_local2].boxObject.count == 0) {
greens[_local2].clear();
}
_local2++;
}
}
function clearAndRefund() {
var _local3 = oranges.length;
var _local2 = 0;
while (_local2 < _local3) {
oranges[_local2].doRefund();
_local2++;
}
_local3 = reds.length;
_local2 = 0;
while (_local2 < _local3) {
reds[_local2].doRefund();
_local2++;
}
_local3 = greens.length;
_local2 = 0;
while (_local2 < _local3) {
greens[_local2].doRefund();
_local2++;
}
_local3 = blues.length;
_local2 = 0;
while (_local2 < _local3) {
blues[_local2].doRefund();
_local2++;
}
clear();
}
function getRefund() {
var _local4 = 0;
var _local3 = oranges.length;
var _local2 = 0;
while (_local2 < _local3) {
_local4 = _local4 + oranges[_local2].getRefund();
_local2++;
}
_local3 = reds.length;
_local2 = 0;
while (_local2 < _local3) {
_local4 = _local4 + reds[_local2].getRefund();
_local2++;
}
_local3 = greens.length;
_local2 = 0;
while (_local2 < _local3) {
_local4 = _local4 + greens[_local2].getRefund();
_local2++;
}
_local3 = blues.length;
_local2 = 0;
while (_local2 < _local3) {
_local4 = _local4 + blues[_local2].getRefund();
_local2++;
}
return(_local4);
}
function getUpgradeRefund(up) {
var _local7 = 0;
var _local6;
var _local5;
var _local4;
switch (up) {
case "upair" :
_local6 = oranges;
_local5 = "AirMissile";
_local4 = "AirSeeker";
break;
case "upground" :
_local6 = oranges;
_local5 = "GroundMissile";
_local4 = "GroundSeeker";
break;
case "upbomb" :
_local6 = reds;
if (_global.player.upBomb == 1) {
_local5 = "BombNormal";
_local4 = "BombHeavy";
} else {
_local5 = "BombHeavy";
_local4 = "BombExtreme";
}
break;
case "upgun" :
_local6 = blues;
if (_global.player.upGun == 1) {
_local5 = "GunSingle";
_local4 = "GunDouble";
} else {
_local5 = "GunDouble";
_local4 = "GunGatling";
}
}
var _local8 = _local6.length;
var _local3 = 0;
while (_local3 < _local8) {
_local7 = _local7 + _local6[_local3].getUpgradeRefund(_local5, _local4);
_local3++;
}
return(_local7);
}
function onUpgrade(evtObj) {
var _local8 = evtObj.upgrade;
var _local6;
var _local5;
var _local4;
switch (_local8) {
case "upair" :
_local6 = oranges;
_local5 = "AirMissile";
_local4 = "AirSeeker";
break;
case "upground" :
_local6 = oranges;
_local5 = "GroundMissile";
_local4 = "GroundSeeker";
break;
case "upbomb" :
_local6 = reds;
if (_global.player.upBomb == 2) {
_local5 = "BombNormal";
_local4 = "BombHeavy";
} else {
_local5 = "BombHeavy";
_local4 = "BombExtreme";
}
break;
case "upgun" :
_local6 = blues;
if (_global.player.upGun == 2) {
_local5 = "GunSingle";
_local4 = "GunDouble";
} else {
_local5 = "GunDouble";
_local4 = "GunGatling";
}
}
var _local7 = _local6.length;
var _local3 = 0;
while (_local3 < _local7) {
_local6[_local3].upgrade(_local5, _local4);
_local3++;
}
}
}
Symbol 3208 MovieClip [__Packages.rr.control.PlaneBox] Frame 0
class rr.control.PlaneBox extends rr.BaseClip
{
var _uid, onPress, onRollOver, onRollOut, onDragOut, _parent, _slotId, _boxObject, gotoAndStop, boxInfo_mc;
function PlaneBox () {
super();
}
function init() {
_uid = rr.utils.StringUtils.getUniqueName();
onPress = rr.utils.Delegate.create(this, removeBoxObject);
onRollOver = rr.utils.Delegate.create(this, showBoxInfo);
onRollOut = (onDragOut = rr.utils.Delegate.create(this, hideBoxInfo));
_parent._parent.addEventListener("clear", this);
}
function get slotId() {
return(_slotId);
}
function set slotId(value) {
_slotId = value;
//return(slotId);
}
function get uid() {
return(_uid);
}
function set uid(value) {
_uid = value;
//return(uid);
}
function get boxObject() {
return(_boxObject);
}
function set boxObject(value) {
_boxObject = value;
//return(boxObject);
}
function clear() {
_boxObject = undefined;
gotoAndStop("empty");
}
function selectWeapon(obj) {
_boxObject = obj;
_boxObject.uid = _uid;
_boxObject.slotId = _slotId;
gotoAndStop(_boxObject.linkId);
}
function doRefund() {
if (_boxObject != undefined) {
if (_boxObject.count == undefined) {
_global.player.addCash(_boxObject.price);
} else {
var _local4 = rr.conf.Config.getObjectValue(_boxObject.linkId, "count");
var _local5 = Math.round((_boxObject.price * _boxObject.count) / _local4);
var _local3 = _boxObject.count * rr.conf.Config.getObjectValue(_boxObject.linkId, "unitweight");
_global.planemenu.totalload = _global.planemenu.totalload - _local3;
_global.player.addCash(_local5);
}
}
}
function getRefund() {
var _local2 = 0;
if (_boxObject != undefined) {
if (_boxObject.count == undefined) {
_local2 = _boxObject.price;
} else {
var _local3 = rr.conf.Config.getObjectValue(_boxObject.linkId, "count");
_local2 = Math.round((_boxObject.price * _boxObject.count) / _local3);
}
}
return(_local2);
}
function upgrade(t1, t2) {
if (_boxObject != undefined) {
if (_boxObject.linkId == t1) {
doRefund();
clear();
}
}
}
function getUpgradeRefund(t1, t2) {
var _local2 = 0;
if (_boxObject != undefined) {
if (_boxObject.linkId == t1) {
var _local3 = rr.conf.Config.getObjectValue(_boxObject.linkId, "count");
_local2 = Math.round((_boxObject.price * _boxObject.count) / _local3);
}
}
return(_local2);
}
function removeBoxObject() {
if (!_global.planemenu.menuEnabled()) {
return(undefined);
}
hideBoxInfo();
_global.planemenu.onWeaponRemove(this);
}
function showBoxInfo() {
if (boxInfo_mc) {
return(undefined);
}
if (_boxObject == undefined) {
return(undefined);
}
var _local3 = {x:_root._xmouse + 40, y:_root._ymouse - 25};
if (_local3.x > 540) {
_local3.x = _local3.x - 160;
}
boxInfo_mc = _root.attachMovie("PlaneBoxInfo", rr.utils.StringUtils.getUniqueName(), _root.getNextHighestDepth());
boxInfo_mc._x = _local3.x;
boxInfo_mc._y = _local3.y;
var _local4 = rr.conf.Config.getObjectValue(_boxObject.linkId, "count");
var _local5 = Math.round((_boxObject.price * _boxObject.count) / _local4);
boxInfo_mc.header_txt.text = rr.conf.Config.getObjectValue(_boxObject.linkId, "displayname").toUpperCase();
boxInfo_mc.count_txt.text = ((_boxObject.count + "(") + _local4) + ")";
boxInfo_mc.refund_txt.text = "$ " + rr.utils.StringUtils.formatNumberWithCommas(_local5);
}
function hideBoxInfo() {
boxInfo_mc.removeMovieClip();
delete boxInfo_mc;
}
}
Symbol 3209 MovieClip [__Packages.rr.utils.StringUtils] Frame 0
class rr.utils.StringUtils
{
function StringUtils () {
}
static function getUniqueName() {
var _local3 = "";
var _local2 = 1;
while (_local2 <= 4) {
var _local1 = 1;
while (_local1 <= 4) {
_local3 = _local3 + getRandomChar();
_local1++;
}
if (_local2 < 4) {
_local3 = _local3 + "-";
}
_local2++;
}
return(_local3);
}
static function getRandomChar() {
switch (Math.round(Math.random() + 1)) {
case 1 :
return(String.fromCharCode(Math.round(Math.random() * 25) + 65));
case 2 :
return(String.fromCharCode(Math.round(Math.random() * 25) + 97));
}
}
static function scrambleArray(arr) {
var _local2 = [];
while (arr.length > 0) {
_local2.push(arr.splice(Math.round(Math.random() * (arr.length - 1)), 1));
}
return(_local2);
}
static function getTimeString(t) {
var _local1 = Math.round(t / 1000);
var _local2 = Math.floor(_local1 / 60);
var _local3 = Math.floor(_local2 / 60);
_local1 = _local1 % 60;
_local2 = _local2 % 60;
var _local4 = ((_local1 < 10) ? ("0" + _local1) : (_local1));
var _local5 = _local2 + ":";
var _local6 = ((_local3 > 0) ? (_local3 + ":") : "");
var _local7 = (_local6 + _local5) + _local4;
return(_local7);
}
static function getHighScoreTimeString(t) {
var _local2 = Math.round(t / 1000);
var _local1 = Math.floor(_local2 / 60);
var _local3 = Math.floor(_local1 / 60);
_local2 = _local2 % 60;
_local1 = _local1 % 60;
var _local6 = ((_local2 < 10) ? ("0" + _local2) : (_local2.toString()));
var _local4 = "00";
if (_local1 > 0) {
_local4 = ((_local1 < 10) ? ("0" + _local1) : (_local1.toString()));
}
var _local5 = "";
if (_local3 > 0) {
_local5 = ((_local3 < 10) ? ("0" + _local3) : (_local3.toString()));
}
var _local7 = (_local5 + _local4) + _local6;
return(_local7);
}
static function formatNumberWithCommas(num) {
var _local1 = num.toString();
if (_local1.length < 4) {
return(_local1);
}
return((formatNumberWithCommas(_local1.slice(0, -3)) + ",") + _local1.slice(-3));
}
}
Symbol 3210 MovieClip [__Packages.rr.utils.Delegate] Frame 0
class rr.utils.Delegate extends Object
{
var func;
function Delegate (f) {
super();
func = f;
}
static function create(obj, func) {
var _local2 = function () {
var _local2 = arguments.callee.target;
var _local4 = arguments.callee.func;
var _local3 = arguments.callee.arguments;
return(_local4.apply(_local2, _local3));
};
_local2.target = obj;
_local2.func = func;
arguments.splice(0, 2);
_local2.arguments = arguments;
return(_local2);
}
function createDelegate(obj) {
return(create(obj, func));
}
static function callDelayed(obj, func, ival) {
arguments.splice(0, 3);
var _local3 = new Object();
_local3.f = function () {
clearInterval(this.i);
return(this.func.apply(this.target, this.arguments));
};
_local3.target = obj;
_local3.func = func;
_local3.arguments = arguments;
_local3.i = setInterval(_local3, "f", ival);
}
}
Symbol 3211 MovieClip [__Packages.rr.conf.Config] Frame 0
class rr.conf.Config
{
function Config () {
}
static function testSettings() {
return(false);
}
static function getGameConf(levelId) {
switch (levelId) {
case 1 :
return(new rr.conf.level.ConfLevel1());
case 2 :
return(new rr.conf.level.ConfLevel2());
case 3 :
return(new rr.conf.level.ConfLevel3());
case 4 :
return(new rr.conf.level.ConfLevel4());
case 5 :
return(new rr.conf.level.ConfLevel5());
case 6 :
return(new rr.conf.level.ConfLevel6());
case 11 :
return(new rr.conf.level.ConfLevel11());
case 12 :
return(new rr.conf.level.ConfLevel12());
case 13 :
return(new rr.conf.level.ConfLevel13());
}
}
static function addMapValues() {
var _local2 = _global.gameconf.map.mapid;
_global.gameconf.map.cols = getMapValue(_local2, "cols");
_global.gameconf.map.rows = getMapValue(_local2, "rows");
_global.gameconf.map.maptype = getMapValue(_local2, "maptype");
_global.gameconf.map.foreground = getMapValue(_local2, "foreground");
}
static function getMapValue(mapId, key) {
switch (mapId) {
case 1 :
return(rr.conf.map.ConfMapValues1.getValue(key));
case 2 :
return(rr.conf.map.ConfMapValues2.getValue(key));
case 3 :
return(rr.conf.map.ConfMapValues3.getValue(key));
case 4 :
return(rr.conf.map.ConfMapValues4.getValue(key));
case 5 :
return(rr.conf.map.ConfMapValues5.getValue(key));
}
}
static function getObjectValue(linkId, key) {
switch (linkId) {
case "AirField" :
return(rr.conf.plane.ConfAirField.getValue(key));
case "AirfieldDefender" :
return(rr.conf.plane.ConfAirfieldDefender.getValue(key));
case "A10" :
return(rr.conf.plane.ConfA10.getValue(key));
case "Apache" :
return(rr.conf.plane.ConfApache.getValue(key));
case "B2" :
return(rr.conf.plane.ConfB2.getValue(key));
case "B52" :
return(rr.conf.plane.ConfB52.getValue(key));
case "BellHuey" :
return(rr.conf.plane.ConfBellHuey.getValue(key));
case "C47" :
return(rr.conf.plane.ConfC47.getValue(key));
case "FockeWolf" :
return(rr.conf.plane.ConfFockeWolf.getValue(key));
case "MesserSchmidt" :
return(rr.conf.plane.ConfMesserSchmidt.getValue(key));
case "AirMissile" :
return(rr.conf.plane.ammo.ConfAirMissile.getValue(key));
case "AirSeeker" :
return(rr.conf.plane.ammo.ConfAirSeeker.getValue(key));
case "GroundMissile" :
return(rr.conf.plane.ammo.ConfGroundMissile.getValue(key));
case "GroundSeeker" :
return(rr.conf.plane.ammo.ConfGroundSeeker.getValue(key));
case "BombNormal" :
return(rr.conf.plane.ammo.ConfBombNormal.getValue(key));
case "BombHeavy" :
return(rr.conf.plane.ammo.ConfBombHeavy.getValue(key));
case "BombExtreme" :
return(rr.conf.plane.ammo.ConfBombExtreme.getValue(key));
case "GunSingle" :
return(rr.conf.plane.ammo.ConfGunSingle.getValue(key));
case "GunDouble" :
return(rr.conf.plane.ammo.ConfGunDouble.getValue(key));
case "GunGatling" :
return(rr.conf.plane.ammo.ConfGunGatling.getValue(key));
case "Propaganda" :
return(rr.conf.plane.ammo.ConfPropaganda.getValue(key));
case "EMPBomb" :
return(rr.conf.plane.ammo.ConfEMPBomb.getValue(key));
case "FuelBomb" :
return(rr.conf.plane.ammo.ConfFuelBomb.getValue(key));
case "CarpetBomb" :
return(rr.conf.plane.ammo.ConfCarpetBomb.getValue(key));
case "NuclearBomb" :
return(rr.conf.plane.ammo.ConfNuclearBomb.getValue(key));
case "BulletGunSingle" :
return(rr.conf.plane.ammo.ConfBulletGunSingle.getValue(key));
case "BulletGunDouble" :
return(rr.conf.plane.ammo.ConfBulletGunDouble.getValue(key));
case "BulletGunGatling" :
return(rr.conf.plane.ammo.ConfBulletGunGatling.getValue(key));
case "SaddleTank" :
return(rr.conf.train.ConfSaddleTank.getValue(key));
case "Rhino" :
return(rr.conf.train.ConfRhino.getValue(key));
case "SuperChief" :
return(rr.conf.train.ConfSuperChief.getValue(key));
case "SuperChiefWagon" :
return(rr.conf.train.ConfSuperChiefWagon.getValue(key));
case "Dragon" :
return(rr.conf.train.ConfDragon.getValue(key));
case "Pennsylvania" :
return(rr.conf.train.ConfPennsylvania.getValue(key));
case "SmallCannon" :
return(rr.conf.train.ConfSmallCannon.getValue(key));
case "MediumCannon" :
return(rr.conf.train.ConfMediumCannon.getValue(key));
case "Heatseeker" :
return(rr.conf.train.ConfHeatseeker.getValue(key));
case "SmallFastCannon" :
return(rr.conf.train.ConfSmallFastCannon.getValue(key));
case "RocketLauncher" :
return(rr.conf.train.ConfRocketLauncher.getValue(key));
case "Wagon1" :
return(rr.conf.train.ConfWagon1.getValue(key));
case "Wagon2" :
return(rr.conf.train.ConfWagon2.getValue(key));
case "Wagon3" :
return(rr.conf.train.ConfWagon3.getValue(key));
case "Wagon4" :
return(rr.conf.train.ConfWagon4.getValue(key));
case "Passenger" :
return(rr.conf.train.ConfPassenger.getValue(key));
case "PassengerArmored" :
return(rr.conf.train.ConfPassengerArmored.getValue(key));
case "ABomb" :
return(rr.conf.train.ConfABomb.getValue(key));
case "TankTrailer" :
return(rr.conf.train.ConfTankTrailer.getValue(key));
case "Basilisk" :
return(rr.conf.enemy.ConfBasilisk.getValue(key));
case "PotTank" :
return(rr.conf.enemy.ConfPotTank.getValue(key));
case "Abrahams" :
return(rr.conf.enemy.ConfAbrahams.getValue(key));
case "Elephant" :
return(rr.conf.enemy.ConfElephant.getValue(key));
case "OldJeep" :
return(rr.conf.enemy.ConfOldJeep.getValue(key));
case "GunTruck" :
return(rr.conf.enemy.ConfGunTruck.getValue(key));
case "ArmoredJeep" :
return(rr.conf.enemy.ConfArmoredJeep.getValue(key));
case "Panther" :
return(rr.conf.enemy.ConfPanther.getValue(key));
case "BullDozer" :
return(rr.conf.enemy.ConfBullDozer.getValue(key));
case "Bunker" :
return(rr.conf.enemy.ConfBunker.getValue(key));
case "GatlingSingle" :
return(rr.conf.enemy.ConfGatlingSingle.getValue(key));
case "GatlingDouble" :
return(rr.conf.enemy.ConfGatlingDouble.getValue(key));
case "Rocketeer" :
return(rr.conf.enemy.ConfRocketeer.getValue(key));
case "RocketBase" :
return(rr.conf.enemy.ConfRocketBase.getValue(key));
case "Rocket" :
return(rr.conf.enemy.ConfRocket.getValue(key));
case "AirField" :
return(rr.conf.plane.ConfAirField.getValue(key));
case "Flat1" :
return(rr.conf.building.ConfFlat1.getValue(key));
case "Flat2" :
return(rr.conf.building.ConfFlat2.getValue(key));
case "Flat3" :
return(rr.conf.building.ConfFlat3.getValue(key));
case "Flat4" :
return(rr.conf.building.ConfFlat4.getValue(key));
case "Flat5" :
return(rr.conf.building.ConfFlat5.getValue(key));
case "House1" :
return(rr.conf.building.ConfHouse1.getValue(key));
case "House2" :
return(rr.conf.building.ConfHouse2.getValue(key));
case "House3" :
return(rr.conf.building.ConfHouse3.getValue(key));
case "House4" :
return(rr.conf.building.ConfHouse4.getValue(key));
case "House5" :
return(rr.conf.building.ConfHouse5.getValue(key));
case "House6" :
return(rr.conf.building.ConfHouse6.getValue(key));
case "House7" :
return(rr.conf.building.ConfHouse7.getValue(key));
case "House8" :
return(rr.conf.building.ConfHouse8.getValue(key));
case "House9" :
return(rr.conf.building.ConfHouse9.getValue(key));
case "Industry1" :
return(rr.conf.building.ConfIndustry1.getValue(key));
case "Industry2" :
return(rr.conf.building.ConfIndustry2.getValue(key));
case "Industry3" :
return(rr.conf.building.ConfIndustry3.getValue(key));
case "Industry4" :
return(rr.conf.building.ConfIndustry4.getValue(key));
case "Industry5" :
return(rr.conf.building.ConfIndustry5.getValue(key));
case "Office1" :
return(rr.conf.building.ConfOffice1.getValue(key));
case "Office2" :
return(rr.conf.building.ConfOffice2.getValue(key));
case "Office3" :
return(rr.conf.building.ConfOffice3.getValue(key));
case "Office4" :
return(rr.conf.building.ConfOffice4.getValue(key));
}
}
static function translateEnemyCodes(codes) {
var _local3 = new Array();
var _local1 = 0;
while (_local1 < codes.length) {
if (codes[_local1] == "bl") {
_local3.push("Basilisk");
}
if (codes[_local1] == "pt") {
_local3.push("PotTank");
}
if (codes[_local1] == "ah") {
_local3.push("Abrahams");
}
if (codes[_local1] == "el") {
_local3.push("Elephant");
}
if (codes[_local1] == "oj") {
_local3.push("OldJeep");
}
if (codes[_local1] == "gt") {
_local3.push("GunTruck");
}
if (codes[_local1] == "aj") {
_local3.push("ArmoredJeep");
}
if (codes[_local1] == "pn") {
_local3.push("Panther");
}
if (codes[_local1] == "bd") {
_local3.push("BullDozer");
}
if (codes[_local1] == "bk") {
_local3.push("Bunker");
}
if (codes[_local1] == "gs") {
_local3.push("GatlingSingle");
}
if (codes[_local1] == "gd") {
_local3.push("GatlingDouble");
}
if (codes[_local1] == "rt") {
_local3.push("Rocketeer");
}
if (codes[_local1] == "af") {
_local3.push("AirField");
}
if (codes[_local1] == "rb") {
_local3.push("RocketBase");
}
if (codes[_local1] == "fw") {
_local3.push("FockeWolf");
}
if (codes[_local1] == "ms") {
_local3.push("MesserSchmidt");
}
if (codes[_local1] == "wh") {
_local3.push("WartHog");
}
if (codes[_local1] == "c47") {
_local3.push("C47");
}
if (codes[_local1] == "b2") {
_local3.push("B2");
}
if (codes[_local1] == "bh") {
_local3.push("BellHuey");
}
if (codes[_local1] == "ap") {
_local3.push("Apache");
}
_local1++;
}
return(_local3);
}
static function translateDropCode(code) {
if (code == "f") {
return("FuelTank");
}
if (code == "p") {
return("Passenger");
}
if (code == "a") {
return("PassengerArmored");
}
if (code == "t") {
return("TankTrailer");
}
if (code == "b") {
return("ABomb");
}
}
static function translateBuildingCode(code) {
if (code == "f1") {
return("Flat1");
}
if (code == "f2") {
return("Flat2");
}
if (code == "f3") {
return("Flat3");
}
if (code == "f4") {
return("Flat4");
}
if (code == "f5") {
return("Flat5");
}
if (code == "h1") {
return("House1");
}
if (code == "h2") {
return("House2");
}
if (code == "h3") {
return("House3");
}
if (code == "h4") {
return("House4");
}
if (code == "h5") {
return("House5");
}
if (code == "h6") {
return("House6");
}
if (code == "h7") {
return("House7");
}
if (code == "h8") {
return("House8");
}
if (code == "h9") {
return("House9");
}
if (code == "i1") {
return("Industry1");
}
if (code == "i2") {
return("Industry2");
}
if (code == "i3") {
return("Industry3");
}
if (code == "i4") {
return("Industry4");
}
if (code == "i5") {
return("Industry5");
}
if (code == "o1") {
return("Office1");
}
if (code == "o2") {
return("Office2");
}
if (code == "o3") {
return("Office3");
}
if (code == "o4") {
return("Office4");
}
}
}
Symbol 3212 MovieClip [__Packages.rr.conf.level.ConfLevel1] Frame 0
class rr.conf.level.ConfLevel1
{
var missiontargets, map, startcol, startrow, clipcols, nightmap, startcash, levelpoints, ea, af, bk, rb, bd;
function ConfLevel1 () {
missiontargets = [{id:1, text:"Destroy all industrial buildings near airfield", type:"AllIndustry"}, {id:2, text:"Destroy all 7 enemy scouts", type:"AllGrounds"}, {id:3, text:"Take down the 2 enemy Focke Wolf airplanes", type:"AllAirs"}, {id:4, text:"Take over the enemy airfield with propaganda", type:"AllAirfields"}];
map = new rr.conf.map.ConfMap1();
startcol = 1;
startrow = 1;
clipcols = 6;
nightmap = false;
startcash = 14000;
levelpoints = 6500;
ea = [{x:2304, y:483, w:463, h:71, ise:"true", e:["oj"]}, {x:2378, y:862, w:1371, h:26, ise:"true", e:["oj"]}, {x:2327, y:964, w:1444, h:24, ise:"true", e:["aj"]}, {x:2285, y:1071, w:1473, h:25, ise:"true", e:["aj"]}, {x:3577, y:520, w:28, h:274, ise:"true", e:["aj"]}, {x:2282, y:401, w:511, h:48, ise:"true", e:["aj"]}, {x:3165, y:99, w:338, h:149, ise:"true", e:["aj"]}];
af = [{x:816, y:1175, r:0, h:0}, {x:3020, y:377, r:-1, h:500, e:["fw", "fw"]}];
bk = [];
rb = [];
bd = [{x:1616, y:1115, r:0, t:"i1"}, {x:1731, y:1118, r:0, t:"i1"}, {x:1837, y:1116, r:0, t:"i1"}, {x:1587, y:1286, r:-24, t:"i2"}, {x:2111, y:1101, r:0, t:"i3"}, {x:2108, y:1211, r:0, t:"i3"}, {x:1432, y:1125, r:0, t:"o4"}, {x:1776, y:1310, r:0, t:"o1"}, {x:1889, y:1240, r:0, t:"o1"}, {x:2004, y:1307, r:0, t:"o1"}];
}
}
Symbol 3213 MovieClip [__Packages.rr.conf.map.ConfMap1] Frame 0
class rr.conf.map.ConfMap1
{
var mapid, title, rc, rs;
function ConfMap1 () {
mapid = 5;
title = "default";
rc = [{id:1, x:20, y:1111, a:0}, {id:2, x:320, y:1111, a:0}, {id:9999, x:6160, y:137, a:-180}, {id:10000, x:6360, y:137, a:-180}, {id:3, x:420, y:1111, a:0}, {id:4, x:520, y:1211, a:-90}, {id:5, x:520, y:1311, a:-90}, {id:6, x:620, y:1411, a:0}, {id:8, x:885, y:1411, a:0}, {id:9, x:885, y:1055, a:-180}, {id:16, x:416, y:1055, a:-180}, {id:21, x:354, y:1055, a:-180}, {id:22, x:254, y:955, a:-270}, {id:24, x:254, y:855, a:-270, s:{x:220, y:834, p:[24, -1, -1, -1, -1, -1, 26, -1]}}, {id:25, x:254, y:755, a:-270, s:{x:219, y:735, p:[25, -1, -1, -1, -1, -1, 27, -1]}}, {id:26, x:254, y:486, a:-270, s:{x:213, y:459, p:[34, -1, -1, -1, -1, -1, 33, -1]}}, {id:27, x:154, y:755, a:-180}, {id:28, x:154, y:655, a:-180}, {id:29, x:25, y:755, a:-180}, {id:30, x:26, y:655, a:-180}, {id:34, x:154, y:386, a:-180}, {id:35, x:254, y:386, a:-270, s:{x:216, y:358, p:[36, -1, -1, -1, -1, -1, 35, -1]}}, {id:36, x:154, y:286, a:-180}, {id:37, x:254, y:286, a:-270, s:{x:219, y:264, p:[-1, 41, -1, -1, -1, -1, -1, 39]}}, {id:38, x:26, y:386, a:-180}, {id:39, x:26, y:286, a:-180}, {id:40, x:154, y:186, a:-180}, {id:41, x:26, y:186, a:-180}, {id:42, x:433, y:107, a:-360}, {id:45, x:964, y:107, a:-360}, {id:48, x:1332, y:107, a:-360}, {id:49, x:1785, y:107, a:-360}, {id:50, x:2211, y:107, a:-360}, {id:57, x:2298, y:890, a:-90}, {id:58, x:2298, y:965, a:-90}, {id:59, x:2198, y:1065, a:-180}, {id:60, x:1798, y:1065, a:-180}, {id:61, x:1607, y:1065, a:-180}, {id:62, x:1607, y:1375, a:-360}, {id:63, x:2194, y:1375, a:-360}, {id:64, x:2294, y:1277, a:-271}, {id:65, x:2365, y:1182, a:-342}, {id:66, x:2785, y:1045, a:-342}, {id:67, x:2990, y:978, a:-342, s:{x:2979, y:944, p:[-1, 84, -1, -1, 67, -1, -1, -1]}}, {id:68, x:3116, y:1042, a:-72, s:{x:3149, y:1016, p:[-1, 87, -1, -1, -1, -1, -1, 67]}}, {id:70, x:3185, y:1255, a:-72}, {id:71, x:3311, y:1319, a:-342, s:{x:3327, y:1355, p:[-1, 71, -1, -1, 81, -1, -1, -1]}}, {id:72, x:3766, y:1171, a:-342}, {id:73, x:3892, y:1235, a:-72}, {id:75, x:3911, y:1295, a:-72}, {id:76, x:3847, y:1421, a:-162}, {id:77, x:3817, y:1426, a:-180}, {id:78, x:3577, y:1426, a:-180}, {id:81, x:3432, y:1355, a:-233}, {id:85, x:3085, y:947, a:-342}, {id:86, x:3180, y:916, a:-342, s:{x:3168, y:878, p:[-1, -1, -1, -1, 87, 85, -1, -1]}}, {id:89, x:3707, y:745, a:-342}, {id:90, x:3807, y:733, a:-4}, {id:95, x:3861, y:737, a:-4}, {id:96, x:3909, y:751, a:-28}, {id:97, x:3973, y:785, a:-28}, {id:99, x:4026, y:850, a:-73}, {id:100, x:2460, y:107, a:-360}, {id:101, x:2557, y:163, a:-60}, {id:102, x:2650, y:217, a:0}, {id:103, x:2866, y:217, a:0}, {id:104, x:3004, y:136, a:-299}, {id:105, x:3135, y:66, a:-5}, {id:106, x:3232, y:171, a:-90}, {id:107, x:3232, y:348, a:-90}, {id:108, x:3146, y:467, a:-162}, {id:109, x:2736, y:600, a:-162}, {id:110, x:2514, y:672, a:-162}, {id:115, x:2429, y:661, a:-213}, {id:120, x:2284, y:703, a:-115}, {id:121, x:2277, y:786, a:-74}, {id:123, x:4063, y:972, a:-73}, {id:125, x:4194, y:1040, a:-342}, {id:127, x:4289, y:1009, a:-342}, {id:128, x:4344, y:966, a:-301}, {id:129, x:4398, y:923, a:-342}, {id:130, x:4493, y:892, a:-342}, {id:132, x:4558, y:893, a:-20}, {id:133, x:4623, y:894, a:-342}, {id:137, x:5058, y:753, a:-342}, {id:138, x:5213, y:748, a:-14}, {id:139, x:5433, y:803, a:-14, s:{x:5439, y:768, p:[-1, 139, -1, 199, -1, -1, -1, -1]}}, {id:140, x:5554, y:730, a:-284}, {id:141, x:5559, y:701, a:-277}, {id:142, x:5572, y:592, a:-277}, {id:143, x:5610, y:493, a:-305}, {id:144, x:5665, y:345, a:-276}, {id:147, x:5685, y:156, a:-276}, {id:148, x:5583, y:42, a:-180}, {id:150, x:5266, y:42, a:-180}, {id:151, x:5226, y:48, a:-162}, {id:152, x:5044, y:107, a:-162}, {id:179, x:4627, y:242, a:-162}, {id:180, x:4123, y:406, a:-162}, {id:181, x:3997, y:342, a:-252}, {id:182, x:3940, y:167, a:-252}, {id:183, x:4045, y:23, a:0}, {id:191, x:4536, y:23, a:0}, {id:192, x:4888, y:23, a:0}, {id:193, x:5483, y:23, a:0}, {id:194, x:5642, y:23, a:0}, {id:195, x:5791, y:67, a:-33}, {id:197, x:5848, y:104, a:-33}, {id:198, x:5963, y:137, a:-360}, {id:200, x:5764, y:885, a:-14}, {id:210, x:5956, y:933, a:-14}, {id:211, x:6002, y:939, a:0}, {id:212, x:6278, y:939, a:0}, {id:213, x:6378, y:839, a:-270, s:{x:6339, y:811, p:[213, -1, -1, -1, -1, -1, 229, -1]}}, {id:214, x:6378, y:739, a:-270, s:{x:6342, y:716, p:[214, -1, -1, -1, -1, -1, 230, -1]}}, {id:215, x:6378, y:639, a:-270, s:{x:6342, y:614, p:[218, -1, -1, -1, -1, -1, -1, 231]}}, {id:219, x:6275, y:512, a:-192}, {id:220, x:5922, y:437, a:-192}, {id:221, x:5777, y:328, a:-242}, {id:224, x:5746, y:271, a:-242}, {id:227, x:5729, y:166, a:-279}, {id:228, x:5624, y:42, a:-180}, {id:230, x:6278, y:739, a:-180, s:{x:6278, y:772, p:[-1, -1, -1, -1, -1, 232, 238, -1]}}, {id:231, x:6278, y:639, a:-180, s:{x:6278, y:679, p:[-1, -1, -1, -1, -1, 248, 256, 253]}}, {id:232, x:6278, y:539, a:-180}, {id:233, x:6140, y:803, a:-130, s:{x:6142, y:845, p:[-1, -1, -1, -1, -1, 233, 235, -1]}}, {id:234, x:5999, y:849, a:-194}, {id:235, x:5725, y:781, a:-194}, {id:236, x:5999, y:815, a:-220}, {id:237, x:5958, y:794, a:-194}, {id:238, x:5730, y:737, a:-194}, {id:239, x:6178, y:739, a:-180, s:{x:6170, y:705, p:[-1, -1, -1, -1, -1, 239, 242, 245]}}, {id:240, x:6121, y:757, a:-145}, {id:241, x:6040, y:772, a:-194}, {id:242, x:5730, y:695, a:-194}, {id:243, x:6078, y:739, a:-180}, {id:244, x:6053, y:736, a:-194}, {id:245, x:5737, y:657, a:-194}, {id:246, x:6119, y:720, a:-216}, {id:247, x:6084, y:704, a:-194}, {id:248, x:5743, y:619, a:-194}, {id:249, x:6227, y:653, a:-149}, {id:250, x:6150, y:664, a:-195}, {id:251, x:5746, y:556, a:-195}, {id:252, x:6256, y:537, a:-193}, {id:253, x:5758, y:422, a:-193}, {id:254, x:6196, y:596, a:-236}, {id:255, x:6136, y:554, a:-193}, {id:256, x:5755, y:466, a:-193}, {id:257, x:6196, y:639, a:-180}, {id:258, x:6132, y:615, a:-220}, {id:259, x:6092, y:595, a:-194}, {id:260, x:5751, y:510, a:-194}];
rs = [{id:1, s:1, e:2}, {id:10000, s:10000, e:9999}, {id:2, s:2, e:3}, {id:3, s:3, e:4, r:100, d:-1, l:157}, {id:4, s:4, e:5}, {id:5, s:5, e:6, r:100, d:1, l:157}, {id:7, s:6, e:8}, {id:8, s:8, e:9, r:178, d:1, l:559}, {id:15, s:9, e:16}, {id:20, s:16, e:21}, {id:21, s:21, e:22, r:100, d:-1, l:157}, {id:23, s:22, e:24}, {id:24, s:24, e:25}, {id:25, s:25, e:26}, {id:26, s:24, e:27, r:100, d:1, l:157}, {id:27, s:25, e:28, r:100, d:1, l:157}, {id:28, s:27, e:29}, {id:29, s:28, e:30}, {id:33, s:26, e:34, r:100, d:1, l:157}, {id:34, s:26, e:35}, {id:35, s:35, e:36, r:100, d:1, l:157}, {id:36, s:35, e:37}, {id:37, s:34, e:38}, {id:38, s:36, e:39}, {id:39, s:37, e:40, r:100, d:1, l:157}, {id:40, s:40, e:41}, {id:41, s:37, e:42, r:179, d:-1, l:281}, {id:44, s:42, e:45}, {id:47, s:45, e:48}, {id:48, s:48, e:49}, {id:49, s:49, e:50}, {id:57, s:57, e:58}, {id:58, s:58, e:59, r:100, d:-1, l:157}, {id:59, s:59, e:60}, {id:60, s:60, e:61}, {id:61, s:61, e:62, r:155, d:1, l:487}, {id:62, s:62, e:63}, {id:63, s:63, e:64, r:100, d:1, l:155}, {id:64, s:64, e:65, r:101, d:-1, l:126}, {id:65, s:65, e:66}, {id:66, s:66, e:67}, {id:67, s:67, e:68, r:100, d:-1, l:157}, {id:69, s:68, e:70}, {id:70, s:70, e:71, r:100, d:1, l:157}, {id:71, s:71, e:72}, {id:72, s:72, e:73, r:100, d:-1, l:157}, {id:74, s:73, e:75}, {id:75, s:75, e:76, r:100, d:-1, l:157}, {id:76, s:76, e:77, r:100, d:-1, l:31}, {id:77, s:77, e:78}, {id:80, s:78, e:81, r:182, d:-1, l:167}, {id:81, s:81, e:71, r:107, d:1, l:134, eo:1}, {id:84, s:67, e:85}, {id:85, s:85, e:86}, {id:87, s:68, e:86, r:100, d:-1, l:157, t:1}, {id:88, s:86, e:89}, {id:89, s:89, e:90, r:262, d:-1, l:101}, {id:94, s:90, e:95}, {id:95, s:95, e:96, r:117, d:-1, l:50}, {id:96, s:96, e:97}, {id:98, s:97, e:99, r:110, d:-1, l:86}, {id:99, s:50, e:100}, {id:100, s:100, e:101, r:111, d:-1, l:117}, {id:101, s:101, e:102, r:108, d:1, l:113}, {id:102, s:102, e:103}, {id:103, s:103, e:104, r:159, d:1, l:168}, {id:104, s:104, e:105, r:136, d:-1, l:157}, {id:105, s:105, e:106, r:106, d:-1, l:157}, {id:106, s:106, e:107}, {id:107, s:107, e:108, r:125, d:-1, l:157}, {id:108, s:108, e:109}, {id:109, s:109, e:110}, {id:114, s:110, e:115, r:100, d:-1, l:89}, {id:119, s:115, e:120, r:100, d:1, l:171}, {id:120, s:120, e:121, r:120, d:1, l:85}, {id:121, s:121, e:57, r:519, d:-1, l:107}, {id:122, s:99, e:123}, {id:124, s:123, e:125, r:103, d:1, l:164}, {id:126, s:125, e:127}, {id:127, s:127, e:128, r:100, d:1, l:71}, {id:128, s:128, e:129, r:100, d:-1, l:71}, {id:129, s:129, e:130}, {id:131, s:130, e:132, r:100, d:-1, l:66}, {id:132, s:132, e:133, r:100, d:1, l:66}, {id:136, s:133, e:137}, {id:137, s:137, e:138, r:277, d:-1, l:157}, {id:138, s:138, e:139}, {id:139, s:139, e:140, r:100, d:1, l:157}, {id:140, s:140, e:141, r:223, d:1, l:29}, {id:141, s:141, e:142}, {id:142, s:142, e:143, r:217, d:-1, l:107}, {id:143, s:143, e:144, r:314, d:1, l:160}, {id:146, s:144, e:147}, {id:147, s:147, e:148, r:103, d:1, l:172}, {id:149, s:148, e:150}, {id:150, s:150, e:151, r:130, d:1, l:41}, {id:151, s:151, e:152}, {id:178, s:152, e:179}, {id:179, s:179, e:180}, {id:180, s:180, e:181, r:100, d:-1, l:157}, {id:181, s:181, e:182}, {id:182, s:182, e:183, r:110, d:-1, l:208}, {id:190, s:183, e:191}, {id:191, s:191, e:192}, {id:192, s:192, e:193}, {id:193, s:193, e:194}, {id:194, s:194, e:195, r:276, d:-1, l:157}, {id:196, s:195, e:197}, {id:197, s:197, e:198, r:207, d:1, l:121}, {id:198, s:198, e:9999, eo:1}, {id:199, s:139, e:200}, {id:209, s:200, e:210}, {id:210, s:210, e:211, r:189, d:1, l:46}, {id:211, s:211, e:212}, {id:212, s:212, e:213, r:100, d:1, l:157}, {id:213, s:213, e:214}, {id:214, s:214, e:215}, {id:218, s:215, e:219, r:130, d:1, l:177}, {id:219, s:219, e:220}, {id:220, s:220, e:221, r:216, d:-1, l:187}, {id:223, s:221, e:224}, {id:226, s:224, e:227, r:166, d:-1, l:108}, {id:227, s:227, e:228, r:107, d:1, l:184}, {id:228, s:228, e:148}, {id:229, s:213, e:230, r:100, d:1, l:157}, {id:230, s:214, e:231, r:100, d:1, l:157}, {id:231, s:215, e:232, r:100, d:1, l:157}, {id:232, s:230, e:233, r:181, d:1, l:157}, {id:233, s:233, e:234, r:140, d:-1, l:156}, {id:234, s:234, e:235}, {id:235, s:233, e:236, r:100, d:-1, l:157}, {id:236, s:236, e:237, r:100, d:1, l:46}, {id:237, s:237, e:238}, {id:238, s:230, e:239}, {id:239, s:239, e:240, r:100, d:1, l:61}, {id:240, s:240, e:241, r:100, d:-1, l:85}, {id:241, s:241, e:242}, {id:242, s:239, e:243}, {id:243, s:243, e:244, r:100, d:-1, l:25}, {id:244, s:244, e:245}, {id:245, s:239, e:246, r:100, d:-1, l:63}, {id:246, s:246, e:247, r:100, d:1, l:39}, {id:247, s:247, e:248}, {id:248, s:231, e:249, r:100, d:1, l:54}, {id:249, s:249, e:250, r:100, d:-1, l:80}, {id:250, s:250, e:251}, {id:251, s:232, e:252, r:100, d:-1, l:22}, {id:252, s:252, e:253}, {id:253, s:231, e:254, r:100, d:-1, l:97}, {id:254, s:254, e:255, r:100, d:1, l:75}, {id:255, s:255, e:256}, {id:256, s:231, e:257}, {id:257, s:257, e:258, r:100, d:-1, l:70}, {id:258, s:258, e:259, r:100, d:1, l:45}, {id:259, s:259, e:260}];
}
}
Symbol 3214 MovieClip [__Packages.rr.conf.level.ConfLevel2] Frame 0
class rr.conf.level.ConfLevel2
{
var missiontargets, map, startcol, startrow, cliprows, nightmap, startcash, levelpoints, train, ea, af, bk, rb;
function ConfLevel2 () {
missiontargets = [{id:1, text:"Destroy all enemies around the canyon", type:"AllGrounds"}, {id:2, text:"Destroy the train before it is out of reach", type:"AllTrains"}, {id:3, text:"Take down the 2 enemy Messerschmidts and the Focke Wolf", type:"AllAirs"}, {id:4, text:"Take over the 2 enemy airfields with propaganda", type:"AllAirfields"}];
map = new rr.conf.map.ConfMap2();
startcol = 1;
startrow = 1;
cliprows = 9;
nightmap = false;
startcash = 17500;
levelpoints = 10500;
train = [{loc:"SaddleTank", speed:1.5}, {wagon:"TankTrailer"}, {wagon:"Wagon3", weapons:["SmallCannon", "MediumCannon"]}, {wagon:"Wagon2", weapons:["SmallCannon", "SmallFastCannon"]}];
ea = [{x:201, y:2294, w:85, h:85, ise:"true", e:["gs"]}, {x:337, y:2412, w:85, h:85, ise:"true", e:["gs"]}, {x:172, y:2669, w:243, h:354, ise:"true", e:["aj", "aj", "oj", "oj", "gt", "gt"]}, {x:833, y:2778, w:24, h:397, ise:"true", e:["gt"]}, {x:827, y:2346, w:336, h:405, ise:"true", e:["aj", "gt", "gt", "aj"]}, {x:926, y:465, w:30, h:1076, ise:"true", e:["gt"]}, {x:22, y:3245, w:1209, h:21, ise:"true", e:["gt"]}, {x:157, y:267, w:31, h:1016, ise:"true", e:["gt"]}, {x:93, y:441, w:23, h:2774, ise:"true", e:["gt"]}, {x:327, y:369, w:31, h:2014, ise:"true", e:["aj"]}, {x:925, y:1575, w:231, h:268, ise:"true", e:["gt", "aj", "gt"]}, {x:1382, y:702, w:302, h:187, e:["oj", "oj"]}, {x:1313, y:399, w:445, h:70, e:["oj", "oj"]}, {x:904, y:2780, w:28, h:392, ise:"true", e:["gt"]}, {x:983, y:2773, w:30, h:403, ise:"true", e:["gt"]}, {x:1070, y:2774, w:25, h:396, ise:"true", e:["pt"]}, {x:148, y:3291, w:1060, h:21, ise:"true", e:["gt"]}, {x:764, y:2294, w:24, h:918, ise:"true", e:["gt"]}, {x:715, y:2238, w:24, h:981, ise:"true", e:["oj"]}, {x:860, y:480, w:26, h:1008, ise:"true", e:["aj"]}];
af = [{x:1535, y:594, r:0, h:0}, {x:223, y:1476, r:90, h:800, e:["fw", "ms", "ms"]}, {x:1083, y:2101, r:-90, h:600, e:[""]}];
bk = [];
rb = [];
}
}
Symbol 3215 MovieClip [__Packages.rr.conf.map.ConfMap2] Frame 0
class rr.conf.map.ConfMap2
{
var mapid, title, rc, rs;
function ConfMap2 () {
mapid = 3;
title = "default";
rc = [{id:1, x:200, y:20, a:270}, {id:2, x:200, y:320, a:270}, {id:9999, x:1452, y:7430, a:90}, {id:10000, x:1452, y:7630, a:90}, {id:3, x:200, y:569, a:270}, {id:4, x:267, y:743, a:-48}, {id:5, x:280, y:864, a:-120}, {id:6, x:306, y:1006, a:-40}, {id:7, x:334, y:1121, a:-113, s:{x:289, y:1113, p:[-1, -1, -1, -1, 7, 8, -1, -1]}}, {id:8, x:350, y:1249, a:-53}, {id:9, x:210, y:1203, a:-180}, {id:10, x:110, y:1203, a:-180}, {id:11, x:10, y:1303, a:-90}, {id:12, x:42, y:1376, a:-43}, {id:13, x:74, y:1449, a:-90}, {id:14, x:74, y:1575, a:-90}, {id:15, x:351, y:1368, a:-126}, {id:16, x:339, y:1517, a:-63}, {id:17, x:345, y:1611, a:-110}, {id:18, x:287, y:1670, a:-159}, {id:19, x:131, y:1665, a:-25}, {id:20, x:211, y:1790, a:-90}, {id:22, x:211, y:2123, a:-90}, {id:23, x:272, y:2263, a:-43}, {id:24, x:290, y:2498, a:-128}, {id:25, x:286, y:2686, a:-54}, {id:26, x:325, y:2902, a:-106}, {id:27, x:372, y:3051, a:-39}, {id:28, x:432, y:3219, a:-102, s:{x:469, y:3224, p:[-1, -1, -1, 28, -1, 29, -1, -1]}}, {id:29, x:885, y:3271, a:-271}, {id:30, x:329, y:3702, a:-102}, {id:31, x:232, y:3838, a:-149}, {id:32, x:176, y:3984, a:-73}, {id:33, x:176, y:4139, a:-107}, {id:34, x:198, y:4301, a:-57}, {id:35, x:222, y:4423, a:-101}, {id:36, x:301, y:4540, a:-11, s:{x:309, y:4501, p:[-1, -1, 38, -1, 36, -1, -1, -1]}}, {id:37, x:393, y:4652, a:-90}, {id:39, x:512, y:4581, a:-11}, {id:40, x:688, y:4794, a:-90}, {id:42, x:688, y:5043, a:-90}, {id:43, x:588, y:5143, a:-180}, {id:44, x:493, y:5143, a:-180}, {id:45, x:393, y:5243, a:-90}, {id:46, x:393, y:5343, a:-90}, {id:47, x:356, y:5448, a:-129}, {id:48, x:293, y:5526, a:-129}, {id:49, x:308, y:5667, a:-39}, {id:50, x:323, y:5808, a:-129, s:{x:277, y:5804, p:[-1, -1, -1, 59, -1, 50, -1, -1]}}, {id:51, x:260, y:5886, a:-129, s:{x:216, y:5882, p:[-1, -1, -1, 56, -1, 51, -1, -1]}}, {id:52, x:197, y:5964, a:-129, s:{x:152, y:5954, p:[-1, -1, -1, 57, -1, 52, -1, -1]}}, {id:53, x:134, y:6042, a:-129, s:{x:87, y:6033, p:[-1, -1, -1, 58, -1, 53, -1, -1]}}, {id:54, x:71, y:6120, a:-129}, {id:55, x:86, y:6261, a:-39}, {id:56, x:394, y:6510, a:-39}, {id:57, x:275, y:6027, a:-39}, {id:58, x:212, y:6105, a:-39}, {id:59, x:149, y:6183, a:-39}, {id:60, x:338, y:5949, a:-39}, {id:61, x:444, y:6422, a:-39}, {id:62, x:519, y:6354, a:-39}, {id:63, x:584, y:6277, a:-39}, {id:64, x:416, y:6012, a:-39, s:{x:448, y:5985, p:[-1, -1, 64, 67, 68, -1, -1, -1]}}, {id:65, x:476, y:6034, a:-2}, {id:66, x:536, y:6056, a:-39}, {id:67, x:680, y:6172, a:-39}, {id:68, x:507, y:6086, a:-39}, {id:69, x:450, y:6066, a:-76}, {id:70, x:484, y:6120, a:-39}, {id:71, x:628, y:6236, a:-39}, {id:72, x:651, y:6202, a:-39}, {id:74, x:534, y:6496, a:-310}, {id:76, x:807, y:6171, a:-310}, {id:77, x:1080, y:5845, a:-310}, {id:78, x:1132, y:5700, a:-270}, {id:79, x:1132, y:5331, a:-270}, {id:80, x:1132, y:4911, a:-270}, {id:81, x:1132, y:4624, a:-270}, {id:82, x:1182, y:4469, a:-306}, {id:83, x:1185, y:4168, a:-235}, {id:85, x:1116, y:4070, a:-235}, {id:86, x:979, y:3981, a:-191}, {id:87, x:885, y:3868, a:-270}, {id:88, x:885, y:3425, a:-270}, {id:90, x:930, y:3123, a:-303}, {id:91, x:974, y:2974, a:-270}, {id:92, x:974, y:2680, a:-270}, {id:93, x:974, y:2418, a:-270}, {id:98, x:974, y:2055, a:-270}, {id:99, x:974, y:1649, a:-270, s:{x:942, y:1657, p:[99, -1, 101, -1, -1, -1, -1, -1]}}, {id:100, x:974, y:1349, a:-270}, {id:102, x:1074, y:1549, a:-360}, {id:103, x:1390, y:1549, a:-360}, {id:104, x:974, y:964, a:-270}, {id:105, x:974, y:581, a:-270}, {id:106, x:1074, y:481, a:-360}, {id:107, x:1344, y:481, a:-360}, {id:108, x:1778, y:481, a:-360}, {id:109, x:1878, y:581, a:-90}, {id:110, x:1878, y:949, a:-90}, {id:111, x:1878, y:1334, a:-90}, {id:112, x:1701, y:1549, a:-360}, {id:113, x:1878, y:1568, a:-90}, {id:115, x:1779, y:1549, a:-360}, {id:116, x:1879, y:1649, a:-90}, {id:117, x:1879, y:2041, a:-90}, {id:118, x:1832, y:2188, a:-125}, {id:119, x:1786, y:2336, a:-90}, {id:120, x:1786, y:2773, a:-90}, {id:121, x:1766, y:2842, a:-122}, {id:122, x:1763, y:3059, a:-59}, {id:123, x:1780, y:3229, a:-110}, {id:124, x:1809, y:3370, a:-47}, {id:125, x:1804, y:3511, a:-137}, {id:126, x:1796, y:3661, a:-49}, {id:127, x:1823, y:3827, a:-113}, {id:128, x:1820, y:3980, a:-69}, {id:130, x:1844, y:4107, a:-90}, {id:131, x:1844, y:4390, a:-90}, {id:132, x:1844, y:4647, a:-90}, {id:133, x:1782, y:4799, a:-134}, {id:134, x:1434, y:5159, a:-134}, {id:135, x:1436, y:5300, a:-44}, {id:136, x:1704, y:5559, a:-44}, {id:137, x:1764, y:5700, a:-90}, {id:138, x:1764, y:6017, a:-90}, {id:139, x:1661, y:6160, a:-162, s:{x:1673, y:6198, p:[-1, -1, -1, -1, 139, -1, 140, -1]}}, {id:140, x:1551, y:6311, a:-90}, {id:141, x:1297, y:6278, a:-162}, {id:142, x:1179, y:6396, a:-108}, {id:143, x:1054, y:6780, a:-108}, {id:144, x:957, y:6899, a:-150}, {id:145, x:833, y:6971, a:-150}, {id:146, x:764, y:7090, a:-90}, {id:147, x:764, y:7416, a:-90}, {id:149, x:864, y:7516, a:0}, {id:150, x:964, y:7516, a:0}, {id:151, x:1064, y:7416, a:-270}, {id:152, x:1064, y:7052, a:-270}, {id:153, x:1124, y:6911, a:-316}, {id:155, x:1204, y:6778, a:-286}, {id:156, x:1551, y:6627, a:-90}, {id:157, x:1521, y:6728, a:-123}, {id:158, x:1536, y:6895, a:-47}, {id:159, x:1520, y:7183, a:-139}, {id:160, x:1280, y:6512, a:-286}, {id:161, x:1417, y:6435, a:-15}, {id:163, x:1452, y:7331, a:-90}];
rs = [{id:1, s:1, e:2}, {id:10000, s:10000, e:9999}, {id:2, s:2, e:3}, {id:3, s:3, e:4, r:259, d:1, l:191}, {id:4, s:4, e:5, r:104, d:-1, l:130}, {id:5, s:5, e:6, r:112, d:1, l:157}, {id:6, s:6, e:7, r:100, d:-1, l:127}, {id:7, s:7, e:8, r:128, d:1, l:135}, {id:8, s:7, e:9, r:134, d:-1, l:157}, {id:9, s:9, e:10}, {id:10, s:10, e:11, r:100, d:1, l:157}, {id:11, s:11, e:12, r:100, d:1, l:82}, {id:12, s:12, e:13, r:100, d:-1, l:82}, {id:13, s:13, e:14}, {id:14, s:8, e:15, r:100, d:-1, l:127}, {id:15, s:15, e:16, r:144, d:1, l:157}, {id:16, s:16, e:17, r:119, d:-1, l:97}, {id:17, s:17, e:18, r:100, d:-1, l:85}, {id:18, s:14, e:19, r:100, d:1, l:113}, {id:19, s:19, e:20, r:139, d:-1, l:157}, {id:20, s:18, e:20, r:117, d:1, l:150}, {id:21, s:20, e:22}, {id:22, s:22, e:23, r:192, d:1, l:157}, {id:23, s:23, e:24, r:174, d:-1, l:259}, {id:24, s:24, e:25, r:157, d:1, l:202}, {id:25, s:25, e:26, r:252, d:-1, l:227}, {id:26, s:26, e:27, r:142, d:1, l:166}, {id:27, s:27, e:28, r:172, d:-1, l:188}, {id:28, s:28, e:29, r:229, d:1, l:763}, {id:29, s:28, e:30}, {id:30, s:30, e:31, r:210, d:-1, l:172}, {id:31, s:31, e:32, r:127, d:1, l:168}, {id:32, s:32, e:33, r:264, d:-1, l:157}, {id:33, s:33, e:34, r:195, d:1, l:169}, {id:34, s:34, e:35, r:165, d:-1, l:127}, {id:35, s:35, e:36, r:100, d:1, l:157}, {id:36, s:36, e:37, r:114, d:-1, l:157}, {id:37, s:37, e:45}, {id:38, s:36, e:39}, {id:39, s:39, e:40, r:218, d:-1, l:300}, {id:41, s:40, e:42}, {id:42, s:42, e:43, r:100, d:-1, l:157}, {id:43, s:43, e:44}, {id:44, s:44, e:45, r:100, d:1, l:157}, {id:45, s:45, e:46}, {id:46, s:46, e:47, r:167, d:-1, l:114}, {id:47, s:47, e:48}, {id:48, s:48, e:49, r:100, d:1, l:157}, {id:49, s:49, e:50, r:100, d:-1, l:157}, {id:50, s:50, e:51}, {id:51, s:51, e:52}, {id:52, s:52, e:53}, {id:53, s:53, e:54}, {id:54, s:54, e:55, r:100, d:1, l:157}, {id:55, s:55, e:56}, {id:56, s:51, e:57, r:100, d:1, l:157}, {id:57, s:52, e:58, r:100, d:1, l:157}, {id:58, s:53, e:59, r:100, d:1, l:157}, {id:59, s:50, e:60, r:100, d:1, l:157}, {id:60, s:59, e:61}, {id:61, s:58, e:62}, {id:62, s:57, e:63}, {id:63, s:60, e:64}, {id:64, s:64, e:65, r:100, d:1, l:65}, {id:65, s:65, e:66, r:100, d:-1, l:65}, {id:66, s:66, e:67}, {id:67, s:64, e:68}, {id:68, s:64, e:69, r:100, d:-1, l:65}, {id:69, s:69, e:70, r:100, d:1, l:65}, {id:70, s:70, e:71}, {id:71, s:68, e:72}, {id:73, s:56, e:74, r:100, d:1, l:156}, {id:75, s:74, e:76}, {id:76, s:76, e:77}, {id:77, s:77, e:78, r:224, d:1, l:157}, {id:78, s:78, e:79}, {id:79, s:79, e:80}, {id:80, s:80, e:81}, {id:81, s:81, e:82, r:266, d:-1, l:165}, {id:82, s:82, e:83, r:260, d:1, l:321}, {id:84, s:83, e:85}, {id:85, s:85, e:86, r:218, d:1, l:167}, {id:86, s:86, e:87, r:116, d:-1, l:159}, {id:87, s:87, e:88}, {id:88, s:88, e:29}, {id:89, s:29, e:90, r:284, d:-1, l:157}, {id:90, s:90, e:91, r:270, d:1, l:157}, {id:91, s:91, e:92}, {id:92, s:92, e:93}, {id:97, s:93, e:98}, {id:98, s:98, e:99}, {id:99, s:99, e:100}, {id:101, s:99, e:102, r:100, d:-1, l:157}, {id:102, s:102, e:103}, {id:103, s:100, e:104}, {id:104, s:104, e:105}, {id:105, s:105, e:106, r:100, d:-1, l:157}, {id:106, s:106, e:107}, {id:107, s:107, e:108}, {id:108, s:108, e:109, r:100, d:-1, l:157}, {id:109, s:109, e:110}, {id:110, s:110, e:111}, {id:111, s:103, e:112}, {id:112, s:111, e:113}, {id:113, s:113, e:116}, {id:114, s:112, e:115}, {id:115, s:115, e:116, r:100, d:-1, l:157}, {id:116, s:116, e:117}, {id:117, s:117, e:118, r:257, d:-1, l:157}, {id:118, s:118, e:119, r:255, d:1, l:157}, {id:119, s:119, e:120}, {id:120, s:120, e:121, r:130, d:-1, l:73}, {id:121, s:121, e:122, r:209, d:1, l:228}, {id:122, s:122, e:123, r:200, d:-1, l:177}, {id:123, s:123, e:124, r:137, d:1, l:151}, {id:124, s:124, e:125, r:100, d:-1, l:157}, {id:125, s:125, e:126, r:108, d:1, l:166}, {id:126, s:126, e:127, r:159, d:-1, l:177}, {id:127, s:127, e:128, r:206, d:1, l:157}, {id:129, s:128, e:130, r:362, d:-1, l:130}, {id:130, s:130, e:131}, {id:131, s:131, e:132}, {id:132, s:132, e:133, r:217, d:-1, l:168}, {id:133, s:133, e:134}, {id:134, s:134, e:135, r:100, d:1, l:157}, {id:135, s:135, e:136}, {id:136, s:136, e:137, r:195, d:-1, l:157}, {id:137, s:137, e:138}, {id:138, s:138, e:139, r:150, d:-1, l:188}, {id:139, s:139, e:140, r:159, d:1, l:200}, {id:140, s:139, e:141}, {id:141, s:141, e:142, r:184, d:1, l:173}, {id:142, s:142, e:143}, {id:143, s:143, e:144, r:214, d:-1, l:157}, {id:144, s:144, e:145}, {id:145, s:145, e:146, r:138, d:1, l:144}, {id:146, s:146, e:147}, {id:148, s:147, e:149, r:100, d:1, l:157}, {id:149, s:149, e:150}, {id:150, s:150, e:151, r:100, d:1, l:157}, {id:151, s:151, e:152}, {id:152, s:152, e:153, r:196, d:-1, l:157}, {id:154, s:153, e:155, r:301, d:1, l:157}, {id:155, s:140, e:156}, {id:156, s:156, e:157, r:186, d:-1, l:107}, {id:157, s:157, e:158, r:136, d:1, l:181}, {id:158, s:158, e:159, r:200, d:-1, l:322}, {id:159, s:155, e:160}, {id:160, s:160, e:161, r:112, d:-1, l:174}, {id:161, s:161, e:156, r:184, d:-1, l:254}, {id:162, s:159, e:163, r:198, d:1, l:168}, {id:164, s:163, e:9999, eo:1}];
}
}
Symbol 3216 MovieClip [__Packages.rr.conf.level.ConfLevel3] Frame 0
class rr.conf.level.ConfLevel3
{
var missiontargets, map, startcol, startrow, clipcols, nightmap, startcash, levelpoints, train, ea, af, bk, rb;
function ConfLevel3 () {
missiontargets = [{id:1, text:"Destroy the enemy army", type:"AllGrounds"}, {id:2, text:"Destroy the wartrain before it reaches the end", type:"AllTrains"}, {id:3, text:"Take down the 7 enemy air units", type:"AllAirs"}, {id:4, text:"Take over the 2 enemy airfields with propaganda", type:"AllAirfields"}];
map = new rr.conf.map.ConfMap3();
startcol = 1;
startrow = 1;
clipcols = 6;
nightmap = true;
startcash = 19500;
levelpoints = 12500;
train = [{loc:"Rhino", speed:3}, {wagon:"TankTrailer"}, {wagon:"Wagon3", weapons:["SmallCannon", "MediumCannon"]}, {wagon:"Wagon2", weapons:["SmallCannon", "SmallFastCannon"]}];
ea = [{x:3004, y:605, w:144, h:139, ise:"true", e:["aj", "aj"]}, {x:3017, y:766, w:452, h:20, ise:"true", e:["aj"]}, {x:3021, y:808, w:575, h:20, ise:"true", e:["gt"]}, {x:3012, y:850, w:126, h:116, ise:"true", e:["gt", "pt"]}, {x:2824, y:632, w:168, h:140, e:["aj", "gt"]}, {x:2697, y:781, w:300, h:28, e:["el"]}, {x:2674, y:819, w:327, h:38, e:["gt"]}, {x:2848, y:869, w:154, h:147, e:["gt", "aj"]}, {x:3018, y:975, w:171, h:119, ise:"true", e:["gt", "gt"]}, {x:2862, y:1026, w:144, h:178, e:["aj", "gt"]}, {x:3032, y:1113, w:185, h:151, ise:"true", e:["gt", "aj", "oj"]}, {x:2712, y:1223, w:266, h:26, e:["aj"]}, {x:3543, y:1603, w:241, h:93, ise:"true", e:["gt", "aj", "pt"]}, {x:3626, y:1871, w:101, h:92, ise:"true", e:["gs"]}, {x:3376, y:1847, w:79, h:200, ise:"true", e:["aj", "gt"]}, {x:3519, y:1835, w:46, h:86, ise:"true", e:["gt"]}, {x:3632, y:1348, w:135, h:121, ise:"true", e:["aj", "aj"]}, {x:3462, y:1963, w:126, h:230, ise:"true", e:["aj", "aj", "oj", "gt"]}, {x:2976, y:346, w:144, h:118, ise:"true", e:["gt", "pt"]}, {x:2795, y:351, w:166, h:144, e:["gt", "el", "el"]}, {x:2976, y:157, w:116, h:169, ise:"true", e:["gt", "aj"]}, {x:2976, y:57, w:181, h:92, ise:"true", e:["aj", "aj"]}, {x:2723, y:178, w:240, h:163, e:["gt", "aj", "el", "oj", "oj"]}, {x:2683, y:114, w:287, h:45, e:["gt"]}, {x:3241, y:974, w:505, h:45, ise:"true", e:["gt"]}, {x:3228, y:1276, w:538, h:27, ise:"true", e:["aj"]}, {x:3400, y:218, w:451, h:20, ise:"true", e:["gt"]}, {x:3443, y:299, w:312, h:20, ise:"true", e:["oj"]}, {x:3430, y:358, w:20, h:390, ise:"true", e:["aj"]}, {x:3505, y:558, w:243, h:33, ise:"true", e:["gt"]}, {x:1826, y:2220, w:107, h:104, e:["aj"]}, {x:1601, y:1852, w:134, h:120, e:["gt"]}, {x:1858, y:1718, w:140, h:130, e:["gt"]}, {x:2122, y:1914, w:101, h:93, e:["gt"]}];
af = [{x:1854, y:2050, r:-37, h:0}, {x:3692, y:432, r:0, h:800, e:["ms", "bh", "bh", "ms"]}, {x:3446, y:1149, r:0, h:800, e:["fw", "fw"]}];
bk = [{x:3249, y:165, r:27, s:92}, {x:3181, y:341, r:15, s:95}, {x:3108, y:513, r:79, s:83}];
rb = [];
}
}
Symbol 3217 MovieClip [__Packages.rr.conf.map.ConfMap3] Frame 0
class rr.conf.map.ConfMap3
{
var mapid, title, rc, rs;
function ConfMap3 () {
mapid = 4;
title = "default";
rc = [{id:1, x:20, y:1111, a:0}, {id:2, x:320, y:1111, a:0}, {id:9999, x:4983, y:233, a:270}, {id:10000, x:4983, y:33, a:270}, {id:5, x:554, y:1045, a:-328}, {id:6, x:706, y:1001, a:-360}, {id:7, x:1161, y:1001, a:-360}, {id:8, x:1533, y:1001, a:-360, s:{x:1533, y:960, p:[63, -1, 8, -1, -1, -1, -1, -1]}}, {id:9, x:1737, y:798, a:-270}, {id:10, x:1737, y:303, a:-270}, {id:12, x:1837, y:203, a:-360}, {id:13, x:2005, y:203, a:-360}, {id:14, x:2189, y:107, a:-305}, {id:15, x:2323, y:37, a:-360}, {id:17, x:2615, y:37, a:-360, s:{x:2613, y:70, p:[-1, -1, 23, -1, 37, -1, -1, -1]}}, {id:24, x:2715, y:37, a:-360, s:{x:2729, y:69, p:[-1, -1, 24, -1, 34, -1, -1, -1]}}, {id:25, x:2815, y:37, a:-360, s:{x:2831, y:69, p:[-1, -1, 25, -1, 35, -1, -1, -1]}}, {id:26, x:2915, y:37, a:-360, s:{x:2932, y:69, p:[-1, -1, 26, -1, 36, -1, -1, -1]}}, {id:27, x:3015, y:37, a:-360}, {id:29, x:3138, y:251, a:-120}, {id:30, x:3088, y:338, a:-120}, {id:31, x:2789, y:447, a:-200}, {id:34, x:2716, y:728, a:-9}, {id:35, x:2815, y:137, a:-90, s:{x:2779, y:144, p:[-1, -1, -1, 43, -1, 54, -1, -1]}}, {id:36, x:2915, y:137, a:-90, s:{x:2880, y:143, p:[-1, -1, -1, 44, -1, 40, -1, -1]}}, {id:37, x:3015, y:137, a:-90, s:{x:2984, y:141, p:[-1, -1, -1, 45, -1, 41, -1, -1]}}, {id:38, x:2715, y:137, a:-90, s:{x:2679, y:142, p:[-1, -1, -1, 42, -1, 38, -1, -1]}}, {id:39, x:2700, y:189, a:-122}, {id:41, x:2900, y:189, a:-122}, {id:42, x:3000, y:189, a:-122}, {id:43, x:2730, y:189, a:-58}, {id:44, x:2830, y:189, a:-58}, {id:45, x:2930, y:189, a:-58}, {id:46, x:3030, y:189, a:-58}, {id:47, x:2685, y:241, a:-90}, {id:48, x:2685, y:398, a:-90}, {id:49, x:2745, y:241, a:-90}, {id:50, x:2745, y:398, a:-90}, {id:51, x:3045, y:241, a:-90}, {id:52, x:3045, y:341, a:-90}, {id:53, x:2985, y:241, a:-90}, {id:54, x:2885, y:241, a:-90}, {id:55, x:2800, y:189, a:-122}, {id:56, x:2785, y:241, a:-90}, {id:57, x:2785, y:398, a:-90}, {id:58, x:2845, y:241, a:-90}, {id:59, x:2845, y:398, a:-90}, {id:60, x:2885, y:398, a:-90}, {id:61, x:2945, y:241, a:-90}, {id:62, x:2945, y:398, a:-90}, {id:63, x:2985, y:341, a:-90}, {id:64, x:1633, y:901, a:-270}, {id:65, x:1633, y:801, a:-270}, {id:66, x:1533, y:701, a:-180}, {id:67, x:1433, y:701, a:-180}, {id:68, x:1333, y:701, a:-180}, {id:69, x:1233, y:601, a:-270}, {id:70, x:1233, y:450, a:-270}, {id:71, x:1148, y:303, a:-210}, {id:72, x:1086, y:267, a:-210}, {id:73, x:883, y:253, a:-158}, {id:76, x:815, y:256, a:-198}, {id:77, x:710, y:251, a:-168}, {id:78, x:591, y:174, a:-258}, {id:79, x:470, y:77, a:-180}, {id:80, x:293, y:77, a:-180}, {id:81, x:193, y:177, a:-90}, {id:82, x:193, y:492, a:-90}, {id:84, x:293, y:592, a:0}, {id:85, x:665, y:592, a:0}, {id:87, x:806, y:785, a:-108}, {id:88, x:952, y:994, a:-2}, {id:90, x:2810, y:838, a:-90, s:{x:2851, y:839, p:[-1, -1, 161, -1, 90, -1, -1, -1]}}, {id:91, x:2810, y:1046, a:-90}, {id:92, x:2558, y:1338, a:-172}, {id:93, x:2063, y:1408, a:-172}, {id:94, x:1525, y:1484, a:-172}, {id:95, x:1103, y:1543, a:-172, s:{x:1109, y:1583, p:[-1, -1, -1, -1, -1, 99, -1, 96]}}, {id:97, x:935, y:1506, a:-213}, {id:98, x:640, y:1563, a:-125}, {id:99, x:535, y:1713, a:-125}, {id:100, x:946, y:1565, a:-172}, {id:101, x:855, y:1675, a:-87}, {id:102, x:862, y:1816, a:-87}, {id:103, x:754, y:1948, a:-171}, {id:104, x:545, y:1858, a:-47}, {id:106, x:636, y:2092, a:-90}, {id:107, x:636, y:2192, a:-90}, {id:109, x:791, y:2346, a:-360}, {id:110, x:1185, y:2346, a:-360}, {id:111, x:1296, y:2312, a:-326}, {id:112, x:1435, y:2339, a:-56}, {id:113, x:1574, y:2366, a:-326}, {id:114, x:1657, y:2310, a:-326, s:{x:1635, y:2278, p:[114, -1, 115, -1, -1, -1, -1, -1]}}, {id:115, x:1684, y:2171, a:-236}, {id:116, x:1796, y:2337, a:-56}, {id:117, x:1935, y:2364, a:-326}, {id:118, x:1711, y:2032, a:-326}, {id:119, x:1898, y:1906, a:-326}, {id:120, x:2122, y:2238, a:-326}, {id:121, x:2149, y:2099, a:-236}, {id:122, x:2037, y:1933, a:-56}, {id:123, x:2176, y:1960, a:-326, s:{x:2155, y:1928, p:[-1, -1, -1, -1, 123, -1, 122, -1]}}, {id:125, x:2311, y:1869, a:-326}, {id:126, x:2453, y:1804, a:-345}, {id:127, x:2809, y:1708, a:-345}, {id:129, x:2909, y:1709, a:-16}, {id:130, x:3062, y:1697, a:-335}, {id:131, x:3215, y:1694, a:-23, s:{x:3230, y:1656, p:[-1, 158, -1, 131, -1, -1, -1, -1]}}, {id:132, x:3448, y:1793, a:-23}, {id:133, x:3521, y:1981, a:-114}, {id:134, x:3583, y:2121, a:-18}, {id:136, x:3906, y:2226, a:-18}, {id:140, x:4271, y:2345, a:-18}, {id:142, x:4423, y:2331, a:-331}, {id:143, x:4539, y:2301, a:-360}, {id:144, x:4639, y:2301, a:-360}, {id:145, x:4726, y:2337, a:-45}, {id:146, x:4967, y:2237, a:-270}, {id:147, x:4967, y:1670, a:-270}, {id:148, x:4967, y:1296, a:-270}, {id:159, x:3408, y:1607, a:-288}, {id:160, x:3656, y:1528, a:-37}, {id:161, x:3994, y:1783, a:-37}, {id:162, x:2910, y:938, a:0}, {id:163, x:3077, y:938, a:0}, {id:165, x:3315, y:702, a:-270}, {id:166, x:3315, y:426, a:-270}, {id:167, x:3553, y:188, a:0}, {id:168, x:3961, y:188, a:0}, {id:169, x:4365, y:188, a:0}, {id:170, x:4503, y:326, a:-90}, {id:171, x:4503, y:482, a:-90}, {id:172, x:4365, y:620, a:-180}, {id:173, x:3983, y:620, a:-180}, {id:174, x:3879, y:653, a:-145}, {id:175, x:3814, y:683, a:-166}, {id:176, x:3748, y:823, a:-65}, {id:177, x:3607, y:1046, a:-180}, {id:178, x:3214, y:1046, a:-180}, {id:179, x:2981, y:1046, a:-180}, {id:180, x:2891, y:1102, a:-116}, {id:182, x:4967, y:1133, a:-270}, {id:183, x:4867, y:1033, a:-180}, {id:184, x:4529, y:1033, a:-180}, {id:185, x:4429, y:1133, a:-90}, {id:186, x:4429, y:1539, a:-90}, {id:187, x:4329, y:1639, a:-180}, {id:191, x:4233, y:1566, a:-254}, {id:192, x:4113, y:1486, a:-174}, {id:193, x:4003, y:1387, a:-270}, {id:194, x:4003, y:1137, a:-270}, {id:195, x:4103, y:1037, a:-360}, {id:196, x:4318, y:1037, a:-360}, {id:197, x:4418, y:937, a:-270}, {id:198, x:4600, y:754, a:-360}, {id:200, x:4878, y:754, a:-360}, {id:201, x:4983, y:649, a:-270}];
rs = [{id:1, s:1, e:2}, {id:10000, s:10000, e:9999}, {id:4, s:2, e:5, r:445, d:1, l:246}, {id:5, s:5, e:6, r:287, d:-1, l:160}, {id:6, s:6, e:7}, {id:7, s:7, e:8}, {id:8, s:8, e:9, r:204, d:1, l:319}, {id:9, s:9, e:10}, {id:11, s:10, e:12, r:100, d:-1, l:157}, {id:12, s:12, e:13}, {id:13, s:13, e:14, r:225, d:1, l:216}, {id:14, s:14, e:15, r:164, d:-1, l:157}, {id:16, s:15, e:17}, {id:23, s:17, e:24}, {id:24, s:24, e:25}, {id:25, s:25, e:26}, {id:26, s:26, e:27}, {id:28, s:27, e:29, r:142, d:-1, l:298}, {id:29, s:29, e:30}, {id:30, s:30, e:31, r:247, d:-1, l:345}, {id:33, s:31, e:34, r:146, d:1, l:486}, {id:34, s:24, e:35, r:100, d:-1, l:157}, {id:35, s:25, e:36, r:100, d:-1, l:157}, {id:36, s:26, e:37, r:100, d:-1, l:157}, {id:37, s:17, e:38, r:100, d:-1, l:157}, {id:38, s:38, e:39, r:100, d:-1, l:55}, {id:40, s:36, e:41, r:100, d:-1, l:55}, {id:41, s:37, e:42, r:100, d:-1, l:55}, {id:42, s:38, e:43, r:100, d:1, l:55}, {id:43, s:35, e:44, r:100, d:1, l:55}, {id:44, s:36, e:45, r:100, d:1, l:55}, {id:45, s:37, e:46, r:100, d:1, l:55}, {id:46, s:39, e:47, r:100, d:1, l:55}, {id:47, s:47, e:48}, {id:48, s:43, e:49, r:100, d:-1, l:55}, {id:49, s:49, e:50}, {id:50, s:46, e:51, r:100, d:-1, l:55}, {id:51, s:51, e:52}, {id:52, s:42, e:53, r:100, d:1, l:55}, {id:53, s:41, e:54, r:100, d:1, l:55}, {id:54, s:35, e:55, r:100, d:-1, l:55}, {id:55, s:55, e:56, r:100, d:1, l:55}, {id:56, s:56, e:57}, {id:57, s:44, e:58, r:100, d:-1, l:55}, {id:58, s:58, e:59}, {id:59, s:54, e:60}, {id:60, s:45, e:61, r:100, d:-1, l:55}, {id:61, s:61, e:62}, {id:62, s:53, e:63}, {id:63, s:8, e:64, r:100, d:1, l:157}, {id:64, s:64, e:65}, {id:65, s:65, e:66, r:100, d:1, l:157}, {id:66, s:66, e:67}, {id:67, s:67, e:68}, {id:68, s:68, e:69, r:100, d:-1, l:157}, {id:69, s:69, e:70}, {id:70, s:70, e:71, r:170, d:1, l:178}, {id:71, s:71, e:72}, {id:72, s:72, e:73, r:231, d:1, l:211}, {id:75, s:73, e:76, r:100, d:-1, l:69}, {id:76, s:76, e:77, r:200, d:1, l:106}, {id:77, s:77, e:78, r:100, d:-1, l:157}, {id:78, s:78, e:79, r:123, d:1, l:168}, {id:79, s:79, e:80}, {id:80, s:80, e:81, r:100, d:1, l:157}, {id:81, s:81, e:82}, {id:83, s:82, e:84, r:100, d:1, l:157}, {id:84, s:84, e:85}, {id:86, s:85, e:87, r:148, d:-1, l:278}, {id:87, s:87, e:88, r:160, d:1, l:295}, {id:88, s:88, e:7}, {id:89, s:34, e:90, r:112, d:-1, l:158}, {id:90, s:90, e:91}, {id:91, s:91, e:92, r:295, d:-1, l:420}, {id:92, s:92, e:93}, {id:93, s:93, e:94}, {id:94, s:94, e:95}, {id:96, s:95, e:97, r:248, d:-1, l:176}, {id:97, s:97, e:98, r:216, d:1, l:332}, {id:98, s:98, e:99}, {id:99, s:95, e:100}, {id:100, s:100, e:101, r:106, d:1, l:157}, {id:101, s:101, e:102}, {id:102, s:102, e:103, r:127, d:-1, l:187}, {id:103, s:99, e:104, r:115, d:1, l:157}, {id:105, s:104, e:106, r:340, d:-1, l:257}, {id:106, s:106, e:107}, {id:107, s:103, e:106, r:138, d:1, l:203}, {id:108, s:107, e:109, r:154, d:1, l:243}, {id:109, s:109, e:110}, {id:110, s:110, e:111, r:198, d:1, l:118}, {id:111, s:111, e:112, r:100, d:-1, l:157}, {id:112, s:112, e:113, r:100, d:1, l:157}, {id:113, s:113, e:114}, {id:114, s:114, e:115, r:100, d:1, l:157}, {id:115, s:114, e:116, r:100, d:-1, l:157}, {id:116, s:116, e:117, r:100, d:1, l:157}, {id:117, s:115, e:118, r:100, d:-1, l:157}, {id:118, s:118, e:119}, {id:119, s:117, e:120}, {id:120, s:120, e:121, r:100, d:1, l:157}, {id:121, s:119, e:122, r:100, d:-1, l:157}, {id:122, s:122, e:123, r:100, d:1, l:157}, {id:123, s:121, e:123, r:100, d:-1, l:157}, {id:124, s:123, e:125}, {id:125, s:125, e:126, r:471, d:-1, l:157}, {id:126, s:126, e:127}, {id:128, s:127, e:129, r:186, d:-1, l:101}, {id:129, s:129, e:130, r:220, d:1, l:157}, {id:130, s:130, e:131, r:188, d:-1, l:157}, {id:131, s:131, e:132}, {id:132, s:132, e:133, r:141, d:-1, l:225}, {id:133, s:133, e:134, r:103, d:1, l:172}, {id:135, s:134, e:136}, {id:139, s:136, e:140}, {id:141, s:140, e:142, r:192, d:1, l:157}, {id:142, s:142, e:143, r:243, d:-1, l:121}, {id:143, s:143, e:144}, {id:144, s:144, e:145, r:123, d:-1, l:96}, {id:145, s:145, e:146, r:141, d:1, l:333}, {id:146, s:146, e:147}, {id:147, s:147, e:148}, {id:158, s:131, e:159, r:144, d:1, l:238}, {id:159, s:159, e:160, r:160, d:-1, l:304}, {id:160, s:160, e:161}, {id:161, s:90, e:162, r:100, d:1, l:157}, {id:162, s:162, e:163}, {id:164, s:163, e:165, r:238, d:1, l:372}, {id:165, s:165, e:166}, {id:166, s:166, e:167, r:238, d:-1, l:374}, {id:167, s:167, e:168}, {id:168, s:168, e:169}, {id:169, s:169, e:170, r:138, d:-1, l:217}, {id:170, s:170, e:171}, {id:171, s:171, e:172, r:138, d:-1, l:217}, {id:172, s:172, e:173}, {id:173, s:173, e:174, r:182, d:1, l:111}, {id:174, s:174, e:175, r:196, d:-1, l:72}, {id:175, s:175, e:176, r:100, d:1, l:177}, {id:176, s:176, e:177, r:157, d:-1, l:314}, {id:177, s:177, e:178}, {id:178, s:178, e:179}, {id:179, s:179, e:180, r:100, d:1, l:111}, {id:180, s:180, e:92, r:426, d:-1, l:425}, {id:181, s:148, e:182}, {id:182, s:182, e:183, r:100, d:1, l:157}, {id:183, s:183, e:184}, {id:184, s:184, e:185, r:100, d:1, l:157}, {id:185, s:185, e:186}, {id:186, s:186, e:187, r:100, d:-1, l:157}, {id:190, s:187, e:191, r:100, d:-1, l:130}, {id:191, s:191, e:192, r:112, d:1, l:157}, {id:192, s:192, e:193, r:100, d:-1, l:167}, {id:193, s:193, e:194}, {id:194, s:194, e:195, r:100, d:-1, l:157}, {id:195, s:195, e:196}, {id:196, s:196, e:197, r:100, d:1, l:157}, {id:197, s:197, e:198, r:183, d:-1, l:286}, {id:199, s:198, e:200}, {id:200, s:200, e:201, r:105, d:1, l:165}, {id:201, s:201, e:9999, eo:1}];
}
}
Symbol 3218 MovieClip [__Packages.rr.conf.level.ConfLevel4] Frame 0
class rr.conf.level.ConfLevel4
{
var title, missiontargets, map, startcol, startrow, clipcols, nightmap, startcash, levelpoints, train, ea, af, bk, rb, bd;
function ConfLevel4 () {
title = "Jungle River";
missiontargets = [{id:1, text:"Destroy all enemies hidden in the jungle", type:"AllGrounds"}, {id:2, text:"Destroy the wartrain before it is out of reach", type:"AllTrains"}, {id:3, text:"Take down the 12 enemy air units", type:"AllAirs"}, {id:4, text:"Take over the 3 enemy airfields with propaganda", type:"AllAirfields"}];
map = new rr.conf.map.ConfMap4();
startcol = 1;
startrow = 1;
clipcols = 6;
nightmap = false;
startcash = 22000;
levelpoints = 16500;
train = [{loc:"Rhino", speed:2}, {wagon:"TankTrailer"}, {wagon:"Wagon3", weapons:["SmallCannon", "MediumCannon"]}, {wagon:"Wagon2", weapons:["SmallCannon", "SmallFastCannon"]}];
ea = [{x:1661, y:888, w:113, h:112, ise:"true", e:["bl"]}, {x:1629, y:1023, w:365, h:68, ise:"true", e:["pt", "pt"]}, {x:2417, y:529, w:121, h:288, ise:"true", e:["gt", "gt", "el", "el"]}, {x:191, y:343, w:907, h:26, ise:"true", e:["gt"]}, {x:193, y:392, w:1653, h:26, ise:"true", e:["el"]}, {x:181, y:443, w:1570, h:24, ise:"true", e:["el"]}, {x:196, y:499, w:1423, h:25, ise:"true", e:["el"]}, {x:3793, y:185, w:28, h:544, ise:"true", e:["el"]}, {x:2737, y:1928, w:160, h:184, ise:"true", e:["oj", "el", "gt"]}, {x:436, y:2059, w:84, h:85, e:["pt"]}, {x:358, y:1955, w:88, h:83, e:["pt"]}, {x:355, y:2163, w:87, h:94, e:["pt"]}, {x:274, y:2286, w:91, h:95, e:["pt"]}, {x:251, y:1842, w:96, h:98, e:["pt"]}, {x:199, y:1575, w:83, h:244, e:["pt", "pt"]}, {x:11, y:1491, w:206, h:78, e:["pt", "pt"]}, {x:69, y:1346, w:195, h:72, ise:"true", e:["el", "pt"]}, {x:307, y:1418, w:100, h:84, ise:"true", e:["pt"]}, {x:362, y:1535, w:92, h:235, ise:"true", e:["pt", "pt", "el"]}, {x:482, y:1798, w:86, h:85, ise:"true", e:["pt"]}, {x:556, y:1940, w:86, h:91, ise:"true", e:["pt"]}, {x:585, y:2045, w:90, h:157, ise:"true", e:["pt", "pt"]}, {x:500, y:2291, w:89, h:101, ise:"true", e:["pt"]}, {x:1835, y:841, w:538, h:27, ise:"true", e:["pt"]}, {x:1708, y:576, w:597, h:25, ise:"true", e:["pt"]}, {x:1518, y:1420, w:1361, h:21, ise:"true", e:["pt"]}, {x:1793, y:1308, w:521, h:22, ise:"true", e:["el"]}, {x:1967, y:380, w:161, h:147, ise:"true", e:["el", "gt", "el"]}, {x:2227, y:403, w:137, h:143, ise:"true", e:["el", "gt"]}, {x:1921, y:319, w:602, h:20, ise:"true", e:["gt"]}, {x:3035, y:975, w:96, h:90, ise:"true", e:["bl"]}, {x:3703, y:1214, w:105, h:124, ise:"true", e:["gt"]}, {x:3311, y:1635, w:143, h:131, ise:"true", e:["aj", "aj"]}, {x:832, y:952, w:128, h:133, ise:"true", e:["el", "gt"]}, {x:1622, y:1812, w:112, h:152, e:["gt", "gt"]}, {x:1698, y:1659, w:206, h:89, e:["pt", "pt"]}, {x:1975, y:1720, w:125, h:255, e:["pt", "el", "el"]}, {x:1746, y:2183, w:262, h:106, e:["gt", "pt", "pt"]}, {x:2115, y:1909, w:111, h:99, e:["bl"]}, {x:3581, y:1436, w:129, h:125, ise:"true", e:["el", "el"]}, {x:3295, y:556, w:471, h:26, ise:"true", e:["el"]}, {x:3260, y:620, w:507, h:30, ise:"true", e:["gt"]}, {x:3249, y:2139, w:116, h:113, ise:"true", e:["pt"]}, {x:3290, y:1931, w:112, h:93, ise:"true", e:["aj"]}, {x:3251, y:838, w:87, h:81, ise:"true", e:["gs"]}, {x:3364, y:838, w:88, h:80, ise:"true", e:["gs"]}, {x:3485, y:837, w:87, h:83, ise:"true", e:["gs"]}, {x:1832, y:81, w:99, h:91, ise:"true", e:["gs"]}, {x:1956, y:82, w:97, h:86, ise:"true", e:["gs"]}];
af = [{x:1864, y:1957, r:-90, h:0, e:[""]}, {x:3592, y:421, r:0, h:1400, e:["bh", "fw", "ms", "ms"]}, {x:2769, y:194, r:0, h:600, e:["ms", "ms", "fw", "c47"]}, {x:2502, y:1020, r:-90, h:1200, e:["fw", "fw", "fw", "fw"]}];
bk = [{x:3336, y:90, r:49, s:100}, {x:3240, y:186, r:20, s:92}, {x:3195, y:297, r:15, s:95}, {x:3168, y:422, r:17, s:89}, {x:3107, y:513, r:79, s:83}, {x:3439, y:18, r:85, s:100}];
rb = [];
bd = [];
}
}
Symbol 3219 MovieClip [__Packages.rr.conf.map.ConfMap4] Frame 0
class rr.conf.map.ConfMap4
{
var mapid, title, rc, rs;
function ConfMap4 () {
mapid = 4;
title = "default";
rc = [{id:1, x:20, y:1111, a:0}, {id:2, x:320, y:1111, a:0}, {id:9999, x:4983, y:233, a:270}, {id:10000, x:4983, y:33, a:270}, {id:3, x:420, y:1111, a:0}, {id:4, x:670, y:1311, a:-77}, {id:5, x:685, y:1467, a:-92}, {id:6, x:738, y:1384, a:-17}, {id:7, x:859, y:1479, a:-59}, {id:9, x:911, y:1565, a:-59}, {id:10, x:985, y:1613, a:-7}, {id:11, x:1008, y:1850, a:-162}, {id:12, x:650, y:1575, a:-124}, {id:13, x:594, y:1658, a:-124}, {id:15, x:514, y:1727, a:-154}, {id:17, x:535, y:1914, a:-13}, {id:18, x:630, y:2026, a:-86}, {id:19, x:646, y:2251, a:-86}, {id:20, x:747, y:2345, a:-360}, {id:21, x:1045, y:2345, a:-360}, {id:22, x:993, y:2124, a:-24}, {id:23, x:1094, y:2238, a:-73}, {id:24, x:1244, y:2345, a:-358}, {id:27, x:1551, y:2334, a:-358}, {id:28, x:1673, y:2249, a:-292}, {id:29, x:1796, y:2166, a:-360}, {id:30, x:1984, y:2166, a:-360}, {id:31, x:2097, y:2256, a:-77}, {id:32, x:2239, y:2347, a:-348}, {id:33, x:2597, y:2271, a:-348}, {id:34, x:2689, y:2158, a:-270}, {id:35, x:2689, y:1993, a:-270}, {id:36, x:2939, y:1961, a:-76}, {id:37, x:3036, y:2037, a:-360}, {id:38, x:3191, y:2037, a:-360}, {id:42, x:3343, y:2088, a:-37}, {id:46, x:3432, y:2104, a:-343}, {id:47, x:3537, y:2105, a:-18}, {id:48, x:3887, y:2219, a:-18}, {id:49, x:4312, y:2357, a:-18}, {id:50, x:4467, y:2381, a:-360}, {id:54, x:4544, y:2345, a:-310}, {id:55, x:4620, y:2309, a:-360}, {id:56, x:4720, y:2309, a:-360}, {id:57, x:4787, y:2335, a:-42}, {id:58, x:4964, y:2256, a:-270}, {id:59, x:4964, y:1605, a:-270}, {id:60, x:4964, y:1257, a:-270}, {id:61, x:4864, y:1157, a:-180}, {id:62, x:4630, y:1157, a:-180}, {id:63, x:4583, y:1169, a:-152}, {id:64, x:4481, y:1164, a:-213}, {id:65, x:4332, y:1123, a:-178}, {id:66, x:4019, y:1134, a:-178}, {id:67, x:3872, y:1183, a:-145}, {id:68, x:3725, y:1179, a:-218}, {id:69, x:3660, y:1042, a:-271}, {id:70, x:3561, y:940, a:-180}, {id:71, x:3082, y:940, a:-180}, {id:72, x:2982, y:1040, a:-90}, {id:73, x:2982, y:1355, a:-90}, {id:75, x:2882, y:1455, a:-180}, {id:76, x:2515, y:1455, a:-180}, {id:77, x:2118, y:1455, a:-180}, {id:78, x:1740, y:1455, a:-180}, {id:79, x:1520, y:1455, a:-180}, {id:80, x:1420, y:1355, a:-270, s:{x:1383, y:1350, p:[87, -1, 101, -1, -1, -1, -1, -1]}}, {id:88, x:1420, y:1255, a:-270, s:{x:1383, y:1252, p:[88, -1, 100, -1, -1, -1, -1, -1]}}, {id:89, x:1420, y:1155, a:-270}, {id:96, x:1520, y:1055, a:-360}, {id:97, x:1620, y:955, a:-270, s:{x:1580, y:955, p:[97, -1, 138, -1, -1, -1, -1, -1]}}, {id:98, x:1620, y:855, a:-270, s:{x:1580, y:855, p:[98, -1, 139, -1, -1, -1, -1, -1]}}, {id:99, x:1620, y:755, a:-270, s:{x:1581, y:755, p:[99, -1, 140, -1, -1, -1, -1, -1]}}, {id:100, x:1620, y:655, a:-270}, {id:101, x:1520, y:1155, a:-360}, {id:102, x:1520, y:1255, a:-360}, {id:103, x:1620, y:1255, a:-360, s:{x:1623, y:1219, p:[-1, 110, 114, 104, -1, -1, -1, -1]}}, {id:104, x:1620, y:1155, a:-360, s:{x:1622, y:1122, p:[-1, -1, 131, 108, -1, -1, -1, -1]}}, {id:105, x:1704, y:1301, a:-57, s:{x:1696, y:1354, p:[-1, -1, 106, -1, 116, -1, -1, -1]}}, {id:107, x:1788, y:1347, a:-360}, {id:108, x:2006, y:1347, a:-360}, {id:109, x:1676, y:1172, a:-34}, {id:110, x:1733, y:1189, a:-360}, {id:111, x:1676, y:1238, a:-326}, {id:112, x:1733, y:1221, a:0}, {id:113, x:2184, y:1221, a:0}, {id:114, x:2145, y:1189, a:-360}, {id:115, x:1751, y:1255, a:-360, s:{x:1749, y:1291, p:[-1, -1, 127, 124, -1, -1, -1, -1]}}, {id:117, x:1895, y:1405, a:0}, {id:118, x:2292, y:1405, a:0}, {id:119, x:2392, y:1305, a:-270}, {id:123, x:2293, y:1347, a:-360}, {id:124, x:2393, y:1247, a:-270}, {id:125, x:1812, y:1276, a:-38}, {id:126, x:1873, y:1297, a:0}, {id:127, x:2332, y:1297, a:0}, {id:128, x:2166, y:1255, a:-360}, {id:129, x:2334, y:1255, a:-360}, {id:130, x:2335, y:1221, a:0}, {id:131, x:2335, y:1189, a:-360}, {id:132, x:2030, y:1155, a:-360}, {id:133, x:1676, y:1138, a:-326}, {id:134, x:1733, y:1121, a:0}, {id:135, x:2054, y:1121, a:0}, {id:136, x:2336, y:1155, a:-360}, {id:137, x:2338, y:1121, a:0}, {id:138, x:2393, y:896, a:-270}, {id:139, x:1720, y:855, a:-360, s:{x:1722, y:889, p:[-1, 146, -1, 141, -1, -1, -1, -1]}}, {id:140, x:1720, y:755, a:-360, s:{x:1721, y:786, p:[-1, 145, 171, 142, -1, -1, -1, -1]}}, {id:141, x:1720, y:655, a:-360, s:{x:1721, y:688, p:[-1, 144, 172, 143, -1, -1, -1, -1]}}, {id:142, x:1776, y:872, a:-34}, {id:143, x:1776, y:772, a:-34}, {id:144, x:1776, y:672, a:-34}, {id:145, x:1776, y:638, a:-326}, {id:146, x:1776, y:738, a:-326}, {id:147, x:1776, y:838, a:-326}, {id:148, x:1833, y:621, a:0}, {id:149, x:1833, y:689, a:-360}, {id:150, x:1833, y:721, a:0}, {id:151, x:1833, y:789, a:-360}, {id:152, x:1833, y:821, a:0}, {id:153, x:1833, y:889, a:-360, s:{x:1832, y:923, p:[-1, -1, 153, 160, -1, -1, -1, -1]}}, {id:154, x:1933, y:889, a:-360, s:{x:1943, y:857, p:[-1, -1, 165, -1, 167, -1, -1, -1]}}, {id:155, x:2148, y:821, a:0}, {id:156, x:2148, y:789, a:-360}, {id:157, x:2148, y:721, a:0}, {id:158, x:2213, y:689, a:-360}, {id:159, x:2148, y:621, a:0}, {id:161, x:1965, y:962, a:-58, s:{x:1922, y:973, p:[-1, -1, 162, 161, -1, -1, -1, -1]}}, {id:162, x:2152, y:1067, a:0}, {id:163, x:2051, y:1009, a:-360}, {id:164, x:2344, y:1009, a:-360}, {id:165, x:2341, y:1067, a:0}, {id:166, x:2347, y:889, a:-360}, {id:168, x:2005, y:919, a:-46}, {id:169, x:2077, y:950, a:0}, {id:170, x:2346, y:950, a:0}, {id:171, x:2294, y:621, a:0}, {id:172, x:2073, y:755, a:-360}, {id:173, x:2073, y:655, a:-360}, {id:174, x:2393, y:630, a:-270}, {id:175, x:2393, y:455, a:-270}, {id:176, x:2293, y:355, a:-180}, {id:177, x:1720, y:555, a:-360}, {id:178, x:2101, y:555, a:-360}, {id:179, x:2201, y:455, a:-270}, {id:180, x:2101, y:355, a:-180}, {id:183, x:2352, y:655, a:-360}, {id:184, x:2394, y:521, a:-270}, {id:187, x:2353, y:689, a:-360}, {id:188, x:2351, y:721, a:0}, {id:189, x:2347, y:755, a:-360}, {id:190, x:2346, y:789, a:-360}, {id:191, x:2346, y:821, a:0}, {id:192, x:2001, y:355, a:-180}, {id:193, x:1886, y:445, a:-104}, {id:194, x:1771, y:534, a:-180}, {id:195, x:1671, y:534, a:-180}, {id:196, x:1571, y:634, a:-90}, {id:197, x:1471, y:734, a:-180}, {id:198, x:1175, y:734, a:-180}, {id:199, x:1070, y:790, a:-124}, {id:200, x:937, y:861, a:-180}, {id:201, x:720, y:861, a:-180}, {id:202, x:603, y:773, a:-254}, {id:203, x:486, y:685, a:-180}, {id:205, x:248, y:685, a:-180}, {id:206, x:148, y:585, a:-270}, {id:207, x:148, y:298, a:-270}, {id:208, x:248, y:198, a:-360}, {id:209, x:348, y:198, a:-360}, {id:210, x:476, y:244, a:-39}, {id:211, x:613, y:277, a:-348}, {id:212, x:751, y:248, a:-348}, {id:213, x:813, y:253, a:-21}, {id:215, x:956, y:251, a:-338}, {id:216, x:1152, y:294, a:-47}, {id:217, x:1293, y:299, a:-317}, {id:218, x:1480, y:124, a:-317}, {id:219, x:1623, y:68, a:0}, {id:220, x:1990, y:68, a:0}, {id:221, x:2436, y:68, a:0}, {id:222, x:2926, y:68, a:0}, {id:224, x:3038, y:68, a:0}, {id:225, x:3140, y:219, a:-112}, {id:226, x:3085, y:355, a:-112}, {id:227, x:2969, y:452, a:-168}, {id:228, x:2790, y:490, a:-168}, {id:229, x:2674, y:515, a:-168}, {id:230, x:2597, y:634, a:-78}, {id:231, x:2717, y:716, a:-351}, {id:232, x:3181, y:642, a:-351}, {id:234, x:3296, y:547, a:-290}, {id:235, x:3363, y:362, a:-290}, {id:236, x:3592, y:201, a:-360}, {id:237, x:4035, y:201, a:-360}, {id:238, x:4135, y:301, a:-90}, {id:239, x:4135, y:593, a:-90}, {id:240, x:4135, y:659, a:-90}, {id:241, x:4235, y:759, a:0, s:{x:4235, y:719, p:[242, -1, 241, -1, -1, -1, -1, -1]}}, {id:242, x:4335, y:759, a:0}, {id:243, x:4335, y:659, a:-270}, {id:244, x:4335, y:559, a:-270}, {id:245, x:4435, y:459, a:-360}, {id:246, x:4535, y:459, a:-360}, {id:261, x:4884, y:759, a:0}, {id:262, x:4984, y:659, a:-270}, {id:267, x:4635, y:359, a:-270}, {id:268, x:4635, y:259, a:-270}, {id:269, x:4535, y:159, a:-180}, {id:270, x:4466, y:159, a:-180}, {id:271, x:4366, y:259, a:-90}, {id:275, x:4266, y:359, a:-180}, {id:276, x:4166, y:259, a:-270}, {id:277, x:4166, y:159, a:-270}, {id:278, x:4266, y:59, a:-360}, {id:279, x:4582, y:59, a:-360}, {id:281, x:4682, y:159, a:-90}, {id:282, x:4682, y:659, a:-90}, {id:283, x:4782, y:759, a:0}];
rs = [{id:1, s:1, e:2}, {id:10000, s:10000, e:9999}, {id:2, s:2, e:3}, {id:3, s:3, e:4, r:256, d:-1, l:346}, {id:4, s:4, e:5, r:592, d:-1, l:157}, {id:5, s:4, e:6, r:100, d:1, l:104}, {id:6, s:6, e:7, r:212, d:-1, l:157}, {id:8, s:7, e:9}, {id:9, s:9, e:10, r:100, d:1, l:91}, {id:10, s:10, e:11, r:122, d:-1, l:330}, {id:11, s:5, e:12, r:207, d:-1, l:115}, {id:12, s:12, e:13}, {id:14, s:13, e:15, r:203, d:-1, l:107}, {id:16, s:15, e:17, r:100, d:1, l:246}, {id:17, s:17, e:18, r:123, d:-1, l:157}, {id:18, s:18, e:19}, {id:19, s:19, e:20, r:101, d:1, l:152}, {id:20, s:20, e:21}, {id:21, s:11, e:22, r:147, d:1, l:353}, {id:22, s:22, e:23, r:184, d:-1, l:157}, {id:23, s:23, e:24, r:151, d:1, l:198}, {id:24, s:21, e:24}, {id:26, s:24, e:27}, {id:27, s:27, e:28, r:137, d:1, l:157}, {id:28, s:28, e:29, r:133, d:-1, l:157}, {id:29, s:29, e:30}, {id:30, s:30, e:31, r:116, d:-1, l:156}, {id:31, s:31, e:32, r:121, d:1, l:187}, {id:32, s:32, e:33}, {id:33, s:33, e:34, r:116, d:1, l:157}, {id:34, s:34, e:35}, {id:35, s:35, e:36, r:127, d:-1, l:367}, {id:36, s:36, e:37, r:100, d:1, l:133}, {id:37, s:37, e:38}, {id:41, s:38, e:42, r:252, d:-1, l:163}, {id:45, s:42, e:46, r:100, d:1, l:94}, {id:46, s:46, e:47, r:177, d:-1, l:107}, {id:47, s:47, e:48}, {id:48, s:48, e:49}, {id:49, s:49, e:50, r:489, d:1, l:157}, {id:53, s:50, e:54, r:100, d:1, l:88}, {id:54, s:54, e:55, r:100, d:-1, l:87}, {id:55, s:55, e:56}, {id:56, s:56, e:57, r:100, d:-1, l:74}, {id:57, s:57, e:58, r:106, d:1, l:244}, {id:58, s:58, e:59}, {id:59, s:59, e:60}, {id:60, s:60, e:61, r:100, d:1, l:157}, {id:61, s:61, e:62}, {id:62, s:62, e:63, r:100, d:1, l:49}, {id:63, s:63, e:64, r:100, d:-1, l:107}, {id:64, s:64, e:65, r:254, d:1, l:157}, {id:65, s:65, e:66}, {id:66, s:66, e:67, r:271, d:1, l:157}, {id:67, s:67, e:68, r:123, d:-1, l:157}, {id:68, s:68, e:69, r:169, d:-1, l:157}, {id:69, s:69, e:70, r:100, d:1, l:158}, {id:70, s:70, e:71}, {id:71, s:71, e:72, r:100, d:1, l:157}, {id:72, s:72, e:73}, {id:74, s:73, e:75, r:100, d:-1, l:157}, {id:75, s:75, e:76}, {id:76, s:76, e:77}, {id:77, s:77, e:78}, {id:78, s:78, e:79}, {id:79, s:79, e:80, r:100, d:-1, l:157}, {id:87, s:80, e:88}, {id:88, s:88, e:89}, {id:95, s:89, e:96, r:100, d:-1, l:157}, {id:96, s:96, e:97, r:100, d:1, l:157}, {id:97, s:97, e:98}, {id:98, s:98, e:99}, {id:99, s:99, e:100}, {id:100, s:88, e:101, r:100, d:-1, l:157}, {id:101, s:80, e:102, r:100, d:-1, l:157}, {id:102, s:102, e:103}, {id:103, s:101, e:104}, {id:104, s:103, e:105, r:100, d:-1, l:100}, {id:106, s:105, e:107, r:100, d:1, l:100}, {id:107, s:107, e:108}, {id:108, s:104, e:109, r:100, d:-1, l:60}, {id:109, s:109, e:110, r:100, d:1, l:60}, {id:110, s:103, e:111, r:100, d:1, l:60}, {id:111, s:111, e:112, r:100, d:-1, l:60}, {id:112, s:112, e:113}, {id:113, s:110, e:114}, {id:114, s:103, e:115}, {id:116, s:105, e:117, r:229, d:1, l:227}, {id:117, s:117, e:118}, {id:118, s:118, e:119, r:100, d:1, l:157}, {id:121, s:119, e:124}, {id:122, s:108, e:123}, {id:123, s:123, e:124, r:100, d:1, l:157}, {id:124, s:115, e:125, r:100, d:-1, l:66}, {id:125, s:125, e:126, r:100, d:1, l:66}, {id:126, s:126, e:127}, {id:127, s:115, e:128}, {id:128, s:128, e:129}, {id:129, s:113, e:130}, {id:130, s:114, e:131}, {id:131, s:104, e:132}, {id:132, s:104, e:133, r:100, d:1, l:60}, {id:133, s:133, e:134, r:100, d:-1, l:60}, {id:134, s:134, e:135}, {id:135, s:132, e:136}, {id:136, s:135, e:137}, {id:137, s:124, e:138}, {id:138, s:97, e:139, r:100, d:-1, l:157}, {id:139, s:98, e:140, r:100, d:-1, l:157}, {id:140, s:99, e:141, r:100, d:-1, l:157}, {id:141, s:139, e:142, r:100, d:-1, l:60}, {id:142, s:140, e:143, r:100, d:-1, l:60}, {id:143, s:141, e:144, r:100, d:-1, l:60}, {id:144, s:141, e:145, r:100, d:1, l:60}, {id:145, s:140, e:146, r:100, d:1, l:60}, {id:146, s:139, e:147, r:100, d:1, l:60}, {id:147, s:145, e:148, r:100, d:-1, l:60}, {id:148, s:144, e:149, r:100, d:1, l:60}, {id:149, s:146, e:150, r:100, d:-1, l:60}, {id:150, s:143, e:151, r:100, d:1, l:60}, {id:151, s:147, e:152, r:100, d:-1, l:60}, {id:152, s:142, e:153, r:100, d:1, l:60}, {id:153, s:153, e:154}, {id:154, s:152, e:155}, {id:155, s:151, e:156}, {id:156, s:150, e:157}, {id:157, s:149, e:158}, {id:158, s:148, e:159}, {id:160, s:153, e:161, r:155, d:-1, l:157}, {id:161, s:161, e:162, r:223, d:1, l:224}, {id:162, s:161, e:163, r:100, d:1, l:102}, {id:163, s:163, e:164}, {id:164, s:162, e:165}, {id:165, s:154, e:166}, {id:167, s:154, e:168, r:100, d:-1, l:80}, {id:168, s:168, e:169, r:100, d:1, l:80}, {id:169, s:169, e:170}, {id:170, s:159, e:171}, {id:171, s:140, e:172}, {id:172, s:141, e:173}, {id:173, s:138, e:174}, {id:174, s:174, e:175}, {id:175, s:175, e:176, r:100, d:1, l:157}, {id:176, s:100, e:177, r:100, d:-1, l:157}, {id:177, s:177, e:178}, {id:178, s:178, e:179, r:100, d:1, l:157}, {id:179, s:179, e:180, r:100, d:1, l:157}, {id:180, s:176, e:180}, {id:182, s:173, e:183}, {id:183, s:171, e:184, r:100, d:1, l:157}, {id:184, s:184, e:175}, {id:186, s:158, e:187}, {id:187, s:157, e:188}, {id:188, s:172, e:189}, {id:189, s:156, e:190}, {id:190, s:155, e:191}, {id:191, s:180, e:192}, {id:192, s:192, e:193, r:118, d:1, l:157}, {id:193, s:193, e:194, r:118, d:-1, l:157}, {id:194, s:194, e:195}, {id:195, s:195, e:196, r:100, d:1, l:157}, {id:196, s:196, e:197, r:100, d:-1, l:157}, {id:197, s:197, e:198}, {id:198, s:198, e:199, r:127, d:1, l:124}, {id:199, s:199, e:200, r:162, d:-1, l:157}, {id:200, s:200, e:201}, {id:201, s:201, e:202, r:121, d:-1, l:157}, {id:202, s:202, e:203, r:121, d:1, l:157}, {id:204, s:203, e:205}, {id:205, s:205, e:206, r:100, d:-1, l:157}, {id:206, s:206, e:207}, {id:207, s:207, e:208, r:100, d:-1, l:157}, {id:208, s:208, e:209}, {id:209, s:209, e:210, r:203, d:-1, l:139}, {id:210, s:210, e:211, r:165, d:1, l:146}, {id:211, s:211, e:212}, {id:212, s:212, e:213, r:108, d:-1, l:63}, {id:214, s:213, e:215, r:193, d:1, l:146}, {id:215, s:215, e:216, r:177, d:-1, l:213}, {id:216, s:216, e:217, r:100, d:1, l:157}, {id:217, s:217, e:218}, {id:218, s:218, e:219, r:207, d:-1, l:157}, {id:219, s:219, e:220}, {id:220, s:220, e:221}, {id:221, s:221, e:222}, {id:223, s:222, e:224}, {id:224, s:224, e:225, r:110, d:-1, l:215}, {id:225, s:225, e:226}, {id:226, s:226, e:227, r:161, d:-1, l:157}, {id:227, s:227, e:228}, {id:228, s:228, e:229}, {id:229, s:229, e:230, r:100, d:1, l:157}, {id:230, s:230, e:231, r:105, d:1, l:160}, {id:231, s:231, e:232}, {id:233, s:232, e:234, r:147, d:1, l:157}, {id:234, s:234, e:235}, {id:235, s:235, e:236, r:245, d:-1, l:298}, {id:236, s:236, e:237}, {id:237, s:237, e:238, r:100, d:-1, l:157}, {id:238, s:238, e:239}, {id:239, s:239, e:240}, {id:240, s:240, e:241, r:100, d:1, l:157}, {id:241, s:241, e:242}, {id:242, s:241, e:243, r:100, d:1, l:157}, {id:243, s:243, e:244}, {id:244, s:244, e:245, r:100, d:-1, l:157}, {id:245, s:245, e:246}, {id:260, s:242, e:261}, {id:261, s:261, e:262, r:100, d:1, l:157}, {id:265, s:262, e:9999, eo:1}, {id:266, s:246, e:267, r:100, d:1, l:157}, {id:267, s:267, e:268}, {id:268, s:268, e:269, r:100, d:1, l:157}, {id:269, s:269, e:270}, {id:270, s:270, e:271, r:100, d:1, l:157}, {id:274, s:271, e:275, r:100, d:-1, l:157}, {id:275, s:275, e:276, r:100, d:-1, l:157}, {id:276, s:276, e:277}, {id:277, s:277, e:278, r:100, d:-1, l:157}, {id:278, s:278, e:279}, {id:280, s:279, e:281, r:100, d:-1, l:157}, {id:281, s:281, e:282}, {id:282, s:282, e:283, r:100, d:1, l:157}, {id:283, s:283, e:261}];
}
}
Symbol 3220 MovieClip [__Packages.rr.conf.level.ConfLevel5] Frame 0
class rr.conf.level.ConfLevel5
{
var missiontargets, map, startcol, startrow, cliprows, nightmap, startcash, levelpoints, train, ea, af, bk, rb, bd;
function ConfLevel5 () {
missiontargets = [{id:1, text:"Destroy all 24 enemy buildings", type:"AllIndustry"}, {id:2, text:"Destroy the enemies guarding the buildings", type:"AllBuildings"}, {id:3, text:"Destroy the wartrain before it is out of reach", type:"AllTrains"}, {id:4, text:"Take down the 17 enemy air units", type:"AllAirs"}, {id:5, text:"Take over the 3 enemy airfields with propaganda", type:"AllAirfields"}];
map = new rr.conf.map.ConfMap5();
startcol = 1;
startrow = 1;
cliprows = 9;
nightmap = false;
startcash = 27500;
levelpoints = 18500;
train = [{loc:"Rhino", speed:2}, {wagon:"TankTrailer"}, {wagon:"Wagon3", weapons:["SmallCannon", "MediumCannon"]}, {wagon:"Wagon2", weapons:["SmallCannon", "SmallFastCannon"]}];
ea = [{x:1383, y:238, w:242, h:59, ise:"true", e:["gt", "pt"]}, {x:1339, y:103, w:20, h:353, ise:"true", e:["el"]}, {x:1375, y:415, w:429, h:31, ise:"true", e:["pt"]}, {x:1563, y:67, w:56, h:133, ise:"true", e:["pt"]}, {x:720, y:289, w:20, h:852, ise:"true", e:["gt"]}, {x:772, y:255, w:20, h:945, ise:"true", e:["pt"]}, {x:810, y:241, w:20, h:1008, ise:"true", e:["pt"]}, {x:654, y:1172, w:84, h:115, ise:"true", e:["pt"]}, {x:613, y:472, w:89, h:131, ise:"true", e:["pt"]}, {x:579, y:770, w:102, h:75, ise:"true", e:["gs"]}, {x:577, y:188, w:102, h:81, ise:"true", e:["gs"]}, {x:1065, y:773, w:125, h:120, ise:"true", e:["pt", "pt"]}, {x:935, y:536, w:275, h:94, ise:"true", e:["el", "pt", "pt"]}, {x:982, y:240, w:88, h:232, ise:"true", e:["pt", "pt"]}, {x:102, y:1053, w:118, h:101, e:["pt"]}, {x:259, y:694, w:20, h:408, e:["pt", "pt"]}, {x:13, y:525, w:131, h:106, e:["pt"]}, {x:236, y:450, w:119, h:156, ise:"true", e:["pt", "pt"]}, {x:246, y:1227, w:99, h:95, e:["bl"]}, {x:59, y:1237, w:97, h:92, e:["bl"]}, {x:1051, y:2703, w:20, h:402, ise:"true", e:["pt"]}, {x:1721, y:2790, w:100, h:100, ise:"true", e:["oj"]}, {x:1670, y:2419, w:88, h:93, ise:"true", e:["aj"]}, {x:153, y:3000, w:105, h:109, e:["el"]}, {x:106, y:3230, w:210, h:82, e:["pt", "pt"]}, {x:266, y:2946, w:124, h:91, e:["gt"]}, {x:117, y:3117, w:77, h:113, e:["pt"]}, {x:496, y:3218, w:102, h:115, ise:"true", e:["pt"]}, {x:272, y:3052, w:147, h:74, ise:"true", e:["pt"]}, {x:17, y:2838, w:421, h:98, ise:"true", e:["pt", "pt", "pt", "pt", "pt"]}, {x:432, y:3335, w:208, h:84, ise:"true", e:["pt"]}, {x:329, y:3164, w:154, h:121, ise:"true", e:["gt", "gt"]}, {x:255, y:3322, w:165, h:91, e:["pt", "el"]}, {x:173, y:3327, w:72, h:136, ise:"true", e:["el"]}, {x:105, y:3593, w:61, h:163, e:["gt"]}];
af = [{x:136, y:883, r:79, h:undefined, e:[""]}, {x:1604, y:696, r:-24, h:1450, e:["ms", "ms", "ms", "ms", "bh", "bh"]}, {x:1075, y:1167, r:19, h:1300, e:["fw", "fw", "ms", "ms", "ms", "bh", "bh"]}, {x:916, y:2877, r:-90, h:400, e:["ms", "ms", "bh", "bh"]}];
bk = [{x:51, y:3689, r:-37, s:93}, {x:94, y:3920, r:-11, s:84}, {x:91, y:4122, r:-1, s:76}, {x:82, y:4267, r:-10, s:96}];
rb = [];
bd = [{x:1566, y:354, r:0, t:"i1"}, {x:1693, y:355, r:0, t:"i1"}, {x:1419, y:358, r:0, t:"i1"}, {x:1271, y:224, r:-22, t:"i3"}, {x:1449, y:136, r:0, t:"i4"}, {x:1720, y:161, r:17, t:"i4"}, {x:1824, y:354, r:0, t:"i1"}, {x:921, y:774, r:-30, t:"i3"}, {x:1081, y:697, r:9, t:"i1"}, {x:1206, y:732, r:9, t:"i1"}, {x:1003, y:855, r:-34, t:"i3"}, {x:601, y:700, r:-88, t:"i5"}, {x:605, y:940, r:-96, t:"i5"}, {x:621, y:394, r:-85, t:"i5"}, {x:573, y:1129, r:0, t:"o4"}, {x:1274, y:379, r:0, t:"o1"}, {x:1269, y:528, r:0, t:"o1"}, {x:1132, y:300, r:0, t:"o1"}, {x:1136, y:440, r:0, t:"o1"}, {x:1586, y:2565, r:-48, t:"o2"}, {x:1653, y:2685, r:0, t:"o1"}, {x:1657, y:2894, r:-50, t:"o4"}, {x:1733, y:2581, r:-64, t:"o1"}, {x:1793, y:2718, r:0, t:"o1"}];
}
}
Symbol 3221 MovieClip [__Packages.rr.conf.map.ConfMap5] Frame 0
class rr.conf.map.ConfMap5
{
var mapid, title, rc, rs;
function ConfMap5 () {
mapid = 3;
title = "default";
rc = [{id:1, x:200, y:20, a:270}, {id:2, x:200, y:320, a:270}, {id:9999, x:1452, y:7430, a:90}, {id:10000, x:1452, y:7630, a:90}, {id:3, x:200, y:559, a:270, s:{x:240, y:559, p:[-1, -1, -1, 3, -1, 4, -1, -1]}}, {id:4, x:289, y:658, a:-6}, {id:5, x:111, y:658, a:-174}, {id:6, x:22, y:768, a:-84}, {id:7, x:378, y:768, a:-96}, {id:8, x:344, y:1089, a:-96}, {id:9, x:56, y:1089, a:-84}, {id:11, x:286, y:1170, a:-156}, {id:12, x:114, y:1170, a:-24}, {id:14, x:200, y:1301, a:-90}, {id:15, x:200, y:1604, a:-90}, {id:17, x:116, y:1752, a:-149, s:{x:105, y:1809, p:[-1, -1, -1, 19, -1, 17, -1, -1]}}, {id:18, x:41, y:1884, a:-90}, {id:19, x:41, y:2300, a:-90}, {id:20, x:174, y:1937, a:-356}, {id:21, x:324, y:2150, a:-114}, {id:22, x:343, y:2298, a:-51}, {id:23, x:338, y:2450, a:-133}, {id:24, x:337, y:2704, a:-48}, {id:25, x:360, y:2851, a:-114}, {id:26, x:401, y:3022, a:-39}, {id:28, x:461, y:3161, a:-94}, {id:29, x:813, y:3173, a:-270, s:{x:774, y:3173, p:[29, -1, 30, -1, -1, -1, -1, -1]}}, {id:30, x:813, y:2913, a:-270}, {id:31, x:913, y:3073, a:-360}, {id:32, x:813, y:2615, a:-270}, {id:33, x:813, y:2332, a:-270}, {id:39, x:813, y:1922, a:-270}, {id:40, x:813, y:1692, a:-270}, {id:41, x:913, y:1592, a:-360}, {id:42, x:1167, y:1592, a:-360}, {id:44, x:1243, y:1628, a:-50}, {id:45, x:1319, y:1664, a:0}, {id:46, x:1419, y:1664, a:0}, {id:47, x:1495, y:1628, a:-310}, {id:48, x:1571, y:1592, a:-360}, {id:51, x:1671, y:1692, a:-90}, {id:52, x:1671, y:1904, a:-90}, {id:53, x:1671, y:2004, a:-90}, {id:54, x:1571, y:2104, a:-180}, {id:55, x:1471, y:2104, a:-180}, {id:56, x:1371, y:2004, a:-270}, {id:57, x:1271, y:1904, a:-180}, {id:58, x:1171, y:2004, a:-90}, {id:59, x:1171, y:2104, a:-90}, {id:60, x:1271, y:2204, a:0}, {id:68, x:1382, y:2316, a:-90}, {id:70, x:1423, y:2397, a:-36}, {id:71, x:1451, y:2528, a:-120}, {id:72, x:1488, y:2665, a:-30}, {id:73, x:1481, y:2865, a:-154}, {id:74, x:1440, y:3008, a:-58}, {id:75, x:1456, y:3208, a:-113}, {id:76, x:1482, y:3364, a:-48}, {id:77, x:1523, y:3472, a:-90}, {id:78, x:1523, y:4068, a:-90}, {id:80, x:1523, y:4341, a:-90}, {id:81, x:1543, y:4403, a:-55}, {id:82, x:1493, y:4555, a:-162}, {id:83, x:1440, y:4704, a:-57}, {id:84, x:1224, y:4842, a:-238}, {id:87, x:1013, y:3173, a:-90}, {id:88, x:1013, y:3568, a:-90}, {id:89, x:1171, y:4757, a:-238}, {id:90, x:1033, y:4725, a:-148}, {id:91, x:595, y:4707, a:-217}, {id:92, x:937, y:3697, a:-151}, {id:93, x:469, y:3956, a:-151}, {id:94, x:352, y:4089, a:-112}, {id:95, x:293, y:4235, a:-112}, {id:96, x:311, y:4379, a:-54}, {id:97, x:389, y:4486, a:-54}, {id:99, x:455, y:4727, a:-127}, {id:100, x:395, y:4807, a:-127}, {id:101, x:335, y:4887, a:-127}, {id:102, x:355, y:5027, a:-37}, {id:103, x:435, y:5087, a:-37, s:{x:459, y:5055, p:[-1, -1, -1, 105, -1, 103, -1, -1]}}, {id:104, x:455, y:5227, a:-127}, {id:105, x:289, y:5447, a:-127}, {id:106, x:650, y:5249, a:-37}, {id:107, x:309, y:5587, a:-37}, {id:108, x:329, y:5727, a:-127}, {id:109, x:349, y:5867, a:-37}, {id:110, x:489, y:5847, a:-307}, {id:111, x:549, y:5767, a:-307}, {id:112, x:755, y:5799, a:-71}, {id:113, x:882, y:5861, a:-341}, {id:114, x:977, y:5828, a:-341}, {id:115, x:1039, y:5701, a:-251}, {id:116, x:1006, y:5606, a:-251}, {id:117, x:954, y:5455, a:-251}, {id:118, x:796, y:5298, a:-360}, {id:120, x:1067, y:5297, a:0}, {id:122, x:1475, y:5297, a:0}, {id:123, x:1575, y:5397, a:-90}, {id:124, x:1575, y:5751, a:-90}, {id:129, x:1675, y:5851, a:0}, {id:130, x:1775, y:5951, a:-90}, {id:131, x:1775, y:6091, a:-90}, {id:133, x:1675, y:6191, a:-180}, {id:134, x:1288, y:6191, a:-180}, {id:135, x:1188, y:6291, a:-90}, {id:136, x:1188, y:6511, a:-90, s:{x:1228, y:6511, p:[-1, -1, -1, 136, -1, 137, -1, -1]}}, {id:137, x:1288, y:6611, a:0}, {id:138, x:1088, y:6611, a:-180}, {id:139, x:988, y:6611, a:-180, s:{x:956, y:6567, p:[166, -1, -1, -1, 165, -1, 139, -1]}}, {id:140, x:888, y:6611, a:-180, s:{x:869, y:6571, p:[164, -1, -1, -1, 163, -1, 140, -1]}}, {id:141, x:788, y:6611, a:-180, s:{x:769, y:6571, p:[161, -1, -1, -1, 162, -1, 141, -1]}}, {id:142, x:688, y:6611, a:-180, s:{x:667, y:6568, p:[159, -1, -1, -1, 160, -1, 142, -1]}}, {id:143, x:588, y:6611, a:-180, s:{x:566, y:6568, p:[158, -1, -1, -1, 157, -1, 143, -1]}}, {id:144, x:488, y:6611, a:-180, s:{x:463, y:6566, p:[155, -1, -1, -1, 152, -1, 144, -1]}}, {id:145, x:388, y:6611, a:-180, s:{x:363, y:6566, p:[154, -1, -1, -1, 151, -1, 145, -1]}}, {id:146, x:288, y:6611, a:-180, s:{x:268, y:6568, p:[153, -1, -1, -1, 150, -1, 146, -1]}}, {id:147, x:188, y:6611, a:-180, s:{x:165, y:6571, p:[156, -1, -1, -1, 149, -1, -1, -1]}}, {id:150, x:88, y:6711, a:-90}, {id:151, x:188, y:6711, a:-90}, {id:152, x:288, y:6711, a:-90}, {id:153, x:388, y:6711, a:-90}, {id:154, x:188, y:6511, a:-270}, {id:155, x:288, y:6511, a:-270}, {id:156, x:388, y:6511, a:-270}, {id:157, x:88, y:6511, a:-270}, {id:158, x:488, y:6711, a:-90}, {id:159, x:488, y:6511, a:-270}, {id:160, x:588, y:6511, a:-270}, {id:161, x:588, y:6711, a:-90}, {id:162, x:688, y:6511, a:-270}, {id:163, x:688, y:6711, a:-90}, {id:164, x:788, y:6711, a:-90}, {id:165, x:788, y:6511, a:-270}, {id:166, x:888, y:6711, a:-90}, {id:167, x:888, y:6511, a:-270}, {id:169, x:88, y:7126, a:-90}, {id:170, x:188, y:6811, a:-90}, {id:171, x:288, y:6811, a:-90}, {id:172, x:888, y:6811, a:-90}, {id:173, x:788, y:6811, a:-90}, {id:174, x:688, y:6811, a:-90}, {id:175, x:588, y:6811, a:-90}, {id:176, x:488, y:6811, a:-90}, {id:177, x:488, y:6911, a:-90, s:{x:528, y:6911, p:[-1, -1, -1, 237, -1, 245, -1, -1]}}, {id:178, x:388, y:6811, a:-90}, {id:179, x:288, y:6411, a:-270, s:{x:321, y:6410, p:[-1, 284, -1, -1, -1, -1, -1, 266]}}, {id:180, x:188, y:6411, a:-270, s:{x:221, y:6411, p:[-1, 279, -1, -1, -1, -1, -1, 265]}}, {id:181, x:88, y:6151, a:-270}, {id:182, x:388, y:6411, a:-270, s:{x:422, y:6410, p:[-1, 288, -1, -1, -1, -1, -1, 267]}}, {id:183, x:488, y:6411, a:-270, s:{x:526, y:6410, p:[-1, 293, -1, -1, -1, -1, -1, 268]}}, {id:184, x:588, y:6411, a:-270, s:{x:623, y:6409, p:[-1, 296, -1, -1, -1, -1, -1, 269]}}, {id:185, x:688, y:6411, a:-270, s:{x:723, y:6408, p:[-1, 300, -1, -1, -1, -1, -1, 270]}}, {id:186, x:788, y:6411, a:-270, s:{x:823, y:6408, p:[-1, 301, -1, -1, -1, -1, -1, 271]}}, {id:187, x:888, y:6151, a:-270}, {id:189, x:188, y:6911, a:-90, s:{x:228, y:6911, p:[-1, -1, -1, 240, -1, 242, -1, -1]}}, {id:190, x:288, y:6911, a:-90, s:{x:328, y:6911, p:[-1, -1, -1, 239, -1, 243, -1, -1]}}, {id:191, x:388, y:6911, a:-90, s:{x:428, y:6911, p:[-1, -1, -1, 238, -1, 244, -1, -1]}}, {id:192, x:588, y:6911, a:-90, s:{x:628, y:6911, p:[-1, -1, -1, 229, -1, 230, -1, -1]}}, {id:193, x:688, y:6911, a:-90, s:{x:728, y:6911, p:[-1, -1, -1, 225, -1, 227, -1, -1]}}, {id:194, x:788, y:6911, a:-90, s:{x:828, y:6911, p:[-1, -1, -1, 201, -1, 204, -1, -1]}}, {id:195, x:888, y:6911, a:-90, s:{x:928, y:6911, p:[-1, -1, -1, 195, -1, 198, -1, -1]}}, {id:196, x:905, y:6967, a:-56}, {id:197, x:922, y:7024, a:-90}, {id:198, x:922, y:7384, a:-90}, {id:199, x:871, y:6967, a:-124}, {id:200, x:854, y:7024, a:-90}, {id:201, x:854, y:7384, a:-90}, {id:202, x:805, y:6967, a:-56}, {id:203, x:822, y:7024, a:-90}, {id:204, x:822, y:7384, a:-90}, {id:205, x:771, y:6967, a:-124}, {id:206, x:754, y:7024, a:-90}, {id:207, x:754, y:7384, a:-90}, {id:208, x:88, y:7345, a:-90}, {id:209, x:188, y:7445, a:0}, {id:210, x:672, y:7445, a:0}, {id:212, x:960, y:7445, a:0}, {id:213, x:1060, y:7345, a:-270}, {id:214, x:1461, y:6754, a:-79}, {id:215, x:1483, y:6867, a:-79}, {id:216, x:1537, y:6977, a:-48}, {id:217, x:1531, y:7141, a:-136}, {id:218, x:1160, y:7245, a:-360}, {id:219, x:1352, y:7245, a:-360}, {id:220, x:1452, y:7345, a:-90}, {id:221, x:705, y:6967, a:-56}, {id:222, x:722, y:7024, a:-90}, {id:223, x:671, y:6967, a:-124}, {id:224, x:654, y:7024, a:-90}, {id:225, x:605, y:6967, a:-56}, {id:226, x:571, y:6967, a:-124}, {id:227, x:622, y:7024, a:-90}, {id:228, x:554, y:7024, a:-90}, {id:229, x:622, y:7384, a:-90}, {id:230, x:654, y:7384, a:-90}, {id:231, x:722, y:7384, a:-90}, {id:232, x:554, y:7384, a:-90}, {id:233, x:505, y:6967, a:-56}, {id:234, x:405, y:6967, a:-56}, {id:235, x:305, y:6967, a:-56}, {id:236, x:205, y:6967, a:-56}, {id:237, x:222, y:7024, a:-90}, {id:238, x:171, y:6967, a:-124}, {id:239, x:271, y:6967, a:-124}, {id:240, x:371, y:6967, a:-124}, {id:241, x:471, y:6967, a:-124}, {id:242, x:522, y:7024, a:-90}, {id:243, x:454, y:7024, a:-90}, {id:244, x:422, y:7024, a:-90}, {id:245, x:354, y:7024, a:-90}, {id:246, x:322, y:7024, a:-90}, {id:247, x:254, y:7024, a:-90}, {id:248, x:154, y:7024, a:-90}, {id:249, x:522, y:7384, a:-90}, {id:250, x:454, y:7384, a:-90}, {id:251, x:422, y:7384, a:-90}, {id:252, x:354, y:7384, a:-90}, {id:253, x:322, y:7384, a:-90}, {id:254, x:254, y:7384, a:-90}, {id:255, x:222, y:7384, a:-90}, {id:256, x:154, y:7384, a:-90}, {id:258, x:188, y:6051, a:-360}, {id:260, x:788, y:6051, a:-180}, {id:261, x:176, y:6363, a:-241}, {id:262, x:276, y:6363, a:-241}, {id:263, x:376, y:6363, a:-241}, {id:264, x:476, y:6363, a:-241}, {id:265, x:576, y:6363, a:-241}, {id:266, x:676, y:6363, a:-241}, {id:267, x:776, y:6363, a:-241}, {id:268, x:763, y:6315, a:-270}, {id:269, x:663, y:6315, a:-270}, {id:270, x:563, y:6315, a:-270}, {id:271, x:463, y:6315, a:-270}, {id:272, x:363, y:6315, a:-270}, {id:273, x:263, y:6315, a:-270}, {id:274, x:163, y:6315, a:-270}, {id:275, x:200, y:6363, a:-299}, {id:276, x:163, y:6215, a:-270}, {id:277, x:213, y:6315, a:-270}, {id:278, x:213, y:6215, a:-270}, {id:279, x:263, y:6215, a:-270}, {id:280, x:300, y:6363, a:-299}, {id:281, x:313, y:6315, a:-270}, {id:282, x:313, y:6215, a:-270}, {id:283, x:363, y:6215, a:-270}, {id:284, x:400, y:6363, a:-299}, {id:285, x:413, y:6315, a:-270}, {id:286, x:413, y:6215, a:-270}, {id:287, x:463, y:6215, a:-270}, {id:289, x:500, y:6363, a:-299}, {id:290, x:513, y:6315, a:-270}, {id:291, x:513, y:6215, a:-270}, {id:292, x:600, y:6363, a:-299}, {id:293, x:613, y:6315, a:-270}, {id:294, x:613, y:6215, a:-270}, {id:295, x:563, y:6215, a:-270}, {id:296, x:700, y:6363, a:-299}, {id:297, x:800, y:6363, a:-299}, {id:298, x:813, y:6315, a:-270}, {id:299, x:713, y:6315, a:-270}, {id:300, x:713, y:6215, a:-270}, {id:301, x:663, y:6215, a:-270}, {id:302, x:763, y:6215, a:-270}, {id:303, x:813, y:6215, a:-270}, {id:304, x:813, y:6115, a:-270}, {id:305, x:763, y:6115, a:-270}, {id:306, x:713, y:6115, a:-270}, {id:307, x:663, y:6115, a:-270}, {id:308, x:613, y:6115, a:-270}, {id:309, x:563, y:6115, a:-270}, {id:310, x:513, y:6115, a:-270}, {id:311, x:463, y:6115, a:-270}, {id:312, x:413, y:6115, a:-270}, {id:313, x:363, y:6115, a:-270}, {id:314, x:313, y:6115, a:-270}, {id:315, x:263, y:6115, a:-270}, {id:316, x:213, y:6115, a:-270}, {id:317, x:163, y:6115, a:-270}, {id:318, x:41, y:2529, a:-90}, {id:319, x:41, y:2981, a:-90}, {id:320, x:41, y:3276, a:-90}, {id:321, x:106, y:3414, a:-40}, {id:322, x:170, y:3552, a:-90}, {id:323, x:170, y:3848, a:-90}, {id:324, x:234, y:3976, a:-37}, {id:325, x:304, y:4200, a:-108}];
rs = [{id:1, s:1, e:2}, {id:10000, s:10000, e:9999}, {id:2, s:2, e:3}, {id:3, s:3, e:4, r:100, d:1, l:146}, {id:4, s:3, e:5, r:100, d:-1, l:146}, {id:5, s:5, e:6, r:100, d:1, l:157}, {id:6, s:4, e:7, r:100, d:-1, l:157}, {id:7, s:7, e:8}, {id:8, s:6, e:9}, {id:10, s:8, e:11, r:100, d:-1, l:104}, {id:11, s:9, e:12, r:100, d:1, l:104}, {id:12, s:11, e:14, r:144, d:1, l:166}, {id:13, s:12, e:14, r:145, d:-1, l:166}, {id:14, s:14, e:15}, {id:16, s:15, e:17, r:172, d:-1, l:178}, {id:17, s:17, e:18, r:154, d:1, l:159}, {id:18, s:18, e:19}, {id:19, s:17, e:20, r:100, d:1, l:267}, {id:20, s:20, e:21, r:152, d:-1, l:312}, {id:21, s:21, e:22, r:144, d:1, l:157}, {id:22, s:22, e:23, r:116, d:-1, l:166}, {id:23, s:23, e:24, r:187, d:1, l:279}, {id:24, s:24, e:25, r:136, d:-1, l:157}, {id:25, s:25, e:26, r:145, d:1, l:189}, {id:27, s:26, e:28, r:163, d:-1, l:157}, {id:28, s:28, e:29, r:176, d:1, l:565}, {id:29, s:29, e:30}, {id:30, s:29, e:31, r:100, d:-1, l:157}, {id:31, s:30, e:32}, {id:32, s:32, e:33}, {id:38, s:33, e:39}, {id:39, s:39, e:40}, {id:40, s:40, e:41, r:100, d:-1, l:157}, {id:41, s:41, e:42}, {id:43, s:42, e:44, r:100, d:-1, l:87}, {id:44, s:44, e:45, r:100, d:1, l:87}, {id:45, s:45, e:46}, {id:46, s:46, e:47, r:100, d:1, l:87}, {id:47, s:47, e:48, r:100, d:-1, l:87}, {id:50, s:48, e:51, r:100, d:-1, l:157}, {id:51, s:51, e:52}, {id:52, s:52, e:53}, {id:53, s:53, e:54, r:100, d:-1, l:157}, {id:54, s:54, e:55}, {id:55, s:55, e:56, r:100, d:-1, l:157}, {id:56, s:56, e:57, r:100, d:1, l:157}, {id:57, s:57, e:58, r:100, d:1, l:157}, {id:58, s:58, e:59}, {id:59, s:59, e:60, r:100, d:1, l:157}, {id:67, s:60, e:68, r:111, d:-1, l:175}, {id:69, s:68, e:70, r:100, d:1, l:94}, {id:70, s:70, e:71, r:100, d:-1, l:147}, {id:71, s:71, e:72, r:100, d:1, l:157}, {id:72, s:72, e:73, r:113, d:-1, l:245}, {id:73, s:73, e:74, r:100, d:1, l:168}, {id:74, s:74, e:75, r:218, d:-1, l:209}, {id:75, s:75, e:76, r:147, d:1, l:167}, {id:76, s:76, e:77, r:161, d:-1, l:118}, {id:77, s:77, e:78}, {id:79, s:78, e:80}, {id:80, s:80, e:81, r:107, d:1, l:66}, {id:81, s:81, e:82, r:100, d:-1, l:186}, {id:82, s:82, e:83, r:100, d:1, l:183}, {id:83, s:83, e:84, r:128, d:-1, l:404}, {id:86, s:31, e:87, r:100, d:-1, l:157}, {id:87, s:87, e:88}, {id:88, s:84, e:89}, {id:89, s:89, e:90, r:100, d:1, l:157}, {id:90, s:90, e:91, r:389, d:-1, l:466}, {id:91, s:88, e:92, r:148, d:-1, l:157}, {id:92, s:92, e:93}, {id:93, s:93, e:94, r:264, d:1, l:181}, {id:94, s:94, e:95}, {id:95, s:95, e:96, r:150, d:1, l:152}, {id:96, s:96, e:97}, {id:97, s:97, e:100, r:276, d:-1, l:341}, {id:98, s:91, e:99, r:100, d:1, l:157}, {id:99, s:99, e:100}, {id:100, s:100, e:101}, {id:101, s:101, e:102, r:100, d:1, l:157}, {id:102, s:102, e:103}, {id:103, s:103, e:104, r:100, d:-1, l:157}, {id:104, s:104, e:105}, {id:105, s:103, e:106}, {id:106, s:105, e:107, r:100, d:1, l:157}, {id:107, s:107, e:108, r:100, d:-1, l:157}, {id:108, s:108, e:109, r:100, d:1, l:157}, {id:109, s:109, e:110, r:100, d:1, l:157}, {id:110, s:110, e:111}, {id:111, s:111, e:112, r:118, d:-1, l:255}, {id:112, s:112, e:113, r:100, d:1, l:157}, {id:113, s:113, e:114}, {id:114, s:114, e:115, r:100, d:1, l:157}, {id:115, s:115, e:116}, {id:116, s:116, e:117}, {id:117, s:106, e:118, r:241, d:1, l:157}, {id:118, s:118, e:120}, {id:119, s:117, e:120, r:119, d:-1, l:227}, {id:121, s:120, e:122}, {id:122, s:122, e:123, r:100, d:-1, l:157}, {id:123, s:123, e:124}, {id:128, s:124, e:129, r:100, d:1, l:157}, {id:129, s:129, e:130, r:100, d:-1, l:157}, {id:130, s:130, e:131}, {id:132, s:131, e:133, r:100, d:-1, l:157}, {id:133, s:133, e:134}, {id:134, s:134, e:135, r:100, d:1, l:157}, {id:135, s:135, e:136}, {id:136, s:136, e:137, r:100, d:1, l:157}, {id:137, s:136, e:138, r:100, d:-1, l:157}, {id:138, s:138, e:139}, {id:139, s:139, e:140}, {id:140, s:140, e:141}, {id:141, s:141, e:142}, {id:142, s:142, e:143}, {id:143, s:143, e:144}, {id:144, s:144, e:145}, {id:145, s:145, e:146}, {id:146, s:146, e:147}, {id:149, s:147, e:150, r:100, d:1, l:157}, {id:150, s:146, e:151, r:100, d:1, l:157}, {id:151, s:145, e:152, r:100, d:1, l:157}, {id:152, s:144, e:153, r:100, d:1, l:157}, {id:153, s:146, e:154, r:100, d:-1, l:157}, {id:154, s:145, e:155, r:100, d:-1, l:157}, {id:155, s:144, e:156, r:100, d:-1, l:157}, {id:156, s:147, e:157, r:100, d:-1, l:157}, {id:157, s:143, e:158, r:100, d:1, l:157}, {id:158, s:143, e:159, r:100, d:-1, l:157}, {id:159, s:142, e:160, r:100, d:-1, l:157}, {id:160, s:142, e:161, r:100, d:1, l:157}, {id:161, s:141, e:162, r:100, d:-1, l:157}, {id:162, s:141, e:163, r:100, d:1, l:157}, {id:163, s:140, e:164, r:100, d:1, l:157}, {id:164, s:140, e:165, r:100, d:-1, l:157}, {id:165, s:139, e:166, r:100, d:1, l:157}, {id:166, s:139, e:167, r:100, d:-1, l:157}, {id:168, s:150, e:169}, {id:169, s:151, e:170}, {id:170, s:152, e:171}, {id:171, s:166, e:172}, {id:172, s:164, e:173}, {id:173, s:163, e:174}, {id:174, s:161, e:175}, {id:175, s:158, e:176}, {id:176, s:176, e:177}, {id:177, s:153, e:178}, {id:178, s:155, e:179}, {id:179, s:154, e:180}, {id:180, s:157, e:181}, {id:181, s:156, e:182}, {id:182, s:159, e:183}, {id:183, s:160, e:184}, {id:184, s:162, e:185}, {id:185, s:165, e:186}, {id:186, s:167, e:187}, {id:188, s:170, e:189}, {id:189, s:171, e:190}, {id:190, s:178, e:191}, {id:191, s:175, e:192}, {id:192, s:174, e:193}, {id:193, s:173, e:194}, {id:194, s:172, e:195}, {id:195, s:195, e:196, r:100, d:1, l:60}, {id:196, s:196, e:197, r:100, d:-1, l:60}, {id:197, s:197, e:198}, {id:198, s:195, e:199, r:100, d:-1, l:60}, {id:199, s:199, e:200, r:100, d:1, l:60}, {id:200, s:200, e:201}, {id:201, s:194, e:202, r:100, d:1, l:60}, {id:202, s:202, e:203, r:100, d:-1, l:60}, {id:203, s:203, e:204}, {id:204, s:194, e:205, r:100, d:-1, l:60}, {id:205, s:205, e:206, r:100, d:1, l:60}, {id:206, s:206, e:207}, {id:207, s:169, e:208}, {id:208, s:208, e:209, r:100, d:1, l:157}, {id:209, s:209, e:210}, {id:211, s:210, e:212}, {id:212, s:212, e:213, r:100, d:1, l:157}, {id:213, s:137, e:214, r:176, d:-1, l:243}, {id:214, s:214, e:215}, {id:215, s:215, e:216, r:232, d:1, l:124}, {id:216, s:216, e:217, r:118, d:-1, l:182}, {id:217, s:213, e:218, r:100, d:-1, l:157}, {id:218, s:218, e:219}, {id:219, s:219, e:220, r:100, d:-1, l:157}, {id:224, s:217, e:220, r:260, d:1, l:227}, {id:225, s:193, e:221, r:100, d:1, l:60}, {id:226, s:221, e:222, r:100, d:-1, l:60}, {id:227, s:193, e:223, r:100, d:-1, l:60}, {id:228, s:223, e:224, r:100, d:1, l:60}, {id:229, s:192, e:225, r:100, d:1, l:60}, {id:230, s:192, e:226, r:100, d:-1, l:60}, {id:231, s:225, e:227, r:100, d:-1, l:60}, {id:232, s:226, e:228, r:100, d:1, l:60}, {id:233, s:227, e:229}, {id:234, s:224, e:230}, {id:235, s:222, e:231}, {id:236, s:228, e:232}, {id:237, s:177, e:233, r:100, d:1, l:60}, {id:238, s:191, e:234, r:100, d:1, l:60}, {id:239, s:190, e:235, r:100, d:1, l:60}, {id:240, s:189, e:236, r:100, d:1, l:60}, {id:241, s:236, e:237, r:100, d:-1, l:60}, {id:242, s:189, e:238, r:100, d:-1, l:60}, {id:243, s:190, e:239, r:100, d:-1, l:60}, {id:244, s:191, e:240, r:100, d:-1, l:60}, {id:245, s:177, e:241, r:100, d:-1, l:60}, {id:246, s:233, e:242, r:100, d:-1, l:60}, {id:247, s:241, e:243, r:100, d:1, l:60}, {id:248, s:234, e:244, r:100, d:-1, l:60}, {id:249, s:240, e:245, r:100, d:1, l:60}, {id:250, s:235, e:246, r:100, d:-1, l:60}, {id:251, s:239, e:247, r:100, d:1, l:60}, {id:252, s:238, e:248, r:100, d:1, l:60}, {id:253, s:242, e:249}, {id:254, s:243, e:250}, {id:255, s:244, e:251}, {id:256, s:245, e:252}, {id:257, s:246, e:253}, {id:258, s:247, e:254}, {id:259, s:237, e:255}, {id:260, s:248, e:256}, {id:262, s:181, e:258, r:100, d:-1, l:157}, {id:263, s:258, e:260, eo:1}, {id:264, s:187, e:260, r:100, d:1, l:157}, {id:265, s:180, e:261, r:100, d:1, l:50}, {id:266, s:179, e:262, r:100, d:1, l:50}, {id:267, s:182, e:263, r:100, d:1, l:50}, {id:268, s:183, e:264, r:100, d:1, l:50}, {id:269, s:184, e:265, r:100, d:1, l:50}, {id:270, s:185, e:266, r:100, d:1, l:50}, {id:271, s:186, e:267, r:100, d:1, l:50}, {id:272, s:267, e:268, r:100, d:-1, l:50}, {id:273, s:266, e:269, r:100, d:-1, l:50}, {id:274, s:265, e:270, r:100, d:-1, l:50}, {id:275, s:264, e:271, r:100, d:-1, l:50}, {id:276, s:263, e:272, r:100, d:-1, l:50}, {id:277, s:262, e:273, r:100, d:-1, l:50}, {id:278, s:261, e:274, r:100, d:-1, l:50}, {id:279, s:180, e:275, r:100, d:-1, l:50}, {id:280, s:274, e:276}, {id:281, s:275, e:277, r:100, d:1, l:50}, {id:282, s:277, e:278}, {id:283, s:273, e:279}, {id:284, s:179, e:280, r:100, d:-1, l:50}, {id:285, s:280, e:281, r:100, d:1, l:50}, {id:286, s:281, e:282}, {id:287, s:272, e:283}, {id:288, s:182, e:284, r:100, d:-1, l:50}, {id:289, s:284, e:285, r:100, d:1, l:50}, {id:290, s:285, e:286}, {id:291, s:271, e:287}, {id:293, s:183, e:289, r:100, d:-1, l:50}, {id:294, s:289, e:290, r:100, d:1, l:50}, {id:295, s:290, e:291}, {id:296, s:184, e:292, r:100, d:-1, l:50}, {id:297, s:292, e:293, r:100, d:1, l:50}, {id:298, s:293, e:294}, {id:299, s:270, e:295}, {id:300, s:185, e:296, r:100, d:-1, l:50}, {id:301, s:186, e:297, r:100, d:-1, l:50}, {id:302, s:297, e:298, r:100, d:1, l:50}, {id:303, s:296, e:299, r:100, d:1, l:50}, {id:304, s:299, e:300}, {id:305, s:269, e:301}, {id:306, s:268, e:302}, {id:307, s:298, e:303}, {id:308, s:303, e:304}, {id:309, s:302, e:305}, {id:310, s:300, e:306}, {id:311, s:301, e:307}, {id:312, s:294, e:308}, {id:313, s:295, e:309}, {id:314, s:291, e:310}, {id:315, s:287, e:311}, {id:316, s:286, e:312}, {id:317, s:283, e:313}, {id:318, s:282, e:314}, {id:319, s:279, e:315}, {id:320, s:278, e:316}, {id:321, s:276, e:317}, {id:322, s:19, e:318}, {id:323, s:318, e:319}, {id:324, s:319, e:320}, {id:325, s:320, e:321, r:179, d:1, l:157}, {id:326, s:321, e:322, r:179, d:-1, l:157}, {id:327, s:322, e:323}, {id:328, s:323, e:324, r:160, d:1, l:148}, {id:329, s:324, e:325, r:201, d:-1, l:250}, {id:331, s:325, e:95}, {id:332, s:220, e:9999, eo:1}];
}
}
Symbol 3222 MovieClip [__Packages.rr.conf.level.ConfLevel6] Frame 0
class rr.conf.level.ConfLevel6
{
var missiontargets, map, startcol, startrow, clipcols, nightmap, startcash, levelpoints, train, ea, af, bk, rb, bd;
function ConfLevel6 () {
missiontargets = [{id:1, text:"Destroy all enemies", type:"AllGrounds"}, {id:2, text:"Destroy the wartrain before it is out of reach", type:"AllTrains"}, {id:3, text:"Take down the 22 enemy air units", type:"AllAirs"}, {id:4, text:"Take over the 5 enemy airfields with propaganda", type:"AllAirfields"}];
map = new rr.conf.map.ConfMap6();
startcol = 1;
startrow = 1;
clipcols = 6;
nightmap = true;
startcash = 32750;
levelpoints = 16000;
train = [{loc:"Rhino", speed:1.5}, {wagon:"TankTrailer"}, {wagon:"Wagon3", weapons:["SmallCannon", "MediumCannon"]}, {wagon:"Wagon2", weapons:["SmallCannon", "SmallFastCannon"]}];
ea = [{x:2211, y:1248, w:70, h:103, e:["pt"]}, {x:2211, y:1086, w:87, h:82, e:["pt"]}, {x:2077, y:1085, w:84, h:264, ise:"true", e:["pt", "el", "el"]}, {x:3742, y:985, w:86, h:82, ise:"true", e:["bl"]}, {x:3853, y:1331, w:90, h:86, ise:"true", e:["bl"]}, {x:3580, y:427, w:83, h:90, ise:"true", e:["bl"]}, {x:319, y:1327, w:1819, h:20, ise:"true", e:["gt"]}, {x:317, y:1371, w:1838, h:20, ise:"true", e:["gt"]}, {x:313, y:1409, w:1846, h:21, ise:"true", e:["gt"]}, {x:2286, y:57, w:37, h:302, ise:"true", e:["gt"]}, {x:3418, y:149, w:146, h:158, ise:"true", e:["pt", "el", "el"]}, {x:2729, y:336, w:295, h:153, ise:"true", e:["pt", "pt", "gt", "pt", "pt"]}, {x:2426, y:861, w:191, h:180, ise:"true", e:["pt", "pt"]}, {x:2446, y:1218, w:159, h:190, ise:"true", e:["pt", "pt", "el"]}, {x:2819, y:1098, w:182, h:170, ise:"true", e:["pt", "pt", "pt"]}, {x:2801, y:733, w:230, h:170, ise:"true", e:["gt", "gt", "el", "el"]}, {x:3663, y:1192, w:157, h:181, ise:"true", e:["pt", "pt", "pt"]}, {x:3258, y:590, w:225, h:166, ise:"true", e:["gt", "gt", "pt", "el", "el"]}, {x:304, y:116, w:1822, h:20, ise:"true", e:["gt"]}, {x:310, y:68, w:1814, h:20, ise:"true", e:["pt"]}, {x:493, y:422, w:1631, h:20, ise:"true", e:["el"]}, {x:494, y:382, w:1623, h:20, ise:"true", e:["pt"]}, {x:496, y:341, w:1622, h:20, ise:"true", e:["gt"]}, {x:498, y:289, w:1624, h:20, ise:"true", e:["pt"]}, {x:508, y:241, w:1618, h:20, ise:"true", e:["pt"]}, {x:509, y:194, w:1625, h:21, ise:"true", e:["gt"]}, {x:88, y:591, w:140, h:284, ise:"true", e:["el", "el", "el", "el"]}, {x:611, y:1182, w:95, h:100, ise:"true", e:["bl"]}, {x:326, y:1067, w:494, h:22, ise:"true", e:["pt"]}, {x:318, y:1128, w:514, h:22, ise:"true", e:["pt"]}, {x:1368, y:1040, w:154, h:151, ise:"true", e:["el", "el"]}, {x:3427, y:1281, w:219, h:113, ise:"true", e:["bl"]}, {x:230, y:1121, w:42, h:306, ise:"true", e:["pt"]}];
af = [{x:3505, y:960, r:-19, h:0, e:[""]}, {x:3226, y:241, r:160, h:1500, e:["ms", "ms", "ms", "bh", "bh", "bh"]}, {x:2486, y:435, r:160, h:1500, e:["c47", "c47", "c47", "c47", "ms", "ms"]}, {x:1847, y:1193, r:0, h:1000, e:["ms", "ms", "fw", "fw", "fw"]}, {x:1026, y:1160, r:0, h:700, e:["ms", "ms", "ms"]}, {x:173, y:185, r:90, h:400, e:["fw", "fw"]}];
bk = [];
rb = [];
bd = [];
}
}
Symbol 3223 MovieClip [__Packages.rr.conf.map.ConfMap6] Frame 0
class rr.conf.map.ConfMap6
{
var mapid, title, rc, rs;
function ConfMap6 () {
mapid = 5;
title = "default";
rc = [{id:1, x:20, y:1111, a:0}, {id:2, x:320, y:1111, a:0}, {id:9999, x:6160, y:137, a:-180}, {id:10000, x:6360, y:137, a:-180}, {id:3, x:497, y:1251, a:-76}, {id:4, x:655, y:1050, a:-180, s:{x:656, y:1083, p:[-1, -1, 102, -1, 3, -1, -1, -1]}}, {id:7, x:350, y:1050, a:-180}, {id:10, x:250, y:950, a:-270}, {id:11, x:250, y:548, a:-270}, {id:12, x:250, y:343, a:-270}, {id:13, x:350, y:243, a:-360}, {id:14, x:439, y:188, a:-297}, {id:15, x:528, y:133, a:0}, {id:16, x:791, y:133, a:0}, {id:17, x:882, y:75, a:-295}, {id:18, x:973, y:17, a:0}, {id:19, x:1243, y:17, a:0}, {id:21, x:1335, y:79, a:-68}, {id:22, x:1428, y:142, a:-360}, {id:23, x:1761, y:142, a:-360}, {id:24, x:1854, y:79, a:-292}, {id:25, x:2029, y:60, a:-56}, {id:26, x:2117, y:107, a:-360}, {id:27, x:2524, y:107, a:-360}, {id:28, x:2686, y:184, a:-51}, {id:29, x:2884, y:230, a:-335}, {id:30, x:3092, y:133, a:-335}, {id:31, x:3199, y:109, a:-360}, {id:32, x:3624, y:109, a:-360}, {id:33, x:3952, y:109, a:-360}, {id:34, x:4076, y:221, a:-84}, {id:35, x:4232, y:323, a:-342}, {id:36, x:4450, y:252, a:-342}, {id:37, x:4518, y:173, a:-280}, {id:38, x:4708, y:108, a:-42}, {id:42, x:4827, y:215, a:-42}, {id:43, x:4925, y:236, a:-342}, {id:52, x:5000, y:212, a:-342}, {id:53, x:5129, y:326, a:-101}, {id:54, x:5108, y:435, a:-101}, {id:55, x:5030, y:514, a:-169}, {id:63, x:4906, y:441, a:-252}, {id:64, x:4878, y:354, a:-252}, {id:66, x:4752, y:290, a:-162}, {id:67, x:4281, y:443, a:-162}, {id:68, x:4040, y:521, a:-162}, {id:69, x:3976, y:647, a:-72}, {id:70, x:4009, y:749, a:-72}, {id:72, x:4135, y:813, a:-342}, {id:73, x:4261, y:877, a:-72}, {id:77, x:4197, y:1003, a:-162}, {id:78, x:4067, y:898, a:-275}, {id:79, x:4006, y:792, a:-205}, {id:80, x:3915, y:750, a:-205}, {id:81, x:3796, y:724, a:-180}, {id:82, x:3718, y:724, a:-180}, {id:84, x:3614, y:647, a:-253}, {id:85, x:3582, y:543, a:-253}, {id:86, x:3457, y:477, a:-163}, {id:87, x:3150, y:571, a:-163}, {id:89, x:2818, y:672, a:-163}, {id:91, x:2809, y:675, a:-157}, {id:92, x:2802, y:678, a:-162}, {id:94, x:2366, y:820, a:-162}, {id:95, x:2295, y:919, a:-90}, {id:96, x:2295, y:965, a:-90}, {id:97, x:2195, y:1065, a:-180}, {id:99, x:1678, y:1065, a:-180}, {id:103, x:1271, y:1050, a:0}, {id:104, x:1498, y:1227, a:-76}, {id:105, x:1690, y:1376, a:-360}, {id:106, x:2196, y:1376, a:-360}, {id:107, x:2296, y:1276, a:-270}, {id:108, x:2366, y:1180, a:-343}, {id:109, x:2708, y:1075, a:-343}, {id:111, x:2719, y:1071, a:-336}, {id:112, x:2728, y:1067, a:-342}, {id:115, x:3231, y:904, a:-342}, {id:116, x:3684, y:757, a:-342}, {id:117, x:3928, y:774, a:-26}, {id:118, x:3992, y:805, a:-26}, {id:119, x:4048, y:904, a:-95}, {id:120, x:4209, y:1033, a:-342}, {id:121, x:4476, y:946, a:-342}, {id:122, x:4879, y:815, a:-342}, {id:123, x:5077, y:751, a:-342}, {id:124, x:5125, y:741, a:-354}, {id:125, x:5212, y:666, a:-284, s:{x:5249, y:670, p:[125, -1, 136, -1, -1, -1, -1, -1]}}, {id:126, x:5287, y:363, a:-284}, {id:127, x:5474, y:343, a:-64}, {id:130, x:5671, y:307, a:-275}, {id:132, x:5685, y:146, a:-275}, {id:133, x:5585, y:36, a:-180}, {id:134, x:5136, y:36, a:-180}, {id:135, x:4792, y:36, a:-180}, {id:137, x:5333, y:593, a:-14}, {id:138, x:5675, y:678, a:-14}, {id:139, x:5760, y:798, a:-95}, {id:140, x:5726, y:1183, a:-95}, {id:141, x:5826, y:1292, a:-360}, {id:142, x:6119, y:1292, a:-360}, {id:143, x:6339, y:1122, a:-285}, {id:144, x:6365, y:1025, a:-285}, {id:145, x:6294, y:903, a:-195}, {id:147, x:6197, y:877, a:-195}, {id:152, x:6126, y:755, a:-285}, {id:153, x:6171, y:586, a:-285}, {id:154, x:6096, y:462, a:-192}, {id:155, x:5873, y:415, a:-192}, {id:156, x:5783, y:344, a:-244}, {id:157, x:5739, y:254, a:-244}, {id:158, x:5785, y:120, a:-334}, {id:159, x:5936, y:124, a:-29}, {id:161, x:5984, y:137, a:0}];
rs = [{id:1, s:1, e:2}, {id:10000, s:10000, e:9999}, {id:2, s:2, e:3, r:182, d:-1, l:243}, {id:3, s:3, e:4, r:162, d:1, l:723}, {id:6, s:4, e:7}, {id:9, s:7, e:10, r:100, d:-1, l:157}, {id:10, s:10, e:11}, {id:11, s:11, e:12}, {id:12, s:12, e:13, r:100, d:-1, l:157}, {id:13, s:13, e:14, r:100, d:1, l:110}, {id:14, s:14, e:15, r:100, d:-1, l:110}, {id:15, s:15, e:16}, {id:16, s:16, e:17, r:100, d:1, l:114}, {id:17, s:17, e:18, r:100, d:-1, l:114}, {id:18, s:18, e:19}, {id:20, s:19, e:21, r:100, d:-1, l:118}, {id:21, s:21, e:22, r:100, d:1, l:119}, {id:22, s:22, e:23}, {id:23, s:23, e:24, r:100, d:1, l:119}, {id:24, s:24, e:25, r:100, d:-1, l:216}, {id:25, s:25, e:26, r:106, d:1, l:104}, {id:26, s:26, e:27}, {id:27, s:27, e:28, r:209, d:-1, l:186}, {id:28, s:28, e:29, r:166, d:1, l:219}, {id:29, s:29, e:30}, {id:30, s:30, e:31, r:254, d:-1, l:110}, {id:31, s:31, e:32}, {id:32, s:32, e:33}, {id:33, s:33, e:34, r:125, d:-1, l:183}, {id:34, s:34, e:35, r:120, d:1, l:213}, {id:35, s:35, e:36}, {id:36, s:36, e:37, r:100, d:1, l:109}, {id:37, s:37, e:38, r:115, d:-1, l:245}, {id:41, s:38, e:42}, {id:42, s:42, e:43, r:100, d:1, l:105}, {id:51, s:43, e:52}, {id:52, s:52, e:53, r:100, d:-1, l:208}, {id:53, s:53, e:54}, {id:54, s:54, e:55, r:100, d:-1, l:118}, {id:62, s:55, e:63, r:108, d:-1, l:157}, {id:63, s:63, e:64}, {id:65, s:64, e:66, r:100, d:1, l:157}, {id:66, s:66, e:67}, {id:67, s:67, e:68}, {id:68, s:68, e:69, r:100, d:1, l:157}, {id:69, s:69, e:70}, {id:71, s:70, e:72, r:100, d:1, l:157}, {id:72, s:72, e:73, r:100, d:-1, l:157}, {id:76, s:73, e:77, r:100, d:-1, l:157}, {id:77, s:77, e:78, r:100, d:-1, l:198}, {id:78, s:78, e:79, r:106, d:1, l:130}, {id:79, s:79, e:80}, {id:80, s:80, e:81, r:277, d:1, l:123}, {id:81, s:81, e:82}, {id:83, s:82, e:84, r:109, d:-1, l:139}, {id:84, s:84, e:85}, {id:85, s:85, e:86, r:100, d:1, l:157}, {id:86, s:86, e:87}, {id:88, s:87, e:89}, {id:90, s:89, e:91, r:100, d:1, l:10}, {id:91, s:91, e:92, r:100, d:-1, l:8}, {id:93, s:92, e:94}, {id:94, s:94, e:95, r:103, d:1, l:130}, {id:95, s:95, e:96}, {id:96, s:96, e:97, r:100, d:-1, l:157}, {id:98, s:97, e:99}, {id:102, s:4, e:103, t:1}, {id:103, s:103, e:104, r:234, d:-1, l:310}, {id:104, s:104, e:105, r:197, d:1, l:262}, {id:105, s:105, e:106}, {id:106, s:106, e:107, r:100, d:1, l:157}, {id:107, s:107, e:108, r:100, d:-1, l:127}, {id:108, s:108, e:109}, {id:109, s:99, e:105, r:155, d:1, l:498}, {id:110, s:109, e:111, r:100, d:1, l:12}, {id:111, s:111, e:112, r:100, d:-1, l:10}, {id:114, s:112, e:115}, {id:115, s:115, e:116}, {id:116, s:116, e:117, r:328, d:-1, l:251}, {id:117, s:117, e:118}, {id:118, s:118, e:119, r:100, d:-1, l:121}, {id:119, s:119, e:120, r:124, d:1, l:244}, {id:120, s:120, e:121}, {id:121, s:121, e:122}, {id:122, s:122, e:123}, {id:123, s:123, e:124, r:234, d:-1, l:49}, {id:124, s:124, e:125, r:100, d:1, l:122}, {id:125, s:125, e:126}, {id:126, s:126, e:127, r:100, d:-1, l:244}, {id:129, s:127, e:130, r:104, d:1, l:270}, {id:131, s:130, e:132}, {id:132, s:132, e:133, r:101, d:1, l:167}, {id:133, s:133, e:134}, {id:134, s:134, e:135}, {id:136, s:125, e:137, r:100, d:-1, l:157}, {id:137, s:137, e:138}, {id:138, s:138, e:139, r:113, d:-1, l:160}, {id:139, s:139, e:140}, {id:140, s:140, e:141, r:100, d:1, l:166}, {id:141, s:141, e:142}, {id:142, s:142, e:143, r:228, d:1, l:299}, {id:143, s:143, e:144}, {id:144, s:144, e:145, r:100, d:1, l:157}, {id:146, s:145, e:147}, {id:151, s:147, e:152, r:100, d:-1, l:157}, {id:152, s:152, e:153}, {id:153, s:153, e:154, r:100, d:1, l:162}, {id:154, s:154, e:155}, {id:155, s:155, e:156, r:130, d:-1, l:119}, {id:156, s:156, e:157}, {id:157, s:157, e:158, r:100, d:-1, l:157}, {id:158, s:158, e:159, r:163, d:-1, l:157}, {id:160, s:159, e:161, r:100, d:1, l:50}, {id:161, s:161, e:9999, eo:1}];
}
}
Symbol 3224 MovieClip [__Packages.rr.conf.level.ConfLevel11] Frame 0
class rr.conf.level.ConfLevel11
{
var missiontargets, map, startcol, startrow, clipcols, nightmap, startcash, levelpoints, ea, af, bk, rb, bd;
function ConfLevel11 () {
missiontargets = [{id:1, text:"Destroy all Industry", type:"AllIndustry"}];
map = new rr.conf.map.ConfMap1();
startcol = 1;
startrow = 1;
clipcols = 6;
nightmap = false;
startcash = 12000;
levelpoints = 0;
ea = [{x:623, y:1327, w:274, h:60, e:["ah", "ah"]}, {x:1092, y:1074, w:95, h:309, e:["ah", "ah"]}];
af = [{x:803, y:1174, r:0, h:undefined, e:[""]}];
bk = [];
rb = [];
bd = [{x:1620, y:1122, r:0, t:"i1"}, {x:1810, y:1120, r:0, t:"i1"}, {x:2012, y:1121, r:0, t:"i1"}, {x:2086, y:1321, r:180, t:"i1"}, {x:1883, y:1321, r:180, t:"i1"}, {x:1691, y:1323, r:180, t:"i1"}, {x:3828, y:1281, r:-105, t:"i2"}, {x:3485, y:1311, r:-19, t:"o4"}, {x:3330, y:1365, r:0, t:"o1"}, {x:3643, y:1383, r:180, t:"o4"}, {x:1440, y:1081, r:36, t:"i3"}, {x:1392, y:1227, r:0, t:"i3"}, {x:1451, y:1371, r:-41, t:"i3"}, {x:3149, y:157, r:90, t:"i4"}, {x:3272, y:330, r:-90, t:"i4"}, {x:3427, y:265, r:-90, t:"i4"}, {x:3010, y:461, r:162, t:"i4"}, {x:2799, y:531, r:163, t:"i4"}, {x:2536, y:620, r:162, t:"i4"}, {x:2854, y:276, r:0, t:"i1"}, {x:2677, y:277, r:0, t:"i1"}, {x:2311, y:273, r:0, t:"i3"}, {x:2315, y:429, r:0, t:"i3"}, {x:2312, y:598, r:0, t:"i3"}, {x:2081, y:59, r:0, t:"o2"}, {x:1748, y:60, r:0, t:"o2"}, {x:1930, y:75, r:0, t:"o3"}, {x:1599, y:60, r:0, t:"o2"}, {x:1367, y:76, r:0, t:"o3"}, {x:1218, y:76, r:0, t:"o3"}, {x:1012, y:61, r:0, t:"o2"}, {x:835, y:80, r:180, t:"o2"}, {x:633, y:80, r:180, t:"o2"}, {x:390, y:211, r:0, t:"i2"}, {x:59, y:214, r:0, t:"i3"}, {x:59, y:321, r:0, t:"i3"}, {x:57, y:441, r:0, t:"i3"}, {x:52, y:581, r:0, t:"i3"}, {x:53, y:698, r:0, t:"i3"}, {x:53, y:816, r:0, t:"i3"}];
}
}
Symbol 3225 MovieClip [__Packages.rr.conf.level.ConfLevel12] Frame 0
class rr.conf.level.ConfLevel12
{
var missiontargets, map, startcol, startrow, cliprows, nightmap, startcash, levelpoints, ea, af, bk, bd;
function ConfLevel12 () {
missiontargets = [{id:1, text:"Destroy all Basilisks", type:"AllGrounds"}, {id:2, text:"Take over the enemy airfield with propaganda", type:"AllAirfields"}];
map = new rr.conf.map.ConfMap2();
startcol = 1;
startrow = 1;
cliprows = 9;
nightmap = false;
startcash = 9500;
levelpoints = 0;
ea = [{x:601, y:172, w:110, h:106, ise:"true", e:["bl"]}, {x:618, y:363, w:115, h:112, ise:"true", e:["bl"]}, {x:603, y:583, w:104, h:110, ise:"true", e:["bl"]}, {x:573, y:737, w:114, h:117, ise:"true", e:["bl"]}, {x:585, y:896, w:100, h:100, ise:"true", e:["bl"]}, {x:547, y:1065, w:107, h:110, ise:"true", e:["bl"]}, {x:616, y:1238, w:104, h:118, ise:"true", e:["bl"]}, {x:589, y:1461, w:116, h:111, ise:"true", e:["bl"]}, {x:606, y:1673, w:109, h:123, ise:"true", e:["bl"]}, {x:579, y:1837, w:115, h:114, ise:"true", e:["bl"]}, {x:578, y:1970, w:110, h:110, ise:"true", e:["bl"]}, {x:587, y:2147, w:106, h:108, ise:"true", e:["bl"]}, {x:585, y:2356, w:102, h:101, ise:"true", e:["bl"]}, {x:590, y:2523, w:100, h:100, ise:"true", e:["bl"]}, {x:612, y:2679, w:115, h:107, ise:"true", e:["bl"]}, {x:632, y:2839, w:109, h:105, ise:"true", e:["bl"]}, {x:665, y:3054, w:101, h:98, ise:"true", e:["bl"]}, {x:494, y:2998, w:94, h:100, ise:"true", e:["bl"]}, {x:420, y:2885, w:93, h:100, ise:"true", e:["bl"]}, {x:410, y:2720, w:101, h:95, ise:"true", e:["bl"]}, {x:332, y:2610, w:107, h:103, ise:"true", e:["bl"]}, {x:369, y:2413, w:102, h:94, ise:"true", e:["bl"]}, {x:371, y:2266, w:98, h:96, ise:"true", e:["bl"]}, {x:342, y:2060, w:100, h:94, ise:"true", e:["bl"]}, {x:326, y:1877, w:105, h:97, ise:"true", e:["bl"]}, {x:340, y:1681, w:112, h:108, ise:"true", e:["bl"]}, {x:370, y:1386, w:106, h:105, ise:"true", e:["bl"]}, {x:379, y:1208, w:105, h:107, ise:"true", e:["bl"]}, {x:361, y:933, w:108, h:106, ise:"true", e:["bl"]}, {x:365, y:623, w:104, h:107, ise:"true", e:["bl"]}, {x:368, y:472, w:107, h:101, ise:"true", e:["bl"]}, {x:328, y:273, w:103, h:99, ise:"true", e:["bl"]}, {x:1534, y:2332, w:103, h:100, ise:"true", e:["bl"]}, {x:1550, y:2518, w:102, h:100, ise:"true", e:["bl"]}, {x:1624, y:2642, w:89, h:91, ise:"true", e:["bl"]}, {x:1612, y:2854, w:97, h:97, ise:"true", e:["bl"]}, {x:1618, y:3020, w:105, h:104, ise:"true", e:["bl"]}, {x:1637, y:3237, w:110, h:110, ise:"true", e:["bl"]}, {x:1647, y:3454, w:110, h:100, ise:"true", e:["bl"]}, {x:1662, y:3635, w:108, h:105, ise:"true", e:["bl"]}, {x:7, y:3709, w:86, h:88, ise:"true", e:["bl"]}, {x:-7, y:3845, w:87, h:90, ise:"true", e:["bl"]}, {x:8, y:3959, w:97, h:98, ise:"true", e:["bl"]}, {x:1018, y:1580, w:100, h:96, ise:"true", e:["bl"]}, {x:1154, y:1565, w:99, h:97, ise:"true", e:["bl"]}, {x:1295, y:1567, w:104, h:91, ise:"true", e:["bl"]}, {x:1448, y:1568, w:101, h:91, ise:"true", e:["bl"]}, {x:1604, y:1565, w:105, h:99, ise:"true", e:["bl"]}, {x:1742, y:1589, w:107, h:96, ise:"true", e:["bl"]}, {x:80, y:367, w:99, h:101, ise:"true", e:["bl"]}, {x:405, y:3464, w:107, h:100, ise:"true", e:["bl"]}, {x:549, y:3512, w:112, h:105, ise:"true", e:["bl"]}, {x:751, y:3498, w:109, h:103, ise:"true", e:["bl"]}, {x:986, y:3026, w:93, h:96, ise:"true", e:["bl"]}, {x:908, y:3529, w:109, h:104, ise:"true", e:["bl"]}, {x:216, y:1527, w:94, h:87, ise:"true", e:["bl"]}];
af = [{x:1535, y:594, r:0, h:undefined, e:[""]}, {x:1013, y:3340, r:-90, h:600, e:[""]}];
bk = [];
bd = [];
}
}
Symbol 3226 MovieClip [__Packages.rr.conf.level.ConfLevel13] Frame 0
class rr.conf.level.ConfLevel13
{
var missiontargets, map, startcol, startrow, nightmap, startcash, levelpoints, ea, af, bk, rb, bd;
function ConfLevel13 () {
missiontargets = [{id:1, text:"Destroy all enemy air units", type:"AllAirs"}, {id:2, text:"Take over all enemy airfields with propaganda", type:"AllAirfields"}];
map = new rr.conf.map.ConfMap3();
startcol = 1;
startrow = 1;
nightmap = true;
startcash = 10500;
levelpoints = 0;
ea = [];
af = [{x:3005, y:825, r:0, h:1500, e:["ms", "ms", "ms", "ms", "ms", "ms", "ms", "ms", "ms", "ms", "ms", "ms", "ms", "ms", "ms"]}, {x:1854, y:2050, r:-37, h:undefined, e:[""]}, {x:1849, y:638, r:-90, h:1500, e:["fw", "fw", "fw", "fw", "fw", "fw", "fw", "fw", "fw", "fw", "fw", "fw", "fw", "fw", "fw"]}, {x:2438, y:157, r:0, h:1500, e:["bh", "bh", "bh", "bh", "bh", "bh", "bh", "bh", "bh", "bh", "bh", "bh", "bh", "bh", "bh"]}, {x:1769, y:1347, r:-9, h:1500, e:["bh", "bh", "bh", "bh", "bh", "bh", "bh", "bh", "bh", "bh", "bh", "bh", "bh", "bh", "bh"]}, {x:3752, y:462, r:90, h:1500, e:["ms", "ms", "ms", "ms", "ms", "ms", "ms", "ms", "ms", "ms", "ms", "ms", "ms", "ms", "ms"]}, {x:2497, y:1200, r:-10, h:1500, e:["fw", "fw", "fw", "fw", "fw", "fw", "fw", "fw", "fw", "fw", "fw", "fw", "fw", "fw", "fw"]}, {x:2520, y:688, r:89, h:1500, e:["c47", "c47", "c47", "c47", "c47", "c47", "c47", "c47", "c47", "c47", "c47", "c47", "c47", "c47", "c47"]}];
bk = [];
rb = [];
bd = [];
}
}
Symbol 3227 MovieClip [__Packages.rr.conf.map.ConfMapValues1] Frame 0
class rr.conf.map.ConfMapValues1
{
function ConfMapValues1 () {
}
static function getValue(key) {
if (key == "cols") {
return(10);
}
if (key == "rows") {
return(2);
}
if (key == "foreground") {
return(true);
}
if (key == "maptype") {
return("grass");
}
}
}
Symbol 3228 MovieClip [__Packages.rr.conf.map.ConfMapValues2] Frame 0
class rr.conf.map.ConfMapValues2
{
function ConfMapValues2 () {
}
static function getValue(key) {
if (key == "cols") {
return(8);
}
if (key == "rows") {
return(5);
}
if (key == "foreground") {
return(true);
}
if (key == "maptype") {
return("desert");
}
}
}
Symbol 3229 MovieClip [__Packages.rr.conf.map.ConfMapValues3] Frame 0
class rr.conf.map.ConfMapValues3
{
function ConfMapValues3 () {
}
static function getValue(key) {
if (key == "cols") {
return(3);
}
if (key == "rows") {
return(16);
}
if (key == "foreground") {
return(false);
}
if (key == "maptype") {
return("ice");
}
}
}
Symbol 3230 MovieClip [__Packages.rr.conf.map.ConfMapValues4] Frame 0
class rr.conf.map.ConfMapValues4
{
function ConfMapValues4 () {
}
static function getValue(key) {
if (key == "cols") {
return(8);
}
if (key == "rows") {
return(5);
}
if (key == "foreground") {
return(true);
}
if (key == "maptype") {
return("grass");
}
}
}
Symbol 3231 MovieClip [__Packages.rr.conf.map.ConfMapValues5] Frame 0
class rr.conf.map.ConfMapValues5
{
function ConfMapValues5 () {
}
static function getValue(key) {
trace("ConfMapValues5 getValue: " + key);
if (key == "cols") {
return(10);
}
if (key == "rows") {
return(3);
}
if (key == "foreground") {
return(true);
}
if (key == "maptype") {
return("grass");
}
}
}
Symbol 3232 MovieClip [__Packages.rr.conf.plane.ConfAirField] Frame 0
class rr.conf.plane.ConfAirField
{
function ConfAirField () {
}
static function getValue(key) {
if (key == "detectiondistance") {
return(600);
}
if (key == "spawnsound") {
return("Airport.wav");
}
if (key == "spawntime") {
return(20000);
}
}
}
Symbol 3233 MovieClip [__Packages.rr.conf.plane.ConfAirfieldDefender] Frame 0
class rr.conf.plane.ConfAirfieldDefender
{
function ConfAirfieldDefender () {
}
static function getValue(key) {
if (key == "feelerradius") {
return(20);
}
if (key == "killlevel") {
return(500);
}
if (key == "gunsound") {
return("GunCannon11_short.wav");
}
if (key == "explodesound") {
return("Explosion08_short.wav");
}
if (key == "destroydelay") {
return(1500);
}
if (key == "shootingdistance") {
return(500);
}
if (key == "shootinginterval") {
return(10000);
}
if (key == "detectiondistance") {
return(550);
}
if (key == "ammomaxspeed") {
return(20);
}
if (key == "ammorotationspeed") {
return(6);
}
if (key == "ammoacceleration") {
return(0.3);
}
if (key == "ammominrange") {
return(50);
}
if (key == "ammomaxrange") {
return(1200);
}
if (key == "ammodestroydelay") {
return(1500);
}
if (key == "ammoexplosiondamage") {
return(50);
}
if (key == "ammoexplosionradius") {
return(100);
}
if (key == "ammostartsound") {
return("Missile firing2_short.wav");
}
if (key == "ammosound") {
return("Missile1_loop.wav");
}
if (key == "ammoexplodesound") {
return("Explosion06_short.wav");
}
}
}
Symbol 3234 MovieClip [__Packages.rr.conf.plane.ConfA10] Frame 0
class rr.conf.plane.ConfA10
{
function ConfA10 () {
}
static function getValue(key) {
if (key == "availabilitylevel") {
return(8);
}
if (key == "price") {
return(3200);
}
if (key == "type") {
return("AirUnit");
}
if (key == "killlevel") {
return(3000);
}
if (key == "killlevelenemy") {
return(300);
}
if (key == "destroydelay") {
return(400);
}
if (key == "explodesound") {
return("Explosion08_short.wav");
}
if (key == "crashsound") {
return("WarthogCrash.wav");
}
if (key == "loopsound") {
return("WarthogHigh.wav");
}
if (key == "loopingsound") {
return("WarthogLooping.wav");
}
if (key == "weight") {
return(8000);
}
if (key == "minspeed") {
return(5);
}
if (key == "maxspeed") {
return(7);
}
if (key == "minspeeddistance") {
return(100);
}
if (key == "maxspeeddistance") {
return(300);
}
if (key == "rotationspeed") {
return(2.8);
}
if (key == "altitude") {
return(50);
}
if (key == "altitudefatal") {
return(10);
}
if (key == "fuel") {
return(20000);
}
if (key == "fuelconsumption") {
return(0.03);
}
if (key == "ascentrate") {
return(0.3);
}
if (key == "descentrate") {
return(0.6);
}
if (key == "fullrollangle") {
return(110);
}
if (key == "acceleration") {
return(0.3);
}
if (key == "launchdistance") {
return(300);
}
if (key == "cameradistance") {
return(450);
}
if (key == "menudistance") {
return(70);
}
if (key == "approachdistance") {
return(40);
}
if (key == "triangleheight") {
return(250);
}
if (key == "trianglebase") {
return(80);
}
if (key == "shootingdistance") {
return(500);
}
if (key == "shootingdistancemin") {
return(80);
}
}
}
Symbol 3235 MovieClip [__Packages.rr.conf.plane.ConfApache] Frame 0
class rr.conf.plane.ConfApache
{
function ConfApache () {
}
static function getValue(key) {
if (key == "availabilitylevel") {
return(8);
}
if (key == "price") {
return(1900);
}
if (key == "type") {
return("AirUnit");
}
if (key == "killlevel") {
return(1500);
}
if (key == "killlevelenemy") {
return(250);
}
if (key == "destroydelay") {
return(1000);
}
if (key == "explodesound") {
return("Explosion08_short.wav");
}
if (key == "loopsound") {
return("ApacheHigh.wav");
}
if (key == "weight") {
return(5000);
}
if (key == "minspeed") {
return(-3);
}
if (key == "maxspeed") {
return(7);
}
if (key == "minspeeddistance") {
return(150);
}
if (key == "maxspeeddistance") {
return(300);
}
if (key == "rotationspeed") {
return(6);
}
if (key == "altitude") {
return(30);
}
if (key == "altitudefatal") {
return(1);
}
if (key == "fuel") {
return(10000);
}
if (key == "fuelconsumption") {
return(0.03);
}
if (key == "ascentrate") {
return(0.3);
}
if (key == "descentrate") {
return(0.5);
}
if (key == "fullrollangle") {
return(90);
}
if (key == "acceleration") {
return(0.4);
}
if (key == "launchaltitude") {
return(15);
}
if (key == "cameradistance") {
return(250);
}
if (key == "menudistance") {
return(70);
}
if (key == "approachdistance") {
return(40);
}
if (key == "shootingdistance") {
return(500);
}
if (key == "shootingdistancemin") {
return(80);
}
}
}
Symbol 3236 MovieClip [__Packages.rr.conf.plane.ConfB2] Frame 0
class rr.conf.plane.ConfB2
{
function ConfB2 () {
}
static function getValue(key) {
if (key == "availabilitylevel") {
return(8);
}
if (key == "price") {
return(3550);
}
if (key == "type") {
return("AirUnit");
}
if (key == "killlevel") {
return(2700);
}
if (key == "killlevelenemy") {
return(400);
}
if (key == "destroydelay") {
return(400);
}
if (key == "explodesound") {
return("Explosion08_short.wav");
}
if (key == "crashsound") {
return("B2Crash.wav");
}
if (key == "fuelsound") {
return("B2LowFuel-High.wav");
}
if (key == "loopsound") {
return("B2High.wav");
}
if (key == "weight") {
return(8000);
}
if (key == "minspeed") {
return(5);
}
if (key == "maxspeed") {
return(7);
}
if (key == "minspeeddistance") {
return(150);
}
if (key == "maxspeeddistance") {
return(400);
}
if (key == "rotationspeed") {
return(3);
}
if (key == "altitude") {
return(90);
}
if (key == "altitudefatal") {
return(10);
}
if (key == "fuel") {
return(50000);
}
if (key == "fuelconsumption") {
return(0.03);
}
if (key == "ascentrate") {
return(0.5);
}
if (key == "descentrate") {
return(0.9);
}
if (key == "fullrollangle") {
return(135);
}
if (key == "acceleration") {
return(0.15);
}
if (key == "launchdistance") {
return(450);
}
if (key == "cameradistance") {
return(250);
}
if (key == "menudistance") {
return(70);
}
if (key == "approachdistance") {
return(50);
}
if (key == "triangleheight") {
return(250);
}
if (key == "trianglebase") {
return(80);
}
if (key == "shootingdistance") {
return(500);
}
if (key == "shootingdistancemin") {
return(80);
}
}
}
Symbol 3237 MovieClip [__Packages.rr.conf.plane.ConfB52] Frame 0
class rr.conf.plane.ConfB52
{
function ConfB52 () {
}
static function getValue(key) {
if (key == "availabilitylevel") {
return(8);
}
if (key == "price") {
return(5400);
}
if (key == "type") {
return("AirUnit");
}
if (key == "killlevel") {
return(4100);
}
if (key == "killlevelenemy") {
return(850);
}
if (key == "destroydelay") {
return(400);
}
if (key == "explodesound") {
return("Explosion08_short.wav");
}
if (key == "crashsound") {
return("B2Crash.wav");
}
if (key == "fuelsound") {
return("B2LowFuel-High.wav");
}
if (key == "loopsound") {
return("B2High.wav");
}
if (key == "weight") {
return(10000);
}
if (key == "minspeed") {
return(5);
}
if (key == "maxspeed") {
return(6);
}
if (key == "minspeeddistance") {
return(100);
}
if (key == "maxspeeddistance") {
return(200);
}
if (key == "rotationspeed") {
return(1.5);
}
if (key == "altitude") {
return(140);
}
if (key == "altitudefatal") {
return(10);
}
if (key == "fuel") {
return(60000);
}
if (key == "fuelconsumption") {
return(0.03);
}
if (key == "ascentrate") {
return(0.3);
}
if (key == "descentrate") {
return(0.9);
}
if (key == "fullrollangle") {
return(45);
}
if (key == "acceleration") {
return(0.15);
}
if (key == "launchdistance") {
return(500);
}
if (key == "cameradistance") {
return(250);
}
if (key == "menudistance") {
return(120);
}
if (key == "approachdistance") {
return(100);
}
if (key == "triangleheight") {
return(350);
}
if (key == "trianglebase") {
return(100);
}
if (key == "shootingdistance") {
return(500);
}
if (key == "shootingdistancemin") {
return(80);
}
}
}
Symbol 3238 MovieClip [__Packages.rr.conf.plane.ConfBellHuey] Frame 0
class rr.conf.plane.ConfBellHuey
{
function ConfBellHuey () {
}
static function getValue(key) {
if (key == "availabilitylevel") {
return(2);
}
if (key == "price") {
return(1050);
}
if (key == "type") {
return("AirUnit");
}
if (key == "killlevel") {
return(950);
}
if (key == "killlevelenemy") {
return(90);
}
if (key == "destroydelay") {
return(1000);
}
if (key == "explodesound") {
return("Explosion08_short.wav");
}
if (key == "loopsound") {
return("BellHigh.wav");
}
if (key == "weight") {
return(2000);
}
if (key == "minspeed") {
return(-3);
}
if (key == "maxspeed") {
return(5);
}
if (key == "minspeeddistance") {
return(150);
}
if (key == "maxspeeddistance") {
return(300);
}
if (key == "rotationspeed") {
return(6);
}
if (key == "altitude") {
return(30);
}
if (key == "altitudefatal") {
return(1);
}
if (key == "fuel") {
return(8000);
}
if (key == "fuelconsumption") {
return(0.03);
}
if (key == "ascentrate") {
return(0.3);
}
if (key == "descentrate") {
return(0.4);
}
if (key == "fullrollangle") {
return(90);
}
if (key == "acceleration") {
return(0.4);
}
if (key == "launchaltitude") {
return(15);
}
if (key == "cameradistance") {
return(250);
}
if (key == "menudistance") {
return(50);
}
if (key == "approachdistance") {
return(40);
}
if (key == "shootingdistance") {
return(500);
}
if (key == "shootingdistancemin") {
return(80);
}
}
}
Symbol 3239 MovieClip [__Packages.rr.conf.plane.ConfC47] Frame 0
class rr.conf.plane.ConfC47
{
function ConfC47 () {
}
static function getValue(key) {
if (key == "availabilitylevel") {
return(3);
}
if (key == "price") {
return(2400);
}
if (key == "type") {
return("AirUnit");
}
if (key == "killlevel") {
return(1800);
}
if (key == "killlevelenemy") {
return(250);
}
if (key == "destroydelay") {
return(1000);
}
if (key == "explodesound") {
return("Explosion08_short.wav");
}
if (key == "crashsound") {
return("C47Crash.wav");
}
if (key == "fuelsound") {
return("FockeLowFuel-High.wav");
}
if (key == "loopsound") {
return("C47High.wav");
}
if (key == "weight") {
return(8000);
}
if (key == "minspeed") {
return(4);
}
if (key == "maxspeed") {
return(7);
}
if (key == "minspeeddistance") {
return(100);
}
if (key == "maxspeeddistance") {
return(300);
}
if (key == "rotationspeed") {
return(2.5);
}
if (key == "altitude") {
return(70);
}
if (key == "altitudefatal") {
return(10);
}
if (key == "fuel") {
return(18000);
}
if (key == "fuelconsumption") {
return(0.03);
}
if (key == "ascentrate") {
return(0.3);
}
if (key == "descentrate") {
return(0.7);
}
if (key == "fullrollangle") {
return(60);
}
if (key == "acceleration") {
return(0.15);
}
if (key == "launchdistance") {
return(300);
}
if (key == "cameradistance") {
return(350);
}
if (key == "menudistance") {
return(70);
}
if (key == "approachdistance") {
return(50);
}
if (key == "triangleheight") {
return(250);
}
if (key == "trianglebase") {
return(80);
}
if (key == "shootingdistance") {
return(500);
}
if (key == "shootingdistancemin") {
return(80);
}
}
}
Symbol 3240 MovieClip [__Packages.rr.conf.plane.ConfFockeWolf] Frame 0
class rr.conf.plane.ConfFockeWolf
{
function ConfFockeWolf () {
}
static function getValue(key) {
if (key == "availabilitylevel") {
return(1);
}
if (key == "price") {
return(1000);
}
if (key == "type") {
return("AirUnit");
}
if (key == "killlevel") {
return(1000);
}
if (key == "killlevelenemy") {
return(100);
}
if (key == "destroydelay") {
return(1000);
}
if (key == "explodesound") {
return("Explosion08_short.wav");
}
if (key == "crashsound") {
return("FockeCrash.wav");
}
if (key == "fuelsound") {
return("FockeLowFuel-High.wav");
}
if (key == "loopsound") {
return("FockeHigh.wav");
}
if (key == "loopingsound") {
return("FockeLoop.wav");
}
if (key == "weight") {
return(5000);
}
if (key == "minspeed") {
return(4);
}
if (key == "maxspeed") {
return(6);
}
if (key == "minspeeddistance") {
return(100);
}
if (key == "maxspeeddistance") {
return(300);
}
if (key == "liftspeed") {
return(300);
}
if (key == "rotationspeed") {
return(3.8);
}
if (key == "altitude") {
return(50);
}
if (key == "altitudefatal") {
return(10);
}
if (key == "fuel") {
return(8000);
}
if (key == "fuelconsumption") {
return(0.03);
}
if (key == "ascentrate") {
return(0.3);
}
if (key == "descentrate") {
return(0.6);
}
if (key == "fullrollangle") {
return(90);
}
if (key == "acceleration") {
return(0.15);
}
if (key == "launchdistance") {
return(250);
}
if (key == "cameradistance") {
return(350);
}
if (key == "menudistance") {
return(70);
}
if (key == "approachdistance") {
return(0);
}
if (key == "triangleheight") {
return(250);
}
if (key == "trianglebase") {
return(80);
}
if (key == "shootingdistance") {
return(500);
}
if (key == "shootingdistancemin") {
return(80);
}
}
}
Symbol 3241 MovieClip [__Packages.rr.conf.plane.ConfMesserSchmidt] Frame 0
class rr.conf.plane.ConfMesserSchmidt
{
function ConfMesserSchmidt () {
}
static function getValue(key) {
if (key == "availabilitylevel") {
return(4);
}
if (key == "price") {
return(1400);
}
if (key == "type") {
return("AirUnit");
}
if (key == "killlevel") {
return(1200);
}
if (key == "killlevelenemy") {
return(200);
}
if (key == "destroydelay") {
return(1000);
}
if (key == "explodesound") {
return("Explosion08_short.wav");
}
if (key == "crashsound") {
return("MesserCrash.wav");
}
if (key == "fuelsound") {
return("MesserLowFuel-High.wav");
}
if (key == "loopsound") {
return("MesserHigh.wav");
}
if (key == "loopingsound") {
return("MesserLoop.wav");
}
if (key == "weight") {
return(6000);
}
if (key == "minspeed") {
return(4);
}
if (key == "maxspeed") {
return(6);
}
if (key == "minspeeddistance") {
return(100);
}
if (key == "maxspeeddistance") {
return(300);
}
if (key == "rotationspeed") {
return(3.8);
}
if (key == "altitude") {
return(50);
}
if (key == "altitudefatal") {
return(10);
}
if (key == "fuel") {
return(10000);
}
if (key == "fuelconsumption") {
return(0.03);
}
if (key == "ascentrate") {
return(0.3);
}
if (key == "descentrate") {
return(0.6);
}
if (key == "fullrollangle") {
return(65);
}
if (key == "acceleration") {
return(0.15);
}
if (key == "launchdistance") {
return(250);
}
if (key == "cameradistance") {
return(350);
}
if (key == "menudistance") {
return(70);
}
if (key == "approachdistance") {
return(0);
}
if (key == "triangleheight") {
return(250);
}
if (key == "trianglebase") {
return(80);
}
if (key == "shootingdistance") {
return(500);
}
if (key == "shootingdistancemin") {
return(80);
}
}
}
Symbol 3242 MovieClip [__Packages.rr.conf.plane.ammo.ConfAirMissile] Frame 0
class rr.conf.plane.ammo.ConfAirMissile
{
function ConfAirMissile () {
}
static function getValue(key) {
if (key == "displayname") {
return("Air to Air Missile");
}
if (key == "availabilitylevel") {
return(1);
}
if (key == "price") {
return(600);
}
if (key == "count") {
return(20);
}
if (key == "unitweight") {
return(100);
}
if (key == "colorgroup") {
return("orange");
}
if (key == "upgradelevel") {
return(1);
}
if (key == "shootinginterval") {
return(500);
}
if (key == "maxspeed") {
return(40);
}
if (key == "acceleration") {
return(0.9);
}
if (key == "minrange") {
return(30);
}
if (key == "maxrange") {
return(400);
}
if (key == "destroydelay") {
return(1500);
}
if (key == "explosiondamage") {
return(100);
}
if (key == "explosionradius") {
return(100);
}
if (key == "startsound") {
return("Missile firing2_short.wav");
}
if (key == "sound") {
return("Missile1_loop.wav");
}
if (key == "explodesound") {
return("Explosion06_short.wav");
}
}
}
Symbol 3243 MovieClip [__Packages.rr.conf.plane.ammo.ConfAirSeeker] Frame 0
class rr.conf.plane.ammo.ConfAirSeeker
{
function ConfAirSeeker () {
}
static function getValue(key) {
if (key == "displayname") {
return("Air to Air Heatseeker");
}
if (key == "availabilitylevel") {
return(3);
}
if (key == "price") {
return(1500);
}
if (key == "count") {
return(10);
}
if (key == "unitweight") {
return(150);
}
if (key == "colorgroup") {
return("orange");
}
if (key == "upgradelevel") {
return(2);
}
if (key == "shootinginterval") {
return(500);
}
if (key == "maxspeed") {
return(20);
}
if (key == "rotationspeed") {
return(4);
}
if (key == "acceleration") {
return(0.3);
}
if (key == "minrange") {
return(30);
}
if (key == "maxrange") {
return(1200);
}
if (key == "destroydelay") {
return(1500);
}
if (key == "explosiondamage") {
return(200);
}
if (key == "explosionradius") {
return(100);
}
if (key == "startsound") {
return("Missile firing2_short.wav");
}
if (key == "sound") {
return("Missile1_loop.wav");
}
if (key == "explodesound") {
return("Explosion06_short.wav");
}
}
}
Symbol 3244 MovieClip [__Packages.rr.conf.plane.ammo.ConfGroundMissile] Frame 0
class rr.conf.plane.ammo.ConfGroundMissile
{
function ConfGroundMissile () {
}
static function getValue(key) {
if (key == "displayname") {
return("Air to Ground Missile");
}
if (key == "availabilitylevel") {
return(1);
}
if (key == "price") {
return(500);
}
if (key == "count") {
return(20);
}
if (key == "unitweight") {
return(100);
}
if (key == "colorgroup") {
return("orange");
}
if (key == "upgradelevel") {
return(1);
}
if (key == "shootinginterval") {
return(500);
}
if (key == "maxspeed") {
return(40);
}
if (key == "acceleration") {
return(0.9);
}
if (key == "minrange") {
return(50);
}
if (key == "maxrange") {
return(500);
}
if (key == "destroydelay") {
return(1500);
}
if (key == "explosiondamage") {
return(300);
}
if (key == "explosionradius") {
return(100);
}
if (key == "startsound") {
return("Missile firing2_short.wav");
}
if (key == "sound") {
return("Missile1_loop.wav");
}
if (key == "explodesound") {
return("Explosion06_short.wav");
}
}
}
Symbol 3245 MovieClip [__Packages.rr.conf.plane.ammo.ConfGroundSeeker] Frame 0
class rr.conf.plane.ammo.ConfGroundSeeker
{
function ConfGroundSeeker () {
}
static function getValue(key) {
if (key == "displayname") {
return("Air to Ground Heatseeker");
}
if (key == "availabilitylevel") {
return(2);
}
if (key == "price") {
return(1300);
}
if (key == "count") {
return(10);
}
if (key == "unitweight") {
return(150);
}
if (key == "colorgroup") {
return("orange");
}
if (key == "upgradelevel") {
return(2);
}
if (key == "shootinginterval") {
return(500);
}
if (key == "maxspeed") {
return(10);
}
if (key == "rotationspeed") {
return(6);
}
if (key == "acceleration") {
return(0.3);
}
if (key == "minrange") {
return(50);
}
if (key == "maxrange") {
return(1200);
}
if (key == "destroydelay") {
return(1500);
}
if (key == "explosiondamage") {
return(400);
}
if (key == "explosionradius") {
return(100);
}
if (key == "startsound") {
return("Missile firing2_short.wav");
}
if (key == "sound") {
return("Missile1_loop.wav");
}
if (key == "explodesound") {
return("Explosion06_short.wav");
}
}
}
Symbol 3246 MovieClip [__Packages.rr.conf.plane.ammo.ConfBombNormal] Frame 0
class rr.conf.plane.ammo.ConfBombNormal
{
function ConfBombNormal () {
}
static function getValue(key) {
if (key == "displayname") {
return("Normal Bombs");
}
if (key == "availabilitylevel") {
return(1);
}
if (key == "price") {
return(750);
}
if (key == "count") {
return(8);
}
if (key == "unitweight") {
return(200);
}
if (key == "colorgroup") {
return("red");
}
if (key == "upgradelevel") {
return(1);
}
if (key == "shootinginterval") {
return(1000);
}
if (key == "explosiondamage") {
return(400);
}
if (key == "explosionradius") {
return(150);
}
if (key == "explodesound") {
return("Explosion03_short.wav");
}
if (key == "destroydelay") {
return(1500);
}
}
}
Symbol 3247 MovieClip [__Packages.rr.conf.plane.ammo.ConfBombHeavy] Frame 0
class rr.conf.plane.ammo.ConfBombHeavy
{
function ConfBombHeavy () {
}
static function getValue(key) {
if (key == "displayname") {
return("Heavy Bombs");
}
if (key == "availabilitylevel") {
return(5);
}
if (key == "price") {
return(950);
}
if (key == "count") {
return(6);
}
if (key == "unitweight") {
return(350);
}
if (key == "colorgroup") {
return("red");
}
if (key == "upgradelevel") {
return(2);
}
if (key == "shootinginterval") {
return(1000);
}
if (key == "explosiondamage") {
return(600);
}
if (key == "explosionradius") {
return(250);
}
if (key == "explodesound") {
return("Explosion09_short.wav");
}
if (key == "destroydelay") {
return(1500);
}
}
}
Symbol 3248 MovieClip [__Packages.rr.conf.plane.ammo.ConfBombExtreme] Frame 0
class rr.conf.plane.ammo.ConfBombExtreme
{
function ConfBombExtreme () {
}
static function getValue(key) {
if (key == "displayname") {
return("Extreme Bombs");
}
if (key == "availabilitylevel") {
return(8);
}
if (key == "price") {
return(1400);
}
if (key == "count") {
return(4);
}
if (key == "unitweight") {
return(500);
}
if (key == "colorgroup") {
return("red");
}
if (key == "upgradelevel") {
return(3);
}
if (key == "shootinginterval") {
return(1000);
}
if (key == "explosiondamage") {
return(900);
}
if (key == "explosionradius") {
return(500);
}
if (key == "explodesound") {
return("ExplosionBig06_short.wav");
}
if (key == "destroydelay") {
return(1500);
}
}
}
Symbol 3249 MovieClip [__Packages.rr.conf.plane.ammo.ConfGunSingle] Frame 0
class rr.conf.plane.ammo.ConfGunSingle
{
function ConfGunSingle () {
}
static function getValue(key) {
if (key == "displayname") {
return("Single MachineGun");
}
if (key == "availabilitylevel") {
return(1);
}
if (key == "price") {
return(1000);
}
if (key == "count") {
return(1);
}
if (key == "unitweight") {
return(50);
}
if (key == "colorgroup") {
return("blue");
}
if (key == "upgradelevel") {
return(1);
}
if (key == "shootinginterval") {
return(500);
}
if (key == "gunsound") {
return("Gun light.wav");
}
if (key == "enemypauseinterval") {
return(3000);
}
if (key == "enemypauselength") {
return(2000);
}
}
}
Symbol 3250 MovieClip [__Packages.rr.conf.plane.ammo.ConfGunDouble] Frame 0
class rr.conf.plane.ammo.ConfGunDouble
{
function ConfGunDouble () {
}
static function getValue(key) {
if (key == "displayname") {
return("Double MachineGun");
}
if (key == "availabilitylevel") {
return(2);
}
if (key == "price") {
return(1700);
}
if (key == "count") {
return(1);
}
if (key == "unitweight") {
return(100);
}
if (key == "colorgroup") {
return("blue");
}
if (key == "upgradelevel") {
return(2);
}
if (key == "shootinginterval") {
return(450);
}
if (key == "gunsound") {
return("Gun medium.wav");
}
if (key == "enemypauseinterval") {
return(3000);
}
if (key == "enemypauselength") {
return(2000);
}
}
}
Symbol 3251 MovieClip [__Packages.rr.conf.plane.ammo.ConfGunGatling] Frame 0
class rr.conf.plane.ammo.ConfGunGatling
{
function ConfGunGatling () {
}
static function getValue(key) {
if (key == "displayname") {
return("Gatling MachineGun");
}
if (key == "availabilitylevel") {
return(4);
}
if (key == "price") {
return(2300);
}
if (key == "count") {
return(1);
}
if (key == "unitweight") {
return(200);
}
if (key == "colorgroup") {
return("blue");
}
if (key == "upgradelevel") {
return(3);
}
if (key == "shootinginterval") {
return(400);
}
if (key == "gunsound") {
return("Gun heavy.wav");
}
if (key == "enemypauseinterval") {
return(3000);
}
if (key == "enemypauselength") {
return(2000);
}
}
}
Symbol 3252 MovieClip [__Packages.rr.conf.plane.ammo.ConfPropaganda] Frame 0
class rr.conf.plane.ammo.ConfPropaganda
{
function ConfPropaganda () {
}
static function getValue(key) {
if (key == "displayname") {
return("Propaganda");
}
if (key == "availabilitylevel") {
return(1);
}
if (key == "price") {
return(1100);
}
if (key == "count") {
return(50);
}
if (key == "unitweight") {
return(10);
}
if (key == "colorgroup") {
return("green");
}
if (key == "shootinginterval") {
return(200);
}
if (key == "destroydelay") {
return(1500);
}
if (key == "propagandapower") {
return(250);
}
if (key == "propagandaradius") {
return(150);
}
}
}
Symbol 3253 MovieClip [__Packages.rr.conf.plane.ammo.ConfEMPBomb] Frame 0
class rr.conf.plane.ammo.ConfEMPBomb
{
function ConfEMPBomb () {
}
static function getValue(key) {
if (key == "displayname") {
return("EMP Bomb");
}
if (key == "availabilitylevel") {
return(8);
}
if (key == "price") {
return(1450);
}
if (key == "count") {
return(5);
}
if (key == "unitweight") {
return(250);
}
if (key == "colorgroup") {
return("green");
}
if (key == "shootinginterval") {
return(1000);
}
if (key == "stundistance") {
return(650);
}
if (key == "minstuntime") {
return(10000);
}
if (key == "maxstuntime") {
return(25000);
}
if (key == "explodesound") {
return("AirplaneSkid1.wav");
}
if (key == "destroydelay") {
return(1500);
}
}
}
Symbol 3254 MovieClip [__Packages.rr.conf.plane.ammo.ConfFuelBomb] Frame 0
class rr.conf.plane.ammo.ConfFuelBomb
{
function ConfFuelBomb () {
}
static function getValue(key) {
if (key == "displayname") {
return("Fuel Bomb");
}
if (key == "availabilitylevel") {
return(8);
}
if (key == "price") {
return(1800);
}
if (key == "count") {
return(4);
}
if (key == "unitweight") {
return(500);
}
if (key == "colorgroup") {
return("green");
}
if (key == "shootinginterval") {
return(1000);
}
if (key == "explosiondamage") {
return(800);
}
if (key == "explosionradius") {
return(300);
}
if (key == "explodesound") {
return("Explosion07min_short.wav");
}
if (key == "destroydelay") {
return(1500);
}
}
}
Symbol 3255 MovieClip [__Packages.rr.conf.plane.ammo.ConfCarpetBomb] Frame 0
class rr.conf.plane.ammo.ConfCarpetBomb
{
function ConfCarpetBomb () {
}
static function getValue(key) {
if (key == "displayname") {
return("CarpetBomb");
}
if (key == "availabilitylevel") {
return(8);
}
if (key == "price") {
return(2200);
}
if (key == "count") {
return(4);
}
if (key == "unitweight") {
return(400);
}
if (key == "colorgroup") {
return("green");
}
if (key == "shootinginterval") {
return(1000);
}
if (key == "explosiondamage") {
return(600);
}
if (key == "explosionradius") {
return(200);
}
if (key == "explodesound") {
return("Explosion03_short.wav");
}
if (key == "destroydelay") {
return(2500);
}
}
}
Symbol 3256 MovieClip [__Packages.rr.conf.plane.ammo.ConfNuclearBomb] Frame 0
class rr.conf.plane.ammo.ConfNuclearBomb
{
function ConfNuclearBomb () {
}
static function getValue(key) {
if (key == "displayname") {
return("Nuclear Bomb");
}
if (key == "availabilitylevel") {
return(8);
}
if (key == "price") {
return(5000);
}
if (key == "count") {
return(2);
}
if (key == "unitweight") {
return(550);
}
if (key == "colorgroup") {
return("green");
}
if (key == "shootinginterval") {
return(1000);
}
if (key == "explosiondamage") {
return(5000);
}
if (key == "explosionradius") {
return(1000);
}
if (key == "explodesound") {
return("ExplosionBig06_short.wav");
}
if (key == "destroydelay") {
return(2500);
}
}
}
Symbol 3257 MovieClip [__Packages.rr.conf.plane.ammo.ConfBulletGunSingle] Frame 0
class rr.conf.plane.ammo.ConfBulletGunSingle
{
function ConfBulletGunSingle () {
}
static function getValue(key) {
if (key == "speed") {
return(40);
}
if (key == "minrange") {
return(50);
}
if (key == "maxrange") {
return(300);
}
if (key == "destroydelay") {
return(540);
}
if (key == "explosiondamage") {
return(25);
}
if (key == "explodesound") {
return("Explosion06_short.wav");
}
}
}
Symbol 3258 MovieClip [__Packages.rr.conf.plane.ammo.ConfBulletGunDouble] Frame 0
class rr.conf.plane.ammo.ConfBulletGunDouble
{
function ConfBulletGunDouble () {
}
static function getValue(key) {
if (key == "speed") {
return(40);
}
if (key == "minrange") {
return(50);
}
if (key == "maxrange") {
return(300);
}
if (key == "destroydelay") {
return(540);
}
if (key == "explosiondamage") {
return(50);
}
if (key == "explodesound") {
return("Explosion06_short.wav");
}
}
}
Symbol 3259 MovieClip [__Packages.rr.conf.plane.ammo.ConfBulletGunGatling] Frame 0
class rr.conf.plane.ammo.ConfBulletGunGatling
{
function ConfBulletGunGatling () {
}
static function getValue(key) {
if (key == "speed") {
return(40);
}
if (key == "minrange") {
return(50);
}
if (key == "maxrange") {
return(300);
}
if (key == "destroydelay") {
return(540);
}
if (key == "explosiondamage") {
return(100);
}
if (key == "explodesound") {
return("Explosion06_short.wav");
}
}
}
Symbol 3260 MovieClip [__Packages.rr.conf.train.ConfSaddleTank] Frame 0
class rr.conf.train.ConfSaddleTank
{
function ConfSaddleTank () {
}
static function getValue(key) {
if (key == "maxspeed") {
return(110);
}
if (key == "minspeed") {
return(-85);
}
if (key == "length") {
return(47);
}
if (key == "acceleration") {
return(0.01);
}
if (key == "accelerationfullstop") {
return(0.05);
}
if (key == "destroydelay") {
return(1000);
}
if (key == "gunsounds") {
return(["GunCannon6_short.wav"]);
}
if (key == "explodesound") {
return("Explosion08_short.wav");
}
if (key == "hornsound") {
return("Train 2and3 Horn.wav");
}
if (key == "fueltype") {
return("coal");
}
if (key == "killlevel") {
return(700);
}
if (key == "shootingdistance") {
return(350);
}
if (key == "shootinginterval1") {
return(1000);
}
if (key == "rotationspeed1") {
return(40);
}
if (key == "rotationspeedmin") {
return(10);
}
if (key == "ammospeed") {
return(20);
}
if (key == "ammodestroydelay") {
return(210);
}
if (key == "ammorange") {
return(350);
}
if (key == "ammodamage") {
return(10);
}
}
}
Symbol 3261 MovieClip [__Packages.rr.conf.train.ConfRhino] Frame 0
class rr.conf.train.ConfRhino
{
function ConfRhino () {
}
static function getValue(key) {
if (key == "maxspeed") {
return(140);
}
if (key == "minspeed") {
return(-125);
}
if (key == "length") {
return(84);
}
if (key == "acceleration") {
return(0.02);
}
if (key == "accelerationfullstop") {
return(0.05);
}
if (key == "destroydelay") {
return(1000);
}
if (key == "gunsounds") {
return(["GunCannon4_short.wav", "GunCannon6_short.wav"]);
}
if (key == "explodesound") {
return("Explosion08_short.wav");
}
if (key == "hornsound") {
return("Train 2and3 Horn.wav");
}
if (key == "loopsound") {
return("Train 5.wav");
}
if (key == "fueltype") {
return("electric");
}
if (key == "killlevel") {
return(900);
}
if (key == "shootingdistance") {
return(400);
}
if (key == "shootinginterval1") {
return(800);
}
if (key == "shootinginterval2") {
return(700);
}
if (key == "rotationspeed1") {
return(40);
}
if (key == "rotationspeed2") {
return(60);
}
if (key == "ammospeed") {
return(20);
}
if (key == "ammodestroydelay") {
return(210);
}
if (key == "ammorange") {
return(300);
}
if (key == "ammodamage") {
return(20);
}
}
}
Symbol 3262 MovieClip [__Packages.rr.conf.train.ConfSuperChief] Frame 0
class rr.conf.train.ConfSuperChief
{
function ConfSuperChief () {
}
static function getValue(key) {
if (key == "maxspeed") {
return(210);
}
if (key == "minspeed") {
return(-180);
}
if (key == "length") {
return(82);
}
if (key == "acceleration") {
return(0.04);
}
if (key == "accelerationfullstop") {
return(0.06);
}
if (key == "destroydelay") {
return(1000);
}
if (key == "gunsounds") {
return(["GunCannon4_short.wav", "GunCannon6_short.wav"]);
}
if (key == "explodesound") {
return("Explosion08_short.wav");
}
if (key == "hornsound") {
return("Train 2and3 Horn.wav");
}
if (key == "loopsound") {
return("Train 5.wav");
}
if (key == "fueltype") {
return("oil");
}
if (key == "killlevel") {
return(1400);
}
if (key == "shootingdistance") {
return(400);
}
if (key == "shootinginterval1") {
return(800);
}
if (key == "shootinginterval2") {
return(700);
}
if (key == "rotationspeed1") {
return(40);
}
if (key == "rotationspeed2") {
return(60);
}
if (key == "ammospeed") {
return(20);
}
if (key == "ammodestroydelay") {
return(210);
}
if (key == "ammorange") {
return(300);
}
if (key == "ammodamage") {
return(30);
}
}
}
Symbol 3263 MovieClip [__Packages.rr.conf.train.ConfSuperChiefWagon] Frame 0
class rr.conf.train.ConfSuperChiefWagon
{
function ConfSuperChiefWagon () {
}
static function getValue(key) {
if (key == "spaces") {
return(2);
}
if (key == "length") {
return(40);
}
if (key == "weight") {
return(0);
}
if (key == "gunsounds") {
return(["GunCannon4_short.wav", "GunCannon6_short.wav"]);
}
if (key == "explodesound") {
return("Explosion08min_short.wav");
}
if (key == "shootinginterval1") {
return(700);
}
if (key == "shootinginterval2") {
return(800);
}
if (key == "rotationspeed1") {
return(40);
}
if (key == "rotationspeed2") {
return(60);
}
if (key == "destroydelay") {
return(1000);
}
}
}
Symbol 3264 MovieClip [__Packages.rr.conf.train.ConfDragon] Frame 0
class rr.conf.train.ConfDragon
{
function ConfDragon () {
}
static function getValue(key) {
if (key == "maxspeed") {
return(180);
}
if (key == "minspeed") {
return(-150);
}
if (key == "length") {
return(89);
}
if (key == "acceleration") {
return(0.03);
}
if (key == "accelerationfullstop") {
return(0.05);
}
if (key == "destroydelay") {
return(1100);
}
if (key == "gunsounds") {
return(["GunCannon4_short.wav", "GunCannon6_short.wav"]);
}
if (key == "explodesound") {
return("Explosion08_short.wav");
}
if (key == "hornsound") {
return("Train 2and3 Horn.wav");
}
if (key == "loopsound") {
return("Train 5.wav");
}
if (key == "fueltype") {
return("oil");
}
if (key == "killlevel") {
return(1800);
}
if (key == "shootingdistance") {
return(500);
}
if (key == "shootinginterval1") {
return(700);
}
if (key == "shootinginterval2") {
return(750);
}
if (key == "rotationspeed1") {
return(40);
}
if (key == "rotationspeed2") {
return(60);
}
if (key == "ammospeed") {
return(20);
}
if (key == "ammodestroydelay") {
return(210);
}
if (key == "ammorange") {
return(300);
}
if (key == "ammodamage") {
return(60);
}
}
}
Symbol 3265 MovieClip [__Packages.rr.conf.train.ConfPennsylvania] Frame 0
class rr.conf.train.ConfPennsylvania
{
function ConfPennsylvania () {
}
static function getValue(key) {
if (key == "maxspeed") {
return(195);
}
if (key == "minspeed") {
return(-160);
}
if (key == "length") {
return(99);
}
if (key == "acceleration") {
return(0.04);
}
if (key == "accelerationfullstop") {
return(0.06);
}
if (key == "destroydelay") {
return(1000);
}
if (key == "gunsounds") {
return(["GunCannon4_short.wav", "GunCannon6_short.wav"]);
}
if (key == "explodesound") {
return("Explosion08_short.wav");
}
if (key == "hornsound") {
return("Train 2and3 Horn.wav");
}
if (key == "loopsound") {
return("Train 5.wav");
}
if (key == "fueltype") {
return("electric");
}
if (key == "killlevel") {
return(1200);
}
if (key == "shootingdistance") {
return(400);
}
if (key == "shootinginterval1") {
return(1200);
}
if (key == "shootinginterval2") {
return(1400);
}
if (key == "rotationspeed1") {
return(80);
}
if (key == "rotationspeed2") {
return(100);
}
if (key == "ammospeed") {
return(20);
}
if (key == "ammodestroydelay") {
return(210);
}
if (key == "ammorange") {
return(300);
}
if (key == "ammodamage") {
return(45);
}
}
}
Symbol 3266 MovieClip [__Packages.rr.conf.train.ConfSmallCannon] Frame 0
class rr.conf.train.ConfSmallCannon
{
function ConfSmallCannon () {
}
static function getValue(key) {
if (key == "spaces") {
return(1);
}
if (key == "feelerradius") {
return(22);
}
if (key == "barrellength") {
return(20);
}
if (key == "killlevel") {
return(400);
}
if (key == "gunsound") {
return("GunCannon11_short.wav");
}
if (key == "explodesound") {
return("Explosion08_short.wav");
}
if (key == "destroydelay") {
return(1400);
}
if (key == "rotationspeed") {
return(20);
}
if (key == "rotationspeedmin") {
return(10);
}
if (key == "shootingdistance") {
return(400);
}
if (key == "shootingdistancemin") {
return(50);
}
if (key == "shootinginterval") {
return(2500);
}
if (key == "detectiondistance") {
return(450);
}
if (key == "targettime") {
return(5000);
}
if (key == "ammospeed") {
return(40);
}
if (key == "ammodestroydelay") {
return(540);
}
if (key == "ammorange") {
return(300);
}
if (key == "ammodamage") {
return(25);
}
}
}
Symbol 3267 MovieClip [__Packages.rr.conf.train.ConfMediumCannon] Frame 0
class rr.conf.train.ConfMediumCannon
{
function ConfMediumCannon () {
}
static function getValue(key) {
if (key == "spaces") {
return(2);
}
if (key == "feelerradius") {
return(22);
}
if (key == "barrellength") {
return(20);
}
if (key == "killlevel") {
return(650);
}
if (key == "gunsound") {
return("GunCannon3_short.wav");
}
if (key == "explodesound") {
return("Explosion10_short.wav");
}
if (key == "destroydelay") {
return(1400);
}
if (key == "rotationspeed") {
return(30);
}
if (key == "rotationspeedmin") {
return(10);
}
if (key == "shootingdistance") {
return(450);
}
if (key == "shootingdistancemin") {
return(150);
}
if (key == "shootinginterval") {
return(3000);
}
if (key == "detectiondistance") {
return(500);
}
if (key == "targettime") {
return(5000);
}
if (key == "ammospeed") {
return(30);
}
if (key == "ammodestroydelay") {
return(540);
}
if (key == "ammorange") {
return(450);
}
if (key == "ammodamage") {
return(45);
}
}
}
Symbol 3268 MovieClip [__Packages.rr.conf.train.ConfHeatseeker] Frame 0
class rr.conf.train.ConfHeatseeker
{
function ConfHeatseeker () {
}
static function getValue(key) {
if (key == "range") {
return(2000);
}
if (key == "detectiondistance") {
return(600);
}
if (key == "mincurve") {
return(4);
}
if (key == "maxcurve") {
return(6);
}
if (key == "maxspeed") {
return(10);
}
if (key == "acceleration") {
return(0.3);
}
if (key == "ammoduration") {
return(1040);
}
if (key == "startsound") {
return(["Missile firing3_short.wav"]);
}
if (key == "sound") {
return(["Missile3_loop.wav"]);
}
if (key == "explodesound") {
return(["Explosion07_short.wav"]);
}
if (key == "explosiondamage") {
return(40);
}
if (key == "explosionradius") {
return(130);
}
}
}
Symbol 3269 MovieClip [__Packages.rr.conf.train.ConfSmallFastCannon] Frame 0
class rr.conf.train.ConfSmallFastCannon
{
function ConfSmallFastCannon () {
}
static function getValue(key) {
if (key == "spaces") {
return(1);
}
if (key == "feelerradius") {
return(22);
}
if (key == "barrellength") {
return(20);
}
if (key == "killlevel") {
return(500);
}
if (key == "gunsound") {
return("GunCannon11_short.wav");
}
if (key == "explodesound") {
return("Explosion08_short.wav");
}
if (key == "destroydelay") {
return(1400);
}
if (key == "rotationspeed") {
return(20);
}
if (key == "rotationspeedmin") {
return(10);
}
if (key == "shootingdistance") {
return(350);
}
if (key == "shootingdistancemin") {
return(50);
}
if (key == "shootinginterval") {
return(3500);
}
if (key == "detectiondistance") {
return(500);
}
if (key == "targettime") {
return(5000);
}
if (key == "ammospeed") {
return(50);
}
if (key == "ammodestroydelay") {
return(540);
}
if (key == "ammorange") {
return(350);
}
if (key == "ammodamage") {
return(15);
}
}
}
Symbol 3270 MovieClip [__Packages.rr.conf.train.ConfRocketLauncher] Frame 0
class rr.conf.train.ConfRocketLauncher
{
function ConfRocketLauncher () {
}
static function getValue(key) {
if (key == "spaces") {
return(1);
}
if (key == "feelerradius") {
return(20);
}
if (key == "barrellength") {
return(20);
}
if (key == "killlevel") {
return(600);
}
if (key == "gunsound") {
return("GunCannon11_short.wav");
}
if (key == "explodesound") {
return("Explosion08_short.wav");
}
if (key == "destroydelay") {
return(1500);
}
if (key == "rotationspeed") {
return(20);
}
if (key == "rotationspeedmin") {
return(10);
}
if (key == "shootingdistance") {
return(500);
}
if (key == "shootinginterval") {
return(10000);
}
if (key == "detectiondistance") {
return(550);
}
if (key == "targettime") {
return(5000);
}
if (key == "ammomaxspeed") {
return(20);
}
if (key == "ammorotationspeed") {
return(6);
}
if (key == "ammoacceleration") {
return(0.3);
}
if (key == "ammominrange") {
return(50);
}
if (key == "ammomaxrange") {
return(1200);
}
if (key == "ammodestroydelay") {
return(1500);
}
if (key == "ammoexplosiondamage") {
return(50);
}
if (key == "ammoexplosionradius") {
return(100);
}
if (key == "ammostartsound") {
return("Missile firing2_short.wav");
}
if (key == "ammosound") {
return("Missile1_loop.wav");
}
if (key == "ammoexplodesound") {
return("Explosion06_short.wav");
}
}
}
Symbol 3271 MovieClip [__Packages.rr.conf.train.ConfWagon1] Frame 0
class rr.conf.train.ConfWagon1
{
function ConfWagon1 () {
}
static function getValue(key) {
if (key == "price") {
return(400);
}
if (key == "spaces") {
return(1);
}
if (key == "destroydelay") {
return(1200);
}
if (key == "length") {
return(21);
}
if (key == "killlevel") {
return(1000);
}
if (key == "explodesound") {
return("Explosion08_short.wav");
}
}
}
Symbol 3272 MovieClip [__Packages.rr.conf.train.ConfWagon2] Frame 0
class rr.conf.train.ConfWagon2
{
function ConfWagon2 () {
}
static function getValue(key) {
if (key == "spaces") {
return(2);
}
if (key == "destroydelay") {
return(1200);
}
if (key == "length") {
return(37);
}
if (key == "killlevel") {
return(1100);
}
if (key == "explodesound") {
return("Explosion08_short.wav");
}
}
}
Symbol 3273 MovieClip [__Packages.rr.conf.train.ConfWagon3] Frame 0
class rr.conf.train.ConfWagon3
{
function ConfWagon3 () {
}
static function getValue(key) {
if (key == "spaces") {
return(3);
}
if (key == "destroydelay") {
return(1200);
}
if (key == "length") {
return(52);
}
if (key == "killlevel") {
return(1200);
}
if (key == "explodesound") {
return("Explosion08_short.wav");
}
}
}
Symbol 3274 MovieClip [__Packages.rr.conf.train.ConfWagon4] Frame 0
class rr.conf.train.ConfWagon4
{
function ConfWagon4 () {
}
static function getValue(key) {
if (key == "spaces") {
return(4);
}
if (key == "destroydelay") {
return(1200);
}
if (key == "length") {
return(72);
}
if (key == "height") {
return(16);
}
if (key == "killlevel") {
return(1400);
}
if (key == "explodesound") {
return("Explosion08_short.wav");
}
}
}
Symbol 3275 MovieClip [__Packages.rr.conf.train.ConfPassenger] Frame 0
class rr.conf.train.ConfPassenger
{
function ConfPassenger () {
}
static function getValue(key) {
if (key == "destroydelay") {
return(1200);
}
if (key == "length") {
return(54);
}
if (key == "killlevel") {
return(1200);
}
if (key == "explodesound") {
return("Explosion08_short.wav");
}
}
}
Symbol 3276 MovieClip [__Packages.rr.conf.train.ConfPassengerArmored] Frame 0
class rr.conf.train.ConfPassengerArmored
{
function ConfPassengerArmored () {
}
static function getValue(key) {
if (key == "destroydelay") {
return(1500);
}
if (key == "length") {
return(54);
}
if (key == "killlevel") {
return(2000);
}
if (key == "explodesound") {
return("Explosion08_short.wav");
}
}
}
Symbol 3277 MovieClip [__Packages.rr.conf.train.ConfABomb] Frame 0
class rr.conf.train.ConfABomb
{
function ConfABomb () {
}
static function getValue(key) {
if (key == "destroydelay") {
return(1500);
}
if (key == "length") {
return(37);
}
if (key == "killlevel") {
return(1500);
}
if (key == "explodesound") {
return("Explosion08_short.wav");
}
}
}
Symbol 3278 MovieClip [__Packages.rr.conf.train.ConfTankTrailer] Frame 0
class rr.conf.train.ConfTankTrailer
{
function ConfTankTrailer () {
}
static function getValue(key) {
if (key == "destroydelay") {
return(1000);
}
if (key == "length") {
return(74);
}
if (key == "killlevel") {
return(1200);
}
if (key == "explodesound") {
return("Explosion08_short.wav");
}
}
}
Symbol 3279 MovieClip [__Packages.rr.conf.enemy.ConfBasilisk] Frame 0
class rr.conf.enemy.ConfBasilisk
{
function ConfBasilisk () {
}
static function getValue(key) {
if (key == "unittype") {
return("GroundUnit");
}
if (key == "confcode") {
return("bl");
}
if (key == "displayname") {
return("Basilisk");
}
if (key == "hostility") {
return(1000);
}
if (key == "detectionDistance") {
return(500);
}
if (key == "shootingDistance") {
return(400);
}
if (key == "shootingInterval") {
return(5000);
}
if (key == "rotationSpeed") {
return(10);
}
if (key == "killlevel") {
return(550);
}
if (key == "destroydelay") {
return(1000);
}
if (key == "gunsound") {
return("GunCannon3_short.wav");
}
if (key == "explodesound") {
return("Explosion09_short.wav");
}
if (key == "ammospeed") {
return(20);
}
if (key == "ammoduration") {
return(1000);
}
if (key == "ammoAccuracy") {
return(70);
}
if (key == "ammodamage") {
return(70);
}
if (key == "explosionradius") {
return(150);
}
if (key == "ammosound") {
return("Explosion08_short.wav");
}
}
}
Symbol 3280 MovieClip [__Packages.rr.conf.enemy.ConfPotTank] Frame 0
class rr.conf.enemy.ConfPotTank
{
function ConfPotTank () {
}
static function getValue(key) {
if (key == "unittype") {
return("GroundUnit");
}
if (key == "confcode") {
return("pt");
}
if (key == "displayname") {
return("Pot Tank");
}
if (key == "hostility") {
return(800);
}
if (key == "maxSpeed") {
return(2);
}
if (key == "curve") {
return(4);
}
if (key == "acceleration") {
return(0.1);
}
if (key == "detectionDistance") {
return(400);
}
if (key == "shootingDistance") {
return(320);
}
if (key == "shootingInterval") {
return(2000);
}
if (key == "followDistance") {
return(50);
}
if (key == "rotationSpeed") {
return(10);
}
if (key == "killlevel") {
return(350);
}
if (key == "destroydelay") {
return(1300);
}
if (key == "sound") {
return("tank2.wav");
}
if (key == "gunsound") {
return("GunCannon3_short.wav");
}
if (key == "explodesound") {
return("Explosion07_short.wav");
}
if (key == "ammospeed") {
return(20);
}
if (key == "ammoduration") {
return(900);
}
if (key == "ammoAccuracy") {
return(50);
}
if (key == "ammodamage") {
return(40);
}
if (key == "explosionradius") {
return(120);
}
if (key == "ammosound") {
return("Explosion11min_short.wav");
}
}
}
Symbol 3281 MovieClip [__Packages.rr.conf.enemy.ConfAbrahams] Frame 0
class rr.conf.enemy.ConfAbrahams
{
function ConfAbrahams () {
}
static function getValue(key) {
if (key == "unittype") {
return("GroundUnit");
}
if (key == "confcode") {
return("ah");
}
if (key == "displayname") {
return("Abrahams");
}
if (key == "hostility") {
return(1000);
}
if (key == "maxSpeed") {
return(2);
}
if (key == "curve") {
return(8);
}
if (key == "acceleration") {
return(0.1);
}
if (key == "detectionDistance") {
return(450);
}
if (key == "shootingDistance") {
return(400);
}
if (key == "shootingInterval") {
return(2000);
}
if (key == "followDistance") {
return(50);
}
if (key == "rotationSpeed") {
return(10);
}
if (key == "killlevel") {
return(450);
}
if (key == "destroydelay") {
return(1200);
}
if (key == "sound") {
return("tank4.wav");
}
if (key == "gunsound") {
return("GunCannon2_short.wav");
}
if (key == "explodesound") {
return("Explosion09_short.wav");
}
if (key == "ammospeed") {
return(20);
}
if (key == "ammoduration") {
return(1000);
}
if (key == "ammoAccuracy") {
return(70);
}
if (key == "ammodamage") {
return(100);
}
if (key == "explosionradius") {
return(130);
}
if (key == "ammosound") {
return("Explosion08min_short.wav");
}
}
}
Symbol 3282 MovieClip [__Packages.rr.conf.enemy.ConfElephant] Frame 0
class rr.conf.enemy.ConfElephant
{
function ConfElephant () {
}
static function getValue(key) {
if (key == "unittype") {
return("GroundUnit");
}
if (key == "confcode") {
return("el");
}
if (key == "displayname") {
return("Elephant");
}
if (key == "hostility") {
return(800);
}
if (key == "maxSpeed") {
return(2);
}
if (key == "curve") {
return(4);
}
if (key == "acceleration") {
return(0.1);
}
if (key == "detectionDistance") {
return(400);
}
if (key == "shootingDistance") {
return(320);
}
if (key == "shootingInterval") {
return(2000);
}
if (key == "followDistance") {
return(50);
}
if (key == "rotationSpeed") {
return(10);
}
if (key == "killlevel") {
return(410);
}
if (key == "destroydelay") {
return(1500);
}
if (key == "sound") {
return("tank3.wav");
}
if (key == "gunsound") {
return("GunCannon1_short.wav");
}
if (key == "explodesound") {
return("Explosion09_short.wav");
}
if (key == "ammospeed") {
return(20);
}
if (key == "ammoduration") {
return(800);
}
if (key == "ammoAccuracy") {
return(70);
}
if (key == "ammodamage") {
return(35);
}
if (key == "explosionradius") {
return(50);
}
if (key == "ammosound") {
return("Explosion05min_short.wav");
}
}
}
Symbol 3283 MovieClip [__Packages.rr.conf.enemy.ConfOldJeep] Frame 0
class rr.conf.enemy.ConfOldJeep
{
function ConfOldJeep () {
}
static function getValue(key) {
if (key == "unittype") {
return("GroundUnit");
}
if (key == "confcode") {
return("oj");
}
if (key == "displayname") {
return("Old Jeep");
}
if (key == "hostility") {
return(800);
}
if (key == "maxSpeed") {
return(2);
}
if (key == "curve") {
return(4);
}
if (key == "acceleration") {
return(0.1);
}
if (key == "detectionDistance") {
return(300);
}
if (key == "shootingDistance") {
return(250);
}
if (key == "shootingInterval") {
return(1000);
}
if (key == "followDistance") {
return(50);
}
if (key == "rotationSpeed") {
return(10);
}
if (key == "killlevel") {
return(100);
}
if (key == "destroydelay") {
return(1000);
}
if (key == "sound") {
return("Jeep.wav");
}
if (key == "gunsound") {
return("GunCannon7_short.wav");
}
if (key == "explodesound") {
return("Explosion11_short.wav");
}
if (key == "ammospeed") {
return(20);
}
if (key == "ammoduration") {
return(800);
}
if (key == "ammoAccuracy") {
return(40);
}
if (key == "ammodamage") {
return(15);
}
if (key == "explosionradius") {
return(50);
}
if (key == "ammosound") {
return("Explosion05min_short.wav");
}
}
}
Symbol 3284 MovieClip [__Packages.rr.conf.enemy.ConfGunTruck] Frame 0
class rr.conf.enemy.ConfGunTruck
{
function ConfGunTruck () {
}
static function getValue(key) {
if (key == "unittype") {
return("GroundUnit");
}
if (key == "confcode") {
return("gt");
}
if (key == "displayname") {
return("Gun Truck");
}
if (key == "hostility") {
return(700);
}
if (key == "maxSpeed") {
return(2);
}
if (key == "curve") {
return(4);
}
if (key == "acceleration") {
return(0.1);
}
if (key == "detectionDistance") {
return(350);
}
if (key == "shootingDistance") {
return(280);
}
if (key == "shootingInterval") {
return(3000);
}
if (key == "followDistance") {
return(50);
}
if (key == "rotationSpeed") {
return(10);
}
if (key == "killlevel") {
return(225);
}
if (key == "destroydelay") {
return(1300);
}
if (key == "sound") {
return("Guntruck.wav");
}
if (key == "gunsound") {
return("GunCannon3_short.wav");
}
if (key == "explodesound") {
return("Explosion06_short.wav");
}
if (key == "ammospeed") {
return(20);
}
if (key == "ammoduration") {
return(800);
}
if (key == "ammoAccuracy") {
return(50);
}
if (key == "ammodamage") {
return(25);
}
if (key == "explosionradius") {
return(40);
}
if (key == "ammosound") {
return("Explosion11min_short.wav");
}
}
}
Symbol 3285 MovieClip [__Packages.rr.conf.enemy.ConfArmoredJeep] Frame 0
class rr.conf.enemy.ConfArmoredJeep
{
function ConfArmoredJeep () {
}
static function getValue(key) {
if (key == "unittype") {
return("GroundUnit");
}
if (key == "confcode") {
return("aj");
}
if (key == "displayname") {
return("Armored Jeep");
}
if (key == "hostility") {
return(500);
}
if (key == "maxSpeed") {
return(2);
}
if (key == "curve") {
return(8);
}
if (key == "acceleration") {
return(0.1);
}
if (key == "detectionDistance") {
return(300);
}
if (key == "shootingDistance") {
return(250);
}
if (key == "shootingInterval") {
return(2000);
}
if (key == "followDistance") {
return(50);
}
if (key == "rotationSpeed") {
return(10);
}
if (key == "killlevel") {
return(175);
}
if (key == "destroydelay") {
return(800);
}
if (key == "sound") {
return("Jeep2.wav");
}
if (key == "gunsound") {
return("GunCannon7_short.wav");
}
if (key == "explodesound") {
return("Explosion11_short.wav");
}
if (key == "ammospeed") {
return(20);
}
if (key == "ammoduration") {
return(800);
}
if (key == "ammoAccuracy") {
return(40);
}
if (key == "ammodamage") {
return(20);
}
if (key == "explosionradius") {
return(50);
}
if (key == "ammosound") {
return("Explosion05min_short.wav");
}
}
}
Symbol 3286 MovieClip [__Packages.rr.conf.enemy.ConfPanther] Frame 0
class rr.conf.enemy.ConfPanther
{
function ConfPanther () {
}
static function getValue(key) {
if (key == "unittype") {
return("GroundUnit");
}
if (key == "confcode") {
return("pn");
}
if (key == "displayname") {
return("panther");
}
if (key == "hostility") {
return(900);
}
if (key == "maxSpeed") {
return(2);
}
if (key == "curve") {
return(4);
}
if (key == "acceleration") {
return(0.1);
}
if (key == "detectionDistance") {
return(420);
}
if (key == "shootingDistance") {
return(320);
}
if (key == "shootingInterval") {
return(2000);
}
if (key == "followDistance") {
return(50);
}
if (key == "rotationSpeed") {
return(10);
}
if (key == "killlevel") {
return(410);
}
if (key == "destroydelay") {
return(1500);
}
if (key == "sound") {
return("tank3.wav");
}
if (key == "gunsound") {
return("GunCannon1_short.wav");
}
if (key == "explodesound") {
return("Explosion09_short.wav");
}
if (key == "ammospeed") {
return(20);
}
if (key == "ammoduration") {
return(900);
}
if (key == "ammoAccuracy") {
return(50);
}
if (key == "ammodamage") {
return(70);
}
if (key == "explosionradius") {
return(120);
}
if (key == "ammosound") {
return("Explosion05min_short.wav");
}
}
}
Symbol 3287 MovieClip [__Packages.rr.conf.enemy.ConfBullDozer] Frame 0
class rr.conf.enemy.ConfBullDozer
{
function ConfBullDozer () {
}
static function getValue(key) {
if (key == "unittype") {
return("GroundUnit");
}
if (key == "confcode") {
return("bd");
}
if (key == "displayname") {
return("Bulldozer");
}
if (key == "feelerradius") {
return(30);
}
if (key == "maxSpeed") {
return(1);
}
if (key == "acceleration") {
return(0.02);
}
if (key == "detectionDistance") {
return(450);
}
if (key == "curve") {
return(4);
}
if (key == "killlevel") {
return(300);
}
if (key == "destroydelay") {
return(800);
}
if (key == "sound") {
return("Bulldozer.wav");
}
if (key == "explodesound") {
return("Explosion10_short.wav");
}
}
}
Symbol 3288 MovieClip [__Packages.rr.conf.enemy.ConfBunker] Frame 0
class rr.conf.enemy.ConfBunker
{
function ConfBunker () {
}
static function getValue(key) {
if (key == "unittype") {
return("GroundUnit");
}
if (key == "confcode") {
return("bk");
}
if (key == "displayname") {
return("Bunker");
}
if (key == "hostility") {
return(1200);
}
if (key == "detectionDistance") {
return(500);
}
if (key == "shootingDistance") {
return(480);
}
if (key == "shootingInterval") {
return(3000);
}
if (key == "rotationSpeed") {
return(10);
}
if (key == "killlevel") {
return(600);
}
if (key == "destroydelay") {
return(1100);
}
if (key == "gunsound") {
return("GunCannon3_short.wav");
}
if (key == "explodesound") {
return("Explosion09_short.wav");
}
if (key == "ammospeed") {
return(20);
}
if (key == "ammoduration") {
return(1000);
}
if (key == "ammoAccuracy") {
return(60);
}
if (key == "ammodamage") {
return(25);
}
if (key == "explosionradius") {
return(100);
}
if (key == "ammosound") {
return("Explosion08min_short.wav");
}
}
}
Symbol 3289 MovieClip [__Packages.rr.conf.enemy.ConfGatlingSingle] Frame 0
class rr.conf.enemy.ConfGatlingSingle
{
function ConfGatlingSingle () {
}
static function getValue(key) {
if (key == "unittype") {
return("GroundUnit");
}
if (key == "confcode") {
return("gs");
}
if (key == "displayname") {
return("Gatling Single");
}
if (key == "hostility") {
return(800);
}
if (key == "detectionDistance") {
return(380);
}
if (key == "shootingDistance") {
return(300);
}
if (key == "shootingInterval") {
return(1000);
}
if (key == "rotationSpeed") {
return(10);
}
if (key == "killlevel") {
return(410);
}
if (key == "destroydelay") {
return(900);
}
if (key == "gunsound") {
return("GunCannon7_short.wav");
}
if (key == "explodesound") {
return("Explosion09_short.wav");
}
if (key == "ammospeed") {
return(20);
}
if (key == "ammoduration") {
return(1300);
}
if (key == "ammoAccuracy") {
return(50);
}
if (key == "ammodamage") {
return(20);
}
if (key == "explosionradius") {
return(60);
}
if (key == "ammosound") {
return("Explosion11min_short.wav");
}
}
}
Symbol 3290 MovieClip [__Packages.rr.conf.enemy.ConfGatlingDouble] Frame 0
class rr.conf.enemy.ConfGatlingDouble
{
function ConfGatlingDouble () {
}
static function getValue(key) {
if (key == "unittype") {
return("GroundUnit");
}
if (key == "confcode") {
return("gd");
}
if (key == "displayname") {
return("Gatling Double");
}
if (key == "hostility") {
return(900);
}
if (key == "detectionDistance") {
return(400);
}
if (key == "shootingDistance") {
return(300);
}
if (key == "shootingInterval") {
return(800);
}
if (key == "rotationSpeed") {
return(10);
}
if (key == "killlevel") {
return(810);
}
if (key == "destroydelay") {
return(900);
}
if (key == "gunsound") {
return("GunCannon7_short.wav");
}
if (key == "explodesound") {
return("Explosion09_short.wav");
}
if (key == "ammospeed") {
return(20);
}
if (key == "ammoduration") {
return(1300);
}
if (key == "ammoAccuracy") {
return(50);
}
if (key == "ammodamage") {
return(25);
}
if (key == "explosionradius") {
return(70);
}
if (key == "ammosound") {
return("Explosion11min_short.wav");
}
}
}
Symbol 3291 MovieClip [__Packages.rr.conf.enemy.ConfRocketeer] Frame 0
class rr.conf.enemy.ConfRocketeer
{
function ConfRocketeer () {
}
static function getValue(key) {
if (key == "unittype") {
return("GroundUnit");
}
if (key == "confcode") {
return("rt");
}
if (key == "displayname") {
return("rocketeer");
}
if (key == "hostility") {
return(400);
}
if (key == "maxSpeed") {
return(2);
}
if (key == "curve") {
return(8);
}
if (key == "acceleration") {
return(0.1);
}
if (key == "detectionDistance") {
return(400);
}
if (key == "shootingDistance") {
return(600);
}
if (key == "shootingInterval") {
return(10000);
}
if (key == "rotationSpeed") {
return(10);
}
if (key == "killlevel") {
return(350);
}
if (key == "destroydelay") {
return(1200);
}
if (key == "sound") {
return("tank2.wav");
}
if (key == "gunsound") {
return("GunCannon3_short.wav");
}
if (key == "explodesound") {
return("Explosion09_short.wav");
}
if (key == "ammorange") {
return(2000);
}
if (key == "ammominCurve") {
return(2);
}
if (key == "ammomaxCurve") {
return(6);
}
if (key == "ammomaxSpeed") {
return(20);
}
if (key == "ammoacceleration") {
return(0.3);
}
if (key == "ammoduration") {
return(1300);
}
if (key == "ammostartsound") {
return(["Missile firing2_short.wav"]);
}
if (key == "ammosound") {
return(["Missile2_loop.wav"]);
}
if (key == "ammoexplodesound") {
return(["Explosion07_short.wav"]);
}
if (key == "ammoexplosiondamage") {
return(40);
}
if (key == "ammoexplosionradius") {
return(150);
}
}
}
Symbol 3292 MovieClip [__Packages.rr.conf.enemy.ConfRocketBase] Frame 0
class rr.conf.enemy.ConfRocketBase
{
function ConfRocketBase () {
}
static function getValue(key) {
if (key == "unittype") {
return("GroundUnit");
}
if (key == "confcode") {
return("rb");
}
if (key == "displayname") {
return("Rocketbase");
}
if (key == "launchtime") {
return(3000);
}
if (key == "launchtime") {
return(20000);
}
if (key == "feelerradius") {
return(60);
}
if (key == "startsound") {
return("Harpoon Base.wav");
}
if (key == "killlevel") {
return(1000);
}
if (key == "destroydelay") {
return(1100);
}
if (key == "explodesound") {
return("ExplosionBig03_short.wav");
}
if (key == "ammomaxspeed") {
return(20);
}
if (key == "ammorotationspeed") {
return(6);
}
if (key == "ammoacceleration") {
return(0.3);
}
if (key == "ammominrange") {
return(50);
}
if (key == "ammomaxrange") {
return(1200);
}
if (key == "ammodestroydelay") {
return(1500);
}
if (key == "ammoexplosiondamage") {
return(60);
}
if (key == "ammoexplosionradius") {
return(120);
}
if (key == "ammostartsound") {
return("Missile firing2_short.wav");
}
if (key == "ammosound") {
return("Missile1_loop.wav");
}
if (key == "ammoexplodesound") {
return("Explosion06_short.wav");
}
}
}
Symbol 3293 MovieClip [__Packages.rr.conf.enemy.ConfRocket] Frame 0
class rr.conf.enemy.ConfRocket
{
function ConfRocket () {
}
static function getValue(key) {
if (key == "range") {
return(5000);
}
if (key == "altitude") {
return(100);
}
if (key == "curve") {
return(4);
}
if (key == "maxSpeed") {
return(20);
}
if (key == "acceleration") {
return(0.3);
}
if (key == "ammoduration") {
return(1040);
}
if (key == "startsound") {
return(["Missile firing2_short.wav"]);
}
if (key == "sound") {
return(["Missile1_loop.wav"]);
}
if (key == "explodesound") {
return(["Explosion07_short.wav"]);
}
if (key == "explosiondamage") {
return(40);
}
if (key == "explosionradius") {
return(150);
}
}
}
Symbol 3294 MovieClip [__Packages.rr.conf.building.ConfFlat1] Frame 0
class rr.conf.building.ConfFlat1
{
function ConfFlat1 () {
}
static function getValue(key) {
if (key == "type") {
return("Flat");
}
if (key == "height") {
return(12);
}
if (key == "killlevel") {
return(700);
}
if (key == "population") {
return(60);
}
if (key == "explodesound") {
return("ExplosionBig05_short.wav");
}
if (key == "explodedelay") {
return(600);
}
if (key == "feelerradius") {
return(35);
}
}
}
Symbol 3295 MovieClip [__Packages.rr.conf.building.ConfFlat2] Frame 0
class rr.conf.building.ConfFlat2
{
function ConfFlat2 () {
}
static function getValue(key) {
if (key == "type") {
return("Flat");
}
if (key == "height") {
return(12);
}
if (key == "killlevel") {
return(720);
}
if (key == "population") {
return(60);
}
if (key == "explodesound") {
return("ExplosionBig05_short.wav");
}
if (key == "explodedelay") {
return(600);
}
if (key == "feelerradius") {
return(45);
}
}
}
Symbol 3296 MovieClip [__Packages.rr.conf.building.ConfFlat3] Frame 0
class rr.conf.building.ConfFlat3
{
function ConfFlat3 () {
}
static function getValue(key) {
if (key == "type") {
return("Flat");
}
if (key == "height") {
return(12);
}
if (key == "killlevel") {
return(760);
}
if (key == "population") {
return(90);
}
if (key == "explodesound") {
return("ExplosionBig05_short.wav");
}
if (key == "explodedelay") {
return(600);
}
if (key == "feelerradius") {
return(35);
}
}
}
Symbol 3297 MovieClip [__Packages.rr.conf.building.ConfFlat4] Frame 0
class rr.conf.building.ConfFlat4
{
function ConfFlat4 () {
}
static function getValue(key) {
if (key == "type") {
return("Flat");
}
if (key == "height") {
return(12);
}
if (key == "killlevel") {
return(690);
}
if (key == "population") {
return(80);
}
if (key == "explodesound") {
return("ExplosionBig05_short.wav");
}
if (key == "explodedelay") {
return(600);
}
if (key == "feelerradius") {
return(35);
}
}
}
Symbol 3298 MovieClip [__Packages.rr.conf.building.ConfFlat5] Frame 0
class rr.conf.building.ConfFlat5
{
function ConfFlat5 () {
}
static function getValue(key) {
if (key == "type") {
return("Flat");
}
if (key == "height") {
return(12);
}
if (key == "killlevel") {
return(710);
}
if (key == "population") {
return(40);
}
if (key == "explodesound") {
return("ExplosionBig05_short.wav");
}
if (key == "explodedelay") {
return(600);
}
if (key == "feelerradius") {
return(40);
}
}
}
Symbol 3299 MovieClip [__Packages.rr.conf.building.ConfHouse1] Frame 0
class rr.conf.building.ConfHouse1
{
function ConfHouse1 () {
}
static function getValue(key) {
if (key == "type") {
return("House");
}
if (key == "height") {
return(5);
}
if (key == "killlevel") {
return(400);
}
if (key == "population") {
return(3);
}
if (key == "explodesound") {
return("ExplosionBig02_short.wav");
}
if (key == "explodedelay") {
return(600);
}
if (key == "feelerradius") {
return(15);
}
}
}
Symbol 3300 MovieClip [__Packages.rr.conf.building.ConfHouse2] Frame 0
class rr.conf.building.ConfHouse2
{
function ConfHouse2 () {
}
static function getValue(key) {
if (key == "type") {
return("House");
}
if (key == "height") {
return(5);
}
if (key == "killlevel") {
return(410);
}
if (key == "population") {
return(5);
}
if (key == "explodesound") {
return("ExplosionBig02_short.wav");
}
if (key == "explodedelay") {
return(600);
}
if (key == "feelerradius") {
return(15);
}
}
}
Symbol 3301 MovieClip [__Packages.rr.conf.building.ConfHouse3] Frame 0
class rr.conf.building.ConfHouse3
{
function ConfHouse3 () {
}
static function getValue(key) {
if (key == "type") {
return("House");
}
if (key == "height") {
return(5);
}
if (key == "killlevel") {
return(390);
}
if (key == "population") {
return(6);
}
if (key == "explodesound") {
return("ExplosionBig02_short.wav");
}
if (key == "explodedelay") {
return(600);
}
if (key == "feelerradius") {
return(25);
}
}
}
Symbol 3302 MovieClip [__Packages.rr.conf.building.ConfHouse4] Frame 0
class rr.conf.building.ConfHouse4
{
function ConfHouse4 () {
}
static function getValue(key) {
if (key == "type") {
return("House");
}
if (key == "height") {
return(5);
}
if (key == "killlevel") {
return(410);
}
if (key == "population") {
return(8);
}
if (key == "explodesound") {
return("ExplosionBig02_short.wav");
}
if (key == "explodedelay") {
return(600);
}
if (key == "feelerradius") {
return(30);
}
}
}
Symbol 3303 MovieClip [__Packages.rr.conf.building.ConfHouse5] Frame 0
class rr.conf.building.ConfHouse5
{
function ConfHouse5 () {
}
static function getValue(key) {
if (key == "type") {
return("House");
}
if (key == "height") {
return(5);
}
if (key == "killlevel") {
return(440);
}
if (key == "population") {
return(9);
}
if (key == "explodesound") {
return("ExplosionBig02_short.wav");
}
if (key == "explodedelay") {
return(600);
}
if (key == "feelerradius") {
return(25);
}
}
}
Symbol 3304 MovieClip [__Packages.rr.conf.building.ConfHouse6] Frame 0
class rr.conf.building.ConfHouse6
{
function ConfHouse6 () {
}
static function getValue(key) {
if (key == "type") {
return("House");
}
if (key == "height") {
return(5);
}
if (key == "killlevel") {
return(390);
}
if (key == "population") {
return(12);
}
if (key == "explodesound") {
return("ExplosionBig02_short.wav");
}
if (key == "explodedelay") {
return(600);
}
if (key == "feelerradius") {
return(40);
}
}
}
Symbol 3305 MovieClip [__Packages.rr.conf.building.ConfHouse7] Frame 0
class rr.conf.building.ConfHouse7
{
function ConfHouse7 () {
}
static function getValue(key) {
if (key == "type") {
return("House");
}
if (key == "height") {
return(5);
}
if (key == "killlevel") {
return(450);
}
if (key == "population") {
return(6);
}
if (key == "explodesound") {
return("ExplosionBig02_short.wav");
}
if (key == "explodedelay") {
return(600);
}
if (key == "feelerradius") {
return(30);
}
}
}
Symbol 3306 MovieClip [__Packages.rr.conf.building.ConfHouse8] Frame 0
class rr.conf.building.ConfHouse8
{
function ConfHouse8 () {
}
static function getValue(key) {
if (key == "type") {
return("House");
}
if (key == "height") {
return(5);
}
if (key == "killlevel") {
return(400);
}
if (key == "population") {
return(6);
}
if (key == "explodesound") {
return("ExplosionBig02_short.wav");
}
if (key == "explodedelay") {
return(600);
}
if (key == "feelerradius") {
return(30);
}
}
}
Symbol 3307 MovieClip [__Packages.rr.conf.building.ConfHouse9] Frame 0
class rr.conf.building.ConfHouse9
{
function ConfHouse9 () {
}
static function getValue(key) {
if (key == "type") {
return("House");
}
if (key == "height") {
return(5);
}
if (key == "killlevel") {
return(410);
}
if (key == "population") {
return(5);
}
if (key == "explodesound") {
return("ExplosionBig02_short.wav");
}
if (key == "explodedelay") {
return(600);
}
if (key == "feelerradius") {
return(25);
}
}
}
Symbol 3308 MovieClip [__Packages.rr.conf.building.ConfIndustry1] Frame 0
class rr.conf.building.ConfIndustry1
{
function ConfIndustry1 () {
}
static function getValue(key) {
if (key == "type") {
return("Industry");
}
if (key == "height") {
return(15);
}
if (key == "killlevel") {
return(600);
}
if (key == "population") {
return(0);
}
if (key == "explodesound") {
return("ExplosionBig03_short.wav");
}
if (key == "explodedelay") {
return(1300);
}
if (key == "feelerradius") {
return(40);
}
}
}
Symbol 3309 MovieClip [__Packages.rr.conf.building.ConfIndustry2] Frame 0
class rr.conf.building.ConfIndustry2
{
function ConfIndustry2 () {
}
static function getValue(key) {
if (key == "type") {
return("Industry");
}
if (key == "height") {
return(15);
}
if (key == "killlevel") {
return(1000);
}
if (key == "population") {
return(0);
}
if (key == "explodesound") {
return("ExplosionBig03_short.wav");
}
if (key == "explodedelay") {
return(1300);
}
if (key == "feelerradius") {
return(70);
}
}
}
Symbol 3310 MovieClip [__Packages.rr.conf.building.ConfIndustry3] Frame 0
class rr.conf.building.ConfIndustry3
{
function ConfIndustry3 () {
}
static function getValue(key) {
if (key == "type") {
return("Industry");
}
if (key == "height") {
return(15);
}
if (key == "killlevel") {
return(550);
}
if (key == "population") {
return(0);
}
if (key == "explodesound") {
return("ExplosionBig03_short.wav");
}
if (key == "explodedelay") {
return(1200);
}
if (key == "feelerradius") {
return(35);
}
}
}
Symbol 3311 MovieClip [__Packages.rr.conf.building.ConfIndustry4] Frame 0
class rr.conf.building.ConfIndustry4
{
function ConfIndustry4 () {
}
static function getValue(key) {
if (key == "type") {
return("Industry");
}
if (key == "height") {
return(15);
}
if (key == "killlevel") {
return(800);
}
if (key == "population") {
return(0);
}
if (key == "explodesound") {
return("ExplosionBig03_short.wav");
}
if (key == "explodedelay") {
return(1000);
}
if (key == "feelerradius") {
return(60);
}
}
}
Symbol 3312 MovieClip [__Packages.rr.conf.building.ConfIndustry5] Frame 0
class rr.conf.building.ConfIndustry5
{
function ConfIndustry5 () {
}
static function getValue(key) {
if (key == "type") {
return("Industry");
}
if (key == "height") {
return(15);
}
if (key == "killlevel") {
return(900);
}
if (key == "population") {
return(0);
}
if (key == "explodesound") {
return("ExplosionBig03_short.wav");
}
if (key == "explodedelay") {
return(1200);
}
if (key == "feelerradius") {
return(70);
}
}
}
Symbol 3313 MovieClip [__Packages.rr.conf.building.ConfOffice1] Frame 0
class rr.conf.building.ConfOffice1
{
function ConfOffice1 () {
}
static function getValue(key) {
if (key == "type") {
return("Office");
}
if (key == "height") {
return(15);
}
if (key == "killlevel") {
return(710);
}
if (key == "population") {
return(0);
}
if (key == "explodesound") {
return("ExplosionBig05_short.wav");
}
if (key == "explodedelay") {
return(600);
}
if (key == "feelerradius") {
return(35);
}
}
}
Symbol 3314 MovieClip [__Packages.rr.conf.building.ConfOffice2] Frame 0
class rr.conf.building.ConfOffice2
{
function ConfOffice2 () {
}
static function getValue(key) {
if (key == "type") {
return("Office");
}
if (key == "height") {
return(15);
}
if (key == "killlevel") {
return(740);
}
if (key == "population") {
return(0);
}
if (key == "explodesound") {
return("ExplosionBig05_short.wav");
}
if (key == "explodedelay") {
return(1000);
}
if (key == "feelerradius") {
return(35);
}
}
}
Symbol 3315 MovieClip [__Packages.rr.conf.building.ConfOffice3] Frame 0
class rr.conf.building.ConfOffice3
{
function ConfOffice3 () {
}
static function getValue(key) {
if (key == "type") {
return("Office");
}
if (key == "height") {
return(15);
}
if (key == "killlevel") {
return(68);
}
if (key == "population") {
return(0);
}
if (key == "explodesound") {
return("ExplosionBig05_short.wav");
}
if (key == "explodedelay") {
return(600);
}
if (key == "feelerradius") {
return(35);
}
}
}
Symbol 3316 MovieClip [__Packages.rr.conf.building.ConfOffice4] Frame 0
class rr.conf.building.ConfOffice4
{
function ConfOffice4 () {
}
static function getValue(key) {
if (key == "type") {
return("Office");
}
if (key == "height") {
return(15);
}
if (key == "killlevel") {
return(700);
}
if (key == "population") {
return(0);
}
if (key == "explodesound") {
return("ExplosionBig05_short.wav");
}
if (key == "explodedelay") {
return(600);
}
if (key == "feelerradius") {
return(45);
}
}
}
Symbol 3317 MovieClip [__Packages.rr.control.PlaneBoxBlue] Frame 0
class rr.control.PlaneBoxBlue extends rr.control.PlaneBox
{
var _parent;
function PlaneBoxBlue () {
super();
init();
}
function init() {
super.init();
_parent._parent.blues.push(this);
}
}
Symbol 3318 MovieClip [__Packages.rr.control.PlaneBoxGreen] Frame 0
class rr.control.PlaneBoxGreen extends rr.control.PlaneBox
{
var _parent;
function PlaneBoxGreen () {
super();
init();
}
function init() {
super.init();
_parent._parent.greens.push(this);
}
}
Symbol 3319 MovieClip [__Packages.rr.control.PlaneBoxRed] Frame 0
class rr.control.PlaneBoxRed extends rr.control.PlaneBox
{
var _parent;
function PlaneBoxRed () {
super();
init();
}
function init() {
super.init();
_parent._parent.reds.push(this);
}
}
Symbol 3320 MovieClip [__Packages.rr.control.PlaneBoxOrange] Frame 0
class rr.control.PlaneBoxOrange extends rr.control.PlaneBox
{
var _parent;
function PlaneBoxOrange () {
super();
init();
}
function init() {
super.init();
_parent._parent.oranges.push(this);
}
}
Symbol 3321 MovieClip [__Packages.rr.HSYouda] Frame 0
class rr.HSYouda extends rr.BaseClip
{
var bg_mc, container, createEmptyMovieClip, getNextHighestDepth, mcLoader, loaded, _visible;
function HSYouda () {
super();
_global.highscore = this;
bg_mc._visible = false;
}
function init() {
clear();
System.security.allowDomain("www.youdagames.com");
_root.hs_list = false;
_root.hs_requesturl = "www.youdagames.com";
container = createEmptyMovieClip("container", getNextHighestDepth());
mcLoader = new MovieClipLoader();
mcLoader.addListener(this);
}
function clear() {
hide();
loaded = false;
container.removeMovieClip();
}
function setHighScore() {
_root.gameflow = _global.leveltime;
_root.is_time = false;
_root.hs_score = _global.player.points;
if (_global.gameMode == "Demo") {
_root.hs_gameid = 51;
} else if (_global.gameMode == "Full") {
_root.hs_gameid = 52;
}
}
function show() {
setHighScore();
container._visible = false;
if (loaded) {
container._visible = true;
} else {
mcLoader.loadClip("http://www.youdagames.com/highscores/flash.php", container);
}
_visible = true;
}
function hide() {
_visible = false;
}
function onLoadComplete(target_mc, httpStatus) {
loaded = true;
container._visible = true;
}
}
Symbol 3322 MovieClip [__Packages.rr.control.WeaponButton] Frame 0
class rr.control.WeaponButton extends rr.BaseClip
{
var upLevel, displayname, _linkId, price, count, unitweight, alevel, colorGroup, upgradeLevel, tfire, released, onRollOver, onRollOut, onDragOut, notpossible_mc, upgraded, canpress, upgradefirst_mc, upgrade_mc, _alpha, onPress;
function WeaponButton () {
super();
init();
}
function init() {
upLevel = undefined;
displayname = rr.conf.Config.getObjectValue(_linkId, "displayname");
price = rr.conf.Config.getObjectValue(_linkId, "price");
count = rr.conf.Config.getObjectValue(_linkId, "count");
unitweight = rr.conf.Config.getObjectValue(_linkId, "unitweight");
alevel = rr.conf.Config.getObjectValue(_linkId, "availabilitylevel");
colorGroup = rr.conf.Config.getObjectValue(_linkId, "colorgroup");
upgradeLevel = rr.conf.Config.getObjectValue(_linkId, "upgradelevel");
tfire = rr.conf.Config.getObjectValue(_linkId, "shootinginterval");
if (colorGroup == "green") {
released = true;
}
onRollOver = rr.utils.Delegate.create(_global.planemenu, _global.planemenu.showWeaponInfo, this);
onRollOut = (onDragOut = rr.utils.Delegate.create(_global.planemenu, _global.planemenu.hideWeaponInfo));
_global.planemenu.addEventListener("onUpdateMenu", this);
_global.planemenu.addEventListener("onUpgrade", this);
_global.planemenu.addEventListener("onInitLevel", this);
}
function get linkId() {
return(_linkId);
}
function set linkId(value) {
_linkId = value;
//return(linkId);
}
function get isPossible() {
return(!notpossible_mc._visible);
}
function onInitLevel() {
upLevel = undefined;
upgraded = false;
released = false;
if (colorGroup == "green") {
released = true;
}
onUpgrade();
}
function onUpdateMenu() {
if (upLevel == undefined) {
onUpgrade();
}
checkEnabled();
}
function checkEnabled() {
canpress = true;
upgradefirst_mc._visible = false;
upgrade_mc._visible = false;
notpossible_mc._visible = false;
if (!_global.planemenu.selectedDisplay.weaponAllowed(_linkId)) {
showNotPossible();
canpress = false;
} else if ((_global.gametype == "extra") && (alevel > _global.superlevel)) {
showNotPossible();
canpress = false;
} else if (alevel > _global.game.levelId) {
showNotPossible();
canpress = false;
} else if (!released) {
showUpgradeFirst();
canpress = false;
} else if (upgraded && (upgradedWeaponAllowed())) {
canpress = false;
} else if (_global.planemenu.selectedDisplay.getFreeBox(colorGroup) == undefined) {
canpress = false;
} else if (price > _global.player.cash) {
canpress = false;
}
if (upgraded) {
showUpgraded();
}
processEnabled();
}
function showUpgradeFirst() {
upgradefirst_mc._visible = true;
upgrade_mc._visible = false;
notpossible_mc._visible = false;
}
function showUpgraded() {
upgradefirst_mc._visible = false;
upgrade_mc._visible = true;
notpossible_mc._visible = false;
}
function showNotPossible() {
upgradefirst_mc._visible = false;
upgrade_mc._visible = false;
notpossible_mc._visible = true;
}
function upgradedWeaponAllowed() {
var _local4;
var _local3 = _global.planemenu.selectedDisplay;
switch (_linkId) {
case "AirMissile" :
_local4 = _local3.weaponAllowed("AirSeeker");
break;
case "GroundMissile" :
_local4 = _local3.weaponAllowed("GroundSeeker");
break;
case "GunSingle" :
if (_global.player.upGun == 2) {
_local4 = _local3.weaponAllowed("GunDouble");
} else if (_global.player.upGun == 3) {
_local4 = _local3.weaponAllowed("GunDouble") || (_local3.weaponAllowed("GunGatling"));
}
break;
case "GunDouble" :
_local4 = _local3.weaponAllowed("GunGatling");
break;
case "BombNormal" :
if (_global.player.upBomb == 2) {
_local4 = _local3.weaponAllowed("BombHeavy");
} else if (_global.player.upBomb == 3) {
_local4 = _local3.weaponAllowed("BombHeavy") || (_local3.weaponAllowed("BombExtreme"));
}
break;
case "BombHeavy" :
_local4 = _local3.weaponAllowed("BombExtreme");
}
return(_local4);
}
function getUpgradeLevel() {
switch (_linkId) {
case "AirMissile" :
case "AirSeeker" :
upLevel = _global.player.upAir;
break;
case "GroundMissile" :
case "GroundSeeker" :
upLevel = _global.player.upGround;
break;
case "GunSingle" :
case "GunDouble" :
case "GunGatling" :
upLevel = _global.player.upGun;
break;
case "BombNormal" :
case "BombHeavy" :
case "BombExtreme" :
upLevel = _global.player.upBomb;
}
}
function onUpgrade() {
getUpgradeLevel();
if ((upLevel > upgradeLevel) && (!upgraded)) {
upgraded = true;
upgrade_mc.gotoAndPlay(2);
upgrade_mc._visible = true;
} else if ((upLevel == upgradeLevel) && (!released)) {
released = true;
upgradefirst_mc.gotoAndPlay(2);
upgradefirst_mc._visible = true;
}
if (upLevel >= upgradeLevel) {
released = true;
}
rr.utils.Delegate.callDelayed(this, checkEnabled, 200);
}
function processEnabled() {
if (rr.conf.Config.testSettings()) {
canpress = true;
}
if (canpress) {
_alpha = 100;
onPress = rr.utils.Delegate.create(this, doSelect);
} else {
_alpha = 30;
delete onPress;
}
}
function doSelect() {
if (!_global.planemenu.menuEnabled()) {
return(undefined);
}
var _local3 = {linkId:_linkId, price:price, count:count, unitweight:unitweight, tfire:tfire};
_global.planemenu.onWeaponSelect(colorGroup, _local3);
}
}
Symbol 3323 MovieClip [__Packages.rr.control.BottomMenu] Frame 0
class rr.control.BottomMenu extends rr.BaseClip
{
var _visible, tips, targets, quit_btn, minimap_btn, quitconfirm_mc, swapDepths, mmreleased, nwreleased, minimapOpened, pop_targets_mc, pop_tips_mc, fuel1played, fuel2played, fuel_mc, health_mc, guncount_mc, aircount_mc, groundcount_mc, bombcount_mc, propcount_mc, empcount_mc, fuelcount_mc, carpetcount_mc, nuclearcount_mc, load_txt, clock_mc, countselect_mc, pop_buildings_mc, pop_enemies_mc, pop_airs_mc, tipTargetOn;
function BottomMenu () {
super();
_visible = false;
}
function init() {
tips = new Array();
targets = new Array();
quit_btn.onPress = rr.utils.Delegate.create(this, showQuitConfirm);
minimap_btn.onPress = rr.utils.Delegate.create(this, toggleMiniMap);
quitconfirm_mc.cancel_btn.onPress = rr.utils.Delegate.create(this, cancelQuit);
quitconfirm_mc.ok_btn.onPress = rr.utils.Delegate.create(this, quitGame);
swapDepths(_global.root.getNextHighestDepth());
Key.addListener(this);
_global.stage.addEventListener("onIndustryDestroyed", this);
_global.stage.addEventListener("onGroundEnemyDestroyed", this);
_global.stage.addEventListener("onTrainObjectDestroyed", this);
_global.stage.addEventListener("onStaticTrainObjectDestroyed", this);
_global.stage.addEventListener("onAirEnemyDestroyed", this);
rr.utils.Delegate.callDelayed(this, showStartTips, 2000);
mmreleased = true;
quitconfirm_mc._visible = false;
_visible = true;
}
function onKeyDown() {
if (_global.planemenu._visible) {
return(undefined);
}
var _local3 = Key.getCode();
if ((_local3 == 77) || (_local3 == 32)) {
if (mmreleased) {
mmreleased = false;
toggleMiniMap();
}
}
if (_local3 == 67) {
if (nwreleased) {
nwreleased = false;
_global.planedefinition.prepareNextWeapon();
}
}
}
function onKeyUp() {
if (_global.planemenu._visible) {
return(undefined);
}
var _local3 = Key.getCode();
if ((_local3 == 77) || (_local3 == 32)) {
mmreleased = true;
}
if (_local3 == 67) {
nwreleased = true;
}
}
function showQuitConfirm() {
if (quitconfirm_mc._visible) {
return(undefined);
}
_global.minimap.closeMap();
_global.weaponmenu.hide();
_global.timer.stop();
_global.aim.hide(this);
quitconfirm_mc._visible = true;
}
function cancelQuit() {
quitconfirm_mc._visible = false;
_global.aim.show(this);
_global.timer.start();
}
function quitGame() {
quitconfirm_mc._visible = false;
_global.game.quitGame();
}
function toggleMiniMap() {
minimapOpened = true;
if (_global.plane.isdead) {
return(undefined);
}
if (_global.plane.status == undefined) {
return(undefined);
}
if (_global.game.levelended) {
return(undefined);
}
if (_global.weaponmenu.opened) {
return(undefined);
}
if (_global.minimap._visible) {
_global.minimap.closeMap();
} else {
checkPopBreak();
pop_targets_mc._visible = false;
pop_tips_mc._visible = false;
_global.minimap.showMap();
var _local4 = new Array();
var _local3 = 0;
while (_local3 < tips.length) {
if (tips[_local3] != "tipminimap") {
_local4.push(tips[_local3]);
}
_local3++;
}
tips = _local4;
}
}
function checkPopBreak() {
if (pop_targets_mc._visible) {
targets.splice(0, 0, pop_targets_mc.currentTarget);
}
if (pop_tips_mc._visible) {
tips.splice(0, 0, pop_tips_mc.currentTip);
}
}
function onFuelUpdate() {
var _local3 = Math.round((100 * _global.plane.fuel) / _global.plane.fueldef);
if (_local3 > 40) {
fuel1played = false;
fuel2played = false;
}
if (_local3 < 30) {
if (!fuel1played) {
fuel1played = true;
_global.sounds.playSound("Warning Fuel Low.wav");
}
}
if (_local3 < 10) {
if (!fuel2played) {
fuel2played = true;
_global.sounds.playSound("Warning Fuel Critical.wav");
showTip("tipfuel");
}
}
fuel_mc.mask_mc._xscale = _local3;
fuel_mc.perc_txt.text = _local3;
}
function onDamageUpdate() {
var _local3 = 100 - Math.round((100 * _global.plane.damage) / _global.plane.killlevel);
health_mc.mask_mc._xscale = _local3;
health_mc.perc_txt.text = _local3;
}
function setCounts() {
guncount_mc.gotoAndStop(_global.player.upGun);
aircount_mc.gotoAndStop(_global.player.upAir);
groundcount_mc.gotoAndStop(_global.player.upGround);
bombcount_mc.gotoAndStop(_global.player.upBomb);
guncount_mc._alpha = ((_global.planedefinition.GunCount > 0) ? 100 : 30);
aircount_mc._alpha = ((_global.planedefinition.AirCount > 0) ? 100 : 30);
groundcount_mc._alpha = ((_global.planedefinition.GroundCount > 0) ? 100 : 30);
bombcount_mc._alpha = ((_global.planedefinition.BombCount > 0) ? 100 : 30);
propcount_mc._alpha = ((_global.planedefinition.PropagandaCount > 0) ? 100 : 30);
empcount_mc._alpha = ((_global.planedefinition.EMPBombCount > 0) ? 100 : 30);
fuelcount_mc._alpha = ((_global.planedefinition.FuelBombCount > 0) ? 100 : 30);
carpetcount_mc._alpha = ((_global.planedefinition.CarpetBombCount > 0) ? 100 : 30);
nuclearcount_mc._alpha = ((_global.planedefinition.NuclearBombCount > 0) ? 100 : 30);
aircount_mc.count_txt.text = _global.planedefinition.AirCount;
groundcount_mc.count_txt.text = _global.planedefinition.GroundCount;
bombcount_mc.count_txt.text = _global.planedefinition.BombCount;
propcount_mc.count_txt.text = _global.planedefinition.PropagandaCount;
empcount_mc.count_txt.text = _global.planedefinition.EMPBombCount;
fuelcount_mc.count_txt.text = _global.planedefinition.FuelBombCount;
carpetcount_mc.count_txt.text = _global.planedefinition.CarpetBombCount;
nuclearcount_mc.count_txt.text = _global.planedefinition.NuclearBombCount;
guncount_mc.onPress = ((_global.planedefinition.GunCount > 0) ? (rr.utils.Delegate.create(_global.planedefinition, _global.planedefinition.prepareWeapon, "Guns")) : undefined);
aircount_mc.onPress = ((_global.planedefinition.AirCount > 0) ? (rr.utils.Delegate.create(_global.planedefinition, _global.planedefinition.prepareWeapon, "AirMissile")) : undefined);
groundcount_mc.onPress = ((_global.planedefinition.GroundCount > 0) ? (rr.utils.Delegate.create(_global.planedefinition, _global.planedefinition.prepareWeapon, "GroundMissile")) : undefined);
bombcount_mc.onPress = ((_global.planedefinition.BombCount > 0) ? (rr.utils.Delegate.create(_global.planedefinition, _global.planedefinition.prepareWeapon, "Bombs")) : undefined);
propcount_mc.onPress = ((_global.planedefinition.PropagandaCount > 0) ? (rr.utils.Delegate.create(_global.planedefinition, _global.planedefinition.prepareWeapon, "Propaganda")) : undefined);
empcount_mc.onPress = ((_global.planedefinition.EMPBombCount > 0) ? (rr.utils.Delegate.create(_global.planedefinition, _global.planedefinition.prepareWeapon, "EMPBomb")) : undefined);
fuelcount_mc.onPress = ((_global.planedefinition.FuelBombCount > 0) ? (rr.utils.Delegate.create(_global.planedefinition, _global.planedefinition.prepareWeapon, "FuelBomb")) : undefined);
carpetcount_mc.onPress = ((_global.planedefinition.CarpetBombCount > 0) ? (rr.utils.Delegate.create(_global.planedefinition, _global.planedefinition.prepareWeapon, "CarpetBomb")) : undefined);
nuclearcount_mc.onPress = ((_global.planedefinition.NuclearBombCount > 0) ? (rr.utils.Delegate.create(_global.planedefinition, _global.planedefinition.prepareWeapon, "NuclearBomb")) : undefined);
load_txt.text = rr.utils.MathUtils.formatDecimals(_global.planedefinition.totalload / 1000, 1) + " TONS";
}
function setTime() {
clock_mc.value_txt.text = rr.utils.StringUtils.getTimeString(_global.leveltime);
}
function onWeaponUpdate() {
var _local4 = _global.planedefinition.loadedWeapon;
var _local3;
if (!_global.planedefinition.hasWeapons) {
_local3 = undefined;
} else if ((_local4 == undefined) && (_global.planedefinition.weaponType == "Guns")) {
_local3 = guncount_mc;
} else {
switch (_local4.linkId) {
case "AirMissile" :
case "AirSeeker" :
_local3 = aircount_mc;
break;
case "GroundMissile" :
case "GroundSeeker" :
_local3 = groundcount_mc;
break;
case "BombNormal" :
case "BombHeavy" :
case "BombExtreme" :
_local3 = bombcount_mc;
break;
case "Propaganda" :
_local3 = propcount_mc;
break;
case "EMPBomb" :
_local3 = empcount_mc;
break;
case "FuelBomb" :
_local3 = fuelcount_mc;
break;
case "CarpetBomb" :
_local3 = carpetcount_mc;
break;
case "NuclearBomb" :
_local3 = nuclearcount_mc;
}
}
if (_local3) {
countselect_mc._x = _local3._x + 30;
countselect_mc._y = _local3._y - 10;
if (_local3 == guncount_mc) {
countselect_mc._x = _local3._x;
countselect_mc._y = _local3._y + 10;
}
countselect_mc._visible = true;
} else {
countselect_mc._visible = false;
}
}
function onIndustryDestroyed() {
var _local4 = _global.stage.getIndustryCount();
if (_local4 == 0) {
var _local3 = _global.game.findMissionTarget("AllIndustry");
if (_local3 == undefined) {
return(undefined);
}
if (!_local3.completed) {
_local3.completed = true;
showTarget(_local3);
}
} else {
pop_buildings_mc.count = _local4;
pop_buildings_mc.show();
}
}
function onGroundEnemyDestroyed() {
var _local4 = _global.stage.getEnemyGroundsCount();
if (_local4 == 0) {
var _local3 = _global.game.findMissionTarget("AllGrounds");
if (_local3 == undefined) {
return(undefined);
}
if (!_local3.completed) {
_local3.completed = true;
showTarget(_local3);
}
} else {
pop_enemies_mc.count = _local4;
pop_enemies_mc.show();
}
}
function onAirEnemyDestroyed() {
var _local4 = _global.stage.getEnemyAirsCount();
if (_local4 == 0) {
var _local3 = _global.game.findMissionTarget("AllAirs");
if (_local3 == undefined) {
return(undefined);
}
if (!_local3.completed) {
_local3.completed = true;
showTarget(_local3);
}
} else {
pop_airs_mc.count = _local4;
pop_airs_mc.show();
}
}
function onTrainObjectDestroyed() {
if (!_global.train.weaponsLeft()) {
var _local3 = _global.game.findMissionTarget("AllTrains");
if (_local3 == undefined) {
return(undefined);
}
if (!_local3.completed) {
_local3.completed = true;
showTarget(_local3);
}
}
}
function onStaticTrainObjectDestroyed() {
var _local4 = _global.stage.getStaticTrainsCount();
if (_local4 == 0) {
var _local3 = _global.game.findMissionTarget("AllStaticTrains");
if (_local3 == undefined) {
return(undefined);
}
if (!_local3.completed) {
_local3.completed = true;
showTarget(_local3);
}
}
}
function onAirFieldTakeOver() {
var _local4 = _global.stage.getEnemyAirfieldCount();
if (_local4 == 0) {
var _local3 = _global.game.findMissionTarget("AllAirfields");
if (_local3 == undefined) {
return(undefined);
}
if (!_local3.completed) {
_local3.completed = true;
showTarget(_local3);
}
}
}
function showTarget(t) {
targets.push(t);
playTarget();
if (_global.game.missionDone()) {
delete tips;
tips = new Array();
showTip("tipaccomplished");
}
}
function playTarget(priority) {
if (tipTargetOn) {
if (!priority) {
return(undefined);
}
}
if (_global.timer.stopped) {
rr.utils.Delegate.callDelayed(this, playTarget, 1000, priority);
return(undefined);
}
tipTargetOn = true;
var _local3 = targets.shift();
pop_targets_mc.currentTarget = _local3;
pop_targets_mc.missionid_mc.gotoAndStop(_local3.id);
pop_targets_mc.message_txt.autoSize = true;
pop_targets_mc.message_txt.wordWrap = true;
pop_targets_mc.message_txt.text = _local3.text;
pop_targets_mc.gotoAndPlay(2);
pop_targets_mc._visible = true;
if (!_local3.soundPlayed) {
_global.sounds.playSound("Mission target accomplished.wav");
_local3.soundPlayed = true;
}
rr.utils.Delegate.callDelayed(this, onTipTargetDone, 8000);
}
function showTip(t) {
tips.push(t);
playTip();
}
function playTip(priority) {
if (tipTargetOn) {
if (!priority) {
return(undefined);
}
}
if (_global.timer.stopped) {
rr.utils.Delegate.callDelayed(this, playTip, 1000, priority);
return(undefined);
}
tipTargetOn = true;
var _local3 = tips.shift();
pop_tips_mc.currentTip = _local3;
pop_tips_mc.tips_mc.gotoAndStop(_local3);
pop_tips_mc.gotoAndPlay(2);
pop_tips_mc._visible = true;
rr.utils.Delegate.callDelayed(this, onTipTargetDone, 8000);
}
function onTipTargetDone() {
if (targets.length > 0) {
playTarget(true);
} else if (tips.length > 0) {
playTip(true);
} else {
tipTargetOn = false;
}
}
function showStartTips() {
var _local3 = _global.game.levelId;
if (_local3 <= 3) {
showTip("tipland" + _local3);
}
if (_local3 <= 2) {
repeatMinimapTip();
}
if (_local3 == 1) {
showTip("tiplooping");
}
if (_local3 <= 2) {
if (_global.plane.linkId == "FockeWolf") {
showTip("tipfullroll");
}
}
}
function repeatMinimapTip() {
if (minimapOpened) {
return(undefined);
}
var _local3 = false;
var _local4 = tips.length;
var _local2 = 0;
while (_local2 < _local4) {
if (tips[_local2] == "tipminimap") {
_local3 = true;
}
_local2++;
}
if (!_local3) {
showTip("tipminimap");
}
rr.utils.Delegate.callDelayed(this, repeatMinimapTip, 30000);
}
}
Symbol 3324 MovieClip [__Packages.rr.utils.MathUtils] Frame 0
class rr.utils.MathUtils
{
function MathUtils () {
}
static function nFit(num, container) {
var _local3 = 0;
var _local1 = Math.abs(container);
var _local2 = Math.abs(num);
while (_local1 > _local2) {
_local1 = _local1 - _local2;
_local3++;
}
return(_local3);
}
static function formatDecimals(num, digits) {
if (digits <= 0) {
return(Math.round(num));
}
var _local4 = Math.pow(10, digits);
var _local2 = String(Math.round(num * _local4) / _local4);
if (_local2.indexOf(".") == -1) {
_local2 = _local2 + ".0";
}
var _local6 = _local2.split(".");
var _local3 = digits - _local6[1].length;
var _local1 = 1;
while (_local1 <= _local3) {
_local2 = _local2 + "0";
_local1++;
}
return(Number(_local2));
}
static function toScientific(num, sigDigs) {
num = Number(num);
if (isNaN(num)) {
return(num);
}
var _local2 = Math.floor(Math.log(Math.abs(num)) / Math.LN10);
if (num == 0) {
_local2 = 0;
}
var _local5 = Math.pow(10, _local2);
var _local3 = num / _local5;
_local3 = formatDecimals(_local3, sigDigs - 1);
var _local4 = _local3;
if (_local2 != 0) {
_local4 = _local4 + ("e" + _local2);
}
return(_local4);
}
static function getDistance(x1, y1, x2, y2) {
var _local1 = Math.abs(x1 - x2);
var _local2 = Math.abs(y1 - y2);
return(Math.sqrt(Math.pow(_local1, 2) + Math.pow(_local2, 2)));
}
static function getAngle(x1, y1, x2, y2) {
return(formatAngle2(Math.round((180 * Math.atan2(y2 - y1, x2 - x1)) / Math.PI)));
}
static function formatAngle(ang) {
if (ang > 0) {
return(ang - 360);
}
if (ang < -360) {
return(ang + 360);
}
return(ang);
}
static function formatAngle2(ang) {
if (ang < 0) {
return(ang + 360);
}
if (ang > 360) {
return(ang - 360);
}
return(ang);
}
static function formatAngle3(ang) {
if (ang < -180) {
return(ang + 360);
}
if (ang > 180) {
return(ang - 360);
}
return(ang);
}
static function angDiff(ang1, ang2) {
return(Math.abs(formatAngle3(ang1) - formatAngle3(ang2)));
}
static function angDiff2(ang1, ang2) {
return(formatAngle3(ang1) - formatAngle3(ang2));
}
static function transCoord(tx, ty, obj) {
var _local2 = rr.utils.Math2.Bearing(0, 0, tx, ty) + obj.rot;
var _local1 = getDistance(0, 0, tx, ty);
return({x:obj.x + (Math.sin((_local2 * Math.PI) / 180) * _local1), y:obj.y - (Math.cos((_local2 * Math.PI) / 180) * _local1)});
}
static function castCoord(x0, y0, ang, dist) {
return({x:x0 + (Math.sin((ang * Math.PI) / 180) * dist), y:y0 - (Math.cos((ang * Math.PI) / 180) * dist)});
}
}
Symbol 3325 MovieClip [__Packages.rr.utils.Math2] Frame 0
class rr.utils.Math2
{
function Math2 () {
}
static function Quad(a, b, c) {
return({x1:((-b) + Math.sqrt(Math.pow(b, 2) - ((4 * a) * c))) / (2 * a), x2:((-b) - Math.sqrt(Math.pow(b, 2) - ((4 * a) * c))) / (2 * a)});
}
static function Bearing(x, y, x2, y2) {
return((((x - x2) < 0) ? (90 + (Math.atan((y - y2) / (x - x2)) * 57.2957795130823)) : (270 + (Math.atan((y - y2) / (x - x2)) * 57.2957795130823))));
}
static function Per(v, t, dp) {
return(Math.round(((v / t) * 100) * Math.pow(10, dp)) / Math.pow(10, dp));
}
static function Round(n, dp) {
return(Math.round(n * Math.pow(10, dp)) / Math.pow(10, dp));
}
static function Floor(n, dp) {
return(Math.floor(n * Math.pow(10, dp)) / Math.pow(10, dp));
}
static function Ceil(n, dp) {
return(Math.ceil(n * Math.pow(10, dp)) / Math.pow(10, dp));
}
static function Max(n, i, max) {
max = n[0];
i = 1;
while (i < n.length) {
if (n[i] > max) {
max = n[i];
}
i++;
}
return(max);
}
static function Min(n, i, min) {
min = n[0];
i = 1;
while (i < n.length) {
if (n[i] < min) {
min = n[i];
}
i++;
}
return(min);
}
static function Mean(n, i, j) {
j = 0;
i = 0;
while (i < n.length) {
j = j + n[i];
i++;
}
return(j / n.length);
}
static function Median(n, i) {
i = 0;
while (i < n.length) {
n[i].n = n[i];
i++;
}
n.sortOn("n", Array.NUMERIC);
if ((n.length / 2) == Math.round(n.length / 2)) {
return((n[(n.length / 2) - 1] + n[n.length / 2]) / 2);
}
return(n[Math.ceil(n.length / 2) - 1]);
}
static function Range(n) {
return(Max(n, 0, 0) - Min(n, 0, 0));
}
static function Mode(n, t, i, k, o, l, y) {
y = new Array();
k = new Array();
l = new Array();
k[0] = n[0];
i = 0;
while (i < n.length) {
o = 0;
while (o < k.length) {
if (n[i] == k[o]) {
break;
}
o++;
}
if (o >= k.length) {
k[k.length] = n[i];
}
i++;
}
t = n.join(",");
y[0] = k[0];
l[0] = t.split(k[0]).length - 1;
i = 1;
while (i < k.length) {
if ((t.split(k[i]).length - 1) > l[0]) {
l[0] = t.split(k[i]).length - 1;
y = new Array();
y[0] = k[i];
} else if ((t.split(k[i]).length - 1) == l[0]) {
y[y.length] = k[i];
}
i++;
}
return(y);
}
static function Nroot(num, n) {
return(Math.pow(num, 1 / n));
}
static var Phi = new Number(1.61803398874989);
}
Symbol 3326 MovieClip [__Packages.rr.control.PlaneMenu] Frame 0
class rr.control.PlaneMenu extends rr.BaseClip
{
var _visible, popairfield_mc, quitconfirm_mc, planeselect_mc, weaponselect_mc, selectedLinkId, selectedDisplay, events, ingameWeaponType, planedisplays_mc, totalload;
function PlaneMenu () {
super();
init();
}
function init() {
_visible = false;
popairfield_mc._visible = false;
quitconfirm_mc._visible = false;
planeselect_mc.image_mc.select_btn.onPress = rr.utils.Delegate.create(this, confirmSelection);
planeselect_mc.quit_btn.onPress = rr.utils.Delegate.create(this, showQuitConfirm);
weaponselect_mc.planeselect_btn.onPress = rr.utils.Delegate.create(this, checkPlaneSelect);
weaponselect_mc.start_btn.onPress = rr.utils.Delegate.create(this, endSelect);
weaponselect_mc.quit_btn.onPress = rr.utils.Delegate.create(this, showQuitConfirm);
weaponselect_mc.continue_btn.onPress = rr.utils.Delegate.create(this, endSelect);
weaponselect_mc.upAir_btn.onPress = rr.utils.Delegate.create(this, checkUpgrade, "upair");
weaponselect_mc.upGround_btn.onPress = rr.utils.Delegate.create(this, checkUpgrade, "upground");
weaponselect_mc.upBomb1_btn.onPress = (weaponselect_mc.upBomb2_btn.onPress = rr.utils.Delegate.create(this, checkUpgrade, "upbomb"));
weaponselect_mc.upGun1_btn.onPress = (weaponselect_mc.upGun2_btn.onPress = rr.utils.Delegate.create(this, checkUpgrade, "upgun"));
quitconfirm_mc.cancel_btn.onPress = rr.utils.Delegate.create(this, cancelQuit);
quitconfirm_mc.ok_btn.onPress = rr.utils.Delegate.create(this, quitGame);
hideWeaponInfo();
}
function initLevel() {
selectedLinkId = undefined;
selectedDisplay.clear();
events.dispatchEvent({type:"onInitLevel"});
showPlaneSelect();
}
function endSelect() {
if (!menuEnabled()) {
return(undefined);
}
_global.planedefinition = new rr.plane.PlaneDefinition();
_global.planedefinition.fill(selectedDisplay);
if (ingameWeaponType != undefined) {
_global.planedefinition.weaponType = ingameWeaponType;
ingameWeaponType = undefined;
}
if (!_global.game.levelstarted) {
rr.utils.Delegate.callDelayed(_global.game, _global.game.playLevel, 100);
} else {
_global.stage.createPlane();
_global.stage.mov._visible = true;
_global.bottommenu._visible = true;
_global.aim.resetMode();
_global.aim.show();
_global.timer.start();
_visible = false;
}
_visible = false;
}
function checkPlaneSelect() {
if (!menuEnabled()) {
return(undefined);
}
var _local3;
var _local4 = rr.conf.Config.getObjectValue(selectedLinkId, "price");
if (_global.plane != undefined) {
_local3 = Math.round((_local4 * (_global.plane.killlevel - _global.plane.damage)) / _global.plane.killlevel);
} else {
_local3 = _local4;
}
_local3 = _local3 + selectedDisplay.getRefund();
_global.confirm.showConfirm(this, showPlaneSelect, {price:_local3});
}
function showPlaneSelect() {
selectedDisplay.clearAndRefund();
if (_global.game.levelstarted) {
_global.timer.stop();
_global.aim.hide();
_global.stage.mov._visible = false;
_global.bottommenu._visible = false;
selectedDisplay.clear();
selectPlane(selectedLinkId);
}
planedisplays_mc._visible = false;
weaponselect_mc._visible = false;
planeselect_mc._visible = true;
var _local3 = 2;
while (_local3 <= 8) {
planeselect_mc.items_mc["lock" + _local3]._visible = false;
_local3++;
}
planeselect_mc.items_mc.gotoAndPlay(1);
rr.utils.Delegate.callDelayed(this, setPlaneLocks, 500);
planeselect_mc.image_mc._visible = false;
if (selectedLinkId == undefined) {
if (_global.game.levelId == 1) {
selectedLinkId = "FockeWolf";
selectPlane(selectedLinkId);
}
if (_global.game.levelId == 2) {
selectedLinkId = "BellHuey";
selectPlane(selectedLinkId);
}
if (_global.game.levelId == 3) {
selectedLinkId = "C47";
selectPlane(selectedLinkId);
}
if (_global.game.levelId == 4) {
selectedLinkId = "MesserSchmidt";
selectPlane(selectedLinkId);
}
if (_global.game.levelId == 5) {
selectedLinkId = "MesserSchmidt";
selectPlane(selectedLinkId);
}
if (_global.game.levelId == 6) {
selectedLinkId = "MesserSchmidt";
selectPlane(selectedLinkId);
}
if (_global.game.levelId == 7) {
selectedLinkId = "MesserSchmidt";
selectPlane(selectedLinkId);
}
if (_global.game.levelId >= 8) {
selectedLinkId = "MesserSchmidt";
selectPlane(selectedLinkId);
}
if (_global.gametype == "extra") {
selectedLinkId = "FockeWolf";
selectPlane(selectedLinkId);
}
} else {
refundPlane();
selectPlane(selectedLinkId);
}
_visible = true;
}
function setPlaneLocks() {
if (_global.gametype == "extra") {
var _local3 = 2;
while (_local3 <= 8) {
var _local4 = _local3;
if (_global.gameMode == "Demo") {
if (_local4 == 4) {
_local4 = 5;
}
}
planeselect_mc.items_mc["lock" + _local3]._visible = _global.superlevel < _local4;
_local3++;
}
} else {
var _local3 = 2;
while (_local3 <= 8) {
planeselect_mc.items_mc["lock" + _local3]._visible = _global.game.levelId < _local3;
_local3++;
}
}
}
function selectPlane(linkId) {
if (!menuEnabled()) {
return(undefined);
}
selectedLinkId = linkId;
planeselect_mc.image_mc.gotoAndStop(linkId);
var _local4 = rr.conf.Config.getObjectValue(linkId, "price");
var _local3 = rr.conf.Config.getObjectValue(linkId, "availabilitylevel");
planeselect_mc.image_mc.price_txt.text = "$ " + rr.utils.StringUtils.formatNumberWithCommas(_local4);
planeselect_mc.image_mc.cash_txt.text = "$ " + rr.utils.StringUtils.formatNumberWithCommas(_global.player.cash);
planeselect_mc.image_mc.alevel_txt.text = _local3;
if (_global.gametype == "extra") {
var _local5 = _global.superlevel;
if (_global.gameMode == "Demo") {
if (_local5 == 4) {
_local5 = 3;
}
}
if ((_global.player.cash >= _local4) && (_local3 <= _local5)) {
planeselect_mc.image_mc.select_btn.enabled = true;
planeselect_mc.image_mc.select_btn._alpha = 100;
} else {
planeselect_mc.image_mc.select_btn.enabled = false;
planeselect_mc.image_mc.select_btn._alpha = 50;
}
} else if ((_global.player.cash >= _local4) && (_local3 <= _global.game.levelId)) {
planeselect_mc.image_mc.select_btn.enabled = true;
planeselect_mc.image_mc.select_btn._alpha = 100;
} else {
planeselect_mc.image_mc.select_btn.enabled = false;
planeselect_mc.image_mc.select_btn._alpha = 50;
}
planeselect_mc.image_mc._visible = true;
}
function showInGame() {
_global.stage.clearAmmo();
if (_global.game.missionDone()) {
_global.game.endLevel(true);
return(undefined);
}
if (!_global.player.hasCashToFinish()) {
refundPlane();
selectedDisplay.clearAndRefund();
_global.game.endLevel(false, "cash");
return(undefined);
}
ingameWeaponType = _global.planedefinition.weaponType;
_global.bottommenu.checkPopBreak();
confirmSelection(true);
showPopAirfield(true);
}
function showPopAirfield(showRef) {
popairfield_mc.airfield_mc.gotoAndStop(_global.stage.startbase.id);
var _local4 = 1;
while (_local4 <= 6) {
popairfield_mc["mt" + _local4]._visible = false;
_local4++;
}
var _local5 = _global.game.missiontargets.length;
_local4 = 0;
while (_local4 < _local5) {
var _local3 = _global.game.missiontargets[_local4];
popairfield_mc["mt" + _local3.id].target_txt.autoSize = true;
popairfield_mc["mt" + _local3.id].completed_mc._visible = _local3.completed == true;
popairfield_mc["mt" + _local3.id].target_txt.text = (_local3.id.toString().toUpperCase() + ".\t") + _local3.text.toUpperCase();
popairfield_mc["mt" + _local3.id]._visible = true;
_local4++;
}
popairfield_mc.refueled_mc._visible = false;
popairfield_mc._visible = true;
if (showRef) {
popairfield_mc.refueled_mc.gotoAndPlay(1);
popairfield_mc.refueled_mc._visible = true;
}
}
function showAfterCrash() {
_global.stage.clearAmmo();
selectedLinkId = undefined;
selectedDisplay.clear();
if (_global.game.missionDone()) {
_global.game.endLevel(true);
return(undefined);
}
if (!_global.player.hasCashToFinish()) {
_global.game.endLevel(false, "cash");
return(undefined);
}
_global.bottommenu.checkPopBreak();
showPopAirfield(false);
showPlaneSelect();
}
function refundPlane() {
var _local4;
if (_global.plane != undefined) {
var _local3 = rr.conf.Config.getObjectValue(_global.plane.linkId, "price");
_local4 = Math.round((_local3 * (_global.plane.killlevel - _global.plane.damage)) / _global.plane.killlevel);
_global.player.addCash(_local4);
} else {
var _local3 = rr.conf.Config.getObjectValue(selectedLinkId, "price");
_global.player.addCash(_local3);
}
}
function confirmSelection(isInGame) {
if (!menuEnabled()) {
return(undefined);
}
if (_global.game.levelstarted) {
_global.timer.stop();
_global.aim.hide();
_global.stage.mov._visible = false;
_global.bottommenu._visible = false;
selectedDisplay.refreshBoxes();
}
selectedDisplay.hide();
selectedDisplay = planedisplays_mc[selectedLinkId + "_mc"];
if (!isInGame) {
var _local3 = rr.conf.Config.getObjectValue(selectedLinkId, "price");
_global.player.addCash(-_local3);
totalload = 0;
if (_global.game.levelId == 1) {
if (!_global.game.levelstarted) {
fillFirstLevelWeapons();
}
}
weaponselect_mc.continue_btn._visible = false;
weaponselect_mc.start_btn._visible = true;
if (_global.game.levelstarted) {
selectedDisplay.show(false);
} else {
selectedDisplay.show(true);
}
} else {
totalload = _global.planedefinition.totalload;
weaponselect_mc.continue_btn._visible = true;
weaponselect_mc.start_btn._visible = false;
selectedDisplay.show(false);
}
events.dispatchEvent({type:"onUpdateMenu"});
planeselect_mc._visible = false;
weaponselect_mc._visible = true;
planedisplays_mc._visible = true;
setCashLoad();
_visible = true;
}
function fillFirstLevelWeapons() {
weaponselect_mc.GroundMissile_mc.doSelect();
weaponselect_mc.AirMissile_mc.doSelect();
weaponselect_mc.GroundMissile_mc.doSelect();
weaponselect_mc.GunSingle_mc.doSelect();
weaponselect_mc.GunSingle_mc.doSelect();
weaponselect_mc.Propaganda_mc.doSelect();
weaponselect_mc.BombNormal_mc.doSelect();
}
function onWeaponSelect(col, bo, box) {
if (box == undefined) {
box = selectedDisplay.getFreeBox(col);
}
box.selectWeapon(bo);
_global.player.addCash(-bo.price);
totalload = totalload + (bo.count * bo.unitweight);
setCashLoad();
events.dispatchEvent({type:"onUpdateMenu"});
}
function onWeaponRemove(box) {
if (box.boxObject == undefined) {
return(undefined);
}
box.doRefund();
setCashLoad();
box.clear();
events.dispatchEvent({type:"onUpdateMenu"});
}
function checkUpgrade(up) {
if (!menuEnabled()) {
return(undefined);
}
var _local3;
switch (up) {
case "upair" :
_local3 = 5000;
break;
case "upground" :
_local3 = 5000;
break;
case "upbomb" :
_local3 = ((_global.player.upBomb == 1) ? 5000 : 10000);
break;
case "upgun" :
_local3 = ((_global.player.upGun == 1) ? 5000 : 10000);
}
_global.confirm.showConfirm(this, doUpgrade, {upgrade:up, price:_local3});
}
function doUpgrade(up, upgradePrice) {
switch (up) {
case "upair" :
_global.player.upAir = 2;
break;
case "upground" :
_global.player.upGround = 2;
break;
case "upbomb" :
_global.player.upBomb = ((_global.player.upBomb < 3) ? (_global.player.upBomb + 1) : (_global.player.upBomb));
break;
case "upgun" :
_global.player.upGun = ((_global.player.upGun < 3) ? (_global.player.upGun + 1) : (_global.player.upGun));
}
_global.player.addCash(-upgradePrice);
events.dispatchEvent({type:"onUpgrade", upgrade:up});
setCashLoad();
}
function setButtons() {
weaponselect_mc.upAir_btn._visible = (weaponselect_mc.AirSeeker_mc.isPossible && (_global.player.upAir == 1)) && (_global.player.cash > 5000);
weaponselect_mc.upGround_btn._visible = (weaponselect_mc.GroundSeeker_mc.isPossible && (_global.player.upGround == 1)) && (_global.player.cash > 5000);
weaponselect_mc.upBomb1_btn._visible = (weaponselect_mc.BombHeavy_mc.isPossible && (_global.player.upBomb == 1)) && (_global.player.cash > 5000);
weaponselect_mc.upBomb2_btn._visible = (weaponselect_mc.BombExtreme_mc.isPossible && (_global.player.upBomb == 2)) && (_global.player.cash > 10000);
weaponselect_mc.upGun1_btn._visible = (weaponselect_mc.GunDouble_mc.isPossible && (_global.player.upGun == 1)) && (_global.player.cash > 5000);
weaponselect_mc.upGun2_btn._visible = (weaponselect_mc.GunGatling_mc.isPossible && (_global.player.upGun == 2)) && (_global.player.cash > 10000);
}
function showWeaponInfo(obj) {
weaponselect_mc.info_mc.weaponinfo_mc.header_txt.text = obj.displayname.toUpperCase();
weaponselect_mc.info_mc.weaponinfo_mc.count_txt.text = obj.count;
weaponselect_mc.info_mc.weaponinfo_mc.price_txt.text = "$ " + rr.utils.StringUtils.formatNumberWithCommas(obj.price);
weaponselect_mc.info_mc.weaponinfo_mc._visible = true;
}
function hideWeaponInfo() {
weaponselect_mc.info_mc.weaponinfo_mc._visible = false;
}
function setCashLoad() {
weaponselect_mc.info_mc.cash_txt.text = "$ " + rr.utils.StringUtils.formatNumberWithCommas(_global.player.cash);
weaponselect_mc.info_mc.load_txt.text = rr.utils.MathUtils.formatDecimals(totalload / 1000, 2) + " TONS";
setButtons();
}
function showQuitConfirm() {
if (!menuEnabled()) {
return(undefined);
}
_global.weaponmenu.hide();
_global.timer.stop();
_global.aim.hide(this);
quitconfirm_mc._visible = true;
}
function cancelQuit() {
quitconfirm_mc._visible = false;
}
function quitGame() {
quitconfirm_mc._visible = false;
_global.game.quitGame();
}
function menuEnabled() {
if ((_global.confirm._visible || (popairfield_mc._visible)) || (quitconfirm_mc._visible)) {
return(false);
}
return(true);
}
}
Symbol 3327 MovieClip [__Packages.rr.BaseClass] Frame 0
class rr.BaseClass
{
var events;
function BaseClass () {
}
function addEventListener(evt, listener) {
if (events == undefined) {
events = new mx.events.EventDispatcher();
}
events.addEventListener(evt, listener);
}
function removeEventListener(evt, listener) {
events.removeEventListener(evt, listener);
}
var pi = Math.PI;
var cos = Math.cos;
var acos = Math.acos;
var sin = Math.sin;
var asin = Math.asin;
var atan2 = Math.atan2;
var abs = Math.abs;
var round = Math.round;
}
Symbol 3328 MovieClip [__Packages.rr.plane.PlaneDefinition] Frame 0
class rr.plane.PlaneDefinition extends rr.BaseClass
{
var count_AirMissile, count_AirSeeker, count_GroundMissile, count_GroundSeeker, count_BombNormal, count_BombHeavy, count_BombExtreme, count_Propaganda, count_EMPBomb, count_FuelBomb, count_CarpetBomb, count_NuclearBomb, totalload, airmissiles, groundmissiles, bombs, guns, props, emps, fuels, carpets, nuclears, weaponstock, linkId, weaponType, loadedWeapon, selectedArray, gunSound, hasWeapons, hasAir, hasGround, hasBomb, hasGun, hasPropaganda, hasEMP, hasFuel, hasCarpet, hasNuclear;
function PlaneDefinition () {
super();
init();
}
function init() {
count_AirMissile = (count_AirSeeker = (count_GroundMissile = (count_GroundSeeker = 0)));
count_BombNormal = (count_BombHeavy = (count_BombExtreme = 0));
count_Propaganda = (count_EMPBomb = (count_FuelBomb = (count_CarpetBomb = (count_NuclearBomb = 0))));
totalload = 0;
airmissiles = new Array();
groundmissiles = new Array();
bombs = new Array();
guns = new Array();
props = new Array();
emps = new Array();
fuels = new Array();
carpets = new Array();
nuclears = new Array();
weaponstock = new Array({name:"Guns", arr:guns}, {name:"AirMissile", arr:airmissiles}, {name:"GroundMissile", arr:groundmissiles}, {name:"Bombs", arr:bombs}, {name:"Propaganda", arr:props}, {name:"EMPBomb", arr:emps}, {name:"FuelBomb", arr:fuels}, {name:"CarpetBomb", arr:carpets}, {name:"NuclearBomb", arr:nuclears});
}
function get GunCount() {
return(guns.length);
}
function get AirCount() {
return(count_AirMissile + count_AirSeeker);
}
function get GroundCount() {
return(count_GroundMissile + count_GroundSeeker);
}
function get BombCount() {
return((count_BombNormal + count_BombHeavy) + count_BombExtreme);
}
function get PropagandaCount() {
return(count_Propaganda);
}
function get EMPBombCount() {
return(count_EMPBomb);
}
function get FuelBombCount() {
return(count_FuelBomb);
}
function get CarpetBombCount() {
return(count_CarpetBomb);
}
function get NuclearBombCount() {
return(count_NuclearBomb);
}
function fill(display) {
linkId = display.linkId;
var _local4 = display.oranges;
var _local5 = 0;
while (_local5 < _local4.length) {
var _local3 = _local4[_local5].boxObject;
if (_local3 != undefined) {
if ((_local3.linkId == "AirMissile") || (_local3.linkId == "AirSeeker")) {
airmissiles.push(_local3);
} else {
groundmissiles.push(_local3);
}
this["count_" + _local3.linkId] = this["count_" + _local3.linkId] + _local3.count;
totalload = totalload + (_local3.count * _local3.unitweight);
}
_local5++;
}
_local4 = display.reds;
_local5 = 0;
while (_local5 < _local4.length) {
var _local3 = _local4[_local5].boxObject;
if (_local3 != undefined) {
bombs.push(_local3);
this["count_" + _local3.linkId] = this["count_" + _local3.linkId] + _local3.count;
totalload = totalload + (_local3.count * _local3.unitweight);
}
_local5++;
}
_local4 = display.blues;
_local5 = 0;
while (_local5 < _local4.length) {
var _local3 = _local4[_local5].boxObject;
if (_local3 != undefined) {
_local3.lastFired = getTimer();
guns.push(_local3);
totalload = totalload + _local3.unitweight;
}
_local5++;
}
_local4 = display.greens;
_local5 = 0;
while (_local5 < _local4.length) {
var _local3 = _local4[_local5].boxObject;
if (_local3 != undefined) {
if (_local3.linkId == "Propaganda") {
props.push(_local3);
}
if (_local3.linkId == "EMPBomb") {
emps.push(_local3);
}
if (_local3.linkId == "FuelBomb") {
fuels.push(_local3);
}
if (_local3.linkId == "CarpetBomb") {
carpets.push(_local3);
}
if (_local3.linkId == "NuclearBomb") {
nuclears.push(_local3);
}
this["count_" + _local3.linkId] = this["count_" + _local3.linkId] + _local3.count;
totalload = totalload + (_local3.count * _local3.unitweight);
}
_local5++;
}
_global.bottommenu.onWeaponUpdate();
}
function prepareWeapon(type) {
if (_global.minimap._visible) {
return(undefined);
}
if (weaponType == "Guns") {
if (type != "Guns") {
_global.plane.stopGun();
}
} else if (type == "Guns") {
if (_global.plane.isFiring) {
_global.plane.playGun();
}
}
weaponType = type;
var _local4 = weaponstock.length;
var _local3 = 0;
while (_local3 < _local4) {
if (weaponstock[_local3].name == weaponType) {
if (weaponType == "Guns") {
loadedWeapon = undefined;
selectedArray = undefined;
gunSound = rr.conf.Config.getObjectValue(guns[0].linkId, "gunsound");
} else {
selectedArray = weaponstock[_local3].arr;
}
break;
}
_local3++;
}
if (selectedArray != undefined) {
loadedWeapon = findWeapon(selectedArray);
}
_global.weaponmenu.hideSelector();
_global.bottommenu.onWeaponUpdate();
}
function prepareNextWeapon() {
if (!hasWeapons) {
return(undefined);
}
var _local3;
var _local2 = 0;
while (_local2 < weaponstock.length) {
if (weaponstock[_local2].name == weaponType) {
_local3 = _local2 + 1;
if (_local3 > (weaponstock.length - 1)) {
_local3 = 0;
}
break;
}
_local2++;
}
var _local4;
_local2 = _local3;
while (_local2 < weaponstock.length) {
_local4 = findWeapon(weaponstock[_local2].arr);
if (_local4 != undefined) {
prepareWeapon(weaponstock[_local2].name);
return(undefined);
}
_local2++;
}
_local2 = 0;
while (_local2 < _local3) {
_local4 = findWeapon(weaponstock[_local2].arr);
if (_local4 != undefined) {
prepareWeapon(weaponstock[_local2].name);
return(undefined);
}
_local2++;
}
}
function loadWeapon() {
loadedWeapon.count--;
this["count_" + loadedWeapon.linkId] = this["count_" + loadedWeapon.linkId] - 1;
totalload = totalload - loadedWeapon.unitweight;
if (loadedWeapon.linkId == "Propaganda") {
if (PropagandaCount == 0) {
_global.bottommenu.showTip("tippropaganda");
}
}
checkWeapons();
_global.bottommenu.setCounts();
loadedWeapon = findWeapon(selectedArray);
if (loadedWeapon == undefined) {
setDefaultWeapon();
}
_global.bottommenu.onWeaponUpdate();
}
function findWeapon(arr) {
var _local3 = new Array();
var _local1 = 0;
while (_local1 < arr.length) {
if (arr[_local1].count > 0) {
_local3.push(arr[_local1]);
}
_local1++;
}
if (_local3.length > 0) {
var _local4 = Math.round(Math.random() * (_local3.length - 1));
return(_local3[_local4]);
}
return(undefined);
}
function checkWeapons() {
hasAir = AirCount > 0;
hasGround = GroundCount > 0;
hasBomb = BombCount > 0;
hasGun = guns.length > 0;
hasPropaganda = PropagandaCount > 0;
hasEMP = EMPBombCount > 0;
hasFuel = FuelBombCount > 0;
hasCarpet = CarpetBombCount > 0;
hasNuclear = NuclearBombCount > 0;
hasWeapons = (((((((hasAir || (hasGround)) || (hasBomb)) || (hasGun)) || (hasPropaganda)) || (hasEMP)) || (hasFuel)) || (hasCarpet)) || (hasNuclear);
}
function setDefaultWeapon() {
checkWeapons();
if (weaponType != undefined) {
prepareWeapon(weaponType);
if (loadedWeapon != undefined) {
return(undefined);
}
}
if (hasGun) {
prepareWeapon("Guns");
} else if (hasGround) {
prepareWeapon("GroundMissile");
} else if (hasAir) {
prepareWeapon("AirMissile");
} else if (hasBomb) {
prepareWeapon("Bombs");
} else if (hasPropaganda) {
prepareWeapon("Propaganda");
} else if (hasEMP) {
prepareWeapon("EMPBomb");
} else if (hasFuel) {
prepareWeapon("FuelBomb");
} else if (hasCarpet) {
prepareWeapon("CarpetBomb");
} else if (hasNuclear) {
prepareWeapon("NuclearBomb");
}
}
}
Symbol 3329 MovieClip [__Packages.rr.control.MiniMap] Frame 0
class rr.control.MiniMap extends rr.BaseClip
{
var _visible, map_bmp, container_mc, margin, scale, w, h, railcolor, createEmptyMovieClip, getNextHighestDepth, map_mc, label_mc, objectives_mc, legenda_mc, edge_mc, cam_mc, items_mc, icons_mc, confirm_mc, attachMovie;
function MiniMap () {
super();
init();
}
function init() {
_visible = false;
map_bmp.dispose();
delete map_bmp;
container_mc.removeMovieClip();
margin = 5;
var _local3 = _global.map.width;
var _local4 = _global.map.height;
scale = ((_local3 > _local4) ? ((640 - (2 * margin)) / _local3) : ((480 - (2 * margin)) / _local4));
w = _local3 * scale;
h = _local4 * scale;
if ((_global.game.levelId == 3) || (_global.game.levelId == 4)) {
var _local6 = 295;
scale = scale * (_local6 / h);
w = _local3 * scale;
h = _local4 * scale;
}
railcolor = 13103871 /* 0xC7F2FF */;
if ((_global.map.mapId == 2) || (_global.map.mapId == 3)) {
railcolor = 11836;
}
container_mc = createEmptyMovieClip("container_mc", getNextHighestDepth());
map_mc = container_mc.createEmptyMovieClip("map_mc", container_mc.getNextHighestDepth());
map_bmp = new flash.display.BitmapData(w, h, true, 0);
map_mc.attachBitmap(map_bmp, map_mc.getNextHighestDepth());
label_mc = container_mc.attachMovie("MiniMapLabel", "label_mc", container_mc.getNextHighestDepth());
objectives_mc = container_mc.attachMovie("MissionObjectives", "objectives_mc", container_mc.getNextHighestDepth());
legenda_mc = container_mc.attachMovie("MiniMapLegenda", "legenda_mc", container_mc.getNextHighestDepth());
var _local5 = SharedObject.getLocal("showmousemenu");
if (_local5.data.showmenu == undefined) {
_local5.data.showmenu = true;
_local5.flush();
}
_global.showMouseMenu = _local5.data.showmenu;
if (!_global.showMouseMenu) {
label_mc.togglemenu_mc.gotoAndStop(2);
}
label_mc.togglemenu_mc.onPress = rr.utils.Delegate.create(this, checkToggle);
setMissionText();
map_mc._y = (480 - h) - (2 * margin);
if ((_global.game.levelId == 3) || (_global.game.levelId == 4)) {
label_mc._x = 0;
objectives_mc._x = 0;
objectives_mc._y = map_mc._y - objectives_mc._height;
legenda_mc._x = w + margin;
legenda_mc._y = (480 - (margin * 2)) - legenda_mc._height;
} else if (w > h) {
label_mc._x = 0;
objectives_mc._x = 0;
objectives_mc._y = map_mc._y - objectives_mc._height;
legenda_mc._x = w - legenda_mc._width;
legenda_mc._y = (map_mc._y - margin) - legenda_mc._height;
} else {
label_mc._x = w + margin;
objectives_mc._x = w + margin;
objectives_mc._y = label_mc._height + margin;
legenda_mc._x = w + margin;
legenda_mc._y = (480 - (margin * 2)) - legenda_mc._height;
}
container_mc._x = margin;
container_mc._y = margin;
edge_mc = container_mc.createEmptyMovieClip("edge_mc", container_mc.getNextHighestDepth());
edge_mc.lineStyle(1, 202014);
rr.utils.DrawUtils.drawRect(edge_mc, 0, map_mc._y, w, h);
cam_mc = container_mc.createEmptyMovieClip("cam_mc", container_mc.getNextHighestDepth());
cam_mc.lineStyle(2, 16776960);
rr.utils.DrawUtils.drawRect(cam_mc, 0, 0, 640 * scale, 480 * scale);
}
function showMap() {
trace("show MiniMap: ");
_global.timer.stop();
if (_global.aim.hiddenBy) {
_global.aim.show(_global.aim.hiddenBy);
}
_global.aim.hide(this);
checkMissionText();
cam_mc._x = _global.camera.left * scale;
cam_mc._y = (_global.camera.top * scale) + map_mc._y;
items_mc = container_mc.createEmptyMovieClip("items_mc", container_mc.getNextHighestDepth());
items_mc.lineStyle(1, 0);
icons_mc = container_mc.createEmptyMovieClip("icons_mc", container_mc.getNextHighestDepth());
var _local10;
_local10 = _global.map.cells.length;
var _local12 = 0;
while (_local12 < _local10) {
var _local4 = _global.map["cell_" + _global.map.cells[_local12]];
var _local13 = _local4.statics.length;
var _local5 = 0;
while (_local5 < _local13) {
var _local11 = _global.stage["obj_" + _local4.statics[_local5]];
if (_local11 instanceof rr.building.Building) {
if ((_local11.type == "Industry") || (_local11.type == "Office")) {
createIcon("b-bad", _local11.x * scale, _local11.y * scale);
} else {
createIcon("b-good", _local11.x * scale, _local11.y * scale);
}
}
_local5++;
}
var _local8 = (_local4.hasRemovables ? (_local4.removables) : (_local4.eiObjects));
_local5 = 0;
while (_local5 < _local8.length) {
var _local3 = (_local4.hasRemovables ? (_global.stage["obj_" + _local8[_local5]]) : (_local8[_local5]));
if (!_local3.isdead) {
if (_local3.hostility > 0) {
createIcon("u-bad", _local3.x * scale, _local3.y * scale);
} else {
createIcon("u-good", _local3.x * scale, _local3.y * scale);
}
}
_local5++;
}
_local12++;
}
_local10 = _global.train.segments.length;
_local12 = 0;
while (_local12 < _local10) {
var _local7 = _global.train.segments[_local12];
createIcon("train", _local7.x * scale, _local7.y * scale);
_local12++;
}
if (_global.stage.strains) {
_local10 = _global.stage.strains.length;
_local12 = 0;
while (_local12 < _local10) {
var _local11 = _global.stage.strains[_local12];
var _local13 = _local11.segments.length;
var _local5 = 0;
while (_local5 < _local13) {
var _local7 = _local11.segments[_local5];
createIcon("train", _local7.x * scale, _local7.y * scale);
_local5++;
}
_local12++;
}
}
_local10 = _global.stage.airs.length;
_local12 = 0;
while (_local12 < _local10) {
var _local9 = _global.stage["obj_" + _global.stage.airs[_local12]];
if (!_local9.isdead) {
createIcon("p-bad", _local9.x * scale, _local9.y * scale, _local9.rot);
}
_local12++;
}
_local10 = _global.stage.afs.length;
_local12 = 0;
while (_local12 < _local10) {
var _local6 = _global.stage["obj_" + _global.stage.afs[_local12]];
if (_local6.hostility > 0) {
createIcon("afb" + _local6.id, _local6.x * scale, _local6.y * scale);
} else {
createIcon("afg" + _local6.id, _local6.x * scale, _local6.y * scale);
}
_local12++;
}
var _local14 = _global.plane;
createIcon("p-good", _local14.x * scale, _local14.y * scale, _local14.rot);
_visible = true;
}
function createIcon(t, px, py, prot) {
var _local2 = icons_mc.attachMovie("MiniMapIcon", rr.utils.StringUtils.getUniqueName(), icons_mc.getNextHighestDepth());
_local2.gotoAndPlay(t);
_local2._x = px;
_local2._y = map_mc._y + py;
if (prot) {
_local2._rotation = prot;
}
}
function closeMap() {
if (confirm_mc) {
return(undefined);
}
icons_mc.removeMovieClip();
items_mc.removeMovieClip();
_visible = false;
_global.aim.show(this);
_global.timer.start();
}
function setMissionText() {
var _local8 = _global.game.missiontargets.length;
var _local6 = objectives_mc._height;
var _local4 = 0;
while (_local4 < _local8) {
var _local5 = _global.game.missiontargets[_local4];
var _local3 = objectives_mc.attachMovie("MiniMapMissionTarget", "mt" + _local5.id, objectives_mc.getNextHighestDepth(), {_y:_local6});
_local3.completed_mc._visible = false;
_local3.target_txt.multiline = false;
_local3.target_txt.autoSize = true;
_local3.target_txt.text = (_local5.id.toString().toUpperCase() + ".\t") + _local5.text.toUpperCase();
_local6 = _local6 + 13;
_local4++;
}
}
function checkMissionText() {
var _local5 = _global.game.missiontargets.length;
var _local3 = 0;
while (_local3 < _local5) {
var _local4 = _global.game.missiontargets[_local3];
if (_local4.completed) {
objectives_mc["mt" + _local4.id].completed_mc._visible = true;
}
_local3++;
}
}
function checkToggle() {
confirm_mc = attachMovie("ToggleConfirm", "confirm_mc", getNextHighestDepth());
confirm_mc._x = 320 - (confirm_mc._width / 2);
confirm_mc._y = 240 - (confirm_mc._height / 2);
if (_global.showMouseMenu) {
confirm_mc.confirm_txt.text = "You are turning off the weapons mouse menu.\rSelecting weapons will still be possible with 'C' key or by pressing the weapon buttons below.\rThese settings will be saved.";
} else {
confirm_mc.confirm_txt.text = "You are turning on the weapons mouse menu.\rThese settings will be saved.";
}
confirm_mc.cancel_btn.onPress = rr.utils.Delegate.create(this, cancelToggle);
confirm_mc.ok_btn.onPress = rr.utils.Delegate.create(this, confirmToggle);
}
function cancelToggle() {
confirm_mc.removeMovieClip();
delete confirm_mc;
}
function confirmToggle() {
var _local3 = SharedObject.getLocal("showmousemenu");
_global.showMouseMenu = !_global.showMouseMenu;
if (_global.showMouseMenu) {
label_mc.togglemenu_mc.gotoAndStop(1);
} else {
label_mc.togglemenu_mc.gotoAndStop(2);
_global.weaponmenu.hide();
}
_local3.data.showmenu = _global.showMouseMenu;
_local3.flush();
confirm_mc.removeMovieClip();
delete confirm_mc;
}
}
Symbol 3330 MovieClip [__Packages.rr.utils.DrawUtils] Frame 0
class rr.utils.DrawUtils
{
function DrawUtils () {
}
static function drawSquare(mc, x, y, w, h, c) {
mc.moveTo(x, y);
mc.beginFill(c);
mc.lineTo(x + w, y);
mc.lineTo(x + w, y + h);
mc.lineTo(x, y + h);
mc.lineTo(x, y);
mc.endFill();
}
static function drawRect(mc, x, y, w, h) {
mc.moveTo(x, y);
mc.lineTo(x + w, y);
mc.lineTo(x + w, y + h);
mc.lineTo(x, y + h);
mc.lineTo(x, y);
}
static function drawFillRect(mc, x, y, w, h, fill_col, fill_alpha) {
mc.moveTo(x, y);
mc.beginFill(fill_col, fill_alpha);
mc.lineTo(x + w, y);
mc.lineTo(x + w, y + h);
mc.lineTo(x, y + h);
mc.lineTo(x, y);
mc.endFill();
}
static function drawCircle(mc, x, y, r, style) {
if (!mc.circle) {
mc.circle = mc.createEmptyMovieClip("circle", mc.getNextHighestDepth());
}
mc.circle.moveTo(x + r, y);
mc.circle.lineStyle(1, 0);
var _local7 = Math.tan((style * Math.PI) / 180);
var _local1 = 45;
while (_local1 <= 360) {
var _local4 = r * Math.cos((_local1 * Math.PI) / 180);
var _local3 = r * Math.sin((_local1 * Math.PI) / 180);
var _local6 = _local4 + ((r * _local7) * Math.cos(((_local1 - 90) * Math.PI) / 180));
var _local5 = _local3 + ((r * _local7) * Math.sin(((_local1 - 90) * Math.PI) / 180));
mc.circle.curveTo(_local6 + x, _local5 + y, _local4 + x, _local3 + y);
_local1 = _local1 + 45;
}
}
static function drawArc(mc, x, y, startAngle, arc, radius, colr) {
var _local18;
var _local1;
var _local3;
var _local4;
var _local13;
var _local7;
var _local6;
var _local12;
var _local10;
var _local11;
var _local9;
mc.lineStyle(1, colr, 100);
mc.beginFill(colr);
mc.moveTo(x, y);
if (Math.abs(arc) > 360) {
arc = 360;
}
_local13 = Math.ceil(Math.abs(arc) / 45);
_local18 = arc / _local13;
_local1 = (-(_local18 / 180)) * Math.PI;
_local3 = (-(startAngle / 180)) * Math.PI;
if (_local13 > 0) {
_local7 = x + (Math.cos((startAngle / 180) * Math.PI) * radius);
_local6 = y + (Math.sin(((-startAngle) / 180) * Math.PI) * radius);
mc.lineTo(_local7, _local6);
_local7 = x;
_local6 = y;
var _local5;
_local5 = 0;
while (_local5 < _local13) {
_local3 = _local3 + _local1;
_local4 = _local3 - (_local1 / 2);
_local12 = _local7 + (Math.cos(_local3) * radius);
_local10 = _local6 + (Math.sin(_local3) * radius);
_local11 = _local7 + (Math.cos(_local4) * (radius / Math.cos(_local1 / 2)));
_local9 = _local6 + (Math.sin(_local4) * (radius / Math.cos(_local1 / 2)));
mc.curveTo(_local11, _local9, _local12, _local10);
_local5++;
}
mc.lineTo(x, y);
mc.lineTo(_local7, _local6);
mc.endFill();
}
}
}
Symbol 3331 MovieClip [__Packages.rr.BaseUnit] Frame 0
class rr.BaseUnit extends rr.BaseClass
{
var uid, initObj, type, linkId, killlevel, destroydelay, explodesound, damage, isdead, isexploded, x, y, mov, events, isdestroyed;
function BaseUnit () {
super();
}
function init() {
uid = initObj.uid;
type = rr.conf.Config.getObjectValue(linkId, "type");
killlevel = rr.conf.Config.getObjectValue(linkId, "killlevel");
destroydelay = rr.conf.Config.getObjectValue(linkId, "destroydelay");
explodesound = rr.conf.Config.getObjectValue(linkId, "explodesound");
damage = 0;
isdead = false;
isexploded = false;
}
function checkRender() {
if (rr.utils.MathUtils.getDistance(x, y, _global.camera.x, _global.camera.y) < 500) {
render();
} else if (isdead) {
destroy();
} else if (mov) {
clearMov();
}
}
function render() {
if (!mov) {
createMov();
}
mov._x = x - _global.camera.left;
mov._y = y - _global.camera.top;
}
function createMov() {
var _local3 = rr.utils.ClipUtils.getFreeDepth(_global.stage.mov, this);
mov = _global.stage.mov.attachMovie(linkId, uid, _local3, {parent:this});
}
function clearMov() {
mov.removeMovieClip();
delete mov;
}
function addDamage(dmg) {
if (isdead) {
return(undefined);
}
if (!dmg) {
return(undefined);
}
damage = damage + dmg;
if (damage >= killlevel) {
die();
}
}
function die() {
if (isdead) {
return(undefined);
}
isdead = true;
events.dispatchEvent({type:"onUnitDie", target:this});
}
function explode() {
if (isexploded) {
return(undefined);
}
isexploded = true;
render();
_global.sounds.playExplodeSound(explodesound, 100, 20, 1000, x, y);
mov.gotoAndPlay("explode");
rr.utils.Delegate.callDelayed(this, destroy, destroydelay);
}
function destroy() {
isdestroyed = true;
clearMov();
_global.stage.removeObject(this);
}
}
Symbol 3332 MovieClip [__Packages.rr.utils.ClipUtils] Frame 0
class rr.utils.ClipUtils
{
function ClipUtils () {
}
static function getFreeDepth(mc, obj) {
var _local2 = rr.conf.ConfBaseDepths.getDepth(obj);
if (!_local2) {
_local2 = 1000;
}
var _local1 = 0;
while (mc.getInstanceAtDepth(_local2 + _local1)) {
_local1++;
}
return(_local2 + _local1);
}
static function getFreeDepthNum(mc, dep) {
var _local1 = 0;
while (mc.getInstanceAtDepth(dep + _local1)) {
_local1++;
}
return(dep + _local1);
}
static function setTint(mc, rgb, percent) {
var _local1 = new flash.geom.ColorTransform();
var _local4 = new flash.geom.Transform(mc);
var _local6 = rgb >> 16;
var _local7 = (rgb >> 8) & 255;
var _local5 = rgb & 255;
var _local2 = percent / 100;
_local1.redOffset = _local6 * _local2;
_local1.greenOffset = _local7 * _local2;
_local1.blueOffset = _local5 * _local2;
_local1.redMultiplier = (_local1.greenMultiplier = (_local1.blueMultiplier = (100 - percent) / 100));
_local4.colorTransform = _local1;
}
static function setBmpTint(bmp, rgb, percent) {
var _local2 = getTintTransform(rgb, percent);
var _local1 = bmp.clone();
bmp.draw(_local1, new flash.geom.Matrix(), _local2);
_local1.dispose();
}
static function getTintTransform(rgb, percent) {
var _local1 = new flash.geom.ColorTransform();
var _local5 = rgb >> 16;
var _local6 = (rgb >> 8) & 255;
var _local4 = rgb & 255;
var _local2 = percent / 100;
_local1.redOffset = _local5 * _local2;
_local1.greenOffset = _local6 * _local2;
_local1.blueOffset = _local4 * _local2;
_local1.redMultiplier = (_local1.greenMultiplier = (_local1.blueMultiplier = (100 - percent) / 100));
return(_local1);
}
static function createFeeler(name, col, w) {
var _local2 = _global.stage.createEmptyMovieClip(name, _global.stage.getNextHighestDepth());
_local2.lineStyle(1, col);
_local2.beginFill(col);
_local2.moveTo(-w, -w);
_local2.lineTo(w, -w);
_local2.lineTo(w, w);
_local2.lineTo(-w, w);
_local2.lineTo(-w, -w);
_local2.endFill();
return(_local2);
}
}
Symbol 3333 MovieClip [__Packages.rr.conf.ConfBaseDepths] Frame 0
class rr.conf.ConfBaseDepths
{
function ConfBaseDepths () {
}
static function getDepth(obj) {
if (obj == "MiniMap") {
return(300000);
}
if (obj instanceof rr.Aim) {
return(200000);
}
if (obj instanceof rr.control.WeaponMenu) {
return(199000);
}
if (obj == "OverAmmo") {
return(130000);
}
if (obj == "OverClouds") {
return(120000);
}
if (obj == "OverEnemyPlane") {
return(110000);
}
if (obj == "CloudLayer") {
return(100000);
}
if (obj == "UnderClouds") {
return(90000);
}
if (obj == "UnderEnemyPlane") {
return(80000);
}
if (obj == "UnderAmmo") {
return(70000);
}
if (obj.linkId == "AmmoRocketLauncher") {
return(42000);
}
if (obj instanceof rr.ammo.Ammo) {
return(40000);
}
if (obj == "StageForeground") {
return(30000);
}
if (obj instanceof rr.train.weapons.TrainWeapon) {
return(20000);
}
if (obj instanceof rr.train.statics.StaticTrainWeapon) {
return(20000);
}
if (obj instanceof rr.train.Locomotive) {
return(18000);
}
if (obj instanceof rr.train.statics.StaticLocomotive) {
return(18000);
}
if (obj instanceof rr.rail.RailBlock) {
return(14000);
}
if (obj instanceof rr.enemy.GroundUnit) {
return(10000);
}
if (obj == "BuildingLayer") {
return(9000);
}
if (obj instanceof rr.train.TrainWagon) {
return(1000);
}
if (obj instanceof rr.train.statics.StaticTrainWagon) {
return(1000);
}
}
}
Symbol 3334 MovieClip [__Packages.rr.Aim] Frame 0
class rr.Aim extends rr.BaseClass
{
var linkId, mov, hidden, x, y, xcam, ycam, speed, events, hiddenBy, mode;
function Aim () {
super();
}
function init() {
linkId = "Aim";
resetMode();
var _local3 = rr.utils.ClipUtils.getFreeDepth(_global.stage.mov, this);
mov = _global.stage.mov.attachMovie(linkId, rr.utils.StringUtils.getUniqueName(), _local3);
mov.cranewarning_mc._visible = false;
mov.onMouseDown = rr.utils.Delegate.create(this, setDown);
mov.onMouseUp = rr.utils.Delegate.create(this, setUp);
_global.timer.addEventListener("onTimerTick", this);
hidden = true;
show();
}
function onTimerTick() {
var _local4 = x;
var _local3 = y;
x = (xcam = mov._x + _global.camera.left);
y = (ycam = mov._y + _global.camera.top);
speed = rr.utils.MathUtils.getDistance(x, y, _local4, _local3);
if (mov._y > _global.stage.height) {
if (mov._visible) {
hide();
}
} else if (!mov._visible) {
show();
}
}
function setDown() {
if (mov._visible) {
events.dispatchEvent({type:"onAimDown", target:this});
}
}
function setUp() {
if (mov._visible) {
events.dispatchEvent({type:"onAimUp", target:this});
}
}
function show(obj) {
if (!mov) {
return(undefined);
}
if (!hidden) {
return(undefined);
}
if (obj) {
if (obj != hiddenBy) {
return(undefined);
}
delete hiddenBy;
} else if (hiddenBy) {
return(undefined);
}
hidden = false;
mov._visible = true;
Mouse.hide();
mov.startDrag(true);
}
function hide(obj) {
if (!mov) {
return(undefined);
}
if (hidden) {
return(undefined);
}
if (obj) {
hiddenBy = obj;
}
hidden = true;
setUp();
mov._visible = false;
Mouse.show();
}
function setMode(m) {
mode = m;
mov.gotoAndStop(mode);
}
function resetMode() {
setMode("default");
}
function clear() {
mov.removeMovieClip();
delete mov;
_global.timer.removeEventListener("onTimerTick", this);
Mouse.show();
}
}
Symbol 3335 MovieClip [__Packages.rr.control.WeaponMenu] Frame 0
class rr.control.WeaponMenu extends rr.BaseClass
{
var linkId, uid, mov, selector_mc, xmin, xmax, ymin, ymax, opened, x, sin, pi, y, cos;
function WeaponMenu () {
super();
}
function init() {
linkId = "WeaponMenu";
uid = rr.utils.StringUtils.getUniqueName();
var _local3 = rr.utils.ClipUtils.getFreeDepth(_global.stage.mov, this);
mov = _global.stage.mov.attachMovie(linkId, uid, _local3, {parent:this});
selector_mc = _global.stage.mov.attachMovie("WeaponSelector", rr.utils.StringUtils.getUniqueName(), _local3 + 1, {parent:this});
mov._visible = false;
selector_mc._visible = false;
addButtonListeners();
xmin = 5;
xmax = 635;
ymin = (mov._height / 2) + 5;
ymax = 457 - (mov._height / 2);
}
function showSelector() {
if (_global.minimap._visible) {
return(undefined);
}
_global.planedefinition.checkWeapons();
if (!_global.planedefinition.hasWeapons) {
return(undefined);
}
_global.timer.stop();
removeButtonListeners();
mov._visible = false;
_global.aim.hide(this);
opened = true;
selector_mc._x = _global.root._xmouse + 20;
selector_mc._y = _global.root._ymouse;
selector_mc._rotation = 0;
selector_mc._x = ((selector_mc._x < xmin) ? (xmin) : (((selector_mc._x > xmax) ? (xmax) : (selector_mc._x))));
selector_mc._y = ((selector_mc._y < ymin) ? (ymin) : (((selector_mc._y > ymax) ? (ymax) : (selector_mc._y))));
selector_mc.animation_mc.gotoAndPlay(1);
selector_mc._visible = true;
}
function hideSelector() {
if (!selector_mc._visible) {
return(undefined);
}
selector_mc._visible = false;
_global.aim.show(this);
addButtonListeners();
_global.timer.start();
opened = false;
}
function addButtonListeners() {
mov.onPress = rr.utils.Delegate.create(this, showSelector);
mov.onRollOver = rr.utils.Delegate.create(_global.aim, _global.aim.hide, this);
mov.onRollOut = (mov.button_mc.onDragOut = rr.utils.Delegate.create(_global.aim, _global.aim.show, this));
}
function removeButtonListeners() {
delete mov.onPress;
delete mov.onRollOver;
delete mov.onRollOut;
delete mov.onDragOut;
}
function hide() {
if (mov._visible) {
mov._visible = false;
}
}
function update() {
if (_global.minimap._visible) {
return(undefined);
}
x = _global.plane.x + (sin((_global.plane.rot * pi) / 180) * _global.plane.dmenu);
y = _global.plane.y - (cos((_global.plane.rot * pi) / 180) * _global.plane.dmenu);
mov._x = x - _global.camera.left;
mov._y = y - _global.camera.top;
mov._rotation = _global.plane.rot - 90;
mov._visible = true;
}
}
Symbol 3336 MovieClip [__Packages.rr.ammo.Ammo] Frame 0
class rr.ammo.Ammo extends rr.BaseClass
{
var uid, initObj, rot, mov, x, y, isDestroyed, linkId;
function Ammo () {
super();
}
function init() {
uid = initObj.uid;
rot = initObj.rot;
_global.stage.ammo.push(uid);
}
function render() {
if (!mov) {
createMov();
}
mov._x = x - _global.camera.left;
mov._y = y - _global.camera.top;
mov._rotation = rot;
}
function createMov() {
if (isDestroyed) {
return(undefined);
}
var _local3 = rr.utils.ClipUtils.getFreeDepth(_global.stage.mov, this);
mov = _global.stage.mov.attachMovie(linkId, rr.utils.StringUtils.getUniqueName(), _local3, {parent:this});
}
function clearMov() {
mov.removeMovieClip();
delete mov;
}
function destroy() {
if (isDestroyed) {
return(undefined);
}
isDestroyed = true;
clearMov();
_global.stage.removeObject(this);
}
}
Symbol 3337 MovieClip [__Packages.rr.train.weapons.TrainWeapon] Frame 0
class rr.train.weapons.TrainWeapon extends rr.BaseClass
{
var parent, initObj, uid, position, dfeel, linkId, dfire, dfiremin, tfire, rotspeed, killlevel, destroydelay, sound, gunsound, explodesound, rfire, lbarrel, ttarget, ddetect, x, xmargin, y, damage, isdead, rot, lastFired, lastTargeted, isdestroyed, cos, pi, sin, dplane, tar, dtar, mov, tarRot;
function TrainWeapon () {
super();
}
function init() {
parent = initObj.parent;
parent.weapons.push(this);
uid = initObj.uid;
position = initObj.position;
dfeel = rr.conf.Config.getObjectValue(linkId, "feelerradius");
dfire = rr.conf.Config.getObjectValue(linkId, "shootingdistance");
dfiremin = rr.conf.Config.getObjectValue(linkId, "shootingdistancemin");
tfire = rr.conf.Config.getObjectValue(linkId, "shootinginterval");
rotspeed = rr.conf.Config.getObjectValue(linkId, "rotationspeed");
killlevel = rr.conf.Config.getObjectValue(linkId, "killlevel");
destroydelay = rr.conf.Config.getObjectValue(linkId, "destroydelay");
sound = rr.conf.Config.getObjectValue(linkId, "sound");
gunsound = rr.conf.Config.getObjectValue(linkId, "gunsound");
explodesound = rr.conf.Config.getObjectValue(linkId, "explodesound");
rfire = rr.conf.Config.getObjectValue(linkId, "ammoaccuracy");
lbarrel = rr.conf.Config.getObjectValue(linkId, "barrellength");
ttarget = rr.conf.Config.getObjectValue(linkId, "targettime");
ddetect = rr.conf.Config.getObjectValue(linkId, "detectiondistance");
rr.train.TrainUtils.setWeaponMargin(this);
x = (parent.x + (parent.length / 2)) - xmargin;
y = parent.y;
damage = 0;
isdead = false;
rot = 0;
lastFired = getTimer();
lastTargeted = getTimer();
parent.addEventListener("onUpdate", this);
}
function onUpdate() {
if (isdestroyed) {
return(undefined);
}
x = parent.x + (cos(((-(parent.rot + parent.fliprot)) * pi) / 180) * ((parent.length / 2) - xmargin));
y = parent.y - (sin(((-(parent.rot + parent.fliprot)) * pi) / 180) * ((parent.length / 2) - xmargin));
if (_global.plane == undefined) {
checkRender();
return(undefined);
}
if (_global.plane.isdead) {
checkRender();
return(undefined);
}
if (isdead) {
checkRender();
return(undefined);
}
dplane = rr.utils.MathUtils.getDistance(x, y, _global.plane.x, _global.plane.y);
if (!parent.isstunned) {
aimAtTarget();
if (tar) {
if (dtar <= dfire) {
if (dtar >= dfiremin) {
fire();
}
}
}
}
checkRender();
updateAfterEvent();
}
function render() {
if (!mov) {
createMov();
}
mov._x = x - _global.camera.left;
mov._y = y - _global.camera.top;
mov._rotation = rot;
}
function checkRender() {
if (parent.isRendered) {
render();
} else if (mov) {
clearMov();
}
}
function createMov() {
var _local3 = rr.utils.ClipUtils.getFreeDepth(_global.stage.mov, this);
mov = _global.stage.mov.attachMovie(linkId, rr.utils.StringUtils.getUniqueName(), _local3, {parent:this});
checkNightMode();
}
function clearMov() {
mov.removeMovieClip();
delete mov;
}
function checkNightMode() {
if (_global.map.nightmap) {
rr.utils.ClipUtils.setTint(mov.base_mc, 0, 50);
rr.utils.ClipUtils.setTint(mov.barrel_mc.base_mc, 0, 50);
}
}
function aimAtTarget() {
if ((getTimer() - lastTargeted) > ttarget) {
lastTargeted = getTimer();
getTarget();
}
if (!tar) {
return(undefined);
}
dtar = rr.utils.MathUtils.getDistance(x, y, tar.x, tar.y);
var _local5 = rr.utils.Math2.Bearing(x, y, tar.x, tar.y);
var _local2 = (_local5 + 360) % 360;
var _local3 = (rot + 360) % 360;
if ((_local2 - _local3) > 180) {
_local2 = _local2 - 360;
} else if ((_local2 - _local3) < -180) {
_local2 = _local2 + 360;
}
if (_local2 > _local3) {
_local3 = _local3 + rotspeed;
} else {
_local3 = _local3 - rotspeed;
}
var _local4 = rr.utils.MathUtils.angDiff(_local3, _local2);
if ((_local4 <= rotspeed) || ((360 - _local4) <= rotspeed)) {
rot = _local2;
} else {
rot = _local3;
}
}
function getTarget() {
if ((_global.plane == undefined) || (_global.plane.isdead)) {
return(undefined);
}
if (dplane <= ddetect) {
if (Math.random() < 0.7) {
tar = _global.plane;
tar.addEventListener("onUnitDie", this);
return(undefined);
}
}
}
function fire() {
if (_global.plane == undefined) {
return(undefined);
}
if (_global.plane.isdead) {
return(undefined);
}
if ((getTimer() - lastFired) < tfire) {
return(undefined);
}
if (Math.abs(tarRot - rot) > 20) {
return(undefined);
}
lastFired = getTimer();
mov.barrel_mc.gotoAndPlay("shoot");
_global.sounds.playSound(gunsound);
var _local4 = x + (sin((rot * pi) / 180) * lbarrel);
var _local3 = y - (cos((rot * pi) / 180) * lbarrel);
rr.ammo.AmmoUtils.createAmmo({type:linkId, parentLinkId:linkId, x:_local4, y:_local3, rot:rot});
}
function addDamage(dmg) {
if (isdead) {
return(undefined);
}
if (!dmg) {
return(undefined);
}
damage = damage + dmg;
if (damage >= killlevel) {
damage = killlevel;
die();
}
}
function die() {
if (isdead) {
return(undefined);
}
isdead = true;
render();
_global.sounds.playExplodeSound(explodesound, 100, 100, 1500, x, y);
mov.gotoAndPlay("explode");
rr.utils.Delegate.callDelayed(this, destroy, destroydelay);
}
function destroy() {
if (isdestroyed) {
return(undefined);
}
isdestroyed = true;
mov.removeMovieClip();
parent.removeWeapon(this);
_global.stage.removeObject(this);
}
function onUnitDie(evtObj) {
if (tar == evtObj.target) {
tar = undefined;
}
}
}
Symbol 3338 MovieClip [__Packages.rr.train.TrainUtils] Frame 0
class rr.train.TrainUtils
{
function TrainUtils () {
}
static function updateRailPosition(obj) {
var _local3;
var _local2;
_local2 = (((obj.speed * obj.rsfactor) >= 0) ? (obj.rs.rce) : (obj.rs.rcs));
obj.d = obj.d + (obj.speed * obj.rsfactor);
if (_local2.block) {
if (rr.utils.MathUtils.getDistance(obj.x, obj.y, _local2.block.x, _local2.block.y) < ((obj.length / 2) + 3)) {
obj.blockStop(_local2.block);
} else {
obj.blocked = false;
}
}
if (obj.d < 0) {
_local2.updateObjectRail(obj);
} else if (obj.d > obj.rs.length) {
_local2.updateObjectRail(obj);
}
_local3 = obj.rs.getPoint(obj.d);
if (_local3) {
obj.x = _local3.x;
obj.y = _local3.y;
obj.rot = _local3.rot;
}
if (obj.oldX) {
obj.xspeed = obj.x - obj.oldX;
obj.yspeed = obj.y - obj.oldY;
}
obj.oldX = obj.x;
obj.oldY = obj.y;
obj.oldRot = obj.rot;
obj.hdir = ((obj.xspeed > 0) ? "right" : (((obj.xspeed < 0) ? "left" : "none")));
obj.vdir = ((obj.yspeed > 0) ? "down" : (((obj.yspeed < 0) ? "up" : "none")));
obj.checkRender();
}
static function createLoc(initObj) {
var _local2 = initObj.uid;
if (_local2 == undefined) {
_local2 = rr.utils.StringUtils.getUniqueName();
initObj.uid = _local2;
}
switch (initObj.type) {
case "SaddleTank" :
_global.stage["obj_" + _local2] = new rr.train.SaddleTank(initObj);
break;
case "Rhino" :
_global.stage["obj_" + _local2] = new rr.train.Rhino(initObj);
break;
case "SuperChief" :
_global.stage["obj_" + _local2] = new rr.train.SuperChief(initObj);
break;
case "Dragon" :
_global.stage["obj_" + _local2] = new rr.train.Dragon(initObj);
break;
case "Pennsylvania" :
_global.stage["obj_" + _local2] = new rr.train.Pennsylvania(initObj);
}
}
static function createStaticLoc(initObj) {
var _local2 = initObj.uid;
if (_local2 == undefined) {
_local2 = rr.utils.StringUtils.getUniqueName();
initObj.uid = _local2;
}
switch (initObj.type) {
case "SaddleTank" :
_global.stage["obj_" + _local2] = new rr.train.statics.StaticSaddleTank(initObj);
break;
case "SuperChief" :
_global.stage["obj_" + _local2] = new rr.train.statics.StaticSuperChief(initObj);
break;
case "Dragon" :
_global.stage["obj_" + _local2] = new rr.train.statics.StaticDragon(initObj);
break;
case "Pennsylvania" :
_global.stage["obj_" + _local2] = new rr.train.statics.StaticPennsylvania(initObj);
}
}
static function createWagon(initObj) {
var _local2 = initObj.uid;
if (_local2 == undefined) {
_local2 = rr.utils.StringUtils.getUniqueName();
initObj.uid = _local2;
}
switch (initObj.type) {
case "Wagon1" :
_global.stage["obj_" + _local2] = new rr.train.Wagon1(initObj);
break;
case "Wagon2" :
_global.stage["obj_" + _local2] = new rr.train.Wagon2(initObj);
break;
case "Wagon3" :
_global.stage["obj_" + _local2] = new rr.train.Wagon3(initObj);
break;
case "Wagon4" :
_global.stage["obj_" + _local2] = new rr.train.Wagon4(initObj);
break;
case "Passenger" :
_global.stage["obj_" + _local2] = new rr.train.Passenger(initObj);
break;
case "PassengerArmored" :
_global.stage["obj_" + _local2] = new rr.train.PassengerArmored(initObj);
break;
case "ABomb" :
_global.stage["obj_" + _local2] = new rr.train.ABomb(initObj);
break;
case "TankTrailer" :
_global.stage["obj_" + _local2] = new rr.train.TankTrailer(initObj);
}
}
static function createStaticWagon(initObj) {
var _local2 = initObj.uid;
if (_local2 == undefined) {
_local2 = rr.utils.StringUtils.getUniqueName();
initObj.uid = _local2;
}
switch (initObj.type) {
case "Wagon1" :
_global.stage["obj_" + _local2] = new rr.train.statics.StaticWagon1(initObj);
break;
case "Wagon2" :
_global.stage["obj_" + _local2] = new rr.train.statics.StaticWagon2(initObj);
break;
case "Wagon3" :
_global.stage["obj_" + _local2] = new rr.train.statics.StaticWagon3(initObj);
break;
case "Passenger" :
_global.stage["obj_" + _local2] = new rr.train.statics.StaticPassenger(initObj);
break;
case "PassengerArmored" :
_global.stage["obj_" + _local2] = new rr.train.statics.StaticPassengerArmored(initObj);
break;
case "TankTrailer" :
_global.stage["obj_" + _local2] = new rr.train.statics.StaticTankTrailer(initObj);
}
}
static function createWeapon(initObj) {
var _local2 = initObj.uid;
if (_local2 == undefined) {
_local2 = rr.utils.StringUtils.getUniqueName();
initObj.uid = _local2;
}
switch (initObj.type) {
case "SmallCannon" :
_global.stage["obj_" + _local2] = new rr.train.weapons.SmallCannon(initObj);
break;
case "MediumCannon" :
_global.stage["obj_" + _local2] = new rr.train.weapons.MediumCannon(initObj);
break;
case "SmallFastCannon" :
_global.stage["obj_" + _local2] = new rr.train.weapons.SmallFastCannon(initObj);
break;
case "RocketLauncher" :
_global.stage["obj_" + _local2] = new rr.train.weapons.RocketLauncher(initObj);
}
}
static function createStaticWeapon(initObj) {
var _local2 = initObj.uid;
if (_local2 == undefined) {
_local2 = rr.utils.StringUtils.getUniqueName();
initObj.uid = _local2;
}
switch (initObj.type) {
case "SmallCannon" :
_global.stage["obj_" + _local2] = new rr.train.statics.StaticSmallCannon(initObj);
break;
case "MediumCannon" :
_global.stage["obj_" + _local2] = new rr.train.statics.StaticMediumCannon(initObj);
}
}
static function setWeaponMargin(obj) {
var _local2 = obj.parent.length / rr.conf.Config.getObjectValue(obj.parent.linkId, "spaces");
obj.xmargin = (obj.position * _local2) + ((rr.conf.Config.getObjectValue(obj.linkId, "spaces") * _local2) / 2);
}
}
Symbol 3339 MovieClip [__Packages.rr.rail.RailConnection] Frame 0
class rr.rail.RailConnection extends rr.BaseClass
{
var id, x, y, ang, s, ins, outs, curin, curout, rswitch, block;
function RailConnection (initObj) {
super();
id = initObj.id;
x = initObj.x;
y = initObj.y;
ang = initObj.a;
s = initObj.s;
ins = [];
outs = [];
}
function init() {
curin = ins[0];
curout = outs[0];
if (s) {
rswitch = new rr.rail.RailSwitch(this);
delete s;
}
var _local3 = ins.length;
var _local2 = 0;
while (_local2 < _local3) {
_local2++;
}
_local3 = outs.length;
_local2 = 0;
while (_local2 < _local3) {
_local2++;
}
}
function get railin() {
if ((!rswitch) || (rswitch.inpositions.length <= 1)) {
return(_global.map["rs" + curin]);
}
return(rswitch.__get__railin());
}
function get railout() {
if ((!rswitch) || (rswitch.outpositions.length <= 1)) {
return(_global.map["rs" + curout]);
}
return(rswitch.__get__railout());
}
function checkBlocks() {
if (ins.length == 0) {
block = new rr.rail.RailBlock(x, y, -rr.utils.MathUtils.formatAngle(ang), "in");
}
if (outs.length == 0) {
block = new rr.rail.RailBlock(x, y, -rr.utils.MathUtils.formatAngle(ang), "out");
}
if (block) {
if (id == 10000) {
_global.endblock = block;
} else {
delete block;
block = undefined;
}
}
}
function updateObjectRail(obj, checkprev) {
var _local3 = getNextRail(obj, checkprev);
obj.rsprev = obj.rs;
obj.rsfactorprev = obj.rsfactor;
obj.rs = _local3.rs;
obj.d = _local3.d;
if (_local3.changefactor) {
obj.rsfactor = -obj.rsfactor;
obj.flip = !obj.flip;
obj.fliprot = (obj.flip ? 180 : 0);
}
}
function getNextRail(obj, checkprev) {
var _local3;
var _local4;
var _local6;
var _local5;
var _local8;
var _local10;
var _local7 = ((obj.d > obj.rs.length) ? (obj.d - obj.rs.length) : (Math.abs(obj.d)));
_local6 = obj.rs.rcs == this;
if (obj.rs.rcs == obj.rs.rce) {
if (obj.d < 0) {
_local6 = true;
_local4 = (obj.rs.eo ? false : true);
} else {
_local6 = false;
_local4 = (obj.rs.eo ? true : false);
}
} else {
_local4 = isOut(obj.rs);
}
_local3 = (_local4 ? (railin) : (railout));
if (_local3.rcs == _local3.rce) {
if (_local4) {
_local5 = (_local3.eo ? true : false);
} else {
_local5 = (_local3.eo ? false : true);
}
} else {
_local5 = _local3.rcs == this;
}
if (_local5) {
_local8 = _local7;
} else {
_local8 = _local3.length - _local7;
}
if (_local3.rcs != _local3.rce) {
if (_local6 == _local5) {
_local10 = true;
}
}
return({rs:_local3, d:_local8, changefactor:_local10});
}
function isOut(rs) {
var _local3 = outs.length;
var _local2 = 0;
while (_local2 < _local3) {
if (outs[_local2] == rs.id) {
return(true);
}
_local2++;
}
return(false);
}
}
Symbol 3340 MovieClip [__Packages.rr.rail.RailSwitch] Frame 0
class rr.rail.RailSwitch
{
var linkId, rc, dfeel, inpos, inpositions, outpos, outpositions, x, y, view, forceview, locked, mov;
function RailSwitch (prc) {
linkId = "RailSwitch";
rc = prc;
dfeel = 25;
init();
}
function get railin() {
return(_global.map["rs" + inpositions[inpos].rsid]);
}
function get railout() {
return(_global.map["rs" + outpositions[outpos].rsid]);
}
function init() {
var _local9 = [];
x = rc.s.x;
y = rc.s.y;
inpos = (outpos = 0);
inpositions = [];
outpositions = [];
var _local7 = rc.ins.length;
var _local4 = 0;
while (_local4 < _local7) {
var _local3 = 0;
while (_local3 <= 7) {
if (rc.s.p[_local3] > 0) {
if (rc.ins[_local4] == rc.s.p[_local3]) {
inpositions.push({dir:getDir(_local3), rsid:rc.s.p[_local3]});
}
}
_local3++;
}
_local4++;
}
_local7 = rc.outs.length;
_local4 = 0;
while (_local4 < _local7) {
var _local3 = 0;
while (_local3 <= 7) {
if (rc.s.p[_local3] > 0) {
if (rc.outs[_local4] == rc.s.p[_local3]) {
outpositions.push({dir:getDir(_local3), rsid:rc.s.p[_local3]});
}
}
_local3++;
}
_local4++;
}
view = ((outpositions.length > 0) ? "out" : "in");
forceview = false;
locked = false;
var _local8 = _global.map.getCellByPos(x, y);
_local8.statics.push(this);
}
function setOutPosition(rs) {
var _local3 = outpositions.length;
var _local2 = 0;
while (_local2 < _local3) {
if (outpositions[_local2].rsid == rs.id) {
outpos = _local2;
break;
}
_local2++;
}
if (view == "out") {
setArrow();
}
}
function setInPosition(rs) {
var _local3 = inpositions.length;
var _local2 = 0;
while (_local2 < _local3) {
if (inpositions[_local2].rsid == rs.id) {
inpos = _local2;
break;
}
_local2++;
}
if (view == "in") {
setArrow();
}
}
function toggleLock() {
locked = !locked;
setArrow();
if (locked) {
rr.utils.Delegate.callDelayed(this, checkLock, 1500);
}
}
function checkLock() {
if (!locked) {
return(undefined);
}
if (_global.game.levelended) {
return(undefined);
}
if (_global.train.isInRange(rc.x, rc.y, dfeel)) {
rr.utils.Delegate.callDelayed(this, checkLock, 1500);
return(undefined);
}
locked = false;
setArrow();
}
function toggle() {
if (locked) {
return(undefined);
}
if (view == "out") {
outpos = outpos + 1;
if (outpos >= outpositions.length) {
outpos = 0;
if (!forceview) {
if (inpositions.length > 0) {
view = "in";
inpos = 0;
}
}
}
} else {
inpos = inpos + 1;
if (inpos >= inpositions.length) {
inpos = 0;
if (!forceview) {
if (outpositions.length > 0) {
view = "out";
outpos = 0;
}
}
}
}
setArrow();
}
function setArrow() {
if (locked) {
mov.arrow_mc.gotoAndStop("locked");
} else if (view == "out") {
mov.arrow_mc.gotoAndStop(outpositions[outpos].dir);
} else {
mov.arrow_mc.gotoAndStop(inpositions[inpos].dir);
}
}
function getDir(i) {
switch (i) {
case 0 :
return("n");
case 1 :
return("ne");
case 2 :
return("e");
case 3 :
return("se");
case 4 :
return("s");
case 5 :
return("sw");
case 6 :
return("w");
case 7 :
return("nw");
}
}
function update() {
if (rr.utils.MathUtils.getDistance(x, y, _global.camera.x, _global.camera.y) < 425) {
render();
} else {
clearMov();
}
}
function render() {
if (!mov) {
var _local3 = rr.utils.ClipUtils.getFreeDepth(_global.stage, this);
mov = _global.stage.attachMovie(linkId, rr.utils.StringUtils.getUniqueName(), _local3);
mov._alpha = 80;
setArrow();
mov.onRelease = rr.utils.Delegate.create(this, toggle);
mov.onRollOver = rr.utils.Delegate.create(_global.aim, _global.aim.hide, this);
mov.onRollOut = (mov.onDragOut = rr.utils.Delegate.create(_global.aim, _global.aim.show, this));
locked = false;
}
mov._x = x - _global.camera.left;
mov._y = y - _global.camera.top;
}
function clearMov() {
mov.removeMovieClip();
delete mov;
}
}
Symbol 3341 MovieClip [__Packages.rr.rail.RailSegment] Frame 0
class rr.rail.RailSegment
{
var id, type, rcs, rce, eo, t, ang, length, radius, dir;
function RailSegment (initObj) {
id = initObj.id;
type = (initObj.r ? "arc" : "line");
rcs = _global.map["rc" + initObj.s];
rce = _global.map["rc" + initObj.e];
eo = initObj.eo;
t = initObj.t;
if (t) {
rcs.ins.push(id);
ang = rcs.ang + 180;
} else {
rcs.outs.push(id);
ang = rcs.ang;
}
if (eo) {
rce.outs.push(id);
} else {
rce.ins.push(id);
}
if (type == "line") {
length = rr.utils.MathUtils.getDistance(rcs.x, rcs.y, rce.x, rce.y);
}
if (type == "arc") {
radius = initObj.r;
dir = initObj.d;
length = initObj.l;
}
}
function getPoint(d) {
if (d > length) {
d = length;
}
if (d < 0) {
d = 0;
}
if (type == "line") {
var _local5 = rr.utils.MathUtils.formatAngle(ang);
var _local9 = rcs.x + (cos((_local5 * pi) / 180) * d);
var _local8 = rcs.y - (sin((_local5 * pi) / 180) * d);
var _local7 = -_local5;
return({x:_local9, y:_local8, rot:_local7});
}
if (type == "arc") {
var _local5 = rr.utils.MathUtils.formatAngle(ang - 90);
var _local4 = new flash.geom.Point((-dir) * (radius * cos((_local5 * pi) / 180)), dir * (radius * sin((_local5 * pi) / 180)));
var _local6 = (rr.utils.MathUtils.formatAngle(ang - 90) * pi) / 180;
var _local3 = _local6 - (((-dir) * d) / radius);
var _local9 = (rcs.x + _local4.x) + ((dir * radius) * cos(_local3));
var _local8 = (rcs.y + _local4.y) - ((dir * radius) * sin(_local3));
var _local7 = -rr.utils.MathUtils.formatAngle((_local3 / (pi / 180)) + 90);
return({x:_local9, y:_local8, rot:_local7});
}
}
function getCatchPoint(obj, dcast) {
var _local4 = (((obj.speed * obj.rsfactor) > 0) ? (obj.d + dcast) : (obj.d - dcast));
var _local1 = {rs:obj.rs, d:_local4, rsfactor:obj.rsfactor, speed:obj.speed};
while ((_local1.d > _local1.rs.length) || (_local1.d < 0)) {
var _local2 = (((_local1.speed * _local1.rsfactor) > 0) ? (_local1.rs.rce) : (_local1.rs.rcs));
_local2.updateObjectRail(_local1);
}
return(_local1.rs.getPoint(_local1.d));
}
var pi = Math.PI;
var cos = Math.cos;
var acos = Math.acos;
var sin = Math.sin;
var asin = Math.asin;
var atan2 = Math.atan2;
}
Symbol 3342 MovieClip [__Packages.rr.rail.RailBlock] Frame 0
class rr.rail.RailBlock extends rr.BaseClass
{
var dfeel, x, y, rot, dir, pi;
function RailBlock (px, py, prot, pdir) {
super();
dfeel = 15;
x = px;
y = py;
rot = prot;
dir = pdir;
if (dir == "out") {
rot = rot + 180;
}
addToMapBackground();
}
function addToMapBackground() {
var _local3 = flash.display.BitmapData.loadBitmap("railblock.png");
if (_global.map.nightmap) {
rr.utils.ClipUtils.setBmpTint(_local3, 0, 80);
}
var _local4 = new flash.geom.Matrix();
_local4.translate((-_local3.width) / 2, (-_local3.height) / 2);
_local4.rotate((rr.utils.MathUtils.formatAngle(rot) / 180) * pi);
_local4.translate(x, y);
var _local5 = "normal";
var _local6 = true;
_global.map.map_bmp.draw(_local3, _local4, null, _local5, null, _local6);
_local3.dispose();
}
}
Symbol 3343 MovieClip [__Packages.rr.train.TrainSegment] Frame 0
class rr.train.TrainSegment extends rr.BaseClass
{
var uid, initObj, length, linkId, killlevel, destroydelay, explodesound, fliprot, mov, x, y, rot, isRendered, isdead, damage, tstun, laststunned, isstunned, isexploded, speed, tspeed, prev, d, rs, rsfactor, oldX, oldY, oldRot, affirmed, next;
function TrainSegment () {
super();
_global.train.segments.push(this);
}
function init() {
uid = initObj.uid;
length = rr.conf.Config.getObjectValue(linkId, "length");
killlevel = rr.conf.Config.getObjectValue(linkId, "killlevel");
destroydelay = rr.conf.Config.getObjectValue(linkId, "destroydelay");
explodesound = rr.conf.Config.getObjectValue(linkId, "explodesound");
fliprot = 0;
}
function render() {
if (!mov) {
createMov();
}
mov._x = x - _global.camera.left;
mov._y = y - _global.camera.top;
mov.base_mc._rotation = rot + fliprot;
}
function checkRender() {
isRendered = false;
if (rr.utils.MathUtils.getDistance(x, y, _global.camera.x, _global.camera.y) < 500) {
isRendered = true;
render();
} else if (mov) {
clearMov();
}
}
function createMov() {
var _local3 = rr.utils.ClipUtils.getFreeDepth(_global.stage.mov, this);
mov = _global.stage.mov.attachMovie(linkId, rr.utils.StringUtils.getUniqueName(), _local3, {parent:this});
checkNightMode();
}
function clearMov() {
mov.removeMovieClip();
delete mov;
}
function checkNightMode() {
if (_global.map.nightmap) {
rr.utils.ClipUtils.setTint(mov.base_mc, 0, 50);
}
}
function addDamage(dmg) {
if (isdead) {
return(undefined);
}
if (!dmg) {
return(undefined);
}
damage = damage + dmg;
if (damage < 0) {
damage = 0;
}
if (damage >= killlevel) {
die();
}
}
function stun(t) {
tstun = t;
laststunned = getTimer();
isstunned = true;
}
function checkStun() {
if ((getTimer() - laststunned) > tstun) {
isstunned = false;
}
}
function die() {
}
function explode() {
if (isexploded) {
return(undefined);
}
isexploded = true;
render();
_global.sounds.playExplodeSound(explodesound, 100, 100, 1000, x, y);
mov.gotoAndPlay("explode");
rr.utils.Delegate.callDelayed(this, destroy, destroydelay);
}
function destroy() {
mov.removeMovieClip();
_global.train.removeSegment(this);
_global.stage.removeObject(this);
}
function blockStop(b) {
speed = (tspeed = (_global.loc.speed = (_global.loc.tspeed = 0)));
if (prev) {
prev.blockStop();
}
if (b == _global.endblock) {
_global.game.endLevel(false, "train");
}
}
function reAffirm() {
if (prev) {
d = prev.d - (prev.rsfactor * (((prev.length / 2) + (length / 2)) - 1));
rs = prev.rs;
rsfactor = prev.rsfactor;
var _local3;
if (d < 0) {
_local3 = rs.rcs;
_local3.updateObjectRail(this, true);
} else if (d > rs.length) {
_local3 = rs.rce;
_local3.updateObjectRail(this, true);
}
var _local2 = rs.getPoint(d);
if (_local2) {
x = (oldX = _local2.x);
y = (oldY = _local2.y);
rot = (oldRot = _local2.rot);
}
affirmed = true;
}
if (next) {
next.reAffirm();
}
}
}
Symbol 3344 MovieClip [__Packages.rr.train.Locomotive] Frame 0
class rr.train.Locomotive extends rr.train.TrainSegment
{
var segmentType, rs, d, length, rsfactor, speedmax, linkId, speedmin, adef, afullstop, fueltype, rotspeed, tfire, dfire, gunsounds, hornsound, dfeel, speed, tspeed, xspeed, yspeed, prevspeed, stepidx, x, y, a, damage, rot, rotBarrel, stepsounds, loopsoundid, laststepped, bcount, isdead, checkRender, dplane, isstunned, events, loopsound, checkStun, fliprot, mov, cos, pi, sin, atan2, next, isShooting, killlevel, explode;
function Locomotive () {
super();
}
function init() {
_global.loc = this;
segmentType = "loc";
super.init();
rs = _global.map.rs1;
d = length / 2;
rsfactor = 1;
speedmax = rr.conf.Config.getObjectValue(linkId, "maxspeed");
speedmin = rr.conf.Config.getObjectValue(linkId, "minspeed");
adef = rr.conf.Config.getObjectValue(linkId, "acceleration");
afullstop = rr.conf.Config.getObjectValue(linkId, "accelerationfullstop");
fueltype = rr.conf.Config.getObjectValue(linkId, "fueltype");
rotspeed = rr.conf.Config.getObjectValue(linkId, "rotationspeed");
tfire = rr.conf.Config.getObjectValue(linkId, "shootinginterval");
dfire = rr.conf.Config.getObjectValue(linkId, "shootingdistance");
gunsounds = rr.conf.Config.getObjectValue(linkId, "gunsounds");
hornsound = rr.conf.Config.getObjectValue(linkId, "hornsound");
dfeel = length / 2;
speed = (tspeed = (xspeed = (yspeed = (prevspeed = (stepidx = 0)))));
x = (y = 0);
a = adef;
damage = 0;
rot = (rotBarrel = 0);
if (fueltype == "electric") {
stepsounds = ["Train 1and2 step 2.wav"];
loopsoundid = "Train 5min.wav";
} else {
stepsounds = ["Train 1and2 step 1.wav", "Train 1and2 step 2.wav"];
}
laststepped = getTimer();
var _local4 = 1;
while (_local4 <= bcount) {
this["rotbarrel" + _local4] = 0;
this["bs" + _local4] = rr.conf.Config.getObjectValue(linkId, "rotationspeed" + _local4);
this["tf" + _local4] = rr.conf.Config.getObjectValue(linkId, "shootinginterval" + _local4);
this["lf" + _local4] = getTimer();
_local4++;
}
_global.train.onConnectionChanged();
setTargetSpeed(_global.train.speed);
}
function update() {
if (isdead) {
checkRender();
return(undefined);
}
if (x > (_global.map.width + 100)) {
_global.game.endLevel(false, "train");
} else if (y > (_global.map.height + 100)) {
_global.game.endLevel(false, "train");
}
dplane = rr.utils.MathUtils.getDistance(x, y, _global.plane.x, _global.plane.y);
if (!isstunned) {
aimAtTarget();
if (!_global.plane.isdead) {
if (dplane <= dfire) {
fire();
}
}
}
if (speed != tspeed) {
speed = ((Math.abs(speed - tspeed) <= a) ? (tspeed) : (((tspeed > speed) ? (speed + a) : (speed - a))));
events.dispatchEvent({target:this, type:"onLocAccel"});
}
if (speed == 0) {
if (loopsound.isplaying) {
loopsound.isplaying = false;
loopsound.sound.setVolume(0);
loopsound.sound.stop();
}
if (prevspeed != 0) {
events.dispatchEvent({target:this, type:"onLocStop"});
}
} else if (dplane < 600) {
var _local3;
if (fueltype == "electric") {
_local3 = Math.min(Math.abs(1200 / speed), 1000);
_local3 = Math.round(Math.max(_local3, 250));
} else {
_local3 = Math.min(Math.abs(450 / speed), 1000);
_local3 = Math.max(_local3, 100);
}
if ((getTimer() - laststepped) > _local3) {
laststepped = getTimer();
if (fueltype == "electric") {
_global.sounds.playSound(stepsounds[0]);
} else {
_global.sounds.playSound(stepsounds[stepidx]);
stepidx = ((stepidx == 0) ? 1 : 0);
}
}
}
rr.train.TrainUtils.updateRailPosition(this);
prevspeed = speed;
if (isstunned) {
checkStun();
}
events.dispatchEvent({target:this, type:"onUpdate"});
}
function render() {
super.render();
mov.lights_mc._rotation = rot + fliprot;
var _local3 = 1;
while (_local3 <= bcount) {
mov[("barrel" + _local3) + "_mc"]._x = cos(((-(rot + fliprot)) * pi) / 180) * this["bxdef" + _local3];
mov[("barrel" + _local3) + "_mc"]._y = (-sin(((-(rot + fliprot)) * pi) / 180)) * this["bxdef" + _local3];
mov[("barrel" + _local3) + "_mc"]._rotation = this["rotbarrel" + _local3];
_local3++;
}
}
function aimAtTarget() {
if (_global.plane == undefined) {
return(undefined);
}
if (_global.plane.isdead) {
return(undefined);
}
var _local3 = 1;
while (_local3 <= bcount) {
this["bx" + _local3] = x + (cos(((-(rot + fliprot)) * pi) / 180) * this["bxdef" + _local3]);
this["by" + _local3] = y - (sin(((-(rot + fliprot)) * pi) / 180) * this["bxdef" + _local3]);
var _local4 = (180 * atan2(_global.plane.mov._y - (this["by" + _local3] - _global.camera.top), _global.plane.mov._x - (this["bx" + _local3] - _global.camera.left))) / pi;
var _local5 = (this["rotbarrel" + _local3] + 360) % 360;
_local4 = (_local4 + 360) % 360;
if ((_local4 - _local5) > 180) {
_local4 = _local4 - 360;
} else if ((_local4 - _local5) < -180) {
_local4 = _local4 + 360;
}
_local5 = _local5 + ((this["bs" + _local3] * (_local4 - _local5)) / 100);
this["rotbarrel" + _local3] = rr.utils.MathUtils.formatAngle2(_local5);
_local3++;
}
}
function setTargetSpeed(ts) {
a = adef;
tspeed = ts;
if (speed == 0) {
if (tspeed != 0) {
events.dispatchEvent({target:this, type:"onLocAccel"});
}
}
}
function onFullStop(evtObj) {
a = afullstop;
tspeed = 0;
}
function die() {
if (isdead) {
return(undefined);
}
isdead = true;
next.disconnect();
isShooting = false;
onFullStop();
damage = killlevel;
events.dispatchEvent({type:"onTrainTargetDie", target:this});
explode();
}
function fire() {
if (_global.plane == undefined) {
return(undefined);
}
if (_global.plane.isdead) {
return(undefined);
}
var _local3 = 1;
while (_local3 <= bcount) {
if ((getTimer() - this["lf" + _local3]) >= this["tf" + _local3]) {
this["lf" + _local3] = getTimer();
mov[("barrel" + _local3) + "_mc"].gotoAndPlay("shoot");
_global.sounds.playSound(gunsounds[Math.round(Math.random() * (gunsounds.length - 1))]);
rr.ammo.AmmoUtils.createAmmo({type:"AmmoTrainBullit", parentLinkId:linkId, x:this["bx" + _local3], y:this["by" + _local3], rot:this["rotbarrel" + _local3] + 90});
}
_local3++;
}
}
function checkNightMode() {
if (_global.map.nightmap) {
rr.utils.ClipUtils.setTint(mov.base_mc, 0, 50);
mov.lights_mc._visible = true;
} else {
mov.lights_mc._visible = false;
}
}
}
Symbol 3345 MovieClip [__Packages.rr.ammo.AmmoUtils] Frame 0
class rr.ammo.AmmoUtils
{
function AmmoUtils () {
}
static function createHitLine(x1, y1, x2, y2, w) {
var _local2 = _global.stage.hitmov.createEmptyMovieClip(rr.utils.StringUtils.getUniqueName(), _global.stage.hitmov.getNextHighestDepth());
_local2.lineStyle(w, 0);
_local2.moveTo(x1 - _global.camera.left, y1 - _global.camera.top);
_local2.lineTo(x2 - _global.camera.left, y2 - _global.camera.top);
return(_local2);
}
static function createAmmo(initObj) {
var _local2 = rr.utils.StringUtils.getUniqueName();
initObj.uid = _local2;
switch (initObj.type) {
case "AirfieldDefender" :
_global.stage["obj_" + _local2] = new rr.ammo.AmmoAirfieldDefender(initObj);
break;
case "AirMissile" :
_global.stage["obj_" + _local2] = new rr.ammo.plane.AirMissile(initObj);
break;
case "AirSeeker" :
_global.stage["obj_" + _local2] = new rr.ammo.plane.AirSeeker(initObj);
break;
case "GroundMissile" :
_global.stage["obj_" + _local2] = new rr.ammo.plane.GroundMissile(initObj);
break;
case "GroundSeeker" :
_global.stage["obj_" + _local2] = new rr.ammo.plane.GroundSeeker(initObj);
break;
case "BulletGunSingle" :
_global.stage["obj_" + _local2] = new rr.ammo.plane.BulletGunSingle(initObj);
break;
case "BulletGunDouble" :
_global.stage["obj_" + _local2] = new rr.ammo.plane.BulletGunDouble(initObj);
break;
case "BulletGunGatling" :
_global.stage["obj_" + _local2] = new rr.ammo.plane.BulletGunGatling(initObj);
break;
case "BombNormal" :
_global.stage["obj_" + _local2] = new rr.ammo.plane.BombNormal(initObj);
break;
case "BombHeavy" :
_global.stage["obj_" + _local2] = new rr.ammo.plane.BombHeavy(initObj);
break;
case "BombExtreme" :
_global.stage["obj_" + _local2] = new rr.ammo.plane.BombExtreme(initObj);
break;
case "Propaganda" :
_global.stage["obj_" + _local2] = new rr.ammo.plane.Propaganda(initObj);
break;
case "EMPBomb" :
_global.stage["obj_" + _local2] = new rr.ammo.plane.EMPBomb(initObj);
break;
case "FuelBomb" :
_global.stage["obj_" + _local2] = new rr.ammo.plane.FuelBomb(initObj);
break;
case "CarpetBomb" :
_global.stage["obj_" + _local2] = new rr.ammo.plane.CarpetBomb(initObj);
break;
case "NuclearBomb" :
_global.stage["obj_" + _local2] = new rr.ammo.plane.NuclearBomb(initObj);
break;
case "AmmoTrainBullit" :
_global.stage["obj_" + _local2] = new rr.ammo.train.AmmoTrainBullit(initObj);
break;
case "SmallCannon" :
_global.stage["obj_" + _local2] = new rr.ammo.train.AmmoTrainBullit(initObj);
break;
case "MediumCannon" :
_global.stage["obj_" + _local2] = new rr.ammo.train.AmmoTrainBullit(initObj);
break;
case "SmallFastCannon" :
_global.stage["obj_" + _local2] = new rr.ammo.train.AmmoTrainBullit(initObj);
break;
case "RocketLauncher" :
_global.stage["obj_" + _local2] = new rr.ammo.train.AmmoRocketLauncher(initObj);
break;
case "PotTank" :
_global.stage["obj_" + _local2] = new rr.ammo.ground.AmmoPotTank(initObj);
break;
case "OldJeep" :
_global.stage["obj_" + _local2] = new rr.ammo.ground.AmmoOldJeep(initObj);
break;
case "GunTruck" :
_global.stage["obj_" + _local2] = new rr.ammo.ground.AmmoGunTruck(initObj);
break;
case "ArmoredJeep" :
_global.stage["obj_" + _local2] = new rr.ammo.ground.AmmoArmoredJeep(initObj);
break;
case "Basilisk" :
_global.stage["obj_" + _local2] = new rr.ammo.ground.AmmoBasilisk(initObj);
break;
case "Bunker" :
_global.stage["obj_" + _local2] = new rr.ammo.ground.AmmoBunker(initObj);
break;
case "GatlingSingle" :
_global.stage["obj_" + _local2] = new rr.ammo.ground.AmmoGatlingSingle(initObj);
break;
case "GatlingDouble" :
_global.stage["obj_" + _local2] = new rr.ammo.ground.AmmoGatlingDouble(initObj);
break;
case "Abrahams" :
_global.stage["obj_" + _local2] = new rr.ammo.ground.AmmoAbrahams(initObj);
break;
case "Elephant" :
_global.stage["obj_" + _local2] = new rr.ammo.ground.AmmoElephant(initObj);
break;
case "Panther" :
_global.stage["obj_" + _local2] = new rr.ammo.ground.AmmoPanther(initObj);
break;
case "Rocketeer" :
_global.stage["obj_" + _local2] = new rr.ammo.AmmoRocketeer(initObj);
break;
case "RocketBase" :
_global.stage["obj_" + _local2] = new rr.ammo.ground.AmmoRocketBase(initObj);
}
}
}
Symbol 3346 MovieClip [__Packages.rr.ammo.AmmoAirfieldDefender] Frame 0
class rr.ammo.AmmoAirfieldDefender extends rr.ammo.Ammo
{
var linkId, parentLinkId, initObj, x, y, tar, minrange, maxrange, speedmax, rotspeed, a, startsound, explodesound, damage, rexplode, speed, d, tspeed, isexploded, render, prevx, prevy, sin, pi, rot, cos, mov, destroy;
function AmmoAirfieldDefender (iObj) {
super();
linkId = "AmmoAirfieldDefender";
parentLinkId = "AirfieldDefender";
initObj = iObj;
init();
}
function init() {
x = initObj.x;
y = initObj.y;
tar = initObj.tar;
super.init();
minrange = rr.conf.Config.getObjectValue(parentLinkId, "ammominrange");
maxrange = rr.conf.Config.getObjectValue(parentLinkId, "ammomaxrange");
speedmax = rr.conf.Config.getObjectValue(parentLinkId, "ammomaxspeed");
rotspeed = rr.conf.Config.getObjectValue(parentLinkId, "ammorotationspeed");
a = rr.conf.Config.getObjectValue(parentLinkId, "ammoacceleration");
startsound = rr.conf.Config.getObjectValue(parentLinkId, "ammostartsound");
explodesound = rr.conf.Config.getObjectValue(parentLinkId, "ammoexplodesound");
damage = rr.conf.Config.getObjectValue(parentLinkId, "ammoexplosiondamage");
rexplode = rr.conf.Config.getObjectValue(parentLinkId, "ammoexplosionradius");
speed = 0;
d = 0;
tspeed = speedmax;
maxrange = maxrange + (Math.random() * (maxrange * 0.2));
_global.sounds.playSound(startsound);
}
function update() {
if (isexploded) {
render();
return(undefined);
}
if (speed != tspeed) {
speed = ((Math.abs(speed - tspeed) <= a) ? (tspeed) : (((tspeed > speed) ? (speed + a) : (speed - a))));
}
if (!isexploded) {
if (d > 150) {
rotateToTarget();
}
}
prevx = x;
prevy = y;
x = x + (sin((rot * pi) / 180) * speed);
y = y - (cos((rot * pi) / 180) * speed);
d = d + rr.utils.MathUtils.getDistance(x, y, prevx, prevy);
if (!isexploded) {
if (d > maxrange) {
explode();
} else if (d > minrange) {
if (!_global.plane.loopOn) {
checkHit();
}
}
}
render();
}
function rotateToTarget() {
if (tar.isdead) {
return(undefined);
}
if (tar == undefined) {
explode();
return(undefined);
}
var _local4 = rotspeed;
var _local6 = rr.utils.Math2.Bearing(x, y, tar.x, tar.y);
var _local2 = (_local6 + 360) % 360;
var _local3 = (rot + 360) % 360;
if ((_local2 - _local3) > 180) {
_local2 = _local2 - 360;
} else if ((_local2 - _local3) < -180) {
_local2 = _local2 + 360;
}
if (_local2 > _local3) {
_local3 = _local3 + _local4;
} else {
_local3 = _local3 - _local4;
}
rot = _local3;
var _local5 = rr.utils.MathUtils.angDiff(_local3, _local2);
if ((_local5 <= _local4) || ((360 - _local5) <= _local4)) {
rot = _local2;
}
}
function checkHit() {
var _local3 = rr.ammo.AmmoUtils.createHitLine(prevx, prevy, x, y, 5);
if (rr.utils.HitTest.isLineHit(tar.mov, _local3)) {
if (tar == _global.plane) {
tar.addDamage(damage / 8);
} else {
tar.addDamage(damage);
}
explode();
}
_local3.removeMovieClip();
}
function explode() {
if (isexploded) {
return(undefined);
}
isexploded = true;
speed = speed / 10;
tspeed = 0;
render();
_global.sounds.playExplodeSound(explodesound, 100, 0, 1000, x, y);
mov.gotoAndPlay("explode");
var _local3 = rr.conf.Config.getObjectValue(parentLinkId, "ammodestroydelay");
rr.utils.Delegate.callDelayed(this, destroy, _local3);
}
}
Symbol 3347 MovieClip [__Packages.rr.utils.HitTest] Frame 0
class rr.utils.HitTest
{
function HitTest () {
}
static function isShapeHit(p_clip1, p_clip2, p_alphaTolerance, p_scope) {
if (p_alphaTolerance == undefined) {
p_alphaTolerance = 0;
}
if (p_scope == undefined) {
p_scope = _root;
}
var _local4 = p_clip1.getBounds(p_scope);
var _local3 = p_clip2.getBounds(p_scope);
if (((_local4.xMax < _local3.xMin) || (_local3.xMax < _local4.xMin)) || ((_local4.yMax < _local3.yMin) || (_local3.yMax < _local4.yMin))) {
return(null);
}
var _local2 = {};
_local2.xMin = Math.max(_local4.xMin, _local3.xMin);
_local2.xMax = Math.min(_local4.xMax, _local3.xMax);
_local2.yMin = Math.max(_local4.yMin, _local3.yMin);
_local2.yMax = Math.min(_local4.yMax, _local3.yMax);
var _local7 = new flash.display.BitmapData(_local2.xMax - _local2.xMin, _local2.yMax - _local2.yMin, false);
var _local6 = p_clip1.transform.matrix;
var _local5 = {x:0, y:0};
p_clip1.localToGlobal(_local5);
_local6.tx = _local5.x - _local2.xMin;
_local6.ty = _local5.y - _local2.yMin;
_local7.draw(p_clip1, _local6, new flash.geom.ColorTransform(1, 1, 1, 1, 255, -255, -255, p_alphaTolerance));
_local6 = p_clip2.transform.matrix;
_local5 = {x:0, y:0};
p_clip2.localToGlobal(_local5);
_local6.tx = _local5.x - _local2.xMin;
_local6.ty = _local5.y - _local2.yMin;
_local7.draw(p_clip2, _local6, new flash.geom.ColorTransform(1, 1, 1, 1, 255, 255, 255, p_alphaTolerance), "difference");
var _local11 = _local7.getColorBoundsRect(4294967295, 4278255615);
if ((_local11.width > 0) || (_local11.height > 0)) {
return(true);
}
return(false);
}
static function isLineHit(p_clip1, p_clip2) {
var _local12 = 0;
var _local9 = _root;
var _local4 = p_clip1.getBounds(_local9);
var _local3 = p_clip2.getBounds(_local9);
if (((_local4.xMax < _local3.xMin) || (_local3.xMax < _local4.xMin)) || ((_local4.yMax < _local3.yMin) || (_local3.yMax < _local4.yMin))) {
return(null);
}
var _local2 = {};
_local2.xMin = Math.max(_local4.xMin, _local3.xMin);
_local2.xMax = Math.min(_local4.xMax, _local3.xMax);
_local2.yMin = Math.max(_local4.yMin, _local3.yMin);
_local2.yMax = Math.min(_local4.yMax, _local3.yMax);
var _local7 = new flash.display.BitmapData(_local2.xMax - _local2.xMin, _local2.yMax - _local2.yMin, false);
var _local6 = p_clip1.transform.matrix;
var _local5 = {x:0, y:0};
p_clip1.localToGlobal(_local5);
_local6.tx = _local5.x - _local2.xMin;
_local6.ty = _local5.y - _local2.yMin;
_local7.draw(p_clip1, _local6, new flash.geom.ColorTransform(1, 1, 1, 1, 255, -255, -255, _local12));
_local6 = p_clip2.transform.matrix;
_local5 = {x:0, y:0};
p_clip2.localToGlobal(_local5);
_local6.tx = _local5.x - _local2.xMin;
_local6.ty = _local5.y - _local2.yMin;
_local7.draw(p_clip2, _local6, new flash.geom.ColorTransform(1, 1, 1, 1, 255, 255, 255, _local12), "difference");
var _local11 = _local7.getColorBoundsRect(4294967295, 4278255615);
if ((_local11.width > 0) || (_local11.height > 0)) {
return(true);
}
return(false);
}
static function drawBounds(bounds, bname, col) {
_root["bounds" + bname].removeMovieClip();
_root.createEmptyMovieClip("bounds" + bname, _root.getNextHighestDepth());
with (_root["bounds" + bname]) {
lineStyle(1, col, 100);
moveTo(bounds.xMin, bounds.yMin);
lineTo(bounds.xMax, bounds.yMin);
lineTo(bounds.xMax, bounds.yMax);
lineTo(bounds.xMin, bounds.yMax);
lineTo(bounds.xMin, bounds.yMin);
}
}
static function drawRectangle(rect, bounds) {
_root.rect.removeMovieClip();
_root.createEmptyMovieClip("rect", _root.getNextHighestDepth(), {_x:bounds.xMin, _y:bounds.yMin});
_root.rect.lineStyle(1, 39168, 100);
_root.rect.moveTo(rect.x, rect.y);
_root.rect.lineTo(rect.x + rect.width, rect.y);
_root.rect.lineTo(rect.x + rect.width, rect.y + rect.height);
_root.rect.lineTo(rect.x, rect.y + rect.height);
_root.rect.lineTo(rect.x, rect.y);
}
static function isRectHit(x, y, rect, rectRot) {
var _local1 = {x:rect.x + (rect.width / 2), y:rect.y + (rect.height / 2)};
var _local3 = rr.utils.MathUtils.getDistance(_local1.x, _local1.y, x, y);
var _local4 = rr.utils.Math2.Bearing(_local1.x, _local1.y, x, y);
var _local8 = _local1.x + (Math.sin((rr.utils.MathUtils.formatAngle(_local4 - rectRot) * Math.PI) / 180) * _local3);
var _local7 = _local1.y - (Math.cos((rr.utils.MathUtils.formatAngle(_local4 - rectRot) * Math.PI) / 180) * _local3);
return(rect.contains(_local8, _local7));
}
static function isTriangleHit(x0, y0, x1, y1, x2, y2, x3, y3) {
var _local5 = ((x2 - x1) * (y3 - y1)) - ((x3 - x1) * (y2 - y1));
var _local4 = (((x2 - x0) * (y3 - y0)) - ((x3 - x0) * (y2 - y0))) / (_local5 * 1);
var _local3 = (((x3 - x0) * (y1 - y0)) - ((x1 - x0) * (y3 - y0))) / (_local5 * 1);
var _local9 = (1 - _local4) - _local3;
if (((_local4 > 0) && (_local3 > 0)) && (_local9 > 0)) {
return(true);
}
return(false);
}
}
Symbol 3348 MovieClip [__Packages.rr.ammo.plane.AirMissile] Frame 0
class rr.ammo.plane.AirMissile extends rr.ammo.Ammo
{
var linkId, initObj, x, y, speed, isEnemyMissile, minrange, maxrange, speedmax, a, startsound, explodesound, damage, rexplode, d, tspeed, isexploded, render, prevx, prevy, sin, pi, rot, cos, mov, destroy;
function AirMissile (iObj) {
super();
linkId = "AirMissile";
initObj = iObj;
init();
}
function init() {
x = initObj.x;
y = initObj.y;
speed = initObj.speed;
isEnemyMissile = initObj.isEnemyMissile;
super.init();
minrange = rr.conf.Config.getObjectValue(linkId, "minrange");
maxrange = rr.conf.Config.getObjectValue(linkId, "maxrange");
speedmax = rr.conf.Config.getObjectValue(linkId, "maxspeed");
a = rr.conf.Config.getObjectValue(linkId, "acceleration");
startsound = rr.conf.Config.getObjectValue(linkId, "startsound");
explodesound = rr.conf.Config.getObjectValue(linkId, "explodesound");
damage = rr.conf.Config.getObjectValue(linkId, "explosiondamage");
rexplode = rr.conf.Config.getObjectValue(linkId, "explosionradius");
d = 0;
tspeed = speedmax;
maxrange = maxrange + (Math.random() * (maxrange * 0.2));
_global.sounds.playSound(startsound);
}
function update() {
if (isexploded) {
render();
return(undefined);
}
if (speed != tspeed) {
speed = ((Math.abs(speed - tspeed) <= a) ? (tspeed) : (((tspeed > speed) ? (speed + a) : (speed - a))));
}
prevx = x;
prevy = y;
x = x + (sin((rot * pi) / 180) * speed);
y = y - (cos((rot * pi) / 180) * speed);
d = d + rr.utils.MathUtils.getDistance(x, y, prevx, prevy);
if (!isexploded) {
if (d > maxrange) {
explode();
} else if (d > minrange) {
checkHit();
}
}
render();
}
function checkHit() {
var _local6 = false;
var _local5 = rr.ammo.AmmoUtils.createHitLine(prevx, prevy, x, y, 5);
if (isEnemyMissile) {
if (rr.utils.HitTest.isLineHit(_global.plane.mov, _local5)) {
if (!_global.plane.loopOn) {
_global.plane.addDamage(damage / 6);
_local6 = true;
}
}
} else {
var _local7 = _global.stage.airs.length;
var _local4 = 0;
while (_local4 < _local7) {
var _local3 = _global.stage["obj_" + _global.stage.airs[_local4]];
if (!_local3.isdead) {
if (!_local3.loopOn) {
if (rr.utils.HitTest.isLineHit(_local3.mov, _local5)) {
_local3.addDamage(damage);
_local6 = true;
break;
}
}
}
_local4++;
}
}
_local5.removeMovieClip();
if (_local6) {
explode();
}
}
function explode() {
if (isexploded) {
return(undefined);
}
isexploded = true;
speed = speed / 10;
tspeed = 0;
render();
_global.sounds.playExplodeSound(explodesound, 100, 0, 1000, x, y);
mov.gotoAndPlay("explode");
var _local3 = rr.conf.Config.getObjectValue(linkId, "destroydelay");
rr.utils.Delegate.callDelayed(this, destroy, _local3);
}
}
Symbol 3349 MovieClip [__Packages.rr.ammo.plane.AirSeeker] Frame 0
class rr.ammo.plane.AirSeeker extends rr.ammo.Ammo
{
var linkId, initObj, x, y, tar, speed, minrange, maxrange, speedmax, rotspeed, a, startsound, explodesound, damage, rexplode, d, tspeed, isexploded, render, prevx, prevy, sin, pi, rot, cos, mov, destroy;
function AirSeeker (iObj) {
super();
linkId = "AirSeeker";
initObj = iObj;
init();
}
function init() {
x = initObj.x;
y = initObj.y;
tar = initObj.tar;
speed = initObj.speed;
super.init();
if (tar == undefined) {
getTarget();
}
minrange = rr.conf.Config.getObjectValue(linkId, "minrange");
maxrange = rr.conf.Config.getObjectValue(linkId, "maxrange");
speedmax = rr.conf.Config.getObjectValue(linkId, "maxspeed");
rotspeed = rr.conf.Config.getObjectValue(linkId, "rotationspeed");
a = rr.conf.Config.getObjectValue(linkId, "acceleration");
startsound = rr.conf.Config.getObjectValue(linkId, "startsound");
explodesound = rr.conf.Config.getObjectValue(linkId, "explodesound");
damage = rr.conf.Config.getObjectValue(linkId, "explosiondamage");
rexplode = rr.conf.Config.getObjectValue(linkId, "explosionradius");
d = 0;
tspeed = speedmax;
maxrange = maxrange + (Math.random() * (maxrange * 0.2));
_global.sounds.playSound(startsound);
}
function update() {
if (isexploded) {
render();
return(undefined);
}
if (speed != tspeed) {
speed = ((Math.abs(speed - tspeed) <= a) ? (tspeed) : (((tspeed > speed) ? (speed + a) : (speed - a))));
}
if (!isexploded) {
rotateToTarget();
}
prevx = x;
prevy = y;
x = x + (sin((rot * pi) / 180) * speed);
y = y - (cos((rot * pi) / 180) * speed);
d = d + rr.utils.MathUtils.getDistance(x, y, prevx, prevy);
if (!isexploded) {
if (d > maxrange) {
explode();
} else if (d > minrange) {
checkHit();
}
}
render();
}
function getTarget() {
var _local4;
var _local6 = _global.stage.airs.length;
var _local5 = 0;
while (_local5 < _local6) {
var _local3 = _global.stage["obj_" + _global.stage.airs[_local5]];
if (!_local3.isdead) {
if (_local4 == undefined) {
_local4 = _local3;
} else if (rr.utils.MathUtils.getDistance(x, y, _local3.x, _local3.y) < rr.utils.MathUtils.getDistance(x, y, _local4.x, _local4.y)) {
_local4 = _local3;
}
}
_local5++;
}
tar = _local4;
}
function rotateToTarget() {
if (tar == undefined) {
return(undefined);
}
var _local4 = rotspeed;
var _local6 = rr.utils.Math2.Bearing(x, y, tar.x, tar.y);
var _local2 = (_local6 + 360) % 360;
var _local3 = (rot + 360) % 360;
if ((_local2 - _local3) > 180) {
_local2 = _local2 - 360;
} else if ((_local2 - _local3) < -180) {
_local2 = _local2 + 360;
}
if (_local2 > _local3) {
_local3 = _local3 + _local4;
} else {
_local3 = _local3 - _local4;
}
rot = _local3;
var _local5 = rr.utils.MathUtils.angDiff(_local3, _local2);
if ((_local5 <= _local4) || ((360 - _local5) <= _local4)) {
rot = _local2;
}
}
function checkHit() {
if (tar == undefined) {
return(undefined);
}
if (rr.utils.MathUtils.getDistance(x, y, tar.x, tar.y) <= speed) {
tar.addDamage(damage);
explode();
}
}
function explode() {
if (isexploded) {
return(undefined);
}
isexploded = true;
speed = speed / 10;
tspeed = 0;
render();
_global.sounds.playExplodeSound(explodesound, 100, 0, 1000, x, y);
mov.gotoAndPlay("explode");
var _local3 = rr.conf.Config.getObjectValue(linkId, "destroydelay");
rr.utils.Delegate.callDelayed(this, destroy, _local3);
}
}
Symbol 3350 MovieClip [__Packages.rr.ammo.plane.GroundMissile] Frame 0
class rr.ammo.plane.GroundMissile extends rr.ammo.Ammo
{
var linkId, initObj, x, y, alt, altmax, speed, minrange, maxrange, speedmax, a, startsound, explodesound, damage, rexplode, d, tspeed, descent, mov, isexploded, prevx, prevy, sin, pi, rot, cos, hittarget, destroy;
function GroundMissile (iObj) {
super();
linkId = "GroundMissile";
initObj = iObj;
init();
}
function init() {
x = initObj.x;
y = initObj.y;
alt = (altmax = initObj.alt);
speed = initObj.speed;
super.init();
minrange = rr.conf.Config.getObjectValue(linkId, "minrange");
maxrange = rr.conf.Config.getObjectValue(linkId, "maxrange");
speedmax = rr.conf.Config.getObjectValue(linkId, "maxspeed");
a = rr.conf.Config.getObjectValue(linkId, "acceleration");
startsound = rr.conf.Config.getObjectValue(linkId, "startsound");
explodesound = rr.conf.Config.getObjectValue(linkId, "explodesound");
damage = rr.conf.Config.getObjectValue(linkId, "explosiondamage");
rexplode = rr.conf.Config.getObjectValue(linkId, "explosionradius");
d = 0;
tspeed = speedmax;
maxrange = maxrange + (Math.random() * (maxrange * 0.2));
descent = altmax / (maxrange / speed);
_global.sounds.playSound(startsound);
}
function render() {
super.render();
mov._xscale = (mov._yscale = 70 + ((30 * alt) / altmax));
}
function update() {
if (isexploded) {
render();
return(undefined);
}
if (speed != tspeed) {
speed = ((Math.abs(speed - tspeed) <= a) ? (tspeed) : (((tspeed > speed) ? (speed + a) : (speed - a))));
}
prevx = x;
prevy = y;
if (alt > descent) {
alt = alt - descent;
}
x = x + (sin((rot * pi) / 180) * speed);
y = y - (cos((rot * pi) / 180) * speed);
d = d + rr.utils.MathUtils.getDistance(x, y, prevx, prevy);
if (!isexploded) {
if (d > maxrange) {
explode();
} else if (d > minrange) {
checkHit();
}
}
render();
}
function checkHit() {
var _local6 = false;
var _local7 = rr.ammo.AmmoUtils.createHitLine(prevx, prevy, x, y, 5);
if (_global.train) {
var _local8 = _global.train.segments.length;
var _local5 = 0;
while (_local5 <= _local8) {
var _local3 = _global.train.segments[_local5];
if (!_local3.isdead) {
if (rr.utils.HitTest.isLineHit(_local3.mov, _local7)) {
hittarget = _local3;
_local3.addDamage(damage);
_local6 = true;
break;
}
}
_local5++;
}
}
if (!_local6) {
var _local8 = _global.stage.afdefenders.length;
var _local5 = 0;
while (_local5 < _local8) {
var _local4 = _global.stage["obj_" + _global.stage.afdefenders[_local5]];
if (!_local4.isdead) {
if (rr.utils.HitTest.isLineHit(_local4.mov, _local7)) {
hittarget = _local4;
_local4.addDamage(damage);
_local6 = true;
break;
}
}
_local5++;
}
}
if (!_local6) {
var _local9 = _global.map.getCellIdByPos(x, y);
var _local10 = _global.map.getCellIdByPos(prevx, prevy);
if (_local9 != undefined) {
_local6 = checkCellHits(_local9, _local7);
}
if (!_local6) {
if (_local10 != _local9) {
_local6 = checkCellHits(_local10, _local7);
}
}
}
_local7.removeMovieClip();
if (_local6) {
explode();
}
}
function checkCellHits(cid, hitline_mc) {
var _local6 = _global.map.getCell(cid);
var _local7 = _local6.removables.length;
var _local5 = 0;
while (_local5 < _local7) {
var _local4 = _global.stage["obj_" + _local6.removables[_local5]];
if (!_local4.isdead) {
if (rr.utils.HitTest.isLineHit(_local4.mov, hitline_mc)) {
hittarget = _local4;
_local4.addDamage(damage);
return(true);
}
}
_local5++;
}
_local7 = _local6.statics.length;
_local5 = 0;
while (_local5 < _local7) {
var _local3 = _global.stage["obj_" + _local6.statics[_local5]];
if (_local3 instanceof rr.building.Building) {
if (!_local3.isdead) {
if (_local3.isLineHit(hitline_mc)) {
hittarget = _local3;
_local3.addDamage(damage);
return(true);
}
}
}
_local5++;
}
return(false);
}
function explode() {
if (isexploded) {
return(undefined);
}
isexploded = true;
speed = speed / 10;
tspeed = 0;
rr.utils.StageUtils.addExplosionDamage(x, y, damage, rexplode, hittarget);
render();
_global.sounds.playExplodeSound(explodesound, 100, 0, 1000, x, y);
mov.gotoAndPlay("explode");
var _local3 = rr.conf.Config.getObjectValue(linkId, "destroydelay");
rr.utils.Delegate.callDelayed(this, destroy, _local3);
}
}
Symbol 3351 MovieClip [__Packages.rr.utils.StageUtils] Frame 0
class rr.utils.StageUtils
{
function StageUtils () {
}
static function createStageObject(initObj) {
var _local2 = initObj.uid;
if (_local2 == undefined) {
_local2 = rr.utils.StringUtils.getUniqueName();
initObj.uid = _local2;
}
switch (initObj.linkId) {
case "AirField" :
_global.stage["obj_" + _local2] = new rr.AirField(initObj);
break;
case "AirfieldDefender" :
_global.stage["obj_" + _local2] = new rr.AirfieldDefender(initObj);
break;
case "A10" :
_global.stage["obj_" + _local2] = new rr.plane.A10(initObj);
break;
case "Apache" :
_global.stage["obj_" + _local2] = new rr.plane.Apache(initObj);
break;
case "B2" :
_global.stage["obj_" + _local2] = new rr.plane.B2(initObj);
break;
case "B52" :
_global.stage["obj_" + _local2] = new rr.plane.B52(initObj);
break;
case "BellHuey" :
_global.stage["obj_" + _local2] = new rr.plane.BellHuey(initObj);
break;
case "C47" :
_global.stage["obj_" + _local2] = new rr.plane.C47(initObj);
break;
case "FockeWolf" :
_global.stage["obj_" + _local2] = new rr.plane.FockeWolf(initObj);
break;
case "MesserSchmidt" :
_global.stage["obj_" + _local2] = new rr.plane.MesserSchmidt(initObj);
break;
case "A10Enemy" :
_global.stage["obj_" + _local2] = new rr.plane.A10Enemy(initObj);
break;
case "ApacheEnemy" :
_global.stage["obj_" + _local2] = new rr.plane.ApacheEnemy(initObj);
break;
case "B2Enemy" :
_global.stage["obj_" + _local2] = new rr.plane.B2Enemy(initObj);
break;
case "B52Enemy" :
_global.stage["obj_" + _local2] = new rr.plane.B52Enemy(initObj);
break;
case "BellHueyEnemy" :
_global.stage["obj_" + _local2] = new rr.plane.BellHueyEnemy(initObj);
break;
case "C47Enemy" :
_global.stage["obj_" + _local2] = new rr.plane.C47Enemy(initObj);
break;
case "FockeWolfEnemy" :
_global.stage["obj_" + _local2] = new rr.plane.FockeWolfEnemy(initObj);
break;
case "MesserSchmidtEnemy" :
_global.stage["obj_" + _local2] = new rr.plane.MesserSchmidtEnemy(initObj);
break;
case "OldJeep" :
_global.stage["obj_" + _local2] = new rr.enemy.OldJeep(initObj);
break;
case "ArmoredJeep" :
_global.stage["obj_" + _local2] = new rr.enemy.ArmoredJeep(initObj);
break;
case "GunTruck" :
_global.stage["obj_" + _local2] = new rr.enemy.GunTruck(initObj);
break;
case "PotTank" :
_global.stage["obj_" + _local2] = new rr.enemy.PotTank(initObj);
break;
case "Abrahams" :
_global.stage["obj_" + _local2] = new rr.enemy.Abrahams(initObj);
break;
case "Elephant" :
_global.stage["obj_" + _local2] = new rr.enemy.Elephant(initObj);
break;
case "Basilisk" :
_global.stage["obj_" + _local2] = new rr.enemy.Basilisk(initObj);
break;
case "Panther" :
_global.stage["obj_" + _local2] = new rr.enemy.Panther(initObj);
break;
case "Bunker" :
_global.stage["obj_" + _local2] = new rr.enemy.Bunker(initObj);
break;
case "GatlingSingle" :
_global.stage["obj_" + _local2] = new rr.enemy.GatlingSingle(initObj);
break;
case "GatlingDouble" :
_global.stage["obj_" + _local2] = new rr.enemy.GatlingDouble(initObj);
break;
case "Rocketeer" :
_global.stage["obj_" + _local2] = new rr.enemy.Rocketeer(initObj);
break;
case "RocketBase" :
_global.stage["obj_" + _local2] = new rr.enemy.RocketBase(initObj);
break;
case "Building" :
_global.stage["obj_" + _local2] = new rr.building.Building(initObj);
}
return(_global.stage["obj_" + _local2]);
}
static function findClosestEnemy(x, y) {
var _local7;
var _local2 = 200;
var _local6 = _global.stage.afdefenders.length;
var _local4 = 0;
while (_local4 < _local6) {
var _local3 = _global.stage["obj_" + _global.stage.afdefenders[_local4]];
if (!_local3.isdead) {
var _local5 = rr.utils.MathUtils.getDistance(x, y, _local3.x, _local3.y);
if (_local5 < _local2) {
_local7 = _local3;
_local2 = _local5;
}
}
_local4++;
}
var _local12 = _global.map.getCellByPos(x, y);
if (_local12.hasRemovables) {
_local6 = _local12.removables.length;
_local4 = 0;
while (_local4 < _local6) {
var _local3 = _global.stage["obj_" + _local12.removables[_local4]];
if (!_local3.isdead) {
var _local5 = rr.utils.MathUtils.getDistance(x, y, _local3.x, _local3.y);
if (_local5 < _local2) {
_local7 = _local3;
_local2 = _local5;
}
}
_local4++;
}
}
_local6 = _local12.statics.length;
_local4 = 0;
while (_local4 < _local6) {
var _local3 = _global.stage["obj_" + _local12.statics[_local4]];
if (_local3 instanceof rr.building.Building) {
if (!_local3.isdead) {
var _local5 = rr.utils.MathUtils.getDistance(x, y, _local3.x, _local3.y);
if (_local5 < _local2) {
_local7 = _local3;
_local2 = _local5;
}
}
}
_local4++;
}
if (_global.train) {
_local6 = _global.train.segments.length;
_local4 = 0;
while (_local4 < _local6) {
var _local3 = _global.train.segments[_local4];
if (!_local3.isdead) {
var _local5 = rr.utils.MathUtils.getDistance(x, y, _local3.x, _local3.y);
if (_local5 < _local2) {
_local7 = _local3;
_local2 = _local5;
}
}
_local4++;
}
}
if (_global.stage.strains) {
var _local10 = 0;
while (_local10 < _global.stage.strains.length) {
var _local11 = _global.stage.strains[_local10];
_local6 = _local11.segments.length;
_local4 = 0;
while (_local4 < _local6) {
var _local3 = _local11.segments[_local4];
if (!_local3.isdead) {
var _local5 = rr.utils.MathUtils.getDistance(x, y, _local3.x, _local3.y);
if (_local5 < _local2) {
_local7 = _local3;
_local2 = _local5;
}
}
_local4++;
}
_local10++;
}
}
return(_local7);
}
static function addExplosionDamage(x, y, damage, rexplode, hittarget) {
var _local23 = new Array();
var _local24 = _global.map.getCellByPos(x, y);
_local23.push(_local24);
var _local5 = 1;
while (_local5 <= 8) {
var _local17 = _local24.nb[_local5];
if (_local17 != undefined) {
if ((rr.utils.MathUtils.getDistance(x, y, _local17.center.x, _local17.center.y) - rexplode) < 240) {
_local23.push(_local17);
}
}
_local5++;
}
var _local15 = _local23.length;
var _local18 = 0;
while (_local18 < _local15) {
var _local9 = _local23[_local18];
if (_local9.hasRemovables) {
var _local21 = _local9.removables.length;
_local5 = 0;
while (_local5 < _local21) {
var _local2 = _global.stage["obj_" + _local9.removables[_local5]];
if (_local2 == hittarget) {
} else {
var _local6 = rr.utils.MathUtils.getDistance(x, y, _local2.x, _local2.y);
var _local14 = (_local2.dfeel ? (_local2.dfeel) : 10);
if (_local6 < _local14) {
_local2.addDamage(damage);
} else if (_local6 <= (rexplode + _local14)) {
var _local16 = Math.round(damage / (1 + (_local6 / 25)));
_local2.addDamage(_local16);
}
}
_local5++;
}
}
var _local22 = _local9.statics.length;
_local5 = 0;
while (_local5 < _local22) {
var _local3 = _global.stage["obj_" + _local9.statics[_local5]];
if (_local3 == hittarget) {
} else if (_local3 instanceof rr.building.Building) {
var _local6 = rr.utils.MathUtils.getDistance(x, y, _local3.x, _local3.y);
var _local12 = (_local3.dfeel ? (_local3.dfeel) : 10);
if (_local6 < _local12) {
_local3.addDamage(damage);
} else if (_local6 <= (rexplode + _local12)) {
var _local16 = Math.round(damage / (1 + (_local6 / 25)));
_local3.addDamage(_local16);
}
}
_local5++;
}
_local18++;
}
_local15 = _global.stage.afdefenders.length;
_local5 = 0;
while (_local5 < _local15) {
var _local11 = _global.stage["obj_" + _global.stage.afdefenders[_local5]];
if (_local11 == hittarget) {
} else {
var _local6 = rr.utils.MathUtils.getDistance(x, y, _local11.x, _local11.y);
var _local12 = (_local11.dfeel ? (_local11.dfeel) : 0);
if (_local6 < _local12) {
_local11.addDamage(damage);
} else if (_local6 <= (rexplode + _local12)) {
var _local16 = Math.round(damage / (1 + (_local6 / 25)));
_local11.addDamage(_local16);
}
}
_local5++;
}
if (_global.train) {
_local15 = _global.train.segments.length;
_local5 = 0;
while (_local5 < _local15) {
var _local3 = _global.train.segments[_local5];
if (_local3 == hittarget) {
} else {
var _local6 = rr.utils.MathUtils.getDistance(x, y, _local3.x, _local3.y);
var _local12 = (_local3.dfeel ? (_local3.dfeel) : 0);
if (_local6 < _local12) {
_local3.addDamage(damage);
} else if (_local6 <= (rexplode + _local12)) {
var _local16 = Math.round(damage / (1 + (_local6 / 25)));
_local3.addDamage(_local16);
}
}
_local5++;
}
}
if (_global.stage.strains) {
var _local19 = 0;
while (_local19 < _global.stage.strains.length) {
var _local20 = _global.stage.strains[_local19];
_local15 = _local20.segments.length;
_local5 = 0;
while (_local5 <= _local15) {
var _local3 = _local20.segments[_local5];
if (_local3 == hittarget) {
} else {
var _local6 = rr.utils.MathUtils.getDistance(x, y, _local3.x, _local3.y);
var _local12 = (_local3.dfeel ? (_local3.dfeel) : 0);
if (_local6 < _local12) {
_local3.addDamage(damage);
} else if (_local6 <= (rexplode + _local12)) {
var _local16 = Math.round(damage / (1 + (_local6 / 25)));
_local3.addDamage(_local16);
}
}
_local5++;
}
_local19++;
}
}
}
}
Symbol 3352 MovieClip [__Packages.rr.AirField] Frame 0
class rr.AirField extends rr.BaseUnit
{
var linkId, initObj, uid, id, x, xcam, y, ycam, rot, hostility, enemyPlanes, planecount, tspawn, takeoverTerms, ddetect, spawnsound, lastspawned, lightpos, tsiren, addEventListener, track2, heliTrack, pi, defender, dplane, escapeMode, planeDetected, sirensoundUID, blink, mov, clearMov, createMov, events, isdead;
function AirField (iObj) {
super();
linkId = "AirField";
initObj = iObj;
init();
}
function init() {
uid = initObj.uid;
id = initObj.id;
x = (xcam = initObj.x);
y = (ycam = initObj.y);
rot = initObj.r;
hostility = initObj.h;
if (initObj.e) {
enemyPlanes = rr.conf.Config.translateEnemyCodes(initObj.e);
planecount = enemyPlanes.length;
}
if (initObj.spawntime) {
tspawn = initObj.spawntime;
} else {
tspawn = rr.conf.Config.getObjectValue(linkId, "spawntime");
}
takeoverTerms = initObj.takeoverterms;
ddetect = rr.conf.Config.getObjectValue(linkId, "detectiondistance");
spawnsound = rr.conf.Config.getObjectValue(linkId, "spawnsound");
lastspawned = getTimer();
lightpos = rr.utils.MathUtils.transCoord(-81, 30.5, this);
tsiren = 0;
addToMapBackground();
_global.stage.afs.push(uid);
rr.utils.StageUtils.createStageObject({linkId:"AirfieldDefender", base:this});
addEventListener("onAirFieldTakeOver", _global.bottommenu);
_global.timer.addEventListener("onTimerStart", this);
}
function createTracks() {
track2 = new rr.AirFieldTrack(this, 2);
var _local2 = 1;
while (_local2 <= 4) {
this["track" + _local2] = new rr.AirFieldTrack(this, _local2);
_local2++;
}
heliTrack = new rr.AirFieldHeliTrack(this);
}
function addToMapBackground() {
var _local3 = flash.display.BitmapData.loadBitmap("airfield.png");
if (_global.map.nightmap) {
rr.utils.ClipUtils.setBmpTint(_local3, 0, 20);
}
var _local4 = new flash.geom.Matrix();
_local4.translate((-_local3.width) / 2, (-_local3.height) / 2);
_local4.rotate((rr.utils.MathUtils.formatAngle(rot) / 180) * pi);
_local4.translate(x, y);
var _local5 = "normal";
var _local6 = true;
_global.map.map_bmp.draw(_local3, _local4, null, _local5, null, _local6);
_local3.dispose();
}
function update() {
defender.update();
dplane = rr.utils.MathUtils.getDistance(x, y, _global.plane.x, _global.plane.y);
if (hostility <= 0) {
if (!escapeMode) {
if (!_global.plane.landingTrack) {
if (_global.plane.landingmode == "off") {
if (_global.plane instanceof rr.plane.PlayerUnit) {
if (dplane < ((_global.plane.dapproach + _global.plane.dtriangle) + 350)) {
checkLanding();
}
} else if (_global.plane instanceof rr.plane.PlayerHeli) {
if (dplane < 200) {
checkLanding();
}
}
}
}
}
} else if (!planeDetected) {
if (dplane < ddetect) {
spawnPlane();
planeDetected = true;
}
}
if (enemyPlanes.length > 0) {
if (planeDetected) {
if ((getTimer() - lastspawned) > tspawn) {
spawnPlane();
}
}
}
if (rr.utils.MathUtils.getDistance(x, y, _global.camera.x, _global.camera.y) < 700) {
if (_global.plane instanceof rr.plane.PlayerUnit) {
var _local3 = 1;
while (_local3 <= 4) {
this["track" + _local3].update();
_local3++;
}
} else if (_global.plane instanceof rr.plane.PlayerHeli) {
heliTrack.update();
}
}
checkRender();
if (escapeMode) {
tsiren++;
if (tsiren > 100) {
_global.sounds.removeSound(sirensoundUID);
}
blink = ((blink > 5) ? 0 : (blink + 1));
var _local4 = ((blink < 3) ? 1 : 2);
if (mov) {
mov.gotoAndStop(_local4);
}
}
}
function checkRender() {
if (rr.utils.MathUtils.getDistance(lightpos.x, lightpos.y, _global.camera.x, _global.camera.y) < 500) {
render();
} else if (mov) {
clearMov();
}
}
function render() {
if (!mov) {
createMov();
if (hostility > 0) {
mov.gotoAndStop(2);
}
}
mov._x = lightpos.x - _global.camera.left;
mov._y = lightpos.y - _global.camera.top;
}
function checkLanding() {
if (_global.plane instanceof rr.plane.PlayerUnit) {
var _local5 = 1;
while (_local5 <= 4) {
var _local3 = this["track" + _local5];
var _local4 = this["track" + _local5].approachpoint;
if (rr.utils.MathUtils.getDistance(_global.plane.x, _global.plane.y, _local4.x, _local4.y) > 100) {
if (rr.utils.HitTest.isTriangleHit(_global.plane.x, _global.plane.y, _local3.triangle.p1.x, _local3.triangle.p1.y, _local3.triangle.p2.x, _local3.triangle.p2.y, _local3.triangle.p3.x, _local3.triangle.p3.y)) {
var _local6 = rr.utils.Math2.Bearing(_global.plane.x, _global.plane.y, _local4.x, _local4.y);
if (rr.utils.MathUtils.angDiff(_global.plane.rot, _local6) < 10) {
events.dispatchEvent({type:"onAirStripApproach", target:this, track:_local3});
}
}
}
_local5++;
}
} else if (_global.plane instanceof rr.plane.PlayerHeli) {
if (_global.plane.status != "launch") {
if (rr.utils.MathUtils.getDistance(_global.plane.x, _global.plane.y, heliTrack.startpoint.x, heliTrack.startpoint.y) < 50) {
events.dispatchEvent({type:"onAirStripApproach", target:this, track:heliTrack});
}
}
}
}
function addPropaganda(prp) {
if (isdead) {
return(undefined);
}
if (!prp) {
return(undefined);
}
if (hostility <= 0) {
return(undefined);
}
hostility = hostility - prp;
if (hostility <= 0) {
if (mov) {
mov.gotoAndStop(1);
}
defender.hostility = hostility;
defender.tar = undefined;
if (enemyPlanes.length > 0) {
setEscapeMode();
} else {
updateLights();
}
events.dispatchEvent({type:"onAirFieldTakeOver"});
}
}
function setEscapeMode() {
if (enemyPlanes.length > 1) {
sirensoundUID = _global.sounds.addLoopSound("siren.wav");
_global.sounds.playLoopSound(sirensoundUID, 60);
}
tspawn = 5000;
blink = 0;
escapeMode = true;
_global.bottommenu.showTip("tipescapemode");
}
function updateLights() {
var _local2 = 1;
while (_local2 <= 4) {
this["track" + _local2].updateLights();
_local2++;
}
heliTrack.updateLights();
}
function spawnPlane() {
lastspawned = getTimer();
if (_global.stage.airs.length > 3) {
return(undefined);
}
if (enemyPlanes.length > 0) {
var _local3 = enemyPlanes.shift();
rr.utils.StageUtils.createStageObject({linkId:_local3 + "Enemy", base:this});
_global.sounds.playSound(spawnsound);
if (((_global.plane.linkId == "C47") || (_global.plane.linkId == "B2")) || (_global.plane.linkId == "B52")) {
_global.bottommenu.showTip("tipairspotted");
}
}
if (escapeMode) {
if (enemyPlanes.length == 0) {
escapeMode = false;
tsiren = 1000;
_global.sounds.removeSound(sirensoundUID);
mov.gotoAndStop(1);
updateLights();
}
}
}
function onTimerStart() {
if ((escapeMode && (enemyPlanes.length > 1)) && (tsiren <= 100)) {
_global.sounds.playLoopSound(sirensoundUID, 60);
} else {
_global.sounds.removeSound(sirensoundUID);
}
}
function onEnemyPlaneDie(evtObj) {
planecount--;
}
}
Symbol 3353 MovieClip [__Packages.rr.AirFieldTrack] Frame 0
class rr.AirFieldTrack extends rr.BaseClass
{
var parent, id, tblink, ivalblink, nlights, cblink, bearing, striplength, stripcenter, lightBlock, focus, striprect, approachpoint, startpoint, endpoint, triangle, isLandingTrack, cos, pi, sin;
function AirFieldTrack (p, i) {
super();
parent = p;
id = i;
init();
}
function init() {
tblink = 0;
ivalblink = 2;
nlights = 10;
cblink = nlights;
if (id == 1) {
bearing = 90 + parent.rot;
striplength = 350;
stripcenter = {x:1.3, y:-39.5};
lightBlock = {row1:rr.utils.MathUtils.transCoord(133, -71, parent), row2:rr.utils.MathUtils.transCoord(133, -7, parent)};
}
if (id == 2) {
bearing = 270 + parent.rot;
striplength = 350;
stripcenter = {x:1.3, y:-39.5};
lightBlock = {row1:rr.utils.MathUtils.transCoord(-142, -71, parent), row2:rr.utils.MathUtils.transCoord(-142, -7, parent)};
}
if (id == 3) {
bearing = 55 + parent.rot;
striplength = 240;
stripcenter = {x:-70.3, y:-16.1};
lightBlock = {row1:rr.utils.MathUtils.transCoord(5, -108, parent), row2:rr.utils.MathUtils.transCoord(42, -56, parent)};
}
if (id == 4) {
bearing = 235 + parent.rot;
striplength = 240;
stripcenter = {x:-70.3, y:-16.1};
lightBlock = {row1:rr.utils.MathUtils.transCoord(-174, 19, parent), row2:rr.utils.MathUtils.transCoord(-137, 71, parent)};
}
focus = rr.utils.MathUtils.transCoord(stripcenter.x, stripcenter.y, parent);
striprect = new flash.geom.Rectangle(focus.x - 10, focus.y - (striplength / 2), 20, striplength);
createLights();
}
function setPlaneParams() {
var _local5 = _global.plane.dapproach;
var _local6 = _global.plane.dtriangle;
var _local4 = _global.plane.btriangle;
approachpoint = rr.utils.MathUtils.castCoord(focus.x, focus.y, bearing, (striplength / 2) + _local5);
startpoint = rr.utils.MathUtils.castCoord(focus.x, focus.y, bearing, (-striplength) / 2);
endpoint = rr.utils.MathUtils.castCoord(focus.x, focus.y, bearing, (-striplength) * 2);
var _local3 = rr.utils.MathUtils.castCoord(focus.x, focus.y, bearing, ((striplength / 2) + _local5) + _local6);
triangle = {p1:approachpoint, p2:rr.utils.MathUtils.castCoord(_local3.x, _local3.y, bearing - 90, _local4), p3:rr.utils.MathUtils.castCoord(_local3.x, _local3.y, bearing + 90, _local4)};
}
function update() {
cblink--;
if (cblink < 0) {
cblink = nlights;
}
if (_global.plane.landingTrack == this) {
isLandingTrack = true;
updateLights();
} else if (isLandingTrack) {
isLandingTrack = false;
updateLights();
}
}
function checkLanding() {
if (_global.plane.landingmode == "red") {
return(true);
}
var _local3 = rr.utils.MathUtils.getDistance(_global.plane.x, _global.plane.y, approachpoint.x, approachpoint.y);
var _local4 = rr.utils.Math2.Bearing(_global.plane.x, _global.plane.y, approachpoint.x, approachpoint.y);
if (rr.utils.MathUtils.angDiff(_global.plane.rot, _local4) < 10) {
_global.plane.landingmode = ((_local3 > 100) ? "green" : (((_local3 > 20) ? "orange" : "red")));
return(true);
}
return(false);
}
function updateLights() {
var _local6 = 1;
while (_local6 <= 2) {
var _local7 = lightBlock["row" + _local6];
var _local4 = 0;
while (_local4 < nlights) {
var _local5 = _local7.lights[_local4];
var _local3 = "off";
if (isLandingTrack) {
if ((_local4 >= (cblink - 2)) && (_local4 <= (cblink + 2))) {
_local3 = _global.plane.landingmode;
} else {
_local3 = "off";
}
} else if (parent.hostility <= 0) {
_local3 = "orange";
}
if ((_local5.col != _local3) || (_local3 == "orange")) {
_local5.col = _local3;
_global.map.drawAirfieldLight(_local5);
}
_local4++;
}
_local6++;
}
}
function createLights() {
var _local5 = 1;
while (_local5 <= 2) {
lightBlock["row" + _local5].lights = [];
var _local8 = lightBlock["row" + _local5].x;
var _local7 = lightBlock["row" + _local5].y;
var _local6 = bearing;
var _local3 = 0;
while (_local3 < nlights) {
var _local4 = {pos:_local3, x:_local8 + (sin((_local6 * pi) / 180) * (_local3 * 25)), y:_local7 - (cos((_local6 * pi) / 180) * (_local3 * 25)), col:"off"};
if (parent.hostility <= 0) {
_local4.col = "orange";
}
lightBlock["row" + _local5].lights.push(_local4);
_global.map.drawAirfieldLight(_local4);
_local3++;
}
_local5++;
}
}
}
Symbol 3354 MovieClip [__Packages.rr.AirFieldHeliTrack] Frame 0
class rr.AirFieldHeliTrack extends rr.BaseClass
{
var parent, tblink, ivalblink, nlights, cblink, stripcenter, lightBlock, startpoint, striprect, bearing, isLandingTrack;
function AirFieldHeliTrack (p) {
super();
parent = p;
init();
}
function init() {
tblink = 0;
ivalblink = 2;
nlights = 8;
cblink = nlights;
stripcenter = {x:-24, y:45};
lightBlock = {row1:{}, row2:{}};
startpoint = rr.utils.MathUtils.transCoord(stripcenter.x, stripcenter.y, parent);
striprect = new flash.geom.Rectangle(startpoint.x - 50, startpoint.y - 20, 100, 40);
bearing = parent.rot;
createLights();
}
function update() {
cblink--;
if (cblink < 0) {
cblink = nlights;
}
if (_global.plane.landingTrack == this) {
isLandingTrack = true;
updateLights();
} else if (isLandingTrack) {
isLandingTrack = false;
updateLights();
}
}
function checkLanding() {
if (_global.plane.landingmode == "red") {
return(true);
}
var _local3 = rr.utils.MathUtils.getDistance(_global.plane.x, _global.plane.y, startpoint.x, startpoint.y);
if (_local3 < 55) {
_global.plane.landingmode = ((_global.plane.alt > 20) ? "green" : (((_global.plane.alt > 10) ? "orange" : "red")));
return(true);
}
return(false);
}
function updateLights() {
var _local6 = 1;
while (_local6 <= 2) {
var _local7 = lightBlock["row" + _local6];
var _local4 = 0;
while (_local4 < nlights) {
var _local5 = _local7.lights[_local4];
var _local3 = "off";
if (isLandingTrack) {
if ((_local4 >= (cblink - 2)) && (_local4 <= (cblink + 2))) {
_local3 = _global.plane.landingmode;
} else {
_local3 = "off";
}
} else if (parent.hostility <= 0) {
_local3 = "orange";
}
if ((_local5.col != _local3) || (_local3 == "orange")) {
_local5.col = _local3;
_global.map.drawAirfieldLight(_local5);
}
_local4++;
}
_local6++;
}
}
function createLights() {
var _local6;
var _local5 = 1;
while (_local5 <= 2) {
if (_local5 == 1) {
_local6 = new Array({x:-60, y:25}, {x:-45, y:25}, {x:-30, y:25}, {x:-15, y:25}, {x:0, y:25}, {x:15, y:25}, {x:15, y:38}, {x:15, y:51});
}
if (_local5 == 2) {
_local6 = new Array({x:15, y:64}, {x:0, y:64}, {x:-15, y:64}, {x:-30, y:64}, {x:-45, y:64}, {x:-60, y:64}, {x:-60, y:51}, {x:-60, y:38});
}
lightBlock["row" + _local5].lights = new Array();
var _local4 = 0;
while (_local4 < nlights) {
var _local3 = rr.utils.MathUtils.transCoord(_local6[_local4].x, _local6[_local4].y, parent);
_local3.pos = _local4;
_local3.col = "off";
if (parent.hostility <= 0) {
_local3.col = "orange";
}
lightBlock["row" + _local5].lights.push(_local3);
_global.map.drawAirfieldLight(_local3);
_local4++;
}
_local5++;
}
}
}
Symbol 3355 MovieClip [__Packages.rr.plane.PlayerUnit] Frame 0
class rr.plane.PlayerUnit extends rr.BaseUnit
{
var base, initObj, speedmin, linkId, speedmax, dspeedmin, dspeedmax, liftspeed, rotspeed, altmax, altfatal, ascent, descent, angfullroll, fueldef, fuelcons, adef, dlaunch, dapproach, dtriangle, btriangle, dcam, dmenu, weight, loopsound, crashsound, fuelsound, loopingsound, loopsoundUID, clouddepth, speed, tspeed, fuel, a, alt, talt, tfire, lastFired, roll, troll, status, landingmode, rotdampening, fuelempty, firecount, loopingcount, x, xstart, y, ystart, rot, perccam, xcam, sin, pi, ycam, cos, mov, isexploded, daim, landingTrack, isdead, touchdown, abortPoint, loopOn, explode, isFiring, fullrollOn, canFullRoll, rolldir, fullroll, loop, frames_mc, loopmax, isOnFire, events, swaploop, swaproll, maxroll, enginecount, hasGuns, guncount, swapcorr, uid, gunsoundUID, movetar, canLoop, minroll, landingBase, isGunPlaying, addEventListener, killlevel, damage;
function PlayerUnit () {
super();
_global.plane = this;
}
function init() {
super.init();
base = initObj.base;
speedmin = rr.conf.Config.getObjectValue(linkId, "minspeed");
speedmax = rr.conf.Config.getObjectValue(linkId, "maxspeed");
dspeedmin = rr.conf.Config.getObjectValue(linkId, "minspeeddistance");
dspeedmax = rr.conf.Config.getObjectValue(linkId, "maxspeeddistance");
liftspeed = rr.conf.Config.getObjectValue(linkId, "liftspeed");
rotspeed = rr.conf.Config.getObjectValue(linkId, "rotationspeed");
altmax = rr.conf.Config.getObjectValue(linkId, "altitude");
altfatal = rr.conf.Config.getObjectValue(linkId, "altitudefatal");
ascent = rr.conf.Config.getObjectValue(linkId, "ascentrate");
descent = rr.conf.Config.getObjectValue(linkId, "descentrate");
angfullroll = rr.conf.Config.getObjectValue(linkId, "fullrollangle");
fueldef = rr.conf.Config.getObjectValue(linkId, "fuel");
fuelcons = rr.conf.Config.getObjectValue(linkId, "fuelconsumption");
adef = rr.conf.Config.getObjectValue(linkId, "acceleration");
dlaunch = rr.conf.Config.getObjectValue(linkId, "launchdistance");
dapproach = rr.conf.Config.getObjectValue(linkId, "approachdistance");
dtriangle = rr.conf.Config.getObjectValue(linkId, "triangleheight");
btriangle = rr.conf.Config.getObjectValue(linkId, "trianglebase");
dcam = rr.conf.Config.getObjectValue(linkId, "cameradistance");
dmenu = rr.conf.Config.getObjectValue(linkId, "menudistance");
weight = rr.conf.Config.getObjectValue(linkId, "weight");
loopsound = rr.conf.Config.getObjectValue(linkId, "loopsound");
crashsound = rr.conf.Config.getObjectValue(linkId, "crashsound");
fuelsound = rr.conf.Config.getObjectValue(linkId, "fuelsound");
loopingsound = rr.conf.Config.getObjectValue(linkId, "loopingsound");
loopsoundUID = _global.sounds.addLoopSound(loopsound);
clouddepth = rr.conf.ConfBaseDepths.getDepth("CloudLayer");
speed = (tspeed = 0);
fuel = fueldef;
a = adef;
alt = (talt = 0);
tfire = 200;
lastFired = getTimer();
roll = (troll = 0);
status = undefined;
landingmode = "off";
rotdampening = 0.1;
fuelempty = false;
firecount = 0;
loopingcount = 0;
var _local5 = 0;
while (_local5 < _global.stage.afs.length) {
var _local6 = _global.stage["obj_" + _global.stage.afs[_local5]];
var _local4 = 1;
while (_local4 <= 4) {
_local6["track" + _local4].setPlaneParams();
_local4++;
}
_local5++;
}
x = (xstart = base.track1.startpoint.x);
y = (ystart = base.track1.startpoint.y);
rot = base.track1.bearing;
perccam = 0.5;
xcam = x + ((sin((rot * pi) / 180) * dcam) * perccam);
ycam = y - ((cos((rot * pi) / 180) * dcam) * perccam);
_global.camera.camRef = this;
addListeners();
createMov();
mov._visible = false;
_global.bottommenu.setCounts();
}
function update() {
if (status == undefined) {
launch();
render();
return(undefined);
}
if (isexploded) {
render();
return(undefined);
}
daim = rr.utils.MathUtils.getDistance(x, y, _global.aim.x, _global.aim.y);
if (_global.showMouseMenu) {
if (daim < dmenu) {
if (!landingTrack) {
if (!isdead) {
var _local5 = true;
var _local6 = _global.stage.airs.length;
var _local3 = 0;
while (_local3 < _local6) {
var _local4 = _global.stage["obj_" + _global.stage.airs[_local3]];
if (_local4.dplane <= (dmenu + 20)) {
_local5 = false;
_global.weaponmenu.hide();
}
_local3++;
}
if (_local5) {
_global.weaponmenu.update();
}
}
}
} else {
_global.weaponmenu.hide();
}
}
if (landingTrack) {
if (alt <= 0) {
if (!rr.utils.HitTest.isRectHit(x, y, landingTrack.striprect, landingTrack.bearing)) {
die();
}
if (!touchdown) {
touchdown = true;
_global.sounds.playSound("AirplaneSkid3.wav");
}
}
tspeed = ((alt == 0) ? 0 : (0.7 * speedmax));
if (abortPoint) {
if (rr.utils.MathUtils.getDistance(abortPoint.x, abortPoint.y, _global.aim.x, _global.aim.y) > 100) {
abortLanding();
}
}
if (!landingTrack.checkLanding()) {
abortLanding();
}
} else if (!loopOn) {
if (Math.abs(troll) < 3) {
var _local10 = ((daim > dspeedmax) ? 1 : (((daim < dspeedmin) ? 0 : (daim / dspeedmax))));
tspeed = speedmin + ((speedmax - speedmin) * _local10);
} else {
tspeed = speedmax;
}
talt = altmax;
}
if (speed != tspeed) {
speed = ((Math.abs(speed - tspeed) <= a) ? (tspeed) : (((tspeed > speed) ? (speed + a) : (speed - a))));
}
if (status == "suicide") {
alt = alt - (descent * 1.5);
if (alt <= 0) {
explode();
}
} else if ((fuel <= 0) && (!landingTrack)) {
alt = alt - (descent * 0.7);
if (alt <= 0) {
explode();
}
} else if (alt != talt) {
if ((status == "launch") && (speed < speedmin)) {
} else {
alt = ((Math.abs(alt - talt) <= ascent) ? (talt) : (((talt > alt) ? (alt + ascent) : ((landingTrack ? (alt - descent) : (alt - ascent))))));
}
}
if (status == "launch") {
if (rr.utils.MathUtils.getDistance(x, y, xstart, ystart) > dlaunch) {
status = "patrol";
getTargetPoint();
}
}
if (speed > 0) {
if (!loopOn) {
rotateToTarget();
}
if (isFiring) {
fire();
}
} else if (landingTrack) {
if (!isdead) {
afterLanding();
}
}
x = x + (sin((rot * pi) / 180) * speed);
y = y - (cos((rot * pi) / 180) * speed);
if (status != "suicide") {
fullrollOn = false;
}
if (canFullRoll) {
if (!landingTrack) {
if (Key.isDown(82)) {
if (status != "looping") {
fullrollOn = true;
}
}
}
}
if (fullrollOn) {
var _local7 = roll + rolldir;
roll = ((_local7 < (-fullroll)) ? (fullroll) : (((_local7 > fullroll) ? (-fullroll) : (_local7))));
} else if (status == "looping") {
if (!loopOn) {
if (roll == 0) {
loopOn = true;
loop = 1;
tspeed = -speedmax;
a = adef * 2;
frames_mc._rotation = frames_mc._rotation + 180;
} else {
roll = roll + ((roll < 0) ? 1 : -1);
}
} else {
loop++;
if (loop > loopmax) {
status = "patrol";
loopOn = false;
roll = (troll = fullroll);
rot = rot + 180;
speed = -speed;
tspeed = speedmax;
a = adef;
frames_mc._rotation = frames_mc._rotation - 180;
}
}
} else if (roll != troll) {
roll = roll + ((roll < troll) ? 1 : -1);
}
var _local8 = 1;
if ((landingTrack || (status == "launch")) || (status == "looping")) {
if (perccam > 0.5) {
perccam = perccam - 0.01;
}
if (status == "looping") {
_local8 = -1;
}
} else if (perccam < 1) {
perccam = perccam + 0.01;
}
if (status == "launch") {
xcam = x;
ycam = y;
} else {
xcam = x + (((sin((rot * pi) / 180) * dcam) * perccam) * _local8);
ycam = y - (((cos((rot * pi) / 180) * dcam) * perccam) * _local8);
}
if (fuel > 0) {
var _local9 = (isOnFire ? 3 : 1);
fuel = fuel - Math.abs((((Math.abs(speed) * fuelcons) * _local9) * (weight + _global.planedefinition.totalload)) / 1000);
} else {
fuel = 0;
tspeed = speedmin;
if (!fuelempty) {
fuelempty = true;
_global.sounds.stopLoopSound(loopsoundUID);
_global.sounds.playSound(fuelsound);
}
}
events.dispatchEvent({target:this, type:"onFuelUpdate"});
render();
}
function render() {
if (alt > 40) {
if (mov.getDepth() < clouddepth) {
mov.swapDepths(rr.utils.ClipUtils.getFreeDepth(_global.stage.mov, "OverClouds"));
}
} else if (mov.getDepth() > clouddepth) {
mov.swapDepths(rr.utils.ClipUtils.getFreeDepth(_global.stage.mov, "UnderClouds"));
}
mov._x = x - _global.camera.left;
mov._y = y - _global.camera.top;
mov._xscale = (mov._yscale = 70 + ((30 * alt) / altmax));
var _local9 = new flash.geom.Point(mov._x + alt, mov._y + alt);
mov.globalToLocal(_local9);
mov.shadow_mc._x = _local9.x;
mov.shadow_mc._y = _local9.y;
mov.base_mc._rotation = (mov.shadow_mc._rotation = rot);
if (loopOn) {
if (loop <= swaploop) {
mov.shadow_mc._yscale = 100 - (100 * Math.abs(loop / swaploop));
} else {
mov.shadow_mc._yscale = Math.round(100 * Math.abs((swaploop - loop) / swaploop));
mov.shadow_mc._rotation = mov.shadow_mc._rotation + 180;
}
} else {
mov.shadow_mc._yscale = 100;
if (canFullRoll) {
mov.shadow_mc._xscale = 40 + ((60 * Math.abs(swaproll - Math.abs(roll))) / swaproll);
} else {
mov.shadow_mc._xscale = 60 + (40 - (40 * Math.abs(roll / maxroll)));
}
}
if ((status == "looping") && (loopOn)) {
frames_mc.mc.gotoAndStop("l" + loop.toString());
} else {
frames_mc.mc.gotoAndStop("r" + roll.toString());
}
var _local7 = 50;
if (isOnFire) {
var _local6 = 1;
while (_local6 <= enginecount) {
var _local4 = mov.base_mc["flame" + _local6];
if (_local4 != undefined) {
var _local5 = _local4.getDepth();
var _local8 = rr.plane.PlaneUtils.getRollPosition(linkId, "engine" + _local6, roll);
_local4._x = _local8.x;
if (swaproll != undefined) {
if ((roll < (-swaproll)) || (roll > swaproll)) {
if (_local5 < _local7) {
_local4.swapDepths(_local5 + 50);
}
} else if (_local5 > _local7) {
_local4.swapDepths(_local5 - 50);
}
}
if (status == "suicide") {
if (_local4._xscale < 100) {
_local4._xscale = _local4._xscale + 1;
_local4._yscale = _local4._xscale;
}
}
}
_local6++;
}
}
if (hasGuns) {
var _local6 = 1;
while (_local6 <= guncount) {
var _local3 = mov.base_mc["gun" + _local6];
if (_local3 != undefined) {
var _local5 = _local3.getDepth();
if (loopOn) {
var _local8 = rr.plane.PlaneUtils.getLoopPosition(linkId, "guns" + _local6, loop);
_local3._y = _local8.y;
_local3._yscale = _local8.s;
if (loop > swaploop) {
if (_local5 < _local7) {
_local3.swapDepths(_local5 + 50);
_local3._rotation = _local3._rotation + 180;
}
} else {
_local3._y = _local3._y - swapcorr;
}
} else {
var _local8 = rr.plane.PlaneUtils.getRollPosition(linkId, "guns" + _local6, roll);
_local3._yscale = 100;
_local3._x = _local8.x;
_local3._y = _local8.y;
_local3._rotation = 0;
if (swaproll != undefined) {
if ((roll < (-swaproll)) || (roll > swaproll)) {
if (_local5 < _local7) {
_local3.swapDepths(_local5 + 50);
}
} else if (_local5 > _local7) {
_local3.swapDepths(_local5 - 50);
}
}
}
}
_local6++;
}
}
}
function createMov() {
var _local9;
if (alt > 40) {
_local9 = rr.utils.ClipUtils.getFreeDepth(_global.stage.mov, "OverClouds");
} else {
_local9 = rr.utils.ClipUtils.getFreeDepth(_global.stage.mov, "UnderClouds");
}
mov = _global.stage.mov.attachMovie(linkId, uid, _local9, {parent:this});
frames_mc = mov.base_mc.attachMovie(linkId + "FramesBase", "frames_mc", 50);
if (_global.map.nightmap) {
rr.utils.ClipUtils.setTint(frames_mc, 0, 50);
}
var _local6 = 0;
while (_local6 < _global.stage.afs.length) {
var _local8 = _global.stage["obj_" + _global.stage.afs[_local6]];
var _local3 = 1;
while (_local3 <= 4) {
_local8["track" + _local3].setPlaneParams();
_local3++;
}
_local6++;
}
if (_global.planedefinition.guns.length > 0) {
hasGuns = true;
gunsoundUID = _global.sounds.addLoopSound(rr.conf.Config.getObjectValue(_global.planedefinition.guns[0].linkId, "gunsound"));
_local6 = 0;
while (_local6 < _global.planedefinition.guns.length) {
var _local4 = _global.planedefinition.guns[_local6];
var _local5 = mov.base_mc.attachMovie(_local4.linkId, "gun" + _local4.slotId, 10 + _local4.slotId);
var _local7 = rr.plane.PlaneUtils.getRollPosition(linkId, "guns" + _local4.slotId, roll);
_local5._x = _local7.x;
_local5._y = _local7.y;
if (_global.planedefinition.guns[0].linkId == "GunGatling") {
_local5._xscale = 70;
_local5._yscale = 70;
}
_local6++;
}
}
}
function createCrashFlame(id) {
isOnFire = true;
var _local2 = rr.plane.PlaneUtils.getRollPosition(linkId, "engine" + id, roll);
mov.base_mc.attachMovie("CrashFlame", "flame" + id, 30 + id, {_x:_local2.x, _y:_local2.y, _xscale:50, _yscale:50});
}
function launch() {
status = "launch";
_global.planedefinition.setDefaultWeapon();
base.updateLights();
getTargetPoint();
tspeed = speedmax;
talt = altmax;
mov._visible = true;
}
function rotateToTarget() {
var _local7;
var _local3;
if (status == "suicide") {
_local3 = rotspeed;
_local7 = rot + (rolldir * 45);
} else if (landingTrack) {
_local3 = 0.5;
if (landingmode == "red") {
_local7 = rr.utils.Math2.Bearing(x, y, landingTrack.endpoint.x, landingTrack.endpoint.y);
} else {
_local7 = rr.utils.Math2.Bearing(x, y, landingTrack.approachpoint.x, landingTrack.approachpoint.y);
}
} else {
_local3 = rotspeed;
_local7 = rr.utils.Math2.Bearing(x, y, movetar.x, movetar.y);
}
var _local4 = (_local7 + 360) % 360;
var _local5 = (rot + 360) % 360;
if ((_local4 - _local5) > 180) {
_local4 = _local4 - 360;
} else if ((_local4 - _local5) < -180) {
_local4 = _local4 + 360;
}
if (!landingTrack) {
if (rr.utils.MathUtils.angDiff(rot, _local4) < 10) {
_local3 = 0.1;
rotdampening = rotspeed / 8;
troll = 0;
} else if (rotdampening < _local3) {
rotdampening = rotdampening + (rotspeed / 8);
_local3 = rotdampening;
}
}
if (_local4 > _local5) {
_local5 = _local5 + _local3;
rolldir = 1;
} else {
_local5 = _local5 - _local3;
if (status != "suicide") {
rolldir = -1;
}
}
rot = _local5;
var _local6 = rr.utils.MathUtils.angDiff(_local5, _local4);
if ((_local6 <= _local3) || ((360 - _local6) <= _local3)) {
rot = _local4;
if (status != "suicide") {
troll = 0;
}
} else {
if (canLoop) {
if (status != "looping") {
if (fuel > 0) {
if (!isOnFire) {
if ((_local6 > 150) && ((360 - _local6) > 150)) {
if (_global.aim.speed > 100) {
status = "looping";
loopOn = false;
_global.sounds.stopLoopSound(loopsoundUID);
var _local8 = _global.sounds.playLoopingSound(loopingsound, 80);
loopingcount++;
rr.utils.Delegate.callDelayed(this, resumeLoopSound, _local8 - 10);
_global.aim.resetMode();
}
}
}
}
}
}
if (status != "suicide") {
var _local9 = ((rolldir < 0) ? (minroll) : (maxroll));
var _local10 = Math.min(Math.abs((100 * _local6) / angfullroll), 100);
troll = Math.round((_local9 * _local10) / 100);
}
}
}
function resumeLoopSound() {
loopingcount--;
if (loopingcount == 0) {
if (!_global.timer.stopped) {
if (!_global.sounds[loopsoundUID].isplaying) {
_global.sounds.playLoopSound(loopsoundUID, 80);
}
}
}
}
function getTargetPoint() {
var _local4;
var _local3;
if (status == "launch") {
_local4 = x + (sin((rot * pi) / 180) * dlaunch);
_local3 = y - (cos((rot * pi) / 180) * dlaunch);
movetar = {x:_local4, y:_local3};
}
if (status == "patrol") {
movetar = _global.aim;
}
}
function onAirStripApproach(evtObj) {
if (isdead) {
return(undefined);
}
if (status != "patrol") {
return(undefined);
}
landingBase = evtObj.target;
landingTrack = evtObj.track;
landingmode = "green";
talt = 0;
if (status != "looping") {
_global.aim.setMode("abort");
}
}
function abortLanding() {
if (alt < altfatal) {
if (!loopOn) {
rr.utils.Delegate.callDelayed(this, die, 500);
}
}
landingTrack = undefined;
tspeed = speedmax;
talt = altmax;
_global.aim.resetMode();
rr.utils.Delegate.callDelayed(this, setLandingMode, 4000, "off");
}
function setLandingMode(m) {
landingmode = m;
}
function onAimDown() {
if (isdead) {
return(undefined);
}
if (landingTrack) {
if (!abortPoint) {
abortPoint = {x:_global.aim.x, y:_global.aim.y};
}
return(undefined);
}
if (_global.aim.mode != "default") {
return(undefined);
}
if (((status == undefined) || (status == "launch")) || (landingTrack)) {
return(undefined);
}
isFiring = true;
if (_global.planedefinition.weaponType == "Guns") {
if (hasGuns) {
playGun();
}
}
}
function onAimUp() {
abortPoint = undefined;
isFiring = false;
if (_global.planedefinition.weaponType == "Guns") {
if (hasGuns) {
stopGun();
}
}
}
function playGun() {
if (isGunPlaying) {
return(undefined);
}
isGunPlaying = true;
_global.sounds.playLoopSound(gunsoundUID, 80);
var _local3 = 1;
while (_local3 <= guncount) {
mov.base_mc["gun" + _local3].base_mc.gotoAndPlay("fire");
_local3++;
}
}
function stopGun() {
isGunPlaying = false;
_global.sounds.stopLoopSound(gunsoundUID);
var _local3 = 1;
while (_local3 <= guncount) {
mov.base_mc["gun" + _local3].base_mc.gotoAndStop(1);
_local3++;
}
}
function fire() {
if ((status == "launch") || (landingTrack)) {
return(undefined);
}
var _local6 = getTimer();
var _local8 = _global.planedefinition.weaponType;
var _local7 = _global.planedefinition.loadedWeapon;
if (_local8 == "Guns") {
if (hasGuns) {
var _local10 = rr.utils.MathUtils.castCoord(x, y, rot, 600);
var _local4 = 0;
while (_local4 < _global.planedefinition.guns.length) {
var _local3 = _global.planedefinition.guns[_local4];
if ((_local6 - _local3.lastFired) > _local3.tfire) {
_local3.lastFired = _local6;
var _local5 = mov.base_mc["gun" + _local3.slotId];
var _local11 = rr.utils.MathUtils.transCoord(_local5._x, _local5._y, this);
_local11.type = "Bullet" + _local3.linkId;
_local11.rot = rot;
_local11.alt = alt;
rr.utils.Delegate.callDelayed(rr.ammo.AmmoUtils, rr.ammo.AmmoUtils.createAmmo, Math.random() * 80, _local11);
}
_local4++;
}
}
return(undefined);
}
if (_local7 == undefined) {
return(undefined);
}
if ((_local6 - lastFired) < _local7.tfire) {
return(undefined);
}
lastFired = _local6;
if (_local8 == "GroundMissile") {
if (_local7.linkId == "GroundMissile") {
var _local10 = rr.utils.MathUtils.castCoord(x, y, rot, 600);
var _local9 = rr.plane.PlaneUtils.getRollPosition(linkId, "missiles" + _local7.slotId, roll);
var _local11 = rr.utils.MathUtils.transCoord(_local9.x, _local9.y, this);
_local11.type = "GroundMissile";
_local11.rot = rr.utils.Math2.Bearing(_local11.x, _local11.y, _local10.x, _local10.y);
_local11.speed = speed;
_local11.alt = alt;
rr.ammo.AmmoUtils.createAmmo(_local11);
} else if (_local7.linkId == "GroundSeeker") {
var _local9 = rr.plane.PlaneUtils.getRollPosition(linkId, "missiles" + _local7.slotId, roll);
var _local11 = rr.utils.MathUtils.transCoord(_local9.x, _local9.y, this);
_local11.type = "GroundSeeker";
_local11.rot = rot;
_local11.speed = speed;
_local11.alt = alt;
_local11.xtar = _global.root._xmouse + _global.camera.left;
_local11.ytar = _global.root._ymouse + _global.camera.top;
rr.ammo.AmmoUtils.createAmmo(_local11);
}
} else if (_local8 == "AirMissile") {
if (_local7.linkId == "AirMissile") {
var _local10 = rr.utils.MathUtils.castCoord(x, y, rot, 600);
var _local9 = rr.plane.PlaneUtils.getRollPosition(linkId, "missiles" + _local7.slotId, roll);
var _local11 = rr.utils.MathUtils.transCoord(_local9.x, _local9.y, this);
_local11.type = "AirMissile";
_local11.rot = rr.utils.Math2.Bearing(_local11.x, _local11.y, _local10.x, _local10.y);
_local11.speed = speed;
rr.ammo.AmmoUtils.createAmmo(_local11);
} else if (_local7.linkId == "AirSeeker") {
var _local9 = rr.plane.PlaneUtils.getRollPosition(linkId, "missiles" + _local7.slotId, roll);
var _local11 = rr.utils.MathUtils.transCoord(_local9.x, _local9.y, this);
_local11.type = "AirSeeker";
_local11.rot = rot;
_local11.speed = speed;
if (_global.aim.lockedTarget) {
_local11.tar = _global.aim.lockedTarget;
}
rr.ammo.AmmoUtils.createAmmo(_local11);
}
} else if (_local8 == "CarpetBomb") {
var _local4 = 1;
while (_local4 <= 10) {
rr.utils.Delegate.callDelayed(this, dropCarpet, _local4 * 200);
_local4++;
}
} else {
var _local11 = {type:_local7.linkId, x:x, y:y, rot:rot, speed:speed, alt:alt};
rr.ammo.AmmoUtils.createAmmo(_local11);
}
_global.planedefinition.loadWeapon();
}
function dropCarpet() {
var _local5 = ((Math.random() < 0.5) ? (Math.random() * -10) : (Math.random() * 10));
var _local4 = 10 + (Math.random() * 20);
var _local3 = ((Math.random() < 0.5) ? (rot - (Math.random() * 20)) : (rot + (Math.random() * 20)));
var _local2 = rr.utils.MathUtils.transCoord(_local5, _local4, this);
_local2.type = "CarpetBomb";
_local2.speed = speed;
_local2.alt = alt;
_local2.rot = _local3;
rr.ammo.AmmoUtils.createAmmo(_local2);
}
function afterLanding() {
_global.sounds.stopLoopSound(loopsoundUID);
_global.stage.startbase = landingBase;
_global.planemenu.showInGame();
}
function addListeners() {
var _local5 = _global.stage.afs.length;
var _local3 = 0;
while (_local3 < _local5) {
var _local4 = _global.stage["obj_" + _global.stage.afs[_local3]];
_local4.addEventListener("onAirStripApproach", this);
_local3++;
}
_global.aim.addEventListener("onAimDown", this);
_global.aim.addEventListener("onAimUp", this);
_global.timer.addEventListener("onTimerStart", this);
addEventListener("onFuelUpdate", _global.bottommenu);
addEventListener("onDamageUpdate", _global.bottommenu);
events.dispatchEvent({target:this, type:"onDamageUpdate"});
}
function onTimerStart() {
_global.sounds.playLoopSound(loopsoundUID, 80);
}
function addDamage(dmg) {
if (damage > killlevel) {
return(undefined);
}
super.addDamage(dmg);
if (damage > (0.8 * killlevel)) {
if (firecount == 0) {
createCrashFlame(1);
firecount = 1;
_global.bottommenu.showTip("tipdamage");
_global.sounds.playSound("Warning critical damage.wav");
}
}
if (damage > (0.9 * killlevel)) {
if (enginecount > 1) {
if (firecount == 1) {
createCrashFlame(2);
firecount = 2;
}
}
}
if (damage > (0.95 * killlevel)) {
if (enginecount > 2) {
if (firecount == 2) {
createCrashFlame(3);
firecount = 3;
}
}
}
if (damage > (0.98 * killlevel)) {
if (enginecount > 3) {
if (firecount == 3) {
createCrashFlame(4);
firecount = 4;
}
}
}
events.dispatchEvent({target:this, type:"onDamageUpdate"});
}
function die() {
if (isdead) {
return(undefined);
}
super.die();
status = "suicide";
if (alt > 20) {
_global.sounds.playSound(crashsound);
}
_global.sounds.removeSound(loopsoundUID);
_global.sounds.removeSound(gunsoundUID);
loopsoundUID = undefined;
gunsoundUID = undefined;
_global.weaponmenu.hide();
fullrollOn = true;
events.dispatchEvent({type:"onPlaneDie", target:this});
events.dispatchEvent({type:"onUnitDie", target:this});
}
function destroy() {
_global.aim.removeEventListener("onAimDown", this);
_global.aim.removeEventListener("onAimUp", this);
_global.timer.removeEventListener("onTimerStart", this);
var _local7;
var _local8;
var _local9 = _global.stage.afs.length;
var _local5 = 0;
while (_local5 < _local9) {
var _local4 = _global.stage["obj_" + _global.stage.afs[_local5]];
if (_local4.hostility <= 0) {
var _local6 = rr.utils.MathUtils.getDistance(x, y, _local4.x, _local4.y);
if ((_local7 == undefined) || (_local6 < _local7)) {
_local7 = _local6;
_local8 = _local4;
}
}
_local5++;
}
_global.stage.startbase = _local8;
super.destroy();
}
}
Symbol 3356 MovieClip [__Packages.rr.plane.PlaneUtils] Frame 0
class rr.plane.PlaneUtils
{
function PlaneUtils () {
}
static function getRollPosition(lid, element, roll) {
var _local1;
var _local4;
if (lid == "Apache") {
switch (element) {
case "engine1" :
_local1 = {x:[7, 6, 4, 3, 1, 0, -1, -2, -5, -6, -7, -8, -8, -8, -8, -7, -6, -5, -4, -3, -1, 1, 2, 4, 5, 6, 7, 8, 9, 9, 8, 8, 7], y:5};
break;
case "guns1" :
_local1 = {x:[-13, -13, -12, -11, -10, -8, -6, -4, -4, -3, -2, 0, 2, 3, 4, 5, 5], y:-14, s:65};
break;
case "guns2" :
_local1 = {x:[-5, -5, -4, -3, -2, -1, 1, 4, 4, 4, 5, 7, 9, 10, 11, 12, 13], y:-14, s:65};
break;
case "missiles1" :
_local1 = {x:[-11, -11, -11, -12, -12, -12, -11, -11, -11, -11, -11, -10, -9, -8, -7, -6, -5], y:-2};
break;
case "missiles2" :
_local1 = {x:[5, 5, 6, 7, 8, 9, 10, 11, 11, 11, 11, 11, 12, 12, 12, 11, 11], y:-2};
}
_local4 = new Array(-24.8, -24.8, -23.1, -23.1, -19.8, -13.2, -7.5, 0, 0, 1.8, 3.5, 7.3, 14.3, 18.8, 22.5, 24.8, 25.3);
}
if (lid == "A10") {
switch (element) {
case "engine1" :
_local1 = {x:[7, 6, 4, 3, 1, 0, -1, -2, -5, -6, -7, -8, -8, -8, -8, -7, -6, -5, -4, -3, -1, 1, 2, 4, 5, 6, 7, 8, 9, 9, 8, 8, 7], y:5};
break;
case "engine2" :
_local1 = {x:[-7, -8, -9, -8, -8, -8, -7, -6, -5, -5, -2, 0, 3, 4, 6, 7, 8, 9, 9, 9, 9, 9, 9, 8, 7, 5, 3, 2, 0, -2, -4, -5, -6], y:5};
break;
case "guns1" :
_local1 = {x:[13, 13, 13, 12, 10, 9, 7, 3, 1, 0, -2, -5, -7, -9, -10, -11, -12, -12, -12, -11, -10, -9, -7, -4, 0, 2, 3, 6, 8, 10, 11, 12, 13], y:1};
break;
case "guns2" :
_local1 = {x:[-13, -12, -11, -9, -8, -5, -3, 0, 2, 5, 7, 9, 11, 12, 13, 13, 13, 12, 11, 9, 7, 4, 1, 0, -1, -3, -6, -8, -10, -11, -12, -13, -13], y:1};
break;
case "guns3" :
_local1 = {x:[0], y:-31};
break;
case "missiles1" :
_local1 = {x:[24, 24, 23, 21, 18, 14, 10, 3, -2, -7, -13, -16, -18, -20, -22, -24, -24, -24, -23, -21, -18, -14, -9, -4, 0, 5, 10, 14, 19, 21, 23, 24, 24], y:1};
break;
case "missiles2" :
_local1 = {x:[-24, -23, -22, -19, -16, -14, -11, -6, -2, 4, 9, 14, 18, 21, 23, 24, 24, 24, 23, 21, 18, 15, 10, 3, 1, -3, -9, -13, -16, -18, -21, -22, -23], y:1};
}
}
if (lid == "BellHuey") {
switch (element) {
case "engine1" :
_local1 = {x:[7, 6, 4, 3, 1, 0, -1, -2, -5, -6, -7, -8, -8, -8, -8, -7, -6, -5, -4, -3, -1, 1, 2, 4, 5, 6, 7, 8, 9, 9, 8, 8, 7], y:5};
break;
case "guns1" :
_local1 = {x:[-10, -9, -9, -8, -8, -7, -6, -5, -4, -3, -1, 0, 0, 0, 0, 1, 2, 3, 4, 5, 6, 7, 8, 8, 8], y:-10, s:65};
break;
case "missiles1" :
_local1 = {x:[-3, -3, -3, -3, -3, -3, -3, -3, -3, -3, -3, -3, -3, -3, -3, -3, -3, -3, -3, -3, -3, -3, -3, -3, -3], y:0};
break;
case "missiles2" :
_local1 = {x:[3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3], y:0};
}
_local4 = new Array(-42, -41, -40, -37, -35, -32, -30, -23, -16, -14, -5, 0, 0, 0, 0, 3, 12, 19, 27, 33, 39, 40, 43, 45, 46);
}
if (lid == "B2") {
switch (element) {
case "engine1" :
_local1 = {x:[-7, -7.5, -8, -8.5, -8.5, -9, -9, -9, -9.5, -10.5, -11, -11.5, -11.5, -11.5, -11, -11, -11, -11, -10, -10, -10.5, -10.5, -10], y:5};
break;
case "engine2" :
_local1 = {x:[7.5, 8, 8.5, 9, 9.5, 9.5, 9.5, 10, 10.5, 10.5, 10.5, 11, 11, 11, 10.5, 10, 9.5, 8.5, 8, 7.5, 7, 6.5, 6.5], y:5};
break;
case "guns1" :
_local1 = {x:[-7, -7.5, -8, -8, -9, -9.5, -10, -10.5, -11, -11.5, -12, -12.5, -12.5, -12, -11.5, -11.5, -11, -10.5, -10, -9.5, -9, -8.5, -8], y:-21};
break;
case "guns2" :
_local1 = {x:[7, 7.5, 8.5, 9, 9, 9.5, 10, 10.5, 11, 11.5, 12, 11.5, 11.5, 11, 10.5, 10, 10, 9.5, 9.5, 9, 8.5, 8, 7.5], y:-21};
break;
case "missiles1" :
_local1 = {x:[-32, -36.5, -40.5, -44, -46.5, -49, -52, -55.5, -57.5, -59, -60, -61, -61.5, -61.5, -60.5, -58.5, -56.5, -52.5, -49.5, -47.5, -44.5, -42.5, -41.5], y:11};
break;
case "missiles2" :
_local1 = {x:[38.5, 42.5, 46, 49, 51.5, 53.5, 56, 58, 60, 61.5, 62, 62, 61.5, 60.5, 59, 56, 53, 49.5, 46, 42.5, 39.5, 37.5, 36.5], y:12};
}
}
if (lid == "B52") {
switch (element) {
case "engine1" :
_local1 = {x:[-40.5, -41, -44, -46.5, -51, -55, -59, -62, -64, -65, -65.5, -65.5, -66.5, -66.5, -65.5, -64, -62.5, -60, -58, -56, -54.5, -54, -53.5], y:0};
break;
case "engine2" :
_local1 = {x:[-24, -24.5, -26, -28, -30, -32.5, -35, -36, -37, -37.5, -38, -38, -38.5, -38, -37.5, -36.5, -35.5, -34, -33, -32, -31, -30.5, -30], y:-22};
break;
case "engine3" :
_local1 = {x:[30, 30, 31.5, 33, 34.5, 36, 37, 37.5, 37.5, 37.5, 37, 37, 36, 35, 33, 31.5, 29, 27, 25.5, 24, 23, 22, 22], y:-22};
break;
case "engine4" :
_local1 = {x:[54, 55, 56.5, 59, 61.5, 63.5, 65, 65.5, 65.5, 65, 64.5, 64.5, 63, 60, 57, 54, 50.5, 47, 44.5, 42, 40, 38.5, 38], y:0};
break;
case "guns1" :
_local1 = {x:[-12, -13, -14, -15, -16, -17, -18, -19, -19, -19, -19, -19, -19, -18, -17, -16, -15, -14, -13, -12, -11, -10, -10], y:-36};
break;
case "guns2" :
_local1 = {x:[10, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 19, 19, 20, 20, 19, 18, 17, 16, 15, 14, 13, 13], y:-36};
break;
case "guns3" :
_local1 = {x:[-31, -32, -34, -37, -40, -43, -44, -45, -46, -47, -48, -48, -48, -47, -46, -44, -42, -40, -38, -37, -35, -34, -34], y:-13};
break;
case "guns4" :
_local1 = {x:[33, 34, 36, 38, 40, 42, 44, 45, 46, 47, 48, 48, 47, 45, 42, 40, 38, 36, 34, 32, 30, 29, 28], y:-13};
break;
case "missiles1" :
_local1 = {x:[-54.5, -56, -59, -63.5, -68.5, -74, -78.5, -82, -85, -87, -88, -88, -89.5, -89.5, -88.5, -86.5, -84, -81, -78.5, -76, -74, -72.5, -72], y:19.5};
break;
case "missiles2" :
_local1 = {x:[73, 74, 76.5, 80, 83, 86, 88, 89, 89, 88, 87.5, 87, 84.5, 81, 77, 72.5, 68, 64, 60, 56.5, 54.5, 52.5, 52], y:19.5};
}
}
if (lid == "C47") {
switch (element) {
case "engine1" :
_local1 = {x:[-6, -7, -8, -9, -10, -10.5, -11, -11.5, -12, -12.5, -12.5, -12.5, -12.5, -12.5, -12, -11.5, -11.5, -11, -10, -10, -9.5, -9, -9], y:-32};
break;
case "engine2" :
_local1 = {x:[9, 9.5, 10, 10.5, 11, 11.5, 12, 12.5, 13, 13, 13, 13, 12.5, 12, 11.5, 11, 10, 9, 8, 7.5, 7, 6.5, 6.5], y:-32};
break;
case "guns1" :
_local1 = {x:[-4, -4, -5, -5, -5, -6, -7, -8, -8, -8, -7, -7, -7, -7, -6, -6, -6, -5, -4, -4, -4, -4, -4], y:-19};
break;
case "guns2" :
_local1 = {x:[4, 4, 5, 5, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 6, 6, 6, 5, 5, 5, 5, 5], y:-19};
break;
case "guns3" :
_local1 = {x:[-13, -13, -14, -15, -16, -17, -18, -19, -20, -21, -21, -21, -21, -21, -20, -19, -18, -17, -16, -15, -14, -13, -13], y:-17};
break;
case "guns4" :
_local1 = {x:[14, 15, 16, 17, 18, 19, 20, 21, 21, 21, 21, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 11], y:-17};
break;
case "missiles1" :
_local1 = {x:[-30, -30.5, -32.5, -36, -39.5, -43, -45.5, -47.5, -49, -50.5, -51.5, -51.5, -51.5, -50, -48, -46, -43.5, -40.5, -38, -35.5, -33.5, -32.5, -32], y:-8.5};
break;
case "missiles2" :
_local1 = {x:[33.5, 35, 36, 39.5, 42.5, 45.5, 48, 49, 49.5, 50, 50, 50, 49.5, 48.5, 46, 43.5, 41, 38, 35.5, 33, 31.5, 30.5, 30], y:-8.5};
}
}
if (lid == "FockeWolf") {
switch (element) {
case "engine1" :
_local1 = {x:[0], y:-27};
break;
case "guns1" :
_local1 = {x:[13, 13, 12, 11, 10, 8, 5, 2, 0, -1, -3, -5, -7, -9, -10, -11, -12, -12, -11, -10, -9, -8, -6, -3, -1, 1, 3, 5, 7, 10, 12, 13, 13], y:-13};
break;
case "guns2" :
_local1 = {x:[-12, -10, -8, -6, -5, -4, -2, -1, 0, 2, 5, 7, 8, 9, 10, 11, 12, 12, 11, 10, 9, 8, 6, 3, 0, -3, -6, -8, -9, -10, -11, -12, -12], y:-13};
break;
case "missiles1" :
_local1 = {x:[21, 20, 18, 16, 14, 11, 8, 4, 0, -3, -8, -11, -14, -17, -19, -20, -21, -21, -20, -19, -16, -13, -9, -4, 0, 2, 6, 10, 13, 17, 19, 20, 21], y:-13};
break;
case "missiles2" :
_local1 = {x:[-20, -19, -17, -16, -12, -8, -5, -1, 1, 4, 8, 12, 14, 17, 19, 20, 21, 20, 19, 17, 15, 11, 7, 2, -1, -4, -9, -12, -16, -18, -19, -20, -21], y:-13};
}
}
if (lid == "MesserSchmidt") {
switch (element) {
case "engine1" :
_local1 = {x:[12, 13, 13, 13, 12, 11, 10, 8, 4, 3, 1, -2, -4, -6, -8, -10, -11, -12, -13, -13, -12, -11, -10, -8, -5, -4, 0, 3, 5, 7, 9, 11, 12], y:-14};
break;
case "engine2" :
_local1 = {x:[-11, -10, -8, -6, -4, -1, 2, 4, 6, 9, 10, 12, 13, 13, 13, 13, 12, 11, 9, 7, 4, 2, 0, -2, -5, -8, -9, -11, -12, -13, -13, -13, -12], y:-14};
break;
case "guns1" :
_local1 = {x:[7, 8, 9, 9, 8, 7, 6, 4, 3, 2, 1, -1, -2, -4, -5, -6, -7, -8, -8, -8, -7, -6, -5, -4, -3, -2, 0, 1, 2, 4, 5, 6, 7], y:-5};
break;
case "guns2" :
_local1 = {x:[-7, -5, -4, -3, -1, 0, 1, 3, 4, 6, 7, 8, 9, 9, 9, 8, 7, 6, 5, 4, 2, 0, -1, -2, -3, -5, -6, -7, -8, -8, -8, -8, -7], y:-5};
break;
case "missiles1" :
_local1 = {x:[23, 22, 21, 20, 18, 15, 11, 4, 2, -2, -6, -9, -13, -16, -18, -19, -20, -21, -21, -20, -18, -16, -12, -8, -6, 1, 7, 11, 13, 16, 18, 20, 21], y:-3};
break;
case "missiles2" :
_local1 = {x:[-21, -20, -19, -16, -13, -8, -4, 2, 6, 8, 12, 16, 19, 21, 22, 22, 21, 20, 19, 17, 14, 10, 6, 0, -3, -8, -11, -15, -17, -18, -19, -20, -21], y:-3};
}
}
if (_local1.x.length == 1) {
return({x:_local1.x[0], y:_local1.y});
}
var _local5 = {x:_local1.x[(((_local1.x.length + 1) / 2) + roll) - 1], y:_local1.y, s:_local1.s};
if (_local4 != undefined) {
_local5.r = _local4[(((_local4.length + 1) / 2) + roll) - 1];
}
return(_local5);
}
static function getLoopPosition(lid, element, loop) {
var _local1;
if (lid == "A10") {
switch (element) {
case "guns1" :
case "guns2" :
_local1 = [{y:1, s:100}, {y:1, s:100}, {y:1, s:100}, {y:1, s:100}, {y:1, s:100}, {y:1, s:100}, {y:1, s:100}, {y:1, s:100}, {y:1, s:95}, {y:0, s:95}, {y:0, s:90}, {y:0, s:85}, {y:0, s:75}, {y:0, s:65}, {y:0, s:55}, {y:-1, s:45}, {y:-1, s:35}, {y:-1, s:30}, {y:-1, s:25}, {y:-1, s:25}, {y:-1, s:30}, {y:-1, s:35}, {y:-2, s:45}, {y:-2, s:55}, {y:-2, s:70}, {y:-2, s:90}, {y:-2, s:90}, {y:-2, s:95}, {y:-2, s:100}, {y:-2, s:100}, {y:-2, s:100}];
break;
case "guns3" :
_local1 = [{y:-31, s:100}, {y:-31, s:100}, {y:-31, s:100}, {y:-31, s:100}, {y:-30, s:95}, {y:-29, s:95}, {y:-29, s:95}, {y:-29, s:90}, {y:-28, s:85}, {y:-27, s:80}, {y:-26, s:75}, {y:-25, s:75}, {y:-24, s:70}, {y:-23, s:65}, {y:-21, s:60}, {y:-17, s:55}, {y:-14, s:50}, {y:-10, s:45}, {y:-6, s:40}, {y:-1, s:35}, {y:-1, s:35}, {y:8, s:35}, {y:12, s:40}, {y:16, s:50}, {y:19, s:55}, {y:22, s:65}, {y:25, s:75}, {y:27, s:85}, {y:28, s:90}, {y:29, s:95}, {y:30, s:100}, {y:31, s:100}];
}
}
if (lid == "FockeWolf") {
switch (element) {
case "guns1" :
case "guns2" :
_local1 = ["", {y:-5, s:100}, {y:-5, s:100}, {y:-5, s:95}, {y:-5, s:95}, {y:-5, s:90}, {y:-5, s:85}, {y:-5, s:80}, {y:-4, s:75}, {y:-3.5, s:70}, {y:-3, s:65}, {y:-2.5, s:55}, {y:-2.5, s:45}, {y:-2, s:40}, {y:-1, s:30}, {y:0, s:25}, {y:1, s:20}, {y:2, s:15}, {y:3.5, s:15}, {y:4, s:20}, {y:5, s:35}, {y:6, s:45}, {y:7, s:55}, {y:8, s:70}, {y:9, s:75}, {y:10, s:85}, {y:11, s:95}, {y:12, s:95}, {y:12, s:100}, {y:13, s:100}, {y:13, s:100}, {y:13, s:100}, {y:13, s:100}, {y:13, s:100}];
}
}
if (lid == "MesserSchmidt") {
switch (element) {
case "guns1" :
case "guns2" :
_local1 = [{y:-5, s:100}, {y:-5, s:100}, {y:-5, s:100}, {y:-5, s:100}, {y:-5, s:100}, {y:-5, s:95}, {y:-5, s:95}, {y:-6, s:95}, {y:-6, s:90}, {y:-6, s:90}, {y:-6, s:85}, {y:-6, s:80}, {y:-6, s:75}, {y:-6, s:70}, {y:-5, s:65}, {y:-5, s:60}, {y:-5, s:50}, {y:-5, s:35}, {y:-5, s:25}, {y:-4, s:15}, {y:-3, s:20}, {y:-2, s:25}, {y:-2, s:30}, {y:-1, s:40}, {y:0, s:50}, {y:0, s:60}, {y:1, s:70}, {y:2, s:80}, {y:3, s:85}, {y:3, s:90}, {y:4, s:100}, {y:4, s:100}];
}
}
return(_local1[loop]);
}
static function getPitchPosition(lid, element, pitch) {
var _local1;
if (lid == "Apache") {
switch (element) {
case "guns1" :
case "guns2" :
_local1 = [{y:-24, s:100}, {y:-24, s:100}, {y:-23, s:100}, {y:-23, s:95}, {y:-22, s:90}, {y:-21, s:85}, {y:-20, s:85}, {y:-19, s:80}, {y:-18, s:75}, {y:-17, s:75}, {y:-16, s:75}, {y:-16, s:70}, {y:-15, s:70}, {y:-14, s:65}, {y:-14, s:65}];
}
}
if (lid == "BellHuey") {
if (!(element === "guns1")) {
} else {
_local1 = [{y:-20, s:100}, {y:-19, s:100}, {y:-18, s:100}, {y:-18, s:100}, {y:-18, s:95}, {y:-17, s:90}, {y:-16, s:90}, {y:-15, s:85}, {y:-14, s:80}, {y:-13, s:75}, {y:-12, s:70}, {y:-11, s:70}, {y:-11, s:65}, {y:-10, s:65}, {y:-9, s:65}];
}
}
return(_local1[pitch]);
}
}
Symbol 3357 MovieClip [__Packages.rr.plane.PlayerHeli] Frame 0
class rr.plane.PlayerHeli extends rr.BaseUnit
{
var base, initObj, speedmin, linkId, speedmax, dspeedmin, dspeedmax, liftspeed, rotspeed, altmax, altfatal, ascent, descent, angfullroll, fueldef, fuelcons, adef, altlaunch, dapproach, dcam, dmenu, weight, loopsound, loopsoundUID, clouddepth, speed, tspeed, xspeed, yspeed, fuel, a, alt, talt, roll, troll, pitch, tpitch, rollframe, pitchframe, tfire, lastFired, status, landingmode, rotdampening, curbearing, x, xstart, y, ystart, rot, perccam, xcam, ycam, mov, isexploded, daim, landingTrack, isdead, touchdown, abortPoint, explode, isFiring, sin, pi, cos, isOnFire, events, maxpitch, frames_mc, hasGuns, guncount, uid, gunsoundUID, rolldir, movetar, maxroll, minroll, landingBase, isGunPlaying, addEventListener, killlevel, damage;
function PlayerHeli () {
super();
_global.plane = this;
}
function init() {
super.init();
base = initObj.base;
speedmin = rr.conf.Config.getObjectValue(linkId, "minspeed");
speedmax = rr.conf.Config.getObjectValue(linkId, "maxspeed");
dspeedmin = rr.conf.Config.getObjectValue(linkId, "minspeeddistance");
dspeedmax = rr.conf.Config.getObjectValue(linkId, "maxspeeddistance");
liftspeed = rr.conf.Config.getObjectValue(linkId, "liftspeed");
rotspeed = rr.conf.Config.getObjectValue(linkId, "rotationspeed");
altmax = rr.conf.Config.getObjectValue(linkId, "altitude");
altfatal = rr.conf.Config.getObjectValue(linkId, "altitudefatal");
ascent = rr.conf.Config.getObjectValue(linkId, "ascentrate");
descent = rr.conf.Config.getObjectValue(linkId, "descentrate");
angfullroll = rr.conf.Config.getObjectValue(linkId, "fullrollangle");
fueldef = rr.conf.Config.getObjectValue(linkId, "fuel");
fuelcons = rr.conf.Config.getObjectValue(linkId, "fuelconsumption");
adef = rr.conf.Config.getObjectValue(linkId, "acceleration");
altlaunch = rr.conf.Config.getObjectValue(linkId, "launchaltitude");
dapproach = rr.conf.Config.getObjectValue(linkId, "approachdistance");
dcam = rr.conf.Config.getObjectValue(linkId, "cameradistance");
dmenu = rr.conf.Config.getObjectValue(linkId, "menudistance");
weight = rr.conf.Config.getObjectValue(linkId, "weight");
loopsound = rr.conf.Config.getObjectValue(linkId, "loopsound");
loopsoundUID = _global.sounds.addLoopSound(loopsound);
clouddepth = rr.conf.ConfBaseDepths.getDepth("CloudLayer");
speed = (tspeed = 0);
xspeed = (yspeed = 0);
fuel = fueldef;
a = adef;
alt = (talt = 0);
roll = (troll = 0);
pitch = (tpitch = 0);
rollframe = (pitchframe = 0);
tfire = 200;
lastFired = getTimer();
status = undefined;
landingmode = "off";
rotdampening = 0.1;
curbearing = 0;
x = (xstart = base.heliTrack.startpoint.x);
y = (ystart = base.heliTrack.startpoint.y);
rot = Math.random() * 360;
perccam = 1;
xcam = x;
ycam = y;
_global.camera.camRef = this;
addListeners();
createMov();
mov._visible = false;
_global.bottommenu.setCounts();
}
function update() {
if (status == undefined) {
launch();
render();
return(undefined);
}
if (isexploded) {
render();
return(undefined);
}
daim = rr.utils.MathUtils.getDistance(x, y, _global.aim.x, _global.aim.y);
if (_global.showMouseMenu) {
if (daim < dmenu) {
if (!landingTrack) {
if (!isdead) {
_global.weaponmenu.update();
}
}
} else {
_global.weaponmenu.hide();
}
}
if (landingTrack) {
if (alt <= 0) {
if (!rr.utils.HitTest.isRectHit(x, y, landingTrack.striprect, landingTrack.bearing)) {
die();
}
if (!touchdown) {
touchdown = true;
afterLanding();
}
}
if (abortPoint) {
if (rr.utils.MathUtils.getDistance(abortPoint.x, abortPoint.y, _global.aim.x, _global.aim.y) > 100) {
abortLanding();
}
}
if (!landingTrack.checkLanding()) {
abortLanding();
}
}
if (status == "patrol") {
if (Key.isDown(17)) {
tspeed = 0;
} else {
var _local8 = ((daim > dspeedmax) ? 1 : (((daim < dspeedmin) ? 0 : (daim / dspeedmax))));
tspeed = speedmin + ((speedmax - speedmin) * _local8);
}
if (daim > (dspeedmin + 10)) {
if (daim < (dspeedmin + 30)) {
tspeed = 0;
}
}
} else if (status == "landing") {
var _local7 = rr.utils.MathUtils.getDistance(x, y, base.heliTrack.startpoint.x, base.heliTrack.startpoint.y);
tspeed = Math.min(_local7, tspeed);
}
if (speed != tspeed) {
speed = ((Math.abs(speed - tspeed) <= a) ? (tspeed) : (((tspeed > speed) ? (speed + a) : (speed - a))));
}
if (status == "suicide") {
alt = alt - (descent * 1.5);
if (alt <= 0) {
explode();
}
} else if (landingTrack) {
alt = alt - descent;
} else if (fuel <= 0) {
alt = alt - descent;
if (alt <= 0) {
explode();
}
} else if (alt != talt) {
alt = ((Math.abs(alt - talt) <= ascent) ? (talt) : (((talt > alt) ? (alt + ascent) : (alt - ascent))));
}
if (status == "launch") {
if (rr.utils.MathUtils.getDistance(x, y, base.heliTrack.startpoint.x, base.heliTrack.startpoint.y) > 80) {
status = "patrol";
}
}
rotateToTarget();
if (isFiring) {
fire();
}
var _local3;
var _local5;
var _local4;
if (landingTrack) {
if (rr.utils.MathUtils.getDistance(x, y, landingTrack.startpoint.x, landingTrack.startpoint.y) > speed) {
_local3 = rr.utils.Math2.Bearing(x, y, landingTrack.startpoint.x, landingTrack.startpoint.y);
_local5 = (sin((_local3 * pi) / 180) * speedmax) * 0.1;
_local4 = (cos((_local3 * pi) / 180) * speedmax) * 0.1;
xspeed = (xspeed + _local5) / 2;
yspeed = (yspeed + _local4) / 2;
} else {
xspeed = 0;
yspeed = 0;
}
} else if (status == "suicide") {
_local3 = rot + 20;
_local5 = (sin((_local3 * pi) / 180) * speedmax) * 0.3;
_local4 = (cos((_local3 * pi) / 180) * speedmax) * 0.3;
xspeed = (xspeed + _local5) / 2;
yspeed = (yspeed + _local4) / 2;
} else {
_local3 = rr.utils.Math2.Bearing(x, y, _global.aim.x, _global.aim.y);
_local5 = sin((_local3 * pi) / 180) * speed;
_local4 = cos((_local3 * pi) / 180) * speed;
xspeed = (xspeed + _local5) / 2;
yspeed = (yspeed + _local4) / 2;
}
x = x + xspeed;
y = y - yspeed;
if (pitch != tpitch) {
pitch = pitch + ((pitch < tpitch) ? 1 : -1);
}
if (roll != troll) {
roll = roll + ((roll < troll) ? 1 : -1);
}
if (landingTrack) {
xcam = landingTrack.startpoint.x;
ycam = landingTrack.startpoint.y;
} else if (status == "launch") {
xcam = x;
ycam = y;
} else if (status == "suicide") {
xcam = x;
ycam = y;
} else if (daim >= (dspeedmin / 2)) {
xcam = x + ((sin((rot * pi) / 180) * dcam) * perccam);
ycam = y - ((cos((rot * pi) / 180) * dcam) * perccam);
} else {
xcam = x;
ycam = y;
}
if (fuel > 0) {
var _local6 = (isOnFire ? 3 : 1);
fuel = fuel - Math.abs(((((Math.abs(speed) + 1) * fuelcons) * _local6) * (weight + _global.planedefinition.totalload)) / 1000);
} else {
fuel = 0;
tspeed = 0;
_global.sounds.stopLoopSound(loopsoundUID);
}
events.dispatchEvent({target:this, type:"onFuelUpdate"});
render();
}
function render() {
mov._x = x - _global.camera.left;
mov._y = y - _global.camera.top;
mov._xscale = (mov._yscale = 70 + ((30 * alt) / altmax));
var _local7 = new flash.geom.Point(mov._x + alt, mov._y + alt);
mov.globalToLocal(_local7);
mov.shadow_mc._x = _local7.x;
mov.shadow_mc._y = _local7.y;
mov.base_mc._rotation = (mov.shadow_mc._rotation = rot);
var _local8 = ((Math.abs(roll) < 2) ? "pitch" : "roll");
var _local6;
if (_local8 == "roll") {
if (pitchframe < maxpitch) {
pitchframe++;
frames_mc.mc.gotoAndStop("p" + pitchframe.toString());
_local6 = "p";
} else {
rollframe = ((rollframe < roll) ? (rollframe + 1) : (((rollframe > roll) ? (rollframe - 1) : (rollframe))));
frames_mc.mc.gotoAndStop("r" + rollframe.toString());
_local6 = "r";
}
} else if (rollframe != 0) {
rollframe = ((rollframe > 0) ? (rollframe - 1) : (rollframe + 1));
frames_mc.mc.gotoAndStop("r" + rollframe.toString());
_local6 = "r";
} else {
pitchframe = ((pitchframe < pitch) ? (pitchframe + 1) : (((pitchframe > pitch) ? (pitchframe - 1) : (pitchframe))));
frames_mc.mc.gotoAndStop("p" + pitchframe.toString());
_local6 = "p";
}
if (hasGuns) {
var _local5 = 1;
while (_local5 <= guncount) {
var _local3 = mov.base_mc["gun" + _local5];
if (_local3 != undefined) {
var _local4;
if (_local6 == "p") {
_local4 = rr.plane.PlaneUtils.getPitchPosition(linkId, "guns" + _local5, pitchframe);
_local3._y = _local4.y;
_local3._rotation = 0;
_local3._yscale = _local4.s;
} else {
_local4 = rr.plane.PlaneUtils.getRollPosition(linkId, "guns" + _local5, rollframe);
_local3._x = _local4.x;
_local3._y = _local4.y;
_local3._rotation = _local4.r;
_local3._yscale = _local4.s;
}
}
_local5++;
}
}
}
function createMov() {
var _local7;
if (alt > 40) {
_local7 = rr.utils.ClipUtils.getFreeDepth(_global.stage.mov, "OverClouds");
} else {
_local7 = rr.utils.ClipUtils.getFreeDepth(_global.stage.mov, "UnderClouds");
}
mov = _global.stage.mov.attachMovie(linkId, uid, _local7, {parent:this});
frames_mc = mov.base_mc.attachMovie(linkId + "FramesBase", "frames_mc", 50);
if (_global.map.nightmap) {
rr.utils.ClipUtils.setTint(frames_mc, 0, 50);
}
if (_global.planedefinition.guns.length > 0) {
hasGuns = true;
gunsoundUID = _global.sounds.addLoopSound(rr.conf.Config.getObjectValue(_global.planedefinition.guns[0].linkId, "gunsound"));
var _local4 = 0;
while (_local4 < _global.planedefinition.guns.length) {
var _local3 = _global.planedefinition.guns[_local4];
var _local6 = mov.base_mc.attachMovie(_local3.linkId, "gun" + _local3.slotId, 10 + _local3.slotId);
var _local5 = rr.plane.PlaneUtils.getRollPosition(linkId, "guns" + _local3.slotId, roll);
_local6._x = _local5.x;
_local6._y = _local5.y;
_local4++;
}
}
}
function createCrashFlame(id) {
isOnFire = true;
var _local2 = ((linkId == "BellHuey") ? -11 : -7);
mov.base_mc.attachMovie("CrashFlameHeli", "flame" + id, 30 + id, {_x:0, _y:_local2});
}
function rotateToTarget() {
var _local6;
var _local3 = rotspeed;
if (status == "suicide") {
_local6 = rot + (5 + (Math.random() * 4));
} else if (landingTrack) {
var _local7 = ((alt > 30) ? 4 : (((alt > 20) ? 3 : (((alt > 10) ? 2 : (((alt > 5) ? 1 : 0)))))));
_local6 = rot - (rolldir * _local7);
} else {
_local6 = rr.utils.Math2.Bearing(x, y, movetar.x, movetar.y);
}
var _local2 = (_local6 + 360) % 360;
var _local4 = (rot + 360) % 360;
if ((_local2 - _local4) > 180) {
_local2 = _local2 - 360;
} else if ((_local2 - _local4) < -180) {
_local2 = _local2 + 360;
}
if (status == "patrol") {
if (rr.utils.MathUtils.angDiff(rot, _local2) < 10) {
_local3 = 0.1;
rotdampening = rotspeed / 4;
troll = 0;
} else if (rotdampening < _local3) {
rotdampening = rotdampening + (rotspeed / 4);
_local3 = rotdampening;
}
}
if (_local2 > _local4) {
_local4 = _local4 + _local3;
rolldir = -1;
} else {
_local4 = _local4 - _local3;
rolldir = 1;
}
rot = _local4;
tpitch = Math.min(Math.round((maxpitch * speed) / speedmax), maxpitch);
var _local5 = rr.utils.MathUtils.angDiff(_local4, _local2);
if ((_local5 <= _local3) || ((360 - _local5) <= _local3)) {
rot = _local2;
troll = 0;
}
if (landingTrack) {
troll = 0;
tpitch = 0;
} else if (status == "suicide") {
troll = 0;
tpitch = 0;
} else {
var _local8 = ((rolldir < 0) ? (minroll) : (maxroll));
var _local9 = Math.min(Math.abs((100 * _local5) / angfullroll), 100);
troll = Math.round((_local8 * _local9) / 100);
}
}
function launch() {
status = "launch";
_global.planedefinition.setDefaultWeapon();
base.updateLights();
getTargetPoint();
tspeed = speedmax;
talt = altmax;
mov._visible = true;
}
function getTargetPoint() {
movetar = _global.aim;
}
function onAirStripApproach(evtObj) {
landingBase = evtObj.target;
landingTrack = evtObj.track;
status = "landing";
landingmode = "green";
talt = 0;
_global.aim.setMode("abort");
}
function abortLanding() {
if (alt < altfatal) {
rr.utils.Delegate.callDelayed(this, die, 500);
}
landingTrack = undefined;
status = "patrol";
tspeed = speedmax / 3;
talt = altmax;
_global.aim.resetMode();
rr.utils.Delegate.callDelayed(this, setLandingMode, 4000, "off");
}
function setLandingMode(m) {
landingmode = m;
}
function onAimDown() {
if (isdead) {
return(undefined);
}
if (landingTrack) {
if (!abortPoint) {
abortPoint = {x:_global.aim.x, y:_global.aim.y};
}
return(undefined);
}
if (_global.aim.mode != "default") {
return(undefined);
}
if (((status == undefined) || (status == "launch")) || (landingTrack)) {
return(undefined);
}
isFiring = true;
if (_global.planedefinition.weaponType == "Guns") {
if (hasGuns) {
playGun();
}
}
}
function onAimUp() {
abortPoint = undefined;
isFiring = false;
if (_global.planedefinition.weaponType == "Guns") {
if (hasGuns) {
stopGun();
}
}
}
function playGun() {
if (isGunPlaying) {
return(undefined);
}
isGunPlaying = true;
_global.sounds.playLoopSound(gunsoundUID, 80);
var _local3 = 1;
while (_local3 <= guncount) {
mov.base_mc["gun" + _local3].base_mc.gotoAndPlay("fire");
_local3++;
}
}
function stopGun() {
isGunPlaying = false;
_global.sounds.stopLoopSound(gunsoundUID);
var _local3 = 1;
while (_local3 <= guncount) {
mov.base_mc["gun" + _local3].base_mc.gotoAndStop(1);
_local3++;
}
}
function fire() {
if ((status == "launch") || (landingTrack)) {
return(undefined);
}
var _local6 = getTimer();
var _local9 = _global.planedefinition.weaponType;
var _local7 = _global.planedefinition.loadedWeapon;
if (_local9 == "Guns") {
if (hasGuns) {
var _local8 = rr.utils.MathUtils.castCoord(x, y, rot, 600);
var _local4 = 0;
while (_local4 < _global.planedefinition.guns.length) {
var _local3 = _global.planedefinition.guns[_local4];
if ((_local6 - _local3.lastFired) > _local3.tfire) {
_local3.lastFired = _local6;
var _local5 = mov.base_mc["gun" + _local3.slotId];
var _local12 = rr.utils.MathUtils.transCoord(_local5._x, _local5._y, this);
_local12.type = "Bullet" + _local3.linkId;
_local12.rot = rot + rr.utils.MathUtils.formatAngle2(_local5._rotation);
_local12.alt = alt;
rr.utils.Delegate.callDelayed(rr.ammo.AmmoUtils, rr.ammo.AmmoUtils.createAmmo, Math.random() * 80, _local12);
}
_local4++;
}
}
return(undefined);
}
if (_local7 == undefined) {
return(undefined);
}
if ((_local6 - lastFired) < _local7.tfire) {
return(undefined);
}
lastFired = _local6;
if (_local9 == "GroundMissile") {
if (_local7.linkId == "GroundMissile") {
var _local11 = rr.utils.MathUtils.angDiff(rr.utils.Math2.Bearing(x, y, _global.aim.x, _global.aim.y), rot);
if ((_local11 <= 10) || ((360 - _local11) <= 10)) {
var _local8 = _global.aim;
} else {
var _local8 = rr.utils.MathUtils.castCoord(x, y, rot, 600);
}
var _local10 = rr.plane.PlaneUtils.getRollPosition(linkId, "missiles" + _local7.slotId, roll);
var _local12 = rr.utils.MathUtils.transCoord(_local10.x, _local10.y, this);
_local12.type = "GroundMissile";
_local12.rot = rr.utils.Math2.Bearing(_local12.x, _local12.y, _local8.x, _local8.y);
_local12.speed = speed;
_local12.alt = alt;
rr.ammo.AmmoUtils.createAmmo(_local12);
} else if (_local7.linkId == "GroundSeeker") {
var _local10 = rr.plane.PlaneUtils.getRollPosition(linkId, "missiles" + _local7.slotId, roll);
var _local12 = rr.utils.MathUtils.transCoord(_local10.x, _local10.y, this);
_local12.type = "GroundSeeker";
_local12.rot = rot;
_local12.speed = speed;
_local12.alt = alt;
if (_global.aim.lockedTarget) {
_local12.xtar = _global.aim.lockedTarget.x;
_local12.ytar = _global.aim.lockedTarget.y;
} else {
_local12.xtar = _global.root._xmouse + _global.camera.left;
_local12.ytar = _global.root._ymouse + _global.camera.top;
}
rr.ammo.AmmoUtils.createAmmo(_local12);
}
} else if (_local9 == "AirMissile") {
if (_local7.linkId == "AirMissile") {
var _local11 = rr.utils.MathUtils.angDiff(rr.utils.Math2.Bearing(x, y, _global.aim.x, _global.aim.y), rot);
if ((_local11 <= 10) || ((360 - _local11) <= 10)) {
var _local8 = _global.aim;
} else {
var _local8 = rr.utils.MathUtils.castCoord(x, y, rot, 600);
}
var _local10 = rr.plane.PlaneUtils.getRollPosition(linkId, "missiles" + _local7.slotId, roll);
var _local12 = rr.utils.MathUtils.transCoord(_local10.x, _local10.y, this);
_local12.type = "AirMissile";
_local12.rot = rr.utils.Math2.Bearing(_local12.x, _local12.y, _local8.x, _local8.y);
_local12.speed = speed;
rr.ammo.AmmoUtils.createAmmo(_local12);
} else if (_local7.linkId == "AirSeeker") {
var _local10 = rr.plane.PlaneUtils.getRollPosition(linkId, "missiles" + _local7.slotId, roll);
var _local12 = rr.utils.MathUtils.transCoord(_local10.x, _local10.y, this);
_local12.type = "AirSeeker";
_local12.rot = rot;
_local12.speed = speed;
if (_global.aim.lockedTarget) {
_local12.tar = _global.aim.lockedTarget;
}
rr.ammo.AmmoUtils.createAmmo(_local12);
}
} else {
var _local12 = {type:_local7.linkId, x:x, y:y, rot:rot, speed:speed, alt:alt};
rr.ammo.AmmoUtils.createAmmo(_local12);
}
_global.planedefinition.loadWeapon();
}
function afterLanding() {
_global.sounds.stopLoopSound(loopsoundUID);
_global.stage.startbase = landingBase;
_global.planemenu.showInGame();
}
function addListeners() {
var _local5 = _global.stage.afs.length;
var _local3 = 0;
while (_local3 < _local5) {
var _local4 = _global.stage["obj_" + _global.stage.afs[_local3]];
_local4.addEventListener("onAirStripApproach", this);
_local3++;
}
_global.aim.addEventListener("onAimDown", this);
_global.aim.addEventListener("onAimUp", this);
_global.timer.addEventListener("onTimerStart", this);
addEventListener("onFuelUpdate", _global.bottommenu);
addEventListener("onDamageUpdate", _global.bottommenu);
events.dispatchEvent({target:this, type:"onDamageUpdate"});
}
function onTimerStart() {
_global.sounds.playLoopSound(loopsoundUID, 80);
}
function addDamage(dmg) {
super.addDamage(dmg);
if (damage > killlevel) {
damage = killlevel;
}
if (damage > (0.8 * killlevel)) {
if (!isOnFire) {
isOnFire = true;
_global.bottommenu.showTip("tipdamage");
_global.sounds.playSound("Warning critical damage.wav");
}
}
events.dispatchEvent({target:this, type:"onDamageUpdate"});
}
function die() {
if (isdead) {
return(undefined);
}
super.die();
status = "suicide";
_global.sounds.removeSound(loopsoundUID);
_global.sounds.removeSound(gunsoundUID);
loopsoundUID = undefined;
gunsoundUID = undefined;
createCrashFlame(1);
_global.weaponmenu.hide();
events.dispatchEvent({type:"onPlaneDie", target:this});
events.dispatchEvent({type:"onUnitDie", target:this});
}
function destroy() {
_global.aim.removeEventListener("onAimDown", this);
_global.aim.removeEventListener("onAimUp", this);
_global.timer.removeEventListener("onTimerStart", this);
var _local7;
var _local8;
var _local9 = _global.stage.afs.length;
var _local5 = 0;
while (_local5 < _local9) {
var _local4 = _global.stage["obj_" + _global.stage.afs[_local5]];
if (_local4.hostility <= 0) {
var _local6 = rr.utils.MathUtils.getDistance(x, y, _local4.x, _local4.y);
if ((_local7 == undefined) || (_local6 < _local7)) {
_local7 = _local6;
_local8 = _local4;
}
}
_local5++;
}
_global.stage.startbase = _local8;
super.destroy();
}
}
Symbol 3358 MovieClip [__Packages.rr.AirfieldDefender] Frame 0
class rr.AirfieldDefender extends rr.BaseUnit
{
var linkId, initObj, uid, base, dfeel, dfire, tfire, killlevel, destroydelay, gunsound, explodesound, ddetect, x, y, damage, isdead, rot, lastFired, lastTargeted, ttarget, hostility, checkRender, tar, dtar, mov, explode;
function AirfieldDefender (iObj) {
super();
linkId = "AirfieldDefender";
initObj = iObj;
init();
}
function init() {
uid = initObj.uid;
base = initObj.base;
dfeel = rr.conf.Config.getObjectValue(linkId, "feelerradius");
dfire = rr.conf.Config.getObjectValue(linkId, "shootingdistance");
tfire = rr.conf.Config.getObjectValue(linkId, "shootinginterval");
killlevel = rr.conf.Config.getObjectValue(linkId, "killlevel");
destroydelay = rr.conf.Config.getObjectValue(linkId, "destroydelay");
gunsound = rr.conf.Config.getObjectValue(linkId, "gunsound");
explodesound = rr.conf.Config.getObjectValue(linkId, "explodesound");
ddetect = rr.conf.Config.getObjectValue(linkId, "detectiondistance");
var _local3 = rr.utils.MathUtils.transCoord(-120, 60, base);
x = _local3.x;
y = _local3.y;
damage = 0;
isdead = false;
rot = 0;
lastFired = getTimer();
lastTargeted = getTimer();
ttarget = 10000;
hostility = base.hostility;
base.defender = this;
_global.stage.afdefenders.push(uid);
_global.stage.addEventListener("onPlaneCreate", this);
}
function update() {
if (isdead) {
checkRender();
return(undefined);
}
if (_global.plane.isdead) {
tar = undefined;
checkRender();
return(undefined);
}
if (tar == undefined) {
if ((getTimer() - lastTargeted) > ttarget) {
lastTargeted = getTimer();
getTarget();
}
}
if (!base.escapeMode) {
if (tar) {
dtar = rr.utils.MathUtils.getDistance(x, y, tar.x, tar.y);
rot = rr.utils.Math2.Bearing(x, y, tar.x, tar.y);
if (dtar <= dfire) {
fire();
}
}
}
checkRender();
}
function createMov() {
super.createMov();
if (_global.map.nightmap) {
rr.utils.ClipUtils.setTint(mov.base_mc, 0, 50);
}
}
function render() {
super.render();
mov.base_mc._rotation = rot - 90;
}
function getTarget() {
if (hostility > 0) {
if (_global.plane != undefined) {
if (!_global.plane.isdead) {
tar = _global.plane;
tar.addEventListener("onUnitDie", this);
}
}
} else {
var _local6 = _global.stage.airs.length;
var _local4 = 0;
while (_local4 < _local6) {
var _local3 = _global.stage["obj_" + _global.stage.airs[_local4]];
if (_local3.isdead) {
} else {
var _local5 = rr.utils.MathUtils.getDistance(x, y, _local3.x, _local3.y);
if (_local5 <= ddetect) {
tar = _local3;
tar.addEventListener("onUnitDie", this);
}
}
_local4++;
}
}
}
function onUnitDie(evtObj) {
if (tar == evtObj.target) {
tar = undefined;
}
}
function onPlaneCreate() {
tar = undefined;
}
function die() {
if (isdead) {
return(undefined);
}
super.die();
explode();
}
function destroy() {
base.defender = undefined;
super.destroy();
}
function fire() {
if ((getTimer() - lastFired) < tfire) {
return(undefined);
}
lastFired = getTimer();
mov.barrel_mc.gotoAndPlay("shoot");
_global.sounds.playSound(gunsound);
launchRocket(1);
rr.utils.Delegate.callDelayed(this, launchRocket, 200, 2);
}
function launchRocket(id) {
if (_global.timer.stopped) {
return(undefined);
}
var _local3;
if (id == 1) {
_local3 = rr.utils.MathUtils.transCoord(-3, 20, this);
} else {
_local3 = rr.utils.MathUtils.transCoord(3, 20, this);
}
rr.ammo.AmmoUtils.createAmmo({type:linkId, x:_local3.x, y:_local3.y, rot:rot, tar:tar});
}
}
Symbol 3359 MovieClip [__Packages.rr.plane.A10] Frame 0
class rr.plane.A10 extends rr.plane.PlayerUnit
{
var linkId, initObj, dfeel, minroll, maxroll, fullroll, guncount, enginecount, swaproll, swaploop, swapcorr, canLoop, canFullRoll, loopmax;
function A10 (iObj) {
super();
linkId = "A10";
initObj = iObj;
init();
}
function init() {
super.init();
dfeel = 45;
minroll = -11;
maxroll = 11;
fullroll = 18;
guncount = 3;
enginecount = 2;
swaproll = 9;
swaploop = 20;
swapcorr = 0;
canLoop = true;
canFullRoll = true;
loopmax = 32;
}
}
Symbol 3360 MovieClip [__Packages.rr.plane.Apache] Frame 0
class rr.plane.Apache extends rr.plane.PlayerHeli
{
var linkId, initObj, dfeel, minroll, maxroll, maxpitch, guncount, enginecount;
function Apache (iObj) {
super();
linkId = "Apache";
initObj = iObj;
init();
}
function init() {
super.init();
dfeel = 30;
minroll = -8;
maxroll = 8;
maxpitch = 14;
guncount = 2;
enginecount = 1;
}
}
Symbol 3361 MovieClip [__Packages.rr.plane.B2] Frame 0
class rr.plane.B2 extends rr.plane.PlayerUnit
{
var linkId, initObj, dfeel, minroll, maxroll, guncount, enginecount;
function B2 (iObj) {
super();
linkId = "B2";
initObj = iObj;
init();
}
function init() {
super.init();
dfeel = 35;
minroll = -11;
maxroll = 11;
guncount = 2;
enginecount = 2;
}
}
Symbol 3362 MovieClip [__Packages.rr.plane.B52] Frame 0
class rr.plane.B52 extends rr.plane.PlayerUnit
{
var linkId, initObj, dfeel, minroll, maxroll, guncount, enginecount;
function B52 (iObj) {
super();
linkId = "B52";
initObj = iObj;
init();
}
function init() {
super.init();
dfeel = 90;
minroll = -11;
maxroll = 11;
guncount = 4;
enginecount = 4;
}
}
Symbol 3363 MovieClip [__Packages.rr.plane.BellHuey] Frame 0
class rr.plane.BellHuey extends rr.plane.PlayerHeli
{
var linkId, initObj, dfeel, minroll, maxroll, maxpitch, guncount, enginecount;
function BellHuey (iObj) {
super();
linkId = "BellHuey";
initObj = iObj;
init();
}
function init() {
super.init();
dfeel = 30;
minroll = -12;
maxroll = 12;
maxpitch = 14;
guncount = 1;
enginecount = 1;
}
}
Symbol 3364 MovieClip [__Packages.rr.plane.C47] Frame 0
class rr.plane.C47 extends rr.plane.PlayerUnit
{
var linkId, initObj, dfeel, minroll, maxroll, guncount, enginecount;
function C47 (iObj) {
super();
linkId = "C47";
initObj = iObj;
init();
}
function init() {
super.init();
dfeel = 45;
minroll = -11;
maxroll = 11;
guncount = 4;
enginecount = 2;
}
}
Symbol 3365 MovieClip [__Packages.rr.plane.FockeWolf] Frame 0
class rr.plane.FockeWolf extends rr.plane.PlayerUnit
{
var linkId, initObj, dfeel, minroll, maxroll, fullroll, guncount, enginecount, swaproll, swaploop, swapcorr, canLoop, canFullRoll, loopmax;
function FockeWolf (iObj) {
super();
linkId = "FockeWolf";
initObj = iObj;
init();
}
function init() {
super.init();
dfeel = 30;
minroll = -11;
maxroll = 11;
fullroll = 16;
guncount = 2;
enginecount = 1;
swaproll = 10;
swaploop = 16;
swapcorr = 3;
canLoop = true;
canFullRoll = true;
loopmax = 32;
}
}
Symbol 3366 MovieClip [__Packages.rr.plane.MesserSchmidt] Frame 0
class rr.plane.MesserSchmidt extends rr.plane.PlayerUnit
{
var linkId, initObj, dfeel, minroll, maxroll, fullroll, guncount, enginecount, swaproll, swaploop, swapcorr, canLoop, canFullRoll, loopmax;
function MesserSchmidt (iObj) {
super();
linkId = "MesserSchmidt";
initObj = iObj;
init();
}
function init() {
super.init();
dfeel = 35;
minroll = -11;
maxroll = 11;
fullroll = 16;
guncount = 2;
enginecount = 2;
swaproll = 10;
swaploop = 20;
swapcorr = 1;
canLoop = true;
canFullRoll = true;
loopmax = 32;
}
}
Symbol 3367 MovieClip [__Packages.rr.plane.EnemyPlane] Frame 0
class rr.plane.EnemyPlane extends rr.BaseUnit
{
var uid, base, initObj, killlevel, linkId, speedmin, speedmax, rotspeed, altmax, ascent, descent, angfullroll, adef, dlaunch, dfire, dfiremin, loopsound, crashsound, fuelsound, loopsoundUID, clouddepth, guns, ivalfirepause, lfirepause, speed, tspeed, a, alt, talt, tfire, roll, troll, rotdampening, tfpdone, tfirepause, firecount, x, xstart, y, ystart, rot, status, isexploded, dplane, loopOn, explode, isFiring, sin, pi, cos, fullrollOn, rolldir, fullroll, loop, frames_mc, loopmax, mov, swaploop, canFullRoll, swaproll, maxroll, isOnFire, enginecount, hasGuns, guncount, swapcorr, gunsoundUID, movetar, dfeel, canLoop, isFirePaused, minroll, isdead, addEventListener, damage, events;
function EnemyPlane () {
super();
}
function init() {
super.init();
_global.stage.airs.push(uid);
base = initObj.base;
killlevel = rr.conf.Config.getObjectValue(linkId, "killlevelenemy");
speedmin = rr.conf.Config.getObjectValue(linkId, "minspeed");
speedmax = rr.conf.Config.getObjectValue(linkId, "maxspeed");
rotspeed = rr.conf.Config.getObjectValue(linkId, "rotationspeed");
altmax = rr.conf.Config.getObjectValue(linkId, "altitude");
ascent = rr.conf.Config.getObjectValue(linkId, "ascentrate");
descent = rr.conf.Config.getObjectValue(linkId, "descentrate");
angfullroll = rr.conf.Config.getObjectValue(linkId, "fullrollangle");
adef = rr.conf.Config.getObjectValue(linkId, "acceleration");
dlaunch = rr.conf.Config.getObjectValue(linkId, "launchdistance");
dfire = rr.conf.Config.getObjectValue(linkId, "shootingdistance");
dfiremin = rr.conf.Config.getObjectValue(linkId, "shootingdistancemin");
loopsound = rr.conf.Config.getObjectValue(linkId, "loopsound");
crashsound = rr.conf.Config.getObjectValue(linkId, "crashsound");
fuelsound = rr.conf.Config.getObjectValue(linkId, "fuelsound");
loopsoundUID = _global.sounds.addLoopSound(loopsound);
clouddepth = rr.conf.ConfBaseDepths.getDepth("CloudLayer");
guns = [{linkId:"GunDouble", slotId:1, lastFired:getTimer(), tfire:500}, {linkId:"GunDouble", slotId:2, lastFired:getTimer(), tfire:500}];
ivalfirepause = rr.conf.Config.getObjectValue(guns[0].linkId, "enemypauseinterval");
lfirepause = rr.conf.Config.getObjectValue(guns[0].linkId, "enemypauselength");
speed = (tspeed = 0);
a = adef;
alt = (talt = 0);
tfire = 200;
roll = (troll = 0);
rotdampening = 0.1;
rotspeed = rotspeed * 0.6;
tfpdone = 0;
tfirepause = 0;
firecount = 0;
var _local5 = 0;
while (_local5 < _global.stage.afs.length) {
var _local6 = _global.stage["obj_" + _global.stage.afs[_local5]];
var _local4 = 1;
while (_local4 <= 4) {
_local6["track" + _local4].setPlaneParams();
_local4++;
}
_local5++;
}
x = (xstart = base.track1.startpoint.x);
y = (ystart = base.track1.startpoint.y);
rot = base.track1.bearing;
addListeners();
createMov();
}
function update() {
if (status == undefined) {
launch();
render();
return(undefined);
}
if (isexploded) {
render();
return(undefined);
}
if (_global.plane == undefined) {
setFire(false);
} else {
dplane = rr.utils.MathUtils.getDistance(x, y, _global.plane.x, _global.plane.y);
}
if (!loopOn) {
tspeed = speedmax;
talt = altmax;
}
if (speed != tspeed) {
speed = ((Math.abs(speed - tspeed) <= a) ? (tspeed) : (((tspeed > speed) ? (speed + a) : (speed - a))));
}
if (status == "suicide") {
alt = alt - (descent * 1.5);
if (alt <= 0) {
explode();
}
} else if (alt != talt) {
if ((status == "launch") && (speed < speedmin)) {
} else {
alt = ((Math.abs(alt - talt) <= ascent) ? (talt) : (((talt > alt) ? (alt + ascent) : (alt - ascent))));
}
}
if (status == "launch") {
if (rr.utils.MathUtils.getDistance(x, y, xstart, ystart) > dlaunch) {
status = "patrol";
getTargetPoint();
}
}
if (_global.plane != undefined) {
if (speed > 0) {
if (!loopOn) {
rotateToTarget();
}
if (isFiring) {
fire();
}
}
}
x = x + (sin((rot * pi) / 180) * speed);
y = y - (cos((rot * pi) / 180) * speed);
if (status != "suicide") {
fullrollOn = false;
}
if (fullrollOn) {
var _local3 = roll + rolldir;
roll = ((_local3 < (-fullroll)) ? (fullroll) : (((_local3 > fullroll) ? (-fullroll) : (_local3))));
} else if (status == "looping") {
if (!loopOn) {
if (roll == 0) {
loopOn = true;
loop = 1;
tspeed = -speedmax;
a = adef * 2;
frames_mc._rotation = frames_mc._rotation + 180;
} else {
roll = roll + ((roll < 0) ? 1 : -1);
}
} else {
loop++;
if (loop > loopmax) {
status = "patrol";
loopOn = false;
roll = (troll = fullroll);
rot = rot + 180;
speed = -speed;
tspeed = speedmax;
a = adef;
frames_mc._rotation = frames_mc._rotation - 180;
}
}
} else if (roll != troll) {
roll = roll + ((roll < troll) ? 1 : -1);
}
render();
}
function render() {
super.render();
if (alt > 40) {
if (mov.getDepth() < clouddepth) {
mov.swapDepths(rr.utils.ClipUtils.getFreeDepth(_global.stage.mov, "OverEnemyPlane"));
}
} else if (mov.getDepth() > clouddepth) {
mov.swapDepths(rr.utils.ClipUtils.getFreeDepth(_global.stage.mov, "UnderEnemyPlane"));
}
mov._xscale = (mov._yscale = 70 + ((30 * alt) / altmax));
var _local10 = new flash.geom.Point(mov._x + alt, mov._y + alt);
mov.globalToLocal(_local10);
mov.shadow_mc._x = _local10.x;
mov.shadow_mc._y = _local10.y;
mov.base_mc._rotation = (mov.shadow_mc._rotation = rot);
if (loopOn) {
if (loop <= swaploop) {
mov.shadow_mc._yscale = 100 - (100 * Math.abs(loop / swaploop));
} else {
mov.shadow_mc._yscale = Math.round(100 * Math.abs((swaploop - loop) / swaploop));
mov.shadow_mc._rotation = mov.shadow_mc._rotation + 180;
}
} else {
mov.shadow_mc._yscale = 100;
if (canFullRoll) {
mov.shadow_mc._xscale = 40 + ((60 * Math.abs(swaproll - Math.abs(roll))) / swaproll);
} else {
mov.shadow_mc._xscale = 60 + (40 - (40 * Math.abs(roll / maxroll)));
}
}
if ((status == "looping") && (loopOn)) {
frames_mc.mc.gotoAndStop("l" + loop.toString());
} else {
frames_mc.mc.gotoAndStop("r" + roll.toString());
}
var _local8 = 50;
if (isOnFire) {
var _local6 = 1;
while (_local6 <= enginecount) {
var _local7 = mov.base_mc["flame" + _local6];
if (_local7 != undefined) {
var _local5 = _local7.getDepth();
var _local9 = rr.plane.PlaneUtils.getRollPosition(linkId, "engine" + _local6, roll);
_local7._x = _local9.x;
if (swaproll != undefined) {
if ((roll < (-swaproll)) || (roll > swaproll)) {
if (_local5 < _local8) {
_local7.swapDepths(_local5 + 50);
}
} else if (_local5 > _local8) {
_local7.swapDepths(_local5 - 50);
}
}
}
_local6++;
}
}
if (hasGuns) {
var _local6 = 1;
while (_local6 <= guncount) {
var _local4 = mov.base_mc["gun" + _local6];
if (_local4 != undefined) {
var _local5 = _local4.getDepth();
if (loopOn) {
var _local9 = rr.plane.PlaneUtils.getLoopPosition(linkId, "guns" + _local6, loop);
_local4._y = _local9.y;
_local4._yscale = _local9.s;
if (loop > swaploop) {
if (_local5 < _local8) {
_local4.swapDepths(_local5 + 50);
_local4._rotation = _local4._rotation + 180;
}
} else {
_local4._y = _local4._y - swapcorr;
}
} else {
var _local9 = rr.plane.PlaneUtils.getRollPosition(linkId, "guns" + _local6, roll);
_local4._yscale = 100;
_local4._x = _local9.x;
_local4._y = _local9.y;
_local4._rotation = 0;
if (swaproll != undefined) {
if ((roll < (-swaproll)) || (roll > swaproll)) {
if (_local5 < _local8) {
_local4.swapDepths(_local5 + 50);
}
} else if (_local5 > _local8) {
_local4.swapDepths(_local5 - 50);
}
}
}
}
_local6++;
}
}
}
function createMov() {
var _local7;
if (alt > 40) {
_local7 = rr.utils.ClipUtils.getFreeDepth(_global.stage.mov, "OverClouds");
} else {
_local7 = rr.utils.ClipUtils.getFreeDepth(_global.stage.mov, "UnderClouds");
}
mov = _global.stage.mov.attachMovie(linkId, uid, _local7, {parent:this});
frames_mc = mov.base_mc.attachMovie(linkId + "FramesBase", "frames_mc", 50);
if (_global.map.nightmap) {
rr.utils.ClipUtils.setTint(frames_mc, 0, 50);
}
if (guns.length > 0) {
hasGuns = true;
gunsoundUID = _global.sounds.addLoopSound(rr.conf.Config.getObjectValue(guns[0].linkId, "gunsound"));
var _local4 = 0;
while (_local4 < guns.length) {
var _local3 = guns[_local4];
var _local6 = mov.base_mc.attachMovie(_local3.linkId, "gun" + _local3.slotId, 10 + _local3.slotId);
var _local5 = rr.plane.PlaneUtils.getRollPosition(linkId, "guns" + _local3.slotId, roll);
_local6._x = _local5.x;
_local6._y = _local5.y;
_local4++;
}
}
}
function createCrashFlame(id) {
isOnFire = true;
if (status == "looping") {
rr.utils.Delegate.callDelayed(this, createCrashFlame, 50, id);
return(undefined);
}
var _local2 = rr.plane.PlaneUtils.getRollPosition(linkId, "engine" + id, roll);
mov.base_mc.attachMovie("CrashFlame", "flame" + id, 30 + id, {_x:_local2.x, _y:_local2.y, _xscale:50, _yscale:50});
}
function launch() {
status = "launch";
getTargetPoint();
tspeed = speedmax;
talt = altmax;
}
function rotateToTarget() {
if (_global.plane == undefined) {
return(undefined);
}
if (_global.plane.isdead) {
return(undefined);
}
var _local7;
var _local6;
if (status == "suicide") {
_local6 = rotspeed;
_local7 = rot + (rolldir * 45);
} else {
_local6 = rotspeed;
_local7 = rr.utils.Math2.Bearing(x, y, movetar.x, movetar.y);
}
var _local3 = (_local7 + 360) % 360;
var _local4 = (rot + 360) % 360;
if ((_local3 - _local4) > 180) {
_local3 = _local3 - 360;
} else if ((_local3 - _local4) < -180) {
_local3 = _local3 + 360;
}
if (_local3 > _local4) {
_local4 = _local4 + _local6;
rolldir = 1;
} else {
_local4 = _local4 - _local6;
if (status != "suicide") {
rolldir = -1;
}
}
rot = _local4;
var _local5 = rr.utils.MathUtils.angDiff(_local4, _local3);
if (dplane < (dfeel + (_global.plane.dfeel * 3))) {
if (status == "patrol") {
status = "redirect";
getTargetPoint();
}
} else if (canLoop) {
if (status == "patrol") {
if (!isOnFire) {
if (Math.random() < 0.04) {
var _local9 = rr.utils.MathUtils.angDiff(_global.plane.rot, rr.utils.Math2.Bearing(_global.plane.x, _global.plane.y, x, y));
if ((_local9 <= 10) || ((360 - _local9) <= 10)) {
status = "looping";
loopOn = false;
}
}
}
}
}
var _local8 = false;
if (status == "patrol") {
if (dplane <= dfire) {
if (dplane > dfiremin) {
if ((_local5 <= 10) || ((360 - _local5) <= 10)) {
_local8 = true;
}
}
}
}
if (isFirePaused) {
tfpdone = tfpdone + 40;
if (tfpdone > lfirepause) {
isFirePaused = false;
tfpdone = 0;
}
}
if (_local8) {
if (!isFiring) {
if (!isFirePaused) {
setFire(true);
}
} else {
tfirepause = tfirepause + 40;
if (tfirepause > ivalfirepause) {
isFirePaused = true;
setFire(false);
tfirepause = 0;
}
}
} else if (isFiring) {
isFirePaused = false;
tfpdone = 0;
tfirepause = 0;
setFire(false);
}
if ((_local5 <= _local6) || ((360 - _local5) <= _local6)) {
rot = _local3;
if (status != "suicide") {
troll = 0;
}
} else {
if (canLoop) {
if (status != "looping") {
if (!isOnFire) {
if (_local5 > 150) {
}
}
}
}
if (status != "suicide") {
var _local10 = ((rolldir < 0) ? (minroll) : (maxroll));
var _local11 = Math.min(Math.abs((100 * _local5) / angfullroll), 100);
troll = Math.round((_local10 * _local11) / 100);
}
}
}
function reApproach() {
if (!isdead) {
status = "patrol";
getTargetPoint();
}
}
function getTargetPoint() {
if (status == "launch") {
var _local5 = x + (sin((rot * pi) / 180) * dlaunch);
var _local4 = y - (cos((rot * pi) / 180) * dlaunch);
movetar = {x:_local5, y:_local4};
} else if (status == "redirect") {
var _local3 = Math.random() * 360;
var _local5 = x + (sin((_local3 * pi) / 180) * dlaunch);
var _local4 = y - (cos((_local3 * pi) / 180) * dlaunch);
movetar = {x:_local5, y:_local4};
rr.utils.Delegate.callDelayed(this, reApproach, 2000);
} else if (_global.plane && (!_global.plane.isdead)) {
movetar = _global.plane;
} else {
var _local5 = x + (sin((rot * pi) / 180) * dlaunch);
var _local4 = y - (cos((rot * pi) / 180) * dlaunch);
movetar = {x:_local5, y:_local4};
}
}
function setFire(doFire) {
if (!doFire) {
if (isFiring) {
isFiring = false;
if (hasGuns) {
_global.sounds.stopLoopSound(gunsoundUID);
_global.sounds.setEnemyGunSound(gunsoundUID, false);
var _local3 = 1;
while (_local3 <= guncount) {
mov.base_mc["gun" + _local3].base_mc.gotoAndStop(1);
_local3++;
}
}
}
return(undefined);
}
if (isdead || (_global.plane.isdead)) {
return(undefined);
}
if ((status == undefined) || (status == "launch")) {
return(undefined);
}
isFiring = true;
if (hasGuns) {
if (_global.sounds.setEnemyGunSound(gunsoundUID, true)) {
_global.sounds.playLoopSound(gunsoundUID, 40);
}
var _local3 = 1;
while (_local3 <= guncount) {
mov.base_mc["gun" + _local3].base_mc.gotoAndPlay("fire");
_local3++;
}
}
}
function onEnemyGunSoundRemove() {
if (isFiring) {
if (_global.sounds.setEnemyGunSound(gunsoundUID, true)) {
_global.sounds.playLoopSound(gunsoundUID, 40);
}
}
}
function fire() {
if (status == "launch") {
return(undefined);
}
var _local6 = getTimer();
var _local7 = "Guns";
if (_local7 == "Guns") {
if (hasGuns) {
var _local8 = rr.utils.MathUtils.castCoord(x, y, rot, 600);
var _local4 = 0;
while (_local4 < guns.length) {
var _local2 = guns[_local4];
if ((_local6 - _local2.lastFired) > _local2.tfire) {
_local2.lastFired = _local6;
var _local5 = mov.base_mc["gun" + _local2.slotId];
var _local3 = rr.utils.MathUtils.transCoord(_local5._x, _local5._y, this);
_local3.type = "Bullet" + _local2.linkId;
_local3.rot = rot;
_local3.alt = alt;
_local3.isEnemyBullet = true;
rr.utils.Delegate.callDelayed(rr.ammo.AmmoUtils, rr.ammo.AmmoUtils.createAmmo, Math.random() * 80, _local3);
}
_local4++;
}
}
}
}
function addListeners() {
addEventListener("onEnemyPlaneDie", base);
_global.timer.addEventListener("onTimerStart", this);
_global.plane.addEventListener("onPlaneDie", this);
_global.stage.addEventListener("onPlaneCreate", this);
_global.sounds.addEventListener("onEnemyGunSoundRemove", this);
}
function onTimerStart() {
if (!isdead) {
_global.sounds.playLoopSound(loopsoundUID, 40);
}
if (isFiring) {
if (_global.sounds.setEnemyGunSound(gunsoundUID, true)) {
_global.sounds.playLoopSound(gunsoundUID, 40);
}
}
}
function onPlaneCreate() {
getTargetPoint();
_global.plane.addEventListener("onPlaneDie", this);
}
function onPlaneDie() {
if (isFiring) {
setFire(false);
}
}
function addDamage(dmg) {
super.addDamage(dmg);
if (damage > (0.5 * killlevel)) {
if (firecount == 0) {
createCrashFlame(1);
firecount = 1;
}
}
if (damage > (0.8 * killlevel)) {
if (enginecount > 1) {
if (firecount == 1) {
createCrashFlame(2);
firecount = 2;
}
}
}
if (damage > (0.9 * killlevel)) {
if (enginecount > 2) {
if (firecount == 2) {
createCrashFlame(3);
firecount = 3;
}
}
}
if (damage > (0.95 * killlevel)) {
if (enginecount > 3) {
if (firecount == 3) {
createCrashFlame(4);
firecount = 4;
}
}
}
}
function die() {
if (isdead) {
return(undefined);
}
super.die();
_global.airshot++;
var _local4 = 1;
while (_local4 <= enginecount) {
var _local5 = mov.base_mc["flame" + _local4];
_local5._xscale = (_local5._yscale = 100);
_local4++;
}
if (alt > 20) {
_global.sounds.playSound(crashsound, 50);
}
_global.sounds.removeSound(loopsoundUID);
_global.sounds.removeSound(gunsoundUID);
events.dispatchEvent({type:"onEnemyPlaneDie"});
events.dispatchEvent({type:"onUnitDie", target:this});
status = "suicide";
fullrollOn = true;
}
function destroy() {
_global.timer.removeEventListener("onTimerStart", this);
_global.plane.removeEventListener("onPlaneDie", this);
_global.stage.removeEventListener("onPlaneCreate", this);
_global.sounds.removeEventListener("onEnemyGunSoundRemove", this);
super.destroy();
}
}
Symbol 3368 MovieClip [__Packages.rr.plane.A10Enemy] Frame 0
class rr.plane.A10Enemy extends rr.plane.EnemyPlane
{
var linkId, initObj, dfeel, minroll, maxroll, fullroll, guncount, enginecount, swaproll, swaploop, swapcorr, canLoop, canFullRoll, loopmax;
function A10Enemy (iObj) {
super();
linkId = "A10";
initObj = iObj;
init();
}
function init() {
super.init();
dfeel = 45;
minroll = -11;
maxroll = 11;
fullroll = 18;
guncount = 3;
enginecount = 2;
swaproll = 9;
swaploop = 20;
swapcorr = 0;
canLoop = true;
canFullRoll = true;
loopmax = 32;
}
}
Symbol 3369 MovieClip [__Packages.rr.plane.EnemyHeli] Frame 0
class rr.plane.EnemyHeli extends rr.BaseUnit
{
var uid, base, initObj, killlevel, linkId, speedmin, speedmax, dspeedmin, dspeedmax, liftspeed, rotspeed, altmax, altfatal, ascent, descent, angfullroll, adef, altlaunch, dapproach, dfire, dfiremin, loopsound, crashsound, loopsoundUID, clouddepth, guns, missiles, dgunfire, dmissilefire, ivalfirepause, lfirepause, speed, tspeed, xspeed, yspeed, a, alt, talt, roll, troll, pitch, tpitch, rollframe, pitchframe, tfire, lastFired, status, rotdampening, curbearing, tswitch, ivalswitch, wptype, tfpdone, tfirepause, x, xstart, y, ystart, rot, isexploded, dplane, explode, isFirePaused, isFiring, sin, pi, cos, rtar, mov, maxpitch, frames_mc, hasGuns, guncount, gunsoundUID, isOnFire, movetar, rolldir, maxroll, minroll, isdead, addEventListener, damage, events;
function EnemyHeli () {
super();
}
function init() {
super.init();
_global.stage.airs.push(uid);
base = initObj.base;
killlevel = rr.conf.Config.getObjectValue(linkId, "killlevelenemy");
speedmin = rr.conf.Config.getObjectValue(linkId, "minspeed");
speedmax = rr.conf.Config.getObjectValue(linkId, "maxspeed");
dspeedmin = rr.conf.Config.getObjectValue(linkId, "minspeeddistance");
dspeedmax = rr.conf.Config.getObjectValue(linkId, "maxspeeddistance");
liftspeed = rr.conf.Config.getObjectValue(linkId, "liftspeed");
rotspeed = rr.conf.Config.getObjectValue(linkId, "rotationspeed");
altmax = rr.conf.Config.getObjectValue(linkId, "altitude");
altfatal = rr.conf.Config.getObjectValue(linkId, "altitudefatal");
ascent = rr.conf.Config.getObjectValue(linkId, "ascentrate");
descent = rr.conf.Config.getObjectValue(linkId, "descentrate");
angfullroll = rr.conf.Config.getObjectValue(linkId, "fullrollangle");
adef = rr.conf.Config.getObjectValue(linkId, "acceleration");
altlaunch = rr.conf.Config.getObjectValue(linkId, "launchaltitude");
dapproach = rr.conf.Config.getObjectValue(linkId, "approachdistance");
dfire = rr.conf.Config.getObjectValue(linkId, "shootingdistance");
dfiremin = rr.conf.Config.getObjectValue(linkId, "shootingdistancemin");
loopsound = rr.conf.Config.getObjectValue(linkId, "loopsound");
crashsound = rr.conf.Config.getObjectValue(linkId, "crashsound");
loopsoundUID = _global.sounds.addLoopSound(loopsound);
clouddepth = rr.conf.ConfBaseDepths.getDepth("CloudLayer");
if (linkId == "BellHuey") {
guns = [{linkId:"GunDouble", slotId:1, lastFired:getTimer(), tfire:500}];
missiles = [{linkId:"Airmissile", slotId:1, lastFired:getTimer(), tfire:1500}];
} else {
guns = [{linkId:"GunDouble", slotId:1, lastFired:getTimer(), tfire:500}, {linkId:"GunDouble", slotId:2, lastFired:getTimer(), tfire:600}];
missiles = [{linkId:"Airmissile", slotId:1, lastFired:getTimer(), tfire:1500}, {linkId:"Airmissile", slotId:2, lastFired:getTimer(), tfire:2000}];
}
dgunfire = 300;
dmissilefire = 400;
ivalfirepause = rr.conf.Config.getObjectValue(guns[0].linkId, "enemypauseinterval");
lfirepause = rr.conf.Config.getObjectValue(guns[0].linkId, "enemypauselength");
speed = (tspeed = 0);
xspeed = (yspeed = 0);
a = adef;
alt = (talt = 0);
roll = (troll = 0);
pitch = (tpitch = 0);
rollframe = (pitchframe = 0);
tfire = 200;
lastFired = getTimer();
status = undefined;
rotdampening = 0.1;
curbearing = 0;
tswitch = 0;
ivalswitch = 3000;
wptype = "Guns";
tfpdone = 0;
tfirepause = 0;
x = (xstart = base.heliTrack.startpoint.x);
y = (ystart = base.heliTrack.startpoint.y);
rot = Math.random() * 360;
addListeners();
createMov();
}
function update() {
if (status == undefined) {
launch();
render();
return(undefined);
}
if (isexploded) {
render();
return(undefined);
}
if (_global.plane == undefined) {
setFire(false);
render();
return(undefined);
}
dplane = rr.utils.MathUtils.getDistance(x, y, _global.plane.x, _global.plane.y);
var _local6 = ((dplane > dspeedmax) ? 1 : (((dplane < dspeedmin) ? 0 : (dplane / dspeedmax))));
tspeed = speedmin + (((speedmax - speedmin) * _local6) * 0.7);
if (status == "redirect") {
tspeed = speedmax / 2;
} else if (dplane > (dspeedmin + 10)) {
if (dplane < (dspeedmin + 30)) {
tspeed = 0;
}
}
if (speed != tspeed) {
speed = ((Math.abs(speed - tspeed) <= a) ? (tspeed) : (((tspeed > speed) ? (speed + a) : (speed - a))));
}
if (status == "suicide") {
alt = alt - (descent * 1.5);
if (alt <= 0) {
explode();
}
} else if (alt != talt) {
alt = ((Math.abs(alt - talt) <= ascent) ? (talt) : (((talt > alt) ? (alt + ascent) : (alt - ascent))));
}
if (status == "launch") {
if (rr.utils.MathUtils.getDistance(x, y, base.heliTrack.startpoint.x, base.heliTrack.startpoint.y) > 60) {
status = "patrol";
}
}
tswitch = tswitch + 40;
if (tswitch > ivalswitch) {
tswitch = 0;
if (wptype == "Guns") {
isFirePaused = false;
tfpdone = 0;
tfirepause = 0;
setFire(false);
wptype = "AirMissile";
ivalswitch = 1000 + (Math.random() * 1000);
} else {
wptype = "Guns";
ivalswitch = 2000 + (Math.random() * 1000);
}
}
rotateToTarget();
if (wptype == "AirMissile") {
if (dplane < dmissilefire) {
fire();
}
} else if (isFiring) {
fire();
}
var _local3;
var _local5;
var _local4;
if (status == "suicide") {
_local3 = rot + 20;
_local5 = (sin((_local3 * pi) / 180) * speedmax) * 0.3;
_local4 = (cos((_local3 * pi) / 180) * speedmax) * 0.3;
} else if (status == "redirect") {
_local3 = rr.utils.Math2.Bearing(x, y, rtar.x, rtar.y);
_local5 = sin((_local3 * pi) / 180) * speed;
_local4 = cos((_local3 * pi) / 180) * speed;
} else {
_local3 = rr.utils.Math2.Bearing(x, y, _global.plane.x, _global.plane.y);
_local5 = sin((_local3 * pi) / 180) * speed;
_local4 = cos((_local3 * pi) / 180) * speed;
}
xspeed = (xspeed + _local5) / 2;
yspeed = (yspeed + _local4) / 2;
x = x + xspeed;
y = y - yspeed;
if (pitch != tpitch) {
pitch = pitch + ((pitch < tpitch) ? 1 : -1);
}
if (roll != troll) {
roll = roll + ((roll < troll) ? 1 : -1);
}
render();
}
function render() {
mov._x = x - _global.camera.left;
mov._y = y - _global.camera.top;
mov._xscale = (mov._yscale = 70 + ((30 * alt) / altmax));
var _local7 = new flash.geom.Point(mov._x + alt, mov._y + alt);
mov.globalToLocal(_local7);
mov.shadow_mc._x = _local7.x;
mov.shadow_mc._y = _local7.y;
mov.base_mc._rotation = (mov.shadow_mc._rotation = rot);
var _local8 = ((Math.abs(roll) < 2) ? "pitch" : "roll");
var _local6;
if (_local8 == "roll") {
if (pitchframe < maxpitch) {
pitchframe++;
frames_mc.mc.gotoAndStop("p" + pitchframe.toString());
_local6 = "p";
} else {
rollframe = ((rollframe < roll) ? (rollframe + 1) : (((rollframe > roll) ? (rollframe - 1) : (rollframe))));
frames_mc.mc.gotoAndStop("r" + rollframe.toString());
_local6 = "r";
}
} else if (rollframe != 0) {
rollframe = ((rollframe > 0) ? (rollframe - 1) : (rollframe + 1));
frames_mc.mc.gotoAndStop("r" + rollframe.toString());
_local6 = "r";
} else {
pitchframe = ((pitchframe < pitch) ? (pitchframe + 1) : (((pitchframe > pitch) ? (pitchframe - 1) : (pitchframe))));
frames_mc.mc.gotoAndStop("p" + pitchframe.toString());
_local6 = "p";
}
if (hasGuns) {
var _local5 = 1;
while (_local5 <= guncount) {
var _local3 = mov.base_mc["gun" + _local5];
if (_local3 != undefined) {
var _local4;
if (_local6 == "p") {
_local4 = rr.plane.PlaneUtils.getPitchPosition(linkId, "guns" + _local5, pitchframe);
_local3._y = _local4.y;
_local3._rotation = 0;
_local3._yscale = _local4.s;
} else {
_local4 = rr.plane.PlaneUtils.getRollPosition(linkId, "guns" + _local5, rollframe);
_local3._x = _local4.x;
_local3._y = _local4.y;
_local3._rotation = _local4.r;
_local3._yscale = _local4.s;
}
}
_local5++;
}
}
}
function createMov() {
var _local7;
if (alt > 40) {
_local7 = rr.utils.ClipUtils.getFreeDepth(_global.stage.mov, "OverClouds");
} else {
_local7 = rr.utils.ClipUtils.getFreeDepth(_global.stage.mov, "UnderClouds");
}
mov = _global.stage.mov.attachMovie(linkId, uid, _local7, {parent:this});
frames_mc = mov.base_mc.attachMovie(linkId + "FramesBase", "frames_mc", 50);
if (_global.map.nightmap) {
rr.utils.ClipUtils.setTint(frames_mc, 0, 50);
}
if (guns.length > 0) {
hasGuns = true;
gunsoundUID = _global.sounds.addLoopSound(rr.conf.Config.getObjectValue(guns[0].linkId, "gunsound"));
var _local4 = 0;
while (_local4 < guns.length) {
var _local3 = guns[_local4];
var _local6 = mov.base_mc.attachMovie(_local3.linkId, "gun" + _local3.slotId, 10 + _local3.slotId);
var _local5 = rr.plane.PlaneUtils.getRollPosition(linkId, "guns" + _local3.slotId, roll);
_local6._x = _local5.x;
_local6._y = _local5.y;
_local4++;
}
}
}
function createCrashFlame(id) {
isOnFire = true;
var _local2 = ((linkId == "BellHuey") ? -11 : -7);
mov.base_mc.attachMovie("CrashFlameHeli", "flame" + id, 30 + id, {_x:0, _y:_local2});
}
function rotateToTarget() {
var _local6;
var _local3 = rotspeed;
if (status == "suicide") {
_local6 = rot + (5 + (Math.random() * 4));
} else {
_local6 = rr.utils.Math2.Bearing(x, y, movetar.x, movetar.y);
}
var _local2 = (_local6 + 360) % 360;
var _local4 = (rot + 360) % 360;
if ((_local2 - _local4) > 180) {
_local2 = _local2 - 360;
} else if ((_local2 - _local4) < -180) {
_local2 = _local2 + 360;
}
if (status == "patrol") {
if (rr.utils.MathUtils.angDiff(rot, _local2) < 10) {
_local3 = 0.1;
rotdampening = rotspeed / 8;
troll = 0;
} else if (rotdampening < _local3) {
rotdampening = rotdampening + (rotspeed / 8);
_local3 = rotdampening;
}
}
if (_local2 > _local4) {
_local4 = _local4 + _local3;
rolldir = -1;
} else {
_local4 = _local4 - _local3;
rolldir = 1;
}
rot = _local4;
tpitch = Math.min(Math.round((maxpitch * speed) / speedmax), maxpitch);
var _local5 = rr.utils.MathUtils.angDiff(_local4, _local2);
var _local7 = false;
if (status == "patrol") {
if (wptype == "Guns") {
if (dplane <= dgunfire) {
if (dplane > dfiremin) {
if ((_local5 <= 10) || ((360 - _local5) <= 10)) {
_local7 = true;
}
}
}
}
}
if (isFirePaused) {
tfpdone = tfpdone + 40;
if (tfpdone > lfirepause) {
isFirePaused = false;
tfpdone = 0;
}
}
if (_local7) {
if (!isFiring) {
if (!isFirePaused) {
setFire(true);
}
} else {
tfirepause = tfirepause + 40;
if (tfirepause > ivalfirepause) {
isFirePaused = true;
setFire(false);
tfirepause = 0;
}
}
} else if (isFiring) {
isFirePaused = false;
tfpdone = 0;
tfirepause = 0;
setFire(false);
}
if ((_local5 <= _local3) || ((360 - _local5) <= _local3)) {
rot = _local2;
troll = 0;
}
if (status == "suicide") {
troll = 0;
tpitch = 0;
} else {
var _local8 = ((rolldir < 0) ? (minroll) : (maxroll));
var _local9 = Math.min(Math.abs((100 * _local5) / angfullroll), 100);
troll = Math.round((_local8 * _local9) / 100);
}
}
function launch() {
status = "launch";
getTargetPoint();
tspeed = speedmax;
talt = altmax;
rr.utils.Delegate.callDelayed(this, reDirect, 5000);
}
function reDirect() {
var _local3 = Math.random() * 360;
var _local5 = _global.plane.x + (sin((_local3 * pi) / 180) * 200);
var _local4 = _global.plane.y - (cos((_local3 * pi) / 180) * 200);
rtar = {x:_local5, y:_local4};
if (!isdead) {
status = "redirect";
rr.utils.Delegate.callDelayed(this, reApproach, 3000);
}
}
function reApproach() {
if (!isdead) {
status = "patrol";
rr.utils.Delegate.callDelayed(this, reDirect, 5000);
}
}
function getTargetPoint() {
if (_global.plane && (!_global.plane.isdead)) {
movetar = _global.plane;
} else {
var _local4 = x + (sin((rot * pi) / 180) * 200);
var _local3 = y - (cos((rot * pi) / 180) * 200);
movetar = {x:_local4, y:_local3};
}
}
function setFire(doFire) {
if (!doFire) {
if (isFiring) {
isFiring = false;
if (hasGuns) {
_global.sounds.stopLoopSound(gunsoundUID);
_global.sounds.setEnemyGunSound(gunsoundUID, false);
var _local3 = 1;
while (_local3 <= guncount) {
mov.base_mc["gun" + _local3].base_mc.gotoAndStop(1);
_local3++;
}
}
}
return(undefined);
}
if (isdead || (_global.plane.isdead)) {
return(undefined);
}
if ((status == undefined) || (status == "launch")) {
return(undefined);
}
if (wptype != "Guns") {
return(undefined);
}
isFiring = true;
if (hasGuns) {
if (_global.sounds.setEnemyGunSound(gunsoundUID, true)) {
_global.sounds.playLoopSound(gunsoundUID, 40);
}
var _local3 = 1;
while (_local3 <= guncount) {
mov.base_mc["gun" + _local3].base_mc.gotoAndPlay("fire");
_local3++;
}
}
}
function onEnemyGunSoundRemove() {
if (isFiring) {
if (_global.sounds.setEnemyGunSound(gunsoundUID, true)) {
_global.sounds.playLoopSound(gunsoundUID, 40);
}
}
}
function fire() {
if (status == "launch") {
return(undefined);
}
var _local7 = getTimer();
if (wptype == "Guns") {
if (!isFiring) {
return(undefined);
}
if (hasGuns) {
var _local10 = rr.utils.MathUtils.castCoord(x, y, rot, 600);
var _local6 = 0;
while (_local6 < guns.length) {
var _local4 = guns[_local6];
if ((_local7 - _local4.lastFired) > _local4.tfire) {
_local4.lastFired = _local7;
var _local9 = mov.base_mc["gun" + _local4.slotId];
var _local3 = rr.utils.MathUtils.transCoord(_local9._x, _local9._y, this);
_local3.type = "Bullet" + _local4.linkId;
_local3.rot = rot;
_local3.alt = alt;
_local3.isEnemyBullet = true;
rr.utils.Delegate.callDelayed(rr.ammo.AmmoUtils, rr.ammo.AmmoUtils.createAmmo, Math.random() * 80, _local3);
}
_local6++;
}
}
} else if (wptype == "AirMissile") {
var _local11 = rr.utils.MathUtils.angDiff(rr.utils.Math2.Bearing(x, y, _global.plane.x, _global.plane.y), rot);
if ((_local11 <= 10) || ((360 - _local11) <= 10)) {
var _local10 = _global.plane;
} else {
var _local10 = rr.utils.MathUtils.castCoord(x, y, rot, 600);
}
var _local6 = 0;
while (_local6 < missiles.length) {
var _local5 = missiles[_local6];
if ((_local7 - _local5.lastFired) > _local5.tfire) {
_local5.lastFired = _local7;
var _local8 = rr.plane.PlaneUtils.getRollPosition(linkId, "missiles" + _local5.slotId, roll);
var _local3 = rr.utils.MathUtils.transCoord(_local8.x, _local8.y, this);
_local3.type = "AirMissile";
_local3.rot = rr.utils.Math2.Bearing(_local3.x, _local3.y, _local10.x, _local10.y);
_local3.speed = speed;
_local3.isEnemyMissile = true;
rr.ammo.AmmoUtils.createAmmo(_local3);
}
_local6++;
}
}
}
function addListeners() {
addEventListener("onEnemyPlaneDie", base);
_global.timer.addEventListener("onTimerStart", this);
_global.plane.addEventListener("onPlaneDie", this);
_global.stage.addEventListener("onPlaneCreate", this);
_global.sounds.addEventListener("onEnemyGunSoundRemove", this);
}
function onTimerStart() {
if (!isdead) {
_global.sounds.playLoopSound(loopsoundUID, 40);
}
if (isFiring) {
_global.sounds.playLoopSound(gunsoundUID, 40);
}
}
function onPlaneCreate() {
getTargetPoint();
_global.plane.addEventListener("onPlaneDie", this);
}
function onPlaneDie() {
if (isFiring) {
setFire(false);
}
}
function addDamage(dmg) {
super.addDamage(dmg);
if (damage > killlevel) {
damage = killlevel;
}
}
function die() {
if (isdead) {
return(undefined);
}
super.die();
_global.airshot++;
setFire(false);
if (!isOnFire) {
createCrashFlame(1);
}
_global.sounds.removeSound(loopsoundUID);
_global.sounds.removeSound(gunsoundUID);
loopsoundUID = undefined;
gunsoundUID = undefined;
events.dispatchEvent({type:"onEnemyPlaneDie"});
events.dispatchEvent({type:"onUnitDie", target:this});
status = "suicide";
}
function destroy() {
_global.timer.removeEventListener("onTimerStart", this);
_global.plane.removeEventListener("onPlaneDie", this);
_global.stage.removeEventListener("onPlaneCreate", this);
_global.sounds.removeEventListener("onEnemyGunSoundRemove", this);
super.destroy();
}
}
Symbol 3370 MovieClip [__Packages.rr.plane.ApacheEnemy] Frame 0
class rr.plane.ApacheEnemy extends rr.plane.EnemyHeli
{
var linkId, initObj, dfeel, minroll, maxroll, maxpitch, guncount, enginecount;
function ApacheEnemy (iObj) {
super();
linkId = "Apache";
initObj = iObj;
init();
}
function init() {
super.init();
dfeel = 30;
minroll = -8;
maxroll = 8;
maxpitch = 14;
guncount = 2;
enginecount = 1;
}
}
Symbol 3371 MovieClip [__Packages.rr.plane.B2Enemy] Frame 0
class rr.plane.B2Enemy extends rr.plane.EnemyPlane
{
var linkId, initObj, dfeel, minroll, maxroll, guncount, enginecount;
function B2Enemy (iObj) {
super();
linkId = "B2";
initObj = iObj;
init();
}
function init() {
super.init();
dfeel = 35;
minroll = -11;
maxroll = 11;
guncount = 2;
enginecount = 2;
}
}
Symbol 3372 MovieClip [__Packages.rr.plane.B52Enemy] Frame 0
class rr.plane.B52Enemy extends rr.plane.EnemyPlane
{
var linkId, initObj, dfeel, minroll, maxroll, guncount, enginecount;
function B52Enemy (iObj) {
super();
linkId = "B52";
initObj = iObj;
init();
}
function init() {
super.init();
dfeel = 90;
minroll = -11;
maxroll = 11;
guncount = 2;
enginecount = 4;
}
}
Symbol 3373 MovieClip [__Packages.rr.plane.BellHueyEnemy] Frame 0
class rr.plane.BellHueyEnemy extends rr.plane.EnemyHeli
{
var linkId, initObj, dfeel, minroll, maxroll, maxpitch, guncount, enginecount;
function BellHueyEnemy (iObj) {
super();
linkId = "BellHuey";
initObj = iObj;
init();
}
function init() {
super.init();
dfeel = 30;
minroll = -12;
maxroll = 12;
maxpitch = 14;
guncount = 1;
enginecount = 1;
}
}
Symbol 3374 MovieClip [__Packages.rr.plane.C47Enemy] Frame 0
class rr.plane.C47Enemy extends rr.plane.EnemyPlane
{
var linkId, initObj, dfeel, minroll, maxroll, guncount, enginecount;
function C47Enemy (iObj) {
super();
linkId = "C47";
initObj = iObj;
init();
}
function init() {
super.init();
dfeel = 45;
minroll = -11;
maxroll = 11;
guncount = 2;
enginecount = 2;
}
}
Symbol 3375 MovieClip [__Packages.rr.plane.FockeWolfEnemy] Frame 0
class rr.plane.FockeWolfEnemy extends rr.plane.EnemyPlane
{
var linkId, initObj, dfeel, minroll, maxroll, fullroll, guncount, enginecount, swaproll, swaploop, swapcorr, canLoop, canFullRoll, loopmax;
function FockeWolfEnemy (iObj) {
super();
linkId = "FockeWolf";
initObj = iObj;
init();
}
function init() {
super.init();
dfeel = 30;
minroll = -11;
maxroll = 11;
fullroll = 16;
guncount = 2;
enginecount = 1;
swaproll = 10;
swaploop = 16;
swapcorr = 3;
canLoop = true;
canFullRoll = true;
loopmax = 32;
}
}
Symbol 3376 MovieClip [__Packages.rr.plane.MesserSchmidtEnemy] Frame 0
class rr.plane.MesserSchmidtEnemy extends rr.plane.EnemyPlane
{
var linkId, initObj, dfeel, minroll, maxroll, fullroll, guncount, enginecount, swaproll, swaploop, swapcorr, canLoop, canFullRoll, loopmax;
function MesserSchmidtEnemy (iObj) {
super();
linkId = "MesserSchmidt";
initObj = iObj;
init();
}
function init() {
super.init();
dfeel = 35;
minroll = -11;
maxroll = 11;
fullroll = 16;
guncount = 2;
enginecount = 2;
swaproll = 10;
swaploop = 20;
swapcorr = 1;
canLoop = true;
canFullRoll = true;
loopmax = 32;
}
}
Symbol 3377 MovieClip [__Packages.rr.enemy.GroundUnit] Frame 0
class rr.enemy.GroundUnit extends rr.BaseUnit
{
var hostility, linkId, ddetect, maxspeed, curve, a, dfire, tfire, rotspeed, gunsound, rfire, area, initObj, x, y, rot, mode, damage, isdead, isLoner, addEventListener, rect, rotBarrel, speed, tspeed, lastFired, lastTargeted, ttarget, tmove, ivalmove, morient, mt1, mt2, uid, cellId, checkRender, isstunned, tar, dtar, movetar, cos, pi, sin, explode, mov, atan2, paused, retreat, tstun, laststunned, removeEventListener;
function GroundUnit () {
super();
}
function init() {
super.init();
hostility = rr.conf.Config.getObjectValue(linkId, "hostility");
ddetect = rr.conf.Config.getObjectValue(linkId, "detectionDistance");
maxspeed = rr.conf.Config.getObjectValue(linkId, "maxSpeed");
curve = rr.conf.Config.getObjectValue(linkId, "curve");
a = rr.conf.Config.getObjectValue(linkId, "acceleration");
dfire = rr.conf.Config.getObjectValue(linkId, "shootingDistance");
tfire = rr.conf.Config.getObjectValue(linkId, "shootingInterval");
rotspeed = rr.conf.Config.getObjectValue(linkId, "rotationSpeed");
gunsound = rr.conf.Config.getObjectValue(linkId, "gunsound");
rfire = rr.conf.Config.getObjectValue(linkId, "ammoAccuracy");
area = _global.stage["ea_" + initObj.areaid];
x = initObj.x;
y = initObj.y;
rot = ((initObj.rot != undefined) ? (initObj.rot) : (Math.random() * 180));
curve = 10;
mode = (mode ? (mode) : ((initObj.mode ? (initObj.mode) : undefined)));
damage = (initObj.damage ? (initObj.damage) : 0);
isdead = (initObj.isdead ? (initObj.isdead) : false);
hostility = ((initObj.hostility != undefined) ? (initObj.hostility) : (hostility));
isLoner = initObj.isLoner;
addEventListener("onUnitDie", area);
if (!area.isEnemy) {
hostility = 0;
}
rect = new flash.geom.Rectangle(area.x, area.y, area.width, area.height);
if (mode != "static") {
mode = (isLoner ? "dynamic" : "static");
}
rotBarrel = Math.random() * 180;
speed = 0;
tspeed = maxspeed;
lastFired = getTimer();
lastTargeted = getTimer();
ttarget = 4000;
if (isLoner) {
tmove = 0;
ivalmove = 30 + (Math.random() * 20);
if (rect.width > rect.height) {
morient = "h";
mt1 = {x:rect.x, y:rect.y + (rect.height / 2)};
mt2 = {x:rect.x + rect.width, y:rect.y + (rect.height / 2)};
} else {
morient = "v";
mt1 = {x:rect.x + (rect.width / 2), y:rect.y};
mt2 = {x:rect.x + (rect.width / 2), y:rect.y + rect.height};
}
}
_global.stage.grounds.push(uid);
cellId = _global.map.getCellIdByPos(x, y);
var _local4 = _global.map.getCell(cellId);
_local4.addRemovable(uid);
_global.stage.addEventListener("onPlaneCreate", this);
}
function getInitObj() {
initObj.x = x;
initObj.y = y;
initObj.rot = rot;
initObj.mode = mode;
initObj.damage = damage;
initObj.isdead = isdead;
initObj.cellid = cellId;
initObj.hostility = hostility;
initObj.isLoner = isLoner;
return(initObj);
}
function update() {
if (_global.plane == undefined) {
checkRender();
return(undefined);
}
if (_global.plane.isdead) {
checkRender();
return(undefined);
}
if (isdead) {
render();
return(undefined);
}
if (isstunned) {
checkStun();
checkRender();
return(undefined);
}
if (tar == undefined) {
if ((getTimer() - lastTargeted) > ttarget) {
lastTargeted = getTimer();
getTarget();
}
}
if (tar == undefined) {
checkRender();
return(undefined);
}
dtar = rr.utils.MathUtils.getDistance(x, y, tar.x, tar.y);
aimAtTarget();
if (dtar <= dfire) {
fire();
}
if (mode == "dynamic") {
if (movetar) {
if (speed != 0) {
rotateToTarget();
}
if (speed != tspeed) {
speed = ((Math.abs(speed - tspeed) <= a) ? (tspeed) : (((tspeed > speed) ? (speed + a) : (speed - a))));
}
if (isLoner) {
tmove++;
if (tmove > ivalmove) {
tmove = 0;
moveLoner();
}
}
x = x + (cos(((-rot) * pi) / 180) * speed);
y = y - (sin(((-rot) * pi) / 180) * speed);
var _local3 = _global.map.getCellIdByPos(x, y);
if (_local3 != cellId) {
var _local4 = _global.map.getCell(cellId);
_local4.deleteRemovable(uid);
cellId = _local3;
var _local6 = _global.map.getCell(cellId);
_local6.addRemovable(uid);
}
}
}
if (area.railOverlap) {
if (_global.train) {
var _local5 = _global.train.checkObjectHit(this);
if (_local5) {
die();
explode();
}
}
}
checkRender();
}
function moveLoner() {
if (morient == "h") {
movetar = ((_global.plane.x > x) ? (mt2) : (mt1));
} else {
movetar = ((_global.plane.y > y) ? (mt2) : (mt1));
}
}
function createMov() {
super.createMov();
if (hostility > 0) {
mov.goodbad_mc.gotoAndStop("bad");
if ((linkId == "Elephant") || (linkId == "Panther")) {
mov.barrel_mc.goodbad_mc.gotoAndStop("bad");
}
}
}
function render() {
super.render();
mov._rotation = rot;
mov.barrel_mc._rotation = rr.utils.MathUtils.formatAngle(rotBarrel - rot);
}
function aimAtTarget() {
if (tar == undefined) {
return(undefined);
}
var _local2 = (180 * atan2(tar.y - y, tar.x - x)) / pi;
var _local3 = (rotBarrel + 360) % 360;
_local2 = (_local2 + 360) % 360;
if ((_local2 - _local3) > 180) {
_local2 = _local2 - 360;
} else if ((_local2 - _local3) < -180) {
_local2 = _local2 + 360;
}
_local3 = _local3 + ((rotspeed * (_local2 - _local3)) / 100);
rotBarrel = rr.utils.MathUtils.formatAngle2(_local3);
}
function rotateToTarget() {
if (movetar == undefined) {
return(undefined);
}
var _local4 = rr.utils.MathUtils.getAngle(x, y, movetar.x, movetar.y);
var _local2 = _local4;
var _local3 = (rot + 360) % 360;
_local2 = (_local2 + 360) % 360;
if ((_local2 - _local3) > 180) {
_local2 = _local2 - 360;
} else if ((_local2 - _local3) < -180) {
_local2 = _local2 + 360;
}
if ((_local2 - _local3) > 0) {
rot = rr.utils.MathUtils.formatAngle2(_local3 + curve);
} else {
rot = rr.utils.MathUtils.formatAngle2(_local3 - curve);
}
var _local5 = rr.utils.MathUtils.angDiff(rot, _local4);
if ((_local5 <= (curve + 1)) || ((360 - _local5) <= (curve + 1))) {
rot = _local4;
}
}
function getTarget() {
tar = undefined;
movetar = undefined;
if (hostility > 0) {
if (_global.plane) {
if (!_global.plane.isdead) {
if ((Math.random() < 0.3) || (isLoner)) {
tar = _global.plane;
movetar = tar;
tar.addEventListener("onUnitDie", this);
}
}
}
}
if (tar == undefined) {
var _local6 = _global.stage.grounds.length;
var _local4 = 0;
while (_local4 < _local6) {
var _local3 = _global.stage["obj_" + _global.stage.grounds[_local4]];
if (_local3.isdead) {
} else if ((hostility > 0) && (_local3.hostility > 0)) {
} else if ((hostility <= 0) && (_local3.hostility <= 0)) {
} else {
var _local5 = rr.utils.MathUtils.getDistance(x, y, _local3.x, _local3.y);
if (_local5 <= dfire) {
tar = _local3;
movetar = tar;
tar.addEventListener("onUnitDie", this);
break;
}
}
_local4++;
}
}
}
function onUnitDie(evtObj) {
if (evtObj.target == tar) {
tar = undefined;
movetar = undefined;
}
}
function pause() {
paused = true;
rr.utils.Delegate.callDelayed(this, reapproach, 5000);
}
function reapproach() {
if (isLoner) {
var _local3 = rr.utils.MathUtils.getDistance(x, y, mt1.x, mt1.y);
var _local2 = rr.utils.MathUtils.getDistance(x, y, mt2.x, mt2.y);
} else if (retreat) {
movetar = {x:rect.left + (rect.width / 2), y:rect.top + (rect.height / 2)};
} else {
movetar = tar;
}
tspeed = maxspeed;
paused = false;
}
function fire() {
if (tar == _global.plane) {
if ((getTimer() - lastFired) < tfire) {
return(undefined);
}
} else if ((getTimer() - lastFired) < (tfire * 10)) {
return(undefined);
}
lastFired = getTimer();
mov.barrel_mc.gotoAndPlay("shoot");
mov.barrel_mc.base_mc.gotoAndPlay("shoot");
_global.sounds.playSound(gunsound);
if (tar == _global.plane) {
var _local3 = ((Math.random() < 0.5) ? (dtar - (Math.random() * rfire)) : (dtar + (Math.random() * rfire)));
rr.ammo.AmmoUtils.createAmmo({type:linkId, x:x, y:y, rot:rotBarrel, d:_local3, hostility:hostility});
}
}
function onPlaneCreate() {
lastFired = getTimer();
}
function stun(t) {
tstun = t;
laststunned = getTimer();
isstunned = true;
}
function checkStun() {
if ((getTimer() - laststunned) > tstun) {
isstunned = false;
}
}
function addPropaganda(prp) {
if (isdead) {
return(undefined);
}
if (!prp) {
return(undefined);
}
if (hostility <= 0) {
return(undefined);
}
hostility = hostility - prp;
if (hostility <= 0) {
mov.goodbad_mc.gotoAndStop("good");
if ((linkId == "Elephant") || (linkId == "Panther")) {
mov.barrel_mc.goodbad_mc.gotoAndStop("good");
}
mode = "static";
getTarget();
_global.bottommenu.onGroundEnemyDestroyed();
}
}
function die() {
if (isdead) {
return(undefined);
}
if (hostility > 0) {
_global.landshot++;
}
super.die();
explode();
}
function destroy() {
var _local4 = _global.map.getCell(cellId);
_local4.deleteRemovable(uid);
area.removeEventListener("onAreaDetect", this);
removeEventListener("onUnitDie", area);
super.destroy();
}
function checkNightMode() {
if (_global.map.nightmap) {
rr.utils.ClipUtils.setTint(mov.base_mc, 0, 50);
rr.utils.ClipUtils.setTint(mov.barrel_mc.base_mc, 0, 50);
}
}
}
Symbol 3378 MovieClip [__Packages.rr.enemy.EnemyArea] Frame 0
class rr.enemy.EnemyArea extends rr.BaseClass
{
var initObj, id, x, y, width, height, isEnemy, tmpenemies, enemies, railOverlap;
function EnemyArea (iObj) {
super();
initObj = iObj;
}
function init() {
id = initObj.id;
x = initObj.x;
y = initObj.y;
width = initObj.w;
height = initObj.h;
isEnemy = initObj.ise;
var _local13 = rr.conf.Config.translateEnemyCodes(initObj.e);
tmpenemies = new Array();
enemies = new Array();
var _local9 = _local13.length;
var _local14 = ((_local9 == 1) ? true : false);
var _local7 = 0;
while (_local7 < _local9) {
var _local5 = new Object();
tmpenemies.push(_local5);
setEnemyPosition(_local5);
var _local8 = rr.utils.StageUtils.createStageObject({linkId:_local13[_local7], areaid:id, x:_local5.x, y:_local5.y, isLoner:_local14});
enemies.push(_local8.uid);
_local7++;
}
delete tmpenemies;
_local9 = _global.map.rs.length;
_local7 = 0;
while (_local7 < _local9) {
var _local6 = _global.map["rs" + _global.map.rs[_local7]];
var _local4 = 5;
while (_local4 < _local6.length) {
var _local3 = _local6.getPoint(_local4);
if ((((_local3.x >= x) && (_local3.x <= (x + width))) && (_local3.y >= y)) && (_local3.y <= (y + height))) {
railOverlap = true;
break;
}
_local4 = _local4 + 5;
}
_local7++;
}
_global.stage.onAreaInit(this);
}
function addToMapBackground() {
var _local3 = _global.minimap.scale;
var _local6;
if (isEnemy) {
_local6 = ((enemies.length == 1) ? 3429249945 : 3439263744);
} else {
_local6 = 3422617344;
}
var _local4 = new flash.display.BitmapData(width * _local3, height * _local3, true, _local6);
var _local5 = new flash.geom.Matrix();
_local5.translate(x * _local3, y * _local3);
var _local7 = "normal";
var _local8 = true;
_global.minimap.map_bmp.draw(_local4, _local5, null, _local7, null, _local8);
_local4.dispose();
}
function setEnemyPosition(e) {
var _local8 = tmpenemies.length;
var _local7;
var _local6;
_local7 = 0;
while (_local7 < 1000) {
_local6 = false;
e.x = x + (Math.random() * width);
e.y = y + (Math.random() * height);
var _local3 = 0;
while (_local3 < _local8) {
var _local2 = tmpenemies[_local3];
if ((_local2 != e) && (_local2.x)) {
var _local5 = rr.utils.MathUtils.getDistance(e.x, e.y, _local2.x, _local2.y);
if (_local5 < 70) {
_local6 = true;
break;
}
}
_local3++;
}
if (!_local6) {
break;
}
_local7++;
}
if (_local6) {
trace("failed enemy placement loop: " + _local7);
setEnemyPosition(e);
}
}
function onUnitDie(evtObj) {
var _local3 = enemies.length;
var _local2 = 0;
while (_local2 < _local3) {
if (enemies[_local2] == evtObj.target.uid) {
enemies.splice(_local2, 1);
break;
}
_local2++;
}
}
}
Symbol 3379 MovieClip [__Packages.rr.enemy.OldJeep] Frame 0
class rr.enemy.OldJeep extends rr.enemy.GroundUnit
{
var linkId, initObj, mode, dfeel, init;
function OldJeep (iObj) {
super();
linkId = "OldJeep";
initObj = iObj;
mode = "dynamic";
dfeel = 15;
init();
}
}
Symbol 3380 MovieClip [__Packages.rr.enemy.ArmoredJeep] Frame 0
class rr.enemy.ArmoredJeep extends rr.enemy.GroundUnit
{
var linkId, initObj, mode, dfeel, init;
function ArmoredJeep (iObj) {
super();
linkId = "ArmoredJeep";
initObj = iObj;
mode = "dynamic";
dfeel = 18;
init();
}
}
Symbol 3381 MovieClip [__Packages.rr.enemy.GunTruck] Frame 0
class rr.enemy.GunTruck extends rr.enemy.GroundUnit
{
var linkId, initObj, mode, dfeel, init;
function GunTruck (iObj) {
super();
linkId = "GunTruck";
initObj = iObj;
mode = "dynamic";
dfeel = 23;
init();
}
}
Symbol 3382 MovieClip [__Packages.rr.enemy.PotTank] Frame 0
class rr.enemy.PotTank extends rr.enemy.GroundUnit
{
var linkId, initObj, mode, dfeel, init;
function PotTank (iObj) {
super();
linkId = "PotTank";
initObj = iObj;
mode = "dynamic";
dfeel = 22;
init();
}
}
Symbol 3383 MovieClip [__Packages.rr.enemy.Abrahams] Frame 0
class rr.enemy.Abrahams extends rr.enemy.GroundUnit
{
var linkId, initObj, mode, dfeel, init;
function Abrahams (iObj) {
super();
linkId = "Abrahams";
initObj = iObj;
mode = "dynamic";
dfeel = 22;
init();
}
}
Symbol 3384 MovieClip [__Packages.rr.enemy.Elephant] Frame 0
class rr.enemy.Elephant extends rr.enemy.GroundUnit
{
var linkId, initObj, mode, dfeel, init, tfire, lastFired, mov, gunsound, rfire, dtar, rotBarrel, y, x;
function Elephant (iObj) {
super();
linkId = "Elephant";
initObj = iObj;
mode = "static";
dfeel = 23;
init();
}
function fire() {
if ((getTimer() - lastFired) < tfire) {
return(undefined);
}
lastFired = getTimer();
mov.barrel_mc.gotoAndPlay("shoot");
mov.barrel_mc.base_mc.gotoAndPlay("shoot");
_global.sounds.playSound(gunsound);
var _local3 = ((Math.random() < 0.5) ? (dtar - (Math.random() * rfire)) : (dtar + (Math.random() * rfire)));
rr.ammo.AmmoUtils.createAmmo({type:linkId, x:x, y:y, rot:rotBarrel, d:_local3});
}
}
Symbol 3385 MovieClip [__Packages.rr.enemy.Basilisk] Frame 0
class rr.enemy.Basilisk extends rr.enemy.GroundUnit
{
var linkId, initObj, mode, dfeel, init, isexploded, status, render, explodesound, x, y, mov, destroydelay, isdead;
function Basilisk (iObj) {
super();
linkId = "Basilisk";
initObj = iObj;
mode = "static";
dfeel = 45;
init();
}
function die() {
super.die();
}
function explode() {
if (isexploded) {
return(undefined);
}
isexploded = true;
status = "";
render();
_global.sounds.playExplodeSound(explodesound, 100, 100, 1000, x, y);
mov.gotoAndPlay("explode");
rr.utils.Delegate.callDelayed(this, showBroken, destroydelay);
}
function showBroken() {
mov.gotoAndStop("dead");
mov.base_mc.gotoAndStop("broken");
}
function createMov() {
super.createMov();
if (isdead) {
showBroken();
}
}
}
Symbol 3386 MovieClip [__Packages.rr.enemy.Panther] Frame 0
class rr.enemy.Panther extends rr.enemy.GroundUnit
{
var linkId, initObj, mode, dfeel, init, mov, createMov, x, y, rotBarrel, tfire, lastFired, gunsound, rfire, dtar;
function Panther (iObj) {
super();
linkId = "Panther";
initObj = iObj;
mode = "static";
dfeel = 22;
init();
}
function render() {
if (!mov) {
createMov();
}
mov._x = x - _global.camera.left;
mov._y = y - _global.camera.top;
mov.barrel_mc._rotation = rr.utils.MathUtils.formatAngle(rotBarrel);
}
function fire() {
if ((getTimer() - lastFired) < tfire) {
return(undefined);
}
lastFired = getTimer();
mov.barrel_mc.gotoAndPlay("shoot");
mov.barrel_mc.base_mc.gotoAndPlay("shoot");
_global.sounds.playSound(gunsound);
var _local3 = ((Math.random() < 0.5) ? (dtar - (Math.random() * rfire)) : (dtar + (Math.random() * rfire)));
rr.ammo.AmmoUtils.createAmmo({type:linkId, x:x, y:y, rot:rotBarrel, d:_local3});
}
}
Symbol 3387 MovieClip [__Packages.rr.enemy.Bunker] Frame 0
class rr.enemy.Bunker extends rr.enemy.GroundUnit
{
var linkId, initObj, mode, dfeel, hostility, scale, rot, rotBarrel, status, mov, checkNightMode, checkRender, isdead, tar, dtar, x, y, validangle, dfire, fire, isexploded, explodesound, destroy, destroydelay;
function Bunker (iObj) {
super();
linkId = "Bunker";
initObj = iObj;
mode = "static";
dfeel = 30;
init();
}
function init() {
super.init();
hostility = rr.conf.Config.getObjectValue(linkId, "hostility");
scale = initObj.s;
rot = rr.utils.MathUtils.formatAngle2(initObj.r) + 90;
rotBarrel = rot - 90;
status = "attack";
}
function createMov() {
var _local3 = rr.utils.ClipUtils.getFreeDepth(_global.stage.mov, this);
mov = _global.stage.mov.attachMovie(linkId, rr.utils.StringUtils.getUniqueName(), _local3, {_xscale:scale, _yscale:scale, parent:this});
checkNightMode();
}
function update() {
if (_global.plane == undefined) {
checkRender();
return(undefined);
}
if (_global.plane.isdead) {
checkRender();
return(undefined);
}
if (isdead) {
checkRender();
return(undefined);
}
if (status == "attack") {
if (!tar) {
tar = _global.plane;
}
dtar = rr.utils.MathUtils.getDistance(x, y, tar.x, tar.y);
rotateToTarget();
if (validangle) {
if (dtar <= dfire) {
fire();
}
}
}
checkRender();
}
function render() {
super.render();
mov._rotation = rot;
mov.barrel_mc._rotation = rr.utils.MathUtils.formatAngle(rotBarrel - rot);
}
function rotateToTarget() {
validangle = false;
if (!tar) {
return(undefined);
}
var _local3 = rr.utils.Math2.Bearing(x, y, tar.x, tar.y);
var _local2 = rr.utils.MathUtils.angDiff(_local3, rot);
if ((_local2 < 30) || ((360 - _local2) < 30)) {
validangle = true;
rotBarrel = _local3 - 90;
}
}
function addPropaganda() {
}
function explode() {
if (isexploded) {
return(undefined);
}
isexploded = true;
render();
_global.sounds.playExplodeSound(explodesound, 100, 80, 1000, x, y);
mov.gotoAndPlay("explode");
rr.utils.Delegate.callDelayed(this, destroy, destroydelay);
}
}
Symbol 3388 MovieClip [__Packages.rr.enemy.GatlingSingle] Frame 0
class rr.enemy.GatlingSingle extends rr.enemy.GroundUnit
{
var linkId, initObj, mode, dfeel, init, tfire, lastFired, mov, gunsound, rfire, dtar, rotBarrel, y, x;
function GatlingSingle (iObj) {
super();
linkId = "GatlingSingle";
initObj = iObj;
mode = "static";
dfeel = 28;
init();
}
function fire() {
if ((getTimer() - lastFired) < tfire) {
return(undefined);
}
lastFired = getTimer();
mov.barrel_mc.gotoAndPlay("shoot");
mov.barrel_mc.base_mc.gotoAndPlay("shoot");
_global.sounds.playSound(gunsound);
var _local3 = ((Math.random() < 0.5) ? (dtar - (Math.random() * rfire)) : (dtar + (Math.random() * rfire)));
rr.ammo.AmmoUtils.createAmmo({type:linkId, x:x, y:y, rot:rotBarrel, d:_local3});
}
function checkNightMode() {
if (_global.map.nightmap) {
rr.utils.ClipUtils.setTint(mov.barrel_mc.base_mc, 0, 50);
}
}
}
Symbol 3389 MovieClip [__Packages.rr.enemy.GatlingDouble] Frame 0
class rr.enemy.GatlingDouble extends rr.enemy.GroundUnit
{
var linkId, initObj, mode, dfeel, init, tfire, lastFired, mov, gunsound, rfire, dtar, rotBarrel, y, x;
function GatlingDouble (iObj) {
super();
linkId = "GatlingDouble";
initObj = iObj;
mode = "static";
dfeel = 28;
init();
}
function fire() {
if ((getTimer() - lastFired) < tfire) {
return(undefined);
}
lastFired = getTimer();
mov.barrel_mc.barrel1_mc.gotoAndPlay("shoot");
mov.barrel_mc.barrel1_mc.base_mc.gotoAndPlay("shoot");
mov.barrel_mc.barrel2_mc.gotoAndPlay("shoot");
mov.barrel_mc.barrel2_mc.base_mc.gotoAndPlay("shoot");
_global.sounds.playSound(gunsound);
var _local3 = ((Math.random() < 0.5) ? (dtar - (Math.random() * rfire)) : (dtar + (Math.random() * rfire)));
rr.ammo.AmmoUtils.createAmmo({type:linkId, x:x, y:y, rot:rotBarrel, d:_local3});
}
function checkNightMode() {
if (_global.map.nightmap) {
rr.utils.ClipUtils.setTint(mov.barrel_mc.barrel1_mc.base_mc, 0, 50);
rr.utils.ClipUtils.setTint(mov.barrel_mc.barrel2_mc.base_mc, 0, 50);
}
}
}
Symbol 3390 MovieClip [__Packages.rr.enemy.Rocketeer] Frame 0
class rr.enemy.Rocketeer extends rr.enemy.GroundUnit
{
var linkId, initObj, mode, dfeel, tcheck, init, mov, createMov, x, y, rot, checkRender, isdead, isstunned, checkStun, hostility, dfire, tfire, lastFired, sin, pi, cos;
function Rocketeer (iObj) {
super();
linkId = "Rocketeer";
initObj = iObj;
mode = "static";
dfeel = 22;
tcheck = 0;
init();
}
function aimAtTarget() {
}
function render() {
if (!mov) {
createMov();
checkNightMode();
}
mov._x = x - _global.camera.left;
mov._y = y - _global.camera.top;
mov._rotation = rot;
}
function update() {
if (_global.plane == undefined) {
checkRender();
return(undefined);
}
if (_global.plane.isdead) {
checkRender();
return(undefined);
}
if (isdead) {
render();
return(undefined);
}
if (isstunned) {
checkStun();
checkRender();
return(undefined);
}
tcheck = tcheck + 40;
if (tcheck > 2000) {
if (hostility > 0) {
if (rr.utils.MathUtils.getDistance(x, y, _global.plane.x, _global.plane.y) < dfire) {
fire();
}
} else {
var _local5 = _global.stage.airs.length;
var _local3 = 0;
while (_local3 < _local5) {
var _local4 = _global.stage["obj_" + _global.stage.airs[_local3]];
if (rr.utils.MathUtils.getDistance(x, y, _local4.x, _local4.y) < dfire) {
fire();
break;
}
_local3++;
}
}
tcheck = 0;
}
checkRender();
}
function fire() {
if ((getTimer() - lastFired) < tfire) {
return(undefined);
}
lastFired = getTimer();
mov.barrel_mc.gotoAndPlay("shoot");
var _local2 = getStartPoint(13, 0);
rr.utils.Delegate.callDelayed(this, launchRocket, 1250, {type:linkId, x:_local2.x, y:_local2.y, rot:rot, h:hostility});
_local2 = getStartPoint(13, -7);
rr.utils.Delegate.callDelayed(this, launchRocket, 1540, {type:linkId, x:_local2.x, y:_local2.y, rot:rot, h:hostility});
_local2 = getStartPoint(13, 6);
rr.utils.Delegate.callDelayed(this, launchRocket, 1790, {type:linkId, x:_local2.x, y:_local2.y, rot:rot, h:hostility});
}
function getStartPoint(px, py) {
var _local3 = rr.utils.MathUtils.getAngle(0, 0, px, py) + rot;
var _local2 = rr.utils.MathUtils.getDistance(0, 0, px, py);
return({x:x + (cos(((-_local3) * pi) / 180) * _local2), y:y - (sin(((-_local3) * pi) / 180) * _local2)});
}
function launchRocket(iObj) {
if (_global.timer.stopped) {
return(undefined);
}
rr.ammo.AmmoUtils.createAmmo(iObj);
}
function checkNightMode() {
if (_global.map.nightmap) {
rr.utils.ClipUtils.setTint(mov.barrel_mc, 0, 50);
}
}
}
Symbol 3391 MovieClip [__Packages.rr.enemy.RocketBase] Frame 0
class rr.enemy.RocketBase extends rr.enemy.GroundUnit
{
var linkId, mode, initObj, x, y, rot, dfeel, launchtime, sound, killlevel, destroydelay, explodesound, hostility, damage, tlaunch, checkRender, isdead, isstunned, checkStun, mov, createMov, die, isexploded, destroy;
function RocketBase (iObj) {
super();
linkId = "RocketBase";
mode = "static";
initObj = iObj;
init();
}
function init() {
super.init();
x = initObj.x;
y = initObj.y;
rot = initObj.r;
dfeel = rr.conf.Config.getObjectValue(linkId, "feelerradius");
launchtime = rr.conf.Config.getObjectValue(linkId, "launchtime");
sound = rr.conf.Config.getObjectValue(linkId, "startsound");
killlevel = rr.conf.Config.getObjectValue(linkId, "killlevel");
destroydelay = rr.conf.Config.getObjectValue(linkId, "destroydelay");
explodesound = rr.conf.Config.getObjectValue(linkId, "explodesound");
hostility = 10;
damage = 0;
tlaunch = getTimer();
}
function update() {
if (_global.plane == undefined) {
checkRender();
return(undefined);
}
if (_global.plane.isdead) {
checkRender();
return(undefined);
}
if (isdead) {
render();
return(undefined);
}
if (isstunned) {
checkStun();
checkRender();
return(undefined);
}
if ((getTimer() - tlaunch) > launchtime) {
addRocket();
}
checkRender();
}
function render() {
if (!mov) {
createMov();
}
mov._x = x - _global.camera.left;
mov._y = y - _global.camera.top;
mov._rotation = rot;
}
function addRocket() {
if (isdead) {
return(undefined);
}
tlaunch = getTimer();
_global.sounds.playSound(sound);
render();
mov.missile_mc.gotoAndPlay("shoot");
rr.utils.Delegate.callDelayed(this, launchRocket, 875);
}
function launchRocket() {
if (_global.timer.stopped) {
return(undefined);
}
var _local3 = rr.utils.MathUtils.transCoord(-25, -10, this);
rr.ammo.AmmoUtils.createAmmo({type:linkId, x:_local3.x, y:_local3.y, rot:rot - 90});
}
function addPropaganda(prp) {
}
function addDamage(dmg) {
if (isdead) {
return(undefined);
}
if (!dmg) {
return(undefined);
}
damage = damage + dmg;
if (damage >= killlevel) {
die();
explode();
}
}
function explode() {
if (isexploded) {
return(undefined);
}
isexploded = true;
render();
_global.sounds.playExplodeSound(explodesound, 100, 100, 1000, x, y);
mov.gotoAndPlay("explode");
rr.utils.Delegate.callDelayed(this, destroy, destroydelay);
}
function checkNightMode() {
if (_global.map.nightmap) {
rr.utils.ClipUtils.setTint(mov.base_mc, 0, 50);
rr.utils.ClipUtils.setTint(mov.missile_mc, 0, 50);
}
}
}
Symbol 3392 MovieClip [__Packages.rr.ammo.plane.GroundSeeker] Frame 0
class rr.ammo.plane.GroundSeeker extends rr.ammo.Ammo
{
var linkId, initObj, x, y, xtar, ytar, alt, altmax, speed, minrange, maxrange, speedmax, rotspeed, a, startsound, explodesound, damage, rexplode, hittarget, d, tspeed, descent, mov, isexploded, prevx, prevy, sin, pi, rot, cos, destroy;
function GroundSeeker (iObj) {
super();
linkId = "GroundSeeker";
initObj = iObj;
init();
}
function init() {
x = initObj.x;
y = initObj.y;
xtar = initObj.xtar;
ytar = initObj.ytar;
alt = (altmax = initObj.alt);
speed = initObj.speed;
super.init();
minrange = rr.conf.Config.getObjectValue(linkId, "minrange");
maxrange = rr.conf.Config.getObjectValue(linkId, "maxrange");
speedmax = rr.conf.Config.getObjectValue(linkId, "maxspeed");
rotspeed = rr.conf.Config.getObjectValue(linkId, "rotationspeed");
a = rr.conf.Config.getObjectValue(linkId, "acceleration");
startsound = rr.conf.Config.getObjectValue(linkId, "startsound");
explodesound = rr.conf.Config.getObjectValue(linkId, "explodesound");
damage = rr.conf.Config.getObjectValue(linkId, "explosiondamage");
rexplode = rr.conf.Config.getObjectValue(linkId, "explosionradius");
hittarget = rr.utils.StageUtils.findClosestEnemy(xtar, ytar);
d = 0;
tspeed = speedmax;
maxrange = maxrange + (Math.random() * (maxrange * 0.2));
descent = altmax / (maxrange / speed);
_global.sounds.playSound(startsound);
}
function render() {
super.render();
mov._xscale = (mov._yscale = 70 + ((30 * alt) / altmax));
}
function update() {
if (isexploded) {
render();
return(undefined);
}
if (speed != tspeed) {
speed = ((Math.abs(speed - tspeed) <= a) ? (tspeed) : (((tspeed > speed) ? (speed + a) : (speed - a))));
}
if (!isexploded) {
if (d > 200) {
rotateToTarget();
}
}
prevx = x;
prevy = y;
if (alt > descent) {
alt = alt - descent;
}
x = x + (sin((rot * pi) / 180) * speed);
y = y - (cos((rot * pi) / 180) * speed);
d = d + rr.utils.MathUtils.getDistance(x, y, prevx, prevy);
if (!isexploded) {
if (d > maxrange) {
explode();
} else if (d > minrange) {
checkHit();
}
}
render();
}
function rotateToTarget() {
var _local4 = rotspeed;
var _local6;
if (hittarget == undefined) {
_local6 = rr.utils.Math2.Bearing(x, y, xtar, ytar);
} else {
_local6 = rr.utils.Math2.Bearing(x, y, hittarget.x, hittarget.y);
}
var _local2 = (_local6 + 360) % 360;
var _local3 = (rot + 360) % 360;
if ((_local2 - _local3) > 180) {
_local2 = _local2 - 360;
} else if ((_local2 - _local3) < -180) {
_local2 = _local2 + 360;
}
if (_local2 > _local3) {
_local3 = _local3 + _local4;
} else {
_local3 = _local3 - _local4;
}
rot = _local3;
var _local5 = rr.utils.MathUtils.angDiff(_local3, _local2);
if ((_local5 <= _local4) || ((360 - _local5) <= _local4)) {
rot = _local2;
}
}
function checkHit() {
if (hittarget == undefined) {
if (rr.utils.MathUtils.getDistance(x, y, xtar, ytar) <= speed) {
explode();
}
} else if (rr.utils.MathUtils.getDistance(x, y, hittarget.x, hittarget.y) <= speed) {
hittarget.addDamage(damage);
explode();
}
}
function explode() {
if (isexploded) {
return(undefined);
}
isexploded = true;
speed = speed / 10;
tspeed = 0;
rr.utils.StageUtils.addExplosionDamage(x, y, damage, rexplode, hittarget);
render();
_global.sounds.playExplodeSound(explodesound, 100, 0, 1000, x, y);
mov.gotoAndPlay("explode");
var _local3 = rr.conf.Config.getObjectValue(linkId, "destroydelay");
rr.utils.Delegate.callDelayed(this, destroy, _local3);
}
}
Symbol 3393 MovieClip [__Packages.rr.ammo.plane.BulletGun] Frame 0
class rr.ammo.plane.BulletGun extends rr.ammo.Ammo
{
var x, initObj, y, rot, alt, altmax, isEnemyBullet, speed, linkId, minrange, maxrange, explodesound, damage, descent, d, isDestroyed, prevx, prevy, sin, pi, cos, isexploded, mov, destroy;
function BulletGun () {
super();
}
function init() {
x = initObj.x;
y = initObj.y;
rot = initObj.rot;
alt = initObj.alt;
altmax = initObj.alt;
isEnemyBullet = initObj.isEnemyBullet;
super.init();
speed = rr.conf.Config.getObjectValue(linkId, "speed");
minrange = rr.conf.Config.getObjectValue(linkId, "minrange");
maxrange = rr.conf.Config.getObjectValue(linkId, "maxrange");
explodesound = rr.conf.Config.getObjectValue(linkId, "explodesound");
damage = rr.conf.Config.getObjectValue(linkId, "explosiondamage");
maxrange = maxrange + (Math.random() * (maxrange * 0.2));
descent = altmax / (maxrange / speed);
d = 0;
}
function update() {
if (isDestroyed) {
return(undefined);
}
prevx = x;
prevy = y;
if (alt > descent) {
alt = alt - descent;
}
x = x + (sin((rot * pi) / 180) * speed);
y = y - (cos((rot * pi) / 180) * speed);
d = d + rr.utils.MathUtils.getDistance(x, y, prevx, prevy);
if (!isexploded) {
if (d > maxrange) {
explode();
} else if (d > minrange) {
checkHit();
}
}
render();
}
function render() {
super.render();
mov._xscale = (mov._yscale = 70 + ((30 * alt) / altmax));
}
function checkHit() {
var _local4 = false;
var _local5 = rr.ammo.AmmoUtils.createHitLine(prevx, prevy, x, y, 3);
if (isEnemyBullet) {
if (rr.utils.HitTest.isLineHit(_global.plane.mov, _local5)) {
if (!_global.plane.loopOn) {
_global.plane.addDamage(damage / 6);
_local4 = true;
}
}
} else {
if (_global.train) {
var _local11 = _global.train.segments.length;
var _local10 = 0;
while (_local10 <= _local11) {
var _local3 = _global.train.segments[_local10];
if (!_local3.isdead) {
if (rr.utils.HitTest.isLineHit(_local3.mov, _local5)) {
_local3.addDamage(damage);
_local4 = true;
break;
}
}
_local10++;
}
}
if (_global.stage.strains) {
var _local7 = 0;
while (_local7 < _global.stage.strains.length) {
var _local8 = _global.stage.strains[_local7];
var _local11 = _local8.segments.length;
var _local10 = 0;
while (_local10 <= _local11) {
var _local3 = _local8.segments[_local10];
if (!_local3.isdead) {
if (rr.utils.HitTest.isLineHit(_local3.mov, _local5)) {
_local3.addDamage(damage);
_local4 = true;
break;
}
}
_local10++;
}
_local7++;
}
}
if (!_local4) {
var _local11 = _global.stage.airs.length;
var _local10 = 0;
while (_local10 < _local11) {
var _local6 = _global.stage["obj_" + _global.stage.airs[_local10]];
if (!_local6.isdead) {
if (!_local6.loopOn) {
if (rr.utils.HitTest.isLineHit(_local6.mov, _local5)) {
_local6.addDamage(damage);
_local4 = true;
break;
}
}
}
_local10++;
}
}
if (!_local4) {
var _local11 = _global.stage.afdefenders.length;
var _local10 = 0;
while (_local10 < _local11) {
var _local9 = _global.stage["obj_" + _global.stage.afdefenders[_local10]];
if (!_local9.isdead) {
if (rr.utils.HitTest.isLineHit(_local9.mov, _local5)) {
_local9.addDamage(damage);
_local4 = true;
break;
}
}
_local10++;
}
}
if (!_local4) {
var _local12 = _global.map.getCellIdByPos(x, y);
var _local13 = _global.map.getCellIdByPos(prevx, prevy);
if (_local12 != undefined) {
_local4 = checkCellHits(_local12, _local5);
}
if (!_local4) {
if (_local13 != _local12) {
_local4 = checkCellHits(_local13, _local5);
}
}
}
}
_local5.removeMovieClip();
if (_local4) {
destroy();
}
}
function checkCellHits(cid, hitline_mc) {
var _local6 = _global.map.getCell(cid);
var _local7 = _local6.removables.length;
var _local5 = 0;
while (_local5 < _local7) {
var _local4 = _global.stage["obj_" + _local6.removables[_local5]];
if (!_local4.isdead) {
if (rr.utils.HitTest.isLineHit(_local4.mov, hitline_mc)) {
_local4.addDamage(damage);
return(true);
}
}
_local5++;
}
_local7 = _local6.statics.length;
_local5 = 0;
while (_local5 < _local7) {
var _local3 = _global.stage["obj_" + _local6.statics[_local5]];
if (_local3 instanceof rr.building.Building) {
if (!_local3.isdead) {
if (_local3.isLineHit(hitline_mc)) {
_local3.addDamage(damage);
return(true);
}
}
}
_local5++;
}
return(false);
}
function explode() {
if (isexploded) {
return(undefined);
}
isexploded = true;
speed = 0;
render();
if (Math.random() < 0.1) {
_global.sounds.playSound(("ricochet " + Math.floor(1 + (Math.random() * 4))) + ".wav", 70);
}
mov.gotoAndPlay("explode");
var _local3 = rr.conf.Config.getObjectValue(linkId, "destroydelay");
rr.utils.Delegate.callDelayed(this, destroy, _local3);
}
}
Symbol 3394 MovieClip [__Packages.rr.ammo.plane.BulletGunSingle] Frame 0
class rr.ammo.plane.BulletGunSingle extends rr.ammo.plane.BulletGun
{
var linkId, initObj, init;
function BulletGunSingle (iObj) {
super();
linkId = "BulletGunSingle";
initObj = iObj;
init();
}
}
Symbol 3395 MovieClip [__Packages.rr.ammo.plane.BulletGunDouble] Frame 0
class rr.ammo.plane.BulletGunDouble extends rr.ammo.plane.BulletGun
{
var linkId, initObj, init;
function BulletGunDouble (iObj) {
super();
linkId = "BulletGunDouble";
initObj = iObj;
init();
}
}
Symbol 3396 MovieClip [__Packages.rr.ammo.plane.BulletGunGatling] Frame 0
class rr.ammo.plane.BulletGunGatling extends rr.ammo.plane.BulletGun
{
var linkId, initObj, init;
function BulletGunGatling (iObj) {
super();
linkId = "BulletGunGatling";
initObj = iObj;
init();
}
}
Symbol 3397 MovieClip [__Packages.rr.ammo.plane.Bomb] Frame 0
class rr.ammo.plane.Bomb extends rr.ammo.Ammo
{
var x, initObj, y, rot, speed, alt, altmax, a, adrop, drop, dropmax, tspeed, clouddepth, damage, linkId, rexplode, sound, sin, pi, cos, mov, isexploded, destroy;
function Bomb () {
super();
}
function init() {
super.init();
x = initObj.x;
y = initObj.y;
rot = initObj.rot;
speed = initObj.speed;
alt = (altmax = initObj.alt);
a = 0.13;
adrop = 0.07;
drop = 0;
dropmax = 4;
tspeed = 0;
clouddepth = rr.conf.ConfBaseDepths.getDepth("CloudLayer");
damage = rr.conf.Config.getObjectValue(linkId, "explosiondamage");
rexplode = rr.conf.Config.getObjectValue(linkId, "explosionradius");
sound = rr.conf.Config.getObjectValue(linkId, "explodesound");
}
function update() {
if (speed != tspeed) {
speed = ((Math.abs(speed - tspeed) <= a) ? (tspeed) : (((tspeed > speed) ? (speed + a) : (speed - a))));
}
if (drop < dropmax) {
drop = drop + adrop;
}
x = x + (sin((rot * pi) / 180) * speed);
y = y - (cos((rot * pi) / 180) * speed);
alt = alt - drop;
if (alt <= 0) {
explode();
}
render();
}
function render() {
super.render();
if (alt < (_global.plane.alt - 10)) {
if (mov.getDepth() > _global.plane.mov.getDepth()) {
mov.swapDepths(rr.utils.ClipUtils.getFreeDepth(_global.stage.mov, _global.plane.mov.getDepth() - 5000));
}
}
if (alt < 40) {
if (mov.getDepth() > clouddepth) {
mov.swapDepths(rr.utils.ClipUtils.getFreeDepth(_global.stage.mov, "UnderClouds"));
}
}
if (!isexploded) {
mov._xscale = (mov._yscale = 40 + ((60 * alt) / altmax));
}
}
function createMov() {
var _local4;
var _local3 = _global.plane.mov.getDepth();
if (_global.plane.loopOn && (_global.plane.loop > _global.plane.swaploop)) {
_local4 = rr.utils.ClipUtils.getFreeDepthNum(_global.stage.mov, _local3 + 5000);
} else if (_global.plane.fullrollOn && (Math.abs(_global.plane.roll) > _global.plane.swaproll)) {
_local4 = rr.utils.ClipUtils.getFreeDepthNum(_global.stage.mov, _local3 + 5000);
} else {
_local4 = rr.utils.ClipUtils.getFreeDepthNum(_global.stage.mov, _local3 - 5000);
}
mov = _global.stage.mov.attachMovie(linkId, rr.utils.StringUtils.getUniqueName(), _local4, {parent:this});
}
function explode() {
if (isexploded) {
return(undefined);
}
isexploded = true;
mov.gotoAndPlay("explode");
mov._xscale = (mov._yscale = 100);
_global.sounds.playExplodeSound(sound, 100, 100, 1000, x, y);
rr.utils.StageUtils.addExplosionDamage(x, y, damage, rexplode);
var _local3 = rr.conf.Config.getObjectValue(linkId, "destroydelay");
rr.utils.Delegate.callDelayed(this, destroy, _local3);
}
}
Symbol 3398 MovieClip [__Packages.rr.ammo.plane.BombNormal] Frame 0
class rr.ammo.plane.BombNormal extends rr.ammo.plane.Bomb
{
var linkId, initObj, init;
function BombNormal (iObj) {
super();
linkId = "BombNormal";
initObj = iObj;
init();
}
}
Symbol 3399 MovieClip [__Packages.rr.ammo.plane.BombHeavy] Frame 0
class rr.ammo.plane.BombHeavy extends rr.ammo.plane.Bomb
{
var linkId, initObj, init;
function BombHeavy (iObj) {
super();
linkId = "BombHeavy";
initObj = iObj;
init();
}
}
Symbol 3400 MovieClip [__Packages.rr.ammo.plane.BombExtreme] Frame 0
class rr.ammo.plane.BombExtreme extends rr.ammo.plane.Bomb
{
var linkId, initObj, init;
function BombExtreme (iObj) {
super();
linkId = "BombExtreme";
initObj = iObj;
init();
}
}
Symbol 3401 MovieClip [__Packages.rr.ammo.plane.Propaganda] Frame 0
class rr.ammo.plane.Propaganda extends rr.ammo.Ammo
{
var linkId, initObj, x, y, rot, speed, movId, a, tspeed, power, rprop, sin, pi, cos, render, mov;
function Propaganda (iObj) {
super();
linkId = "Propaganda";
initObj = iObj;
init();
}
function init() {
super.init();
x = initObj.x;
y = initObj.y;
rot = initObj.rot;
speed = initObj.speed;
var _local3 = Math.random() * 45;
rot = rot + ((Math.random() < 0.5) ? (_local3) : (-_local3));
movId = linkId + (Math.floor(Math.random() * 3) + 1);
a = 0.1;
tspeed = 0;
power = rr.conf.Config.getObjectValue(linkId, "propagandapower");
rprop = rr.conf.Config.getObjectValue(linkId, "propagandaradius");
createMov();
var _local4 = rr.conf.Config.getObjectValue(linkId, "destroydelay");
rr.utils.Delegate.callDelayed(this, destroy, _local4);
}
function update() {
if (speed != tspeed) {
speed = ((Math.abs(speed - tspeed) <= a) ? (tspeed) : (((tspeed > speed) ? (speed + a) : (speed - a))));
}
x = x + (sin((rot * pi) / 180) * speed);
y = y - (cos((rot * pi) / 180) * speed);
render();
}
function createMov() {
var _local4;
var _local3 = _global.plane.mov.getDepth();
if (_global.plane.loopOn && (_global.plane.loop > _global.plane.swaploop)) {
_local4 = rr.utils.ClipUtils.getFreeDepthNum(_global.stage.mov, _local3 + 5000);
} else if (_global.plane.fullrollOn && (Math.abs(_global.plane.roll) > _global.plane.swaproll)) {
_local4 = rr.utils.ClipUtils.getFreeDepthNum(_global.stage.mov, _local3 + 5000);
} else {
_local4 = rr.utils.ClipUtils.getFreeDepthNum(_global.stage.mov, _local3 - 5000);
}
mov = _global.stage.mov.attachMovie(movId, rr.utils.StringUtils.getUniqueName(), _local4, {parent:this});
}
function destroy() {
var _local7 = rr.utils.MathUtils.castCoord(x, y, rot + 180, 80);
var _local10 = _global.map.getCellByPos(_local7.x, _local7.y);
if (_local10.hasRemovables) {
var _local11 = _local10.removables.length;
var _local6 = 0;
while (_local6 < _local11) {
var _local4 = _global.stage["obj_" + _local10.removables[_local6]];
if (_local4.hostility > 0) {
var _local9 = rr.utils.MathUtils.getDistance(_local7.x, _local7.y, _local4.x, _local4.y);
if (_local9 <= rprop) {
var _local8 = Math.round(power / (1 + (_local9 / 25)));
_local4.addPropaganda(_local8);
}
}
_local6++;
}
}
var _local11 = _global.stage.afs.length;
var _local6 = 0;
while (_local6 < _local11) {
var _local5 = _global.stage["obj_" + _global.stage.afs[_local6]];
if (_local5.hostility > 0) {
var _local9 = rr.utils.MathUtils.getDistance(_local7.x, _local7.y, _local5.x, _local5.y);
if (_local9 <= (rprop + 90)) {
_local5.addPropaganda(power);
}
}
_local6++;
}
super.destroy();
}
}
Symbol 3402 MovieClip [__Packages.rr.ammo.plane.EMPBomb] Frame 0
class rr.ammo.plane.EMPBomb extends rr.ammo.Ammo
{
var linkId, initObj, x, y, rot, speed, alt, altmax, a, tspeed, clouddepth, dstun, tstunmin, tstunmax, sound, sin, pi, cos, mov, isexploded, destroy;
function EMPBomb (iObj) {
super();
linkId = "EMPBomb";
initObj = iObj;
init();
}
function init() {
super.init();
x = initObj.x;
y = initObj.y;
rot = initObj.rot;
speed = initObj.speed;
alt = (altmax = initObj.alt);
a = 0.1;
tspeed = 0;
clouddepth = rr.conf.ConfBaseDepths.getDepth("CloudLayer");
dstun = rr.conf.Config.getObjectValue(linkId, "stundistance");
tstunmin = rr.conf.Config.getObjectValue(linkId, "minstuntime");
tstunmax = rr.conf.Config.getObjectValue(linkId, "maxstuntime");
sound = rr.conf.Config.getObjectValue(linkId, "explodesound");
}
function update() {
if (speed != tspeed) {
speed = ((Math.abs(speed - tspeed) <= a) ? (tspeed) : (((tspeed > speed) ? (speed + a) : (speed - a))));
}
x = x + (sin((rot * pi) / 180) * speed);
y = y - (cos((rot * pi) / 180) * speed);
alt = alt - 4;
if (alt <= 0) {
explode();
}
render();
}
function render() {
super.render();
if (alt < (_global.plane.alt - 10)) {
if (mov.getDepth() > _global.plane.mov.getDepth()) {
mov.swapDepths(rr.utils.ClipUtils.getFreeDepth(_global.stage.mov, _global.plane.mov.getDepth() - 5000));
}
}
if (alt < 40) {
if (mov.getDepth() > clouddepth) {
mov.swapDepths(rr.utils.ClipUtils.getFreeDepth(_global.stage.mov, "UnderClouds"));
}
}
if (!isexploded) {
mov._xscale = (mov._yscale = 70 + ((30 * alt) / altmax));
}
}
function createMov() {
var _local4;
var _local3 = _global.plane.mov.getDepth();
if (_global.plane.loopOn && (_global.plane.loop > _global.plane.swaploop)) {
_local4 = rr.utils.ClipUtils.getFreeDepthNum(_global.stage.mov, _local3 + 5000);
} else if (_global.plane.fullrollOn && (Math.abs(_global.plane.roll) > _global.plane.swaproll)) {
_local4 = rr.utils.ClipUtils.getFreeDepthNum(_global.stage.mov, _local3 + 5000);
} else {
_local4 = rr.utils.ClipUtils.getFreeDepthNum(_global.stage.mov, _local3 - 5000);
}
mov = _global.stage.mov.attachMovie(linkId, rr.utils.StringUtils.getUniqueName(), _local4, {parent:this});
}
function explode() {
if (isexploded) {
return(undefined);
}
isexploded = true;
mov._xscale = (mov._yscale = 100);
mov.gotoAndPlay("explode");
_global.sounds.playSound(sound);
var _local15 = new Array();
var _local16 = _global.map.getCellByPos(x, y);
_local15.push(_local16);
var _local13 = 1;
while (_local13 <= 8) {
var _local10 = _local16.nb[_local13];
if (_local10 != undefined) {
if ((rr.utils.MathUtils.getDistance(x, y, _local10.center.x, _local10.center.y) - dstun) < 240) {
_local15.push(_local10);
}
}
_local13++;
}
var _local6 = _local15.length;
var _local11 = 0;
while (_local11 < _local6) {
var _local7 = _local15[_local11];
if (_local7.hasRemovables) {
var _local14 = _local7.removables.length;
_local13 = 0;
while (_local13 < _local14) {
var _local3 = _global.stage["obj_" + _local7.removables[_local13]];
if (_local3.hostility > 0) {
var _local9 = rr.utils.MathUtils.getDistance(x, y, _local3.x, _local3.y);
if (_local9 < dstun) {
_local3.stun(tstunmin + (Math.random() * (tstunmax - tstunmin)));
}
}
_local13++;
}
}
_local11++;
}
_local6 = _global.stage.afdefenders.length;
_local13 = 0;
while (_local13 < _local6) {
var _local8 = _global.stage["obj_" + _global.stage.afdefenders[_local13]];
if (!_local8.isdead) {
var _local9 = rr.utils.MathUtils.getDistance(x, y, _local8.x, _local8.y);
if (_local9 < dstun) {
_local8.stun(tstunmin + (Math.random() * (tstunmax - tstunmin)));
}
}
_local13++;
}
if (_global.train) {
_local6 = _global.train.segments.length;
_local13 = 0;
while (_local13 < _local6) {
var _local4 = _global.train.segments[_local13];
if (!_local4.isdead) {
var _local9 = rr.utils.MathUtils.getDistance(x, y, _local4.x, _local4.y);
if (_local9 < dstun) {
_local4.stun(tstunmin + (Math.random() * (tstunmax - tstunmin)));
}
}
_local13++;
}
}
if (_global.stage.strains) {
var _local17 = _global.stage.strains.length;
_local13 = 0;
while (_local13 < _local17) {
var _local12 = _global.stage.strains[_local13];
_local6 = _local12.segments.length;
var _local5 = 0;
while (_local5 < _local6) {
var _local4 = _local12.segments[_local5];
if (!_local4.isdead) {
var _local9 = rr.utils.MathUtils.getDistance(x, y, _local4.x, _local4.y);
if (_local9 < dstun) {
_local4.stun(tstunmin + (Math.random() * (tstunmax - tstunmin)));
}
}
_local5++;
}
_local13++;
}
}
var _local18 = rr.conf.Config.getObjectValue(linkId, "destroydelay");
rr.utils.Delegate.callDelayed(this, destroy, _local18);
}
}
Symbol 3403 MovieClip [__Packages.rr.ammo.plane.FuelBomb] Frame 0
class rr.ammo.plane.FuelBomb extends rr.ammo.plane.Bomb
{
var linkId, initObj, init;
function FuelBomb (iObj) {
super();
linkId = "FuelBomb";
initObj = iObj;
init();
}
}
Symbol 3404 MovieClip [__Packages.rr.ammo.plane.CarpetBomb] Frame 0
class rr.ammo.plane.CarpetBomb extends rr.ammo.plane.Bomb
{
var linkId, initObj, adrop, mov, createMov, x, y, rot, alt, clouddepth;
function CarpetBomb (iObj) {
super();
linkId = "CarpetBomb";
initObj = iObj;
init();
}
function init() {
super.init();
adrop = 0.2;
}
function render() {
if (!mov) {
createMov();
}
mov._x = x - _global.camera.left;
mov._y = y - _global.camera.top;
mov._rotation = rot;
if (alt < (_global.plane.alt - 10)) {
if (mov.getDepth() > _global.plane.mov.getDepth()) {
mov.swapDepths(rr.utils.ClipUtils.getFreeDepth(_global.stage.mov, _global.plane.mov.getDepth() - 5000));
}
}
if (alt < 40) {
if (mov.getDepth() > clouddepth) {
mov.swapDepths(rr.utils.ClipUtils.getFreeDepth(_global.stage.mov, "UnderClouds"));
}
}
}
}
Symbol 3405 MovieClip [__Packages.rr.ammo.plane.NuclearBomb] Frame 0
class rr.ammo.plane.NuclearBomb extends rr.ammo.plane.Bomb
{
var linkId, initObj, init;
function NuclearBomb (iObj) {
super();
linkId = "NuclearBomb";
initObj = iObj;
init();
}
}
Symbol 3406 MovieClip [__Packages.rr.ammo.train.AmmoTrainBullit] Frame 0
class rr.ammo.train.AmmoTrainBullit extends rr.ammo.Ammo
{
var linkId, initObj, parentLinkId, x, y, d, speed, range, damage, destroydelay, isexploded, prevx, prevy, sin, pi, rot, cos, destroy, render;
function AmmoTrainBullit (iObj) {
super();
linkId = "AmmoTrainBullit";
initObj = iObj;
init();
}
function init() {
super.init();
parentLinkId = initObj.parentLinkId;
x = initObj.x;
y = initObj.y;
d = 0;
speed = rr.conf.Config.getObjectValue(parentLinkId, "ammospeed");
range = rr.conf.Config.getObjectValue(parentLinkId, "ammorange");
damage = rr.conf.Config.getObjectValue(parentLinkId, "ammodamage");
destroydelay = rr.conf.Config.getObjectValue(parentLinkId, "ammodestroydelay");
}
function update() {
if (isexploded) {
return(undefined);
}
prevx = x;
prevy = y;
x = x + (sin((rot * pi) / 180) * speed);
y = y - (cos((rot * pi) / 180) * speed);
d = d + rr.utils.MathUtils.getDistance(x, y, prevx, prevy);
if (!isexploded) {
if (d > range) {
isexploded = true;
destroy();
} else {
checkHit();
}
}
render();
}
function checkHit() {
var _local3 = false;
var _local4 = rr.ammo.AmmoUtils.createHitLine(prevx, prevy, x, y, 3);
if (rr.utils.HitTest.isLineHit(_global.plane.mov, _local4)) {
if (!_global.plane.loopOn) {
_global.plane.addDamage(damage);
_local3 = true;
}
}
if (!_local3) {
var _local5 = _global.map.getCellIdByPos(x, y);
var _local6 = _global.map.getCellIdByPos(prevx, prevy);
if (_local5 != undefined) {
_local3 = checkCellHits(_local5, _local4);
}
if (!_local3) {
if (_local6 != _local5) {
_local3 = checkCellHits(_local6, _local4);
}
}
}
_local4.removeMovieClip();
if (_local3) {
isexploded = true;
destroy();
}
}
function checkCellHits(cid, hitline_mc) {
var _local5 = _global.map.getCell(cid);
var _local6 = _local5.removables.length;
var _local4 = 0;
while (_local4 < _local6) {
var _local3 = _global.stage["obj_" + _local5.removables[_local4]];
if (!_local3.isdead) {
if (_local3.hostility <= 0) {
if (rr.utils.HitTest.isLineHit(_local3.mov, hitline_mc)) {
_local3.addDamage(damage);
return(true);
}
}
}
_local4++;
}
return(false);
}
}
Symbol 3407 MovieClip [__Packages.rr.ammo.train.AmmoRocketLauncher] Frame 0
class rr.ammo.train.AmmoRocketLauncher extends rr.ammo.Ammo
{
var linkId, parentLinkId, initObj, x, y, tar, minrange, maxrange, speedmax, rotspeed, a, startsound, explodesound, damage, rexplode, speed, d, tspeed, isexploded, render, prevx, prevy, sin, pi, rot, cos, mov, destroy;
function AmmoRocketLauncher (iObj) {
super();
linkId = "AmmoRocketLauncher";
parentLinkId = "RocketLauncher";
initObj = iObj;
init();
}
function init() {
x = initObj.x;
y = initObj.y;
super.init();
tar = _global.plane;
minrange = rr.conf.Config.getObjectValue(parentLinkId, "ammominrange");
maxrange = rr.conf.Config.getObjectValue(parentLinkId, "ammomaxrange");
speedmax = rr.conf.Config.getObjectValue(parentLinkId, "ammomaxspeed");
rotspeed = rr.conf.Config.getObjectValue(parentLinkId, "ammorotationspeed");
a = rr.conf.Config.getObjectValue(parentLinkId, "ammoacceleration");
startsound = rr.conf.Config.getObjectValue(parentLinkId, "ammostartsound");
explodesound = rr.conf.Config.getObjectValue(parentLinkId, "ammoexplodesound");
damage = rr.conf.Config.getObjectValue(parentLinkId, "ammoexplosiondamage");
rexplode = rr.conf.Config.getObjectValue(parentLinkId, "ammoexplosionradius");
speed = 0;
d = 0;
tspeed = speedmax;
maxrange = maxrange + (Math.random() * (maxrange * 0.2));
_global.sounds.playSound(startsound);
}
function update() {
if (isexploded) {
render();
return(undefined);
}
if (speed != tspeed) {
speed = ((Math.abs(speed - tspeed) <= a) ? (tspeed) : (((tspeed > speed) ? (speed + a) : (speed - a))));
}
if (!isexploded) {
if (d > 150) {
rotateToTarget();
}
}
prevx = x;
prevy = y;
x = x + (sin((rot * pi) / 180) * speed);
y = y - (cos((rot * pi) / 180) * speed);
d = d + rr.utils.MathUtils.getDistance(x, y, prevx, prevy);
if (!isexploded) {
if (d > maxrange) {
explode();
} else if (d > minrange) {
if (!_global.plane.loopOn) {
checkHit();
}
}
}
render();
}
function rotateToTarget() {
if (tar.isdead) {
return(undefined);
}
if (tar == undefined) {
explode();
return(undefined);
}
var _local4 = rotspeed;
var _local6 = rr.utils.Math2.Bearing(x, y, tar.x, tar.y);
var _local2 = (_local6 + 360) % 360;
var _local3 = (rot + 360) % 360;
if ((_local2 - _local3) > 180) {
_local2 = _local2 - 360;
} else if ((_local2 - _local3) < -180) {
_local2 = _local2 + 360;
}
if (_local2 > _local3) {
_local3 = _local3 + _local4;
} else {
_local3 = _local3 - _local4;
}
rot = _local3;
var _local5 = rr.utils.MathUtils.angDiff(_local3, _local2);
if ((_local5 <= _local4) || ((360 - _local5) <= _local4)) {
rot = _local2;
}
}
function checkHit() {
var _local2 = rr.ammo.AmmoUtils.createHitLine(prevx, prevy, x, y, 5);
if (rr.utils.HitTest.isLineHit(tar.mov, _local2)) {
tar.addDamage(damage);
explode();
}
_local2.removeMovieClip();
}
function explode() {
if (isexploded) {
return(undefined);
}
isexploded = true;
speed = speed / 10;
tspeed = 0;
render();
_global.sounds.playExplodeSound(explodesound, 100, 0, 1000, x, y);
mov.gotoAndPlay("explode");
var _local3 = rr.conf.Config.getObjectValue(parentLinkId, "ammodestroydelay");
rr.utils.Delegate.callDelayed(this, destroy, _local3);
}
}
Symbol 3408 MovieClip [__Packages.rr.ammo.AmmoDefault] Frame 0
class rr.ammo.AmmoDefault extends rr.ammo.Ammo
{
var d, initObj, hostility, x, cos, pi, rot, y, sin, depthId, alt, scale, damage, parentLinkId, rexplode, created, render, destroy, isDestroyed, mov, linkId;
function AmmoDefault () {
super();
}
function init() {
super.init();
d = initObj.d;
hostility = initObj.hostility;
x = initObj.x + (cos(((-rot) * pi) / 180) * d);
y = initObj.y - (sin(((-rot) * pi) / 180) * d);
rot = Math.random() * 360;
var _local4 = Math.random() * _global.plane.alt;
if (Math.random() < 0.3) {
depthId = "OverAmmo";
alt = _global.plane.alt + _local4;
scale = Math.round(100 + (Math.random() * 50));
} else {
depthId = "UnderAmmo";
alt = _global.plane.alt - _local4;
scale = Math.round(100 - (Math.random() * 20));
}
damage = rr.conf.Config.getObjectValue(parentLinkId, "ammodamage");
rexplode = rr.conf.Config.getObjectValue(parentLinkId, "explosionradius");
var _local5 = (40 * d) / rr.conf.Config.getObjectValue(parentLinkId, "ammospeed");
rr.utils.Delegate.callDelayed(this, createDelayed, _local5);
}
function update() {
if (!created) {
return(undefined);
}
if (rr.utils.MathUtils.getDistance(x, y, _global.camera.x, _global.camera.y) < 500) {
render();
}
}
function createDelayed() {
created = true;
checkHit();
render();
_global.sounds.playExplodeSound(rr.conf.Config.getObjectValue(parentLinkId, "ammosound"), 100, 20, 1000, x, y);
var _local3 = rr.conf.Config.getObjectValue(parentLinkId, "ammoduration");
rr.utils.Delegate.callDelayed(this, destroy, _local3);
}
function createMov() {
if (isDestroyed) {
return(undefined);
}
var _local3 = rr.utils.ClipUtils.getFreeDepth(_global.stage.mov, depthId);
mov = _global.stage.mov.attachMovie(linkId, rr.utils.StringUtils.getUniqueName(), _local3, {parent:this});
mov._xscale = (mov._yscale = scale);
}
function checkHit() {
if (hostility > 0) {
checkObjectHit(_global.plane, damage);
return(undefined);
}
var _local9 = new Array();
var _local10 = _global.map.getCellByPos(x, y);
_local9.push(_local10);
var _local4 = 1;
while (_local4 <= 8) {
var _local6 = _local10.nb[_local4];
if (_local6 != undefined) {
if ((rr.utils.MathUtils.getDistance(x, y, _local6.center.x, _local6.center.y) - rexplode) < 240) {
_local9.push(_local6);
}
}
_local4++;
}
var _local11 = _local9.length;
var _local7 = 0;
while (_local7 < _local11) {
var _local5 = _local9[_local7];
if (_local5.hasRemovables) {
var _local8 = _local5.removables.length;
_local4 = 0;
while (_local4 < _local8) {
var _local3 = _global.stage["obj_" + _local5.removables[_local4]];
if (_local3.isdead) {
} else if ((hostility > 0) && (_local3.hostility > 0)) {
} else if ((hostility <= 0) && (_local3.hostility <= 0)) {
} else {
checkObjectHit(_local3, damage / 20);
}
_local4++;
}
}
_local7++;
}
}
function checkObjectHit(obj, dmg) {
var _local2 = rr.utils.MathUtils.getDistance(obj.x, obj.y, x, y);
if (rexplode) {
if (_local2 < rexplode) {
obj.addDamage(Math.round(dmg / (1 + (_local2 / 25))));
}
}
}
}
Symbol 3409 MovieClip [__Packages.rr.ammo.ground.AmmoPotTank] Frame 0
class rr.ammo.ground.AmmoPotTank extends rr.ammo.AmmoDefault
{
var linkId, parentLinkId, initObj, init;
function AmmoPotTank (iObj) {
super();
linkId = "AmmoPotTank";
parentLinkId = "PotTank";
initObj = iObj;
init();
}
}
Symbol 3410 MovieClip [__Packages.rr.ammo.ground.AmmoOldJeep] Frame 0
class rr.ammo.ground.AmmoOldJeep extends rr.ammo.AmmoDefault
{
var linkId, parentLinkId, initObj, init;
function AmmoOldJeep (iObj) {
super();
linkId = "AmmoOldJeep";
parentLinkId = "OldJeep";
initObj = iObj;
init();
}
}
Symbol 3411 MovieClip [__Packages.rr.ammo.ground.AmmoGunTruck] Frame 0
class rr.ammo.ground.AmmoGunTruck extends rr.ammo.AmmoDefault
{
var linkId, parentLinkId, initObj, init;
function AmmoGunTruck (iObj) {
super();
linkId = "AmmoGunTruck";
parentLinkId = "GunTruck";
initObj = iObj;
init();
}
}
Symbol 3412 MovieClip [__Packages.rr.ammo.ground.AmmoArmoredJeep] Frame 0
class rr.ammo.ground.AmmoArmoredJeep extends rr.ammo.AmmoDefault
{
var linkId, parentLinkId, initObj, init;
function AmmoArmoredJeep (iObj) {
super();
linkId = "AmmoArmoredJeep";
parentLinkId = "ArmoredJeep";
initObj = iObj;
init();
}
}
Symbol 3413 MovieClip [__Packages.rr.ammo.ground.AmmoBasilisk] Frame 0
class rr.ammo.ground.AmmoBasilisk extends rr.ammo.AmmoDefault
{
var linkId, parentLinkId, initObj, init;
function AmmoBasilisk (iObj) {
super();
linkId = "AmmoBasilisk";
parentLinkId = "Basilisk";
initObj = iObj;
init();
}
}
Symbol 3414 MovieClip [__Packages.rr.ammo.ground.AmmoBunker] Frame 0
class rr.ammo.ground.AmmoBunker extends rr.ammo.AmmoDefault
{
var linkId, parentLinkId, initObj, init;
function AmmoBunker (iObj) {
super();
linkId = "AmmoBunker";
parentLinkId = "Bunker";
initObj = iObj;
init();
}
}
Symbol 3415 MovieClip [__Packages.rr.ammo.ground.AmmoGatlingSingle] Frame 0
class rr.ammo.ground.AmmoGatlingSingle extends rr.ammo.AmmoDefault
{
var linkId, parentLinkId, initObj, init;
function AmmoGatlingSingle (iObj) {
super();
linkId = "AmmoGatlingSingle";
parentLinkId = "GatlingSingle";
initObj = iObj;
init();
}
}
Symbol 3416 MovieClip [__Packages.rr.ammo.ground.AmmoGatlingDouble] Frame 0
class rr.ammo.ground.AmmoGatlingDouble extends rr.ammo.AmmoDefault
{
var linkId, parentLinkId, initObj, init;
function AmmoGatlingDouble (iObj) {
super();
linkId = "AmmoGatlingDouble";
parentLinkId = "GatlingDouble";
initObj = iObj;
init();
}
}
Symbol 3417 MovieClip [__Packages.rr.ammo.ground.AmmoAbrahams] Frame 0
class rr.ammo.ground.AmmoAbrahams extends rr.ammo.AmmoDefault
{
var linkId, parentLinkId, initObj, init;
function AmmoAbrahams (iObj) {
super();
linkId = "AmmoAbrahams";
parentLinkId = "Abrahams";
initObj = iObj;
init();
}
}
Symbol 3418 MovieClip [__Packages.rr.ammo.ground.AmmoElephant] Frame 0
class rr.ammo.ground.AmmoElephant extends rr.ammo.AmmoDefault
{
var linkId, parentLinkId, initObj, init;
function AmmoElephant (iObj) {
super();
linkId = "AmmoElephant";
parentLinkId = "Elephant";
initObj = iObj;
init();
}
}
Symbol 3419 MovieClip [__Packages.rr.ammo.ground.AmmoPanther] Frame 0
class rr.ammo.ground.AmmoPanther extends rr.ammo.AmmoDefault
{
var linkId, parentLinkId, initObj, init;
function AmmoPanther (iObj) {
super();
linkId = "AmmoPanther";
parentLinkId = "Panther";
initObj = iObj;
init();
}
}
Symbol 3420 MovieClip [__Packages.rr.ammo.AmmoRocketeer] Frame 0
class rr.ammo.AmmoRocketeer extends rr.ammo.Ammo
{
var linkId, parentLinkId, initObj, x, y, tar, range, speedmax, mincurve, maxcurve, a, startsound, explodesound, damage, rexplode, d, speed, tspeed, mov, createMov, rot, isexploded, cos, pi, sin, status, clearMov, curve, destroy;
function AmmoRocketeer (iObj) {
super();
linkId = "AmmoRocketeer";
parentLinkId = "Rocketeer";
initObj = iObj;
init();
}
function init() {
x = initObj.x;
y = initObj.y;
if (initObj.h > 0) {
tar = _global.plane;
} else {
getTarget();
}
super.init();
range = rr.conf.Config.getObjectValue(parentLinkId, "ammorange");
speedmax = rr.conf.Config.getObjectValue(parentLinkId, "ammomaxSpeed");
mincurve = rr.conf.Config.getObjectValue(parentLinkId, "ammominCurve");
maxcurve = rr.conf.Config.getObjectValue(parentLinkId, "ammomaxCurve");
a = rr.conf.Config.getObjectValue(parentLinkId, "ammoacceleration");
startsound = rr.conf.Config.getObjectValue(parentLinkId, "ammostartsound");
explodesound = rr.conf.Config.getObjectValue(parentLinkId, "ammoexplodesound");
damage = rr.conf.Config.getObjectValue(parentLinkId, "ammoexplosiondamage");
rexplode = rr.conf.Config.getObjectValue(parentLinkId, "ammoexplosionradius");
d = (speed = (tspeed = 0));
launch();
}
function render() {
if (!mov) {
createMov();
if (_global.map.nightmap) {
rr.utils.ClipUtils.setTint(mov.base_mc, 0, 50);
}
}
mov._x = x - _global.camera.left;
mov._y = y - _global.camera.top;
mov._rotation = rr.utils.MathUtils.formatAngle2(rot);
}
function update() {
if (speed != tspeed) {
speed = ((Math.abs(speed - tspeed) <= a) ? (tspeed) : (((tspeed > speed) ? (speed + a) : (speed - a))));
}
if (tar) {
if (rr.utils.MathUtils.getDistance(x, y, tar.x, tar.y) < (speed * 2)) {
if (!_global.plane.loopOn) {
explode();
}
}
}
if (!isexploded) {
if (d > 100) {
rotateToTarget();
}
}
var _local4 = x;
var _local3 = y;
x = x + (cos(((-rot) * pi) / 180) * speed);
y = y - (sin(((-rot) * pi) / 180) * speed);
d = d + rr.utils.MathUtils.getDistance(x, y, _local4, _local3);
if (status != "exploded") {
if (d > range) {
explode();
}
checkRender();
} else {
render();
}
}
function getTarget() {
var _local4;
var _local6 = _global.stage.airs.length;
var _local5 = 0;
while (_local5 < _local6) {
var _local3 = _global.stage["obj_" + _global.stage.airs[_local5]];
if (!_local3.isdead) {
if (_local4 == undefined) {
_local4 = _local3;
} else if (rr.utils.MathUtils.getDistance(x, y, _local3.x, _local3.y) < rr.utils.MathUtils.getDistance(x, y, _local4.x, _local4.y)) {
_local4 = _local3;
}
}
_local5++;
}
tar = _local4;
}
function checkRender() {
if (rr.utils.MathUtils.getDistance(x, y, _global.camera.x, _global.camera.y) < 500) {
render();
} else if (mov) {
clearMov();
}
}
function launch() {
_global.sounds.playSound(startsound);
curve = mincurve + (Math.random() * (maxcurve - mincurve));
tspeed = speedmax;
}
function rotateToTarget() {
if (tar == undefined) {
return(undefined);
}
var _local4 = rr.utils.MathUtils.getAngle(x, y, tar.x, tar.y);
var _local2 = _local4;
var _local3 = (rot + 360) % 360;
_local2 = (_local2 + 360) % 360;
if ((_local2 - _local3) > 180) {
_local2 = _local2 - 360;
} else if ((_local2 - _local3) < -180) {
_local2 = _local2 + 360;
}
if ((_local2 - _local3) > 0) {
rot = rr.utils.MathUtils.formatAngle2(_local3 + curve);
} else {
rot = rr.utils.MathUtils.formatAngle2(_local3 - curve);
}
var _local5 = rr.utils.MathUtils.angDiff(rot, _local4);
if ((_local5 <= curve) || ((360 - _local5) <= curve)) {
rot = _local4;
}
}
function explode() {
if (isexploded) {
return(undefined);
}
isexploded = true;
speed = speed / 10;
tspeed = 0;
if (tar) {
var _local4 = rr.utils.MathUtils.getDistance(x, y, tar.x, tar.y);
if (_local4 < rexplode) {
tar.addDamage(damage);
}
}
render();
_global.sounds.playExplodeSound(explodesound, 100, 0, 1000, x, y);
mov.gotoAndPlay("explode");
var _local3 = rr.conf.Config.getObjectValue(parentLinkId, "ammoduration");
rr.utils.Delegate.callDelayed(this, destroy, _local3);
}
}
Symbol 3421 MovieClip [__Packages.rr.ammo.ground.AmmoRocketBase] Frame 0
class rr.ammo.ground.AmmoRocketBase extends rr.ammo.Ammo
{
var linkId, parentLinkId, initObj, x, y, tar, minrange, maxrange, speedmax, rotspeed, a, startsound, explodesound, damage, rexplode, speed, d, tspeed, isexploded, render, prevx, prevy, sin, pi, rot, cos, mov, destroy;
function AmmoRocketBase (iObj) {
super();
linkId = "Rocket";
parentLinkId = "RocketBase";
initObj = iObj;
init();
}
function init() {
x = initObj.x;
y = initObj.y;
super.init();
tar = _global.plane;
minrange = rr.conf.Config.getObjectValue(parentLinkId, "ammominrange");
maxrange = rr.conf.Config.getObjectValue(parentLinkId, "ammomaxrange");
speedmax = rr.conf.Config.getObjectValue(parentLinkId, "ammomaxspeed");
rotspeed = rr.conf.Config.getObjectValue(parentLinkId, "ammorotationspeed");
a = rr.conf.Config.getObjectValue(parentLinkId, "ammoacceleration");
startsound = rr.conf.Config.getObjectValue(parentLinkId, "ammostartsound");
explodesound = rr.conf.Config.getObjectValue(parentLinkId, "ammoexplodesound");
damage = rr.conf.Config.getObjectValue(parentLinkId, "ammoexplosiondamage");
rexplode = rr.conf.Config.getObjectValue(parentLinkId, "ammoexplosionradius");
speed = 0;
d = 0;
tspeed = speedmax;
maxrange = maxrange + (Math.random() * (maxrange * 0.2));
_global.sounds.playSound(startsound);
}
function update() {
if (isexploded) {
render();
return(undefined);
}
if (speed != tspeed) {
speed = ((Math.abs(speed - tspeed) <= a) ? (tspeed) : (((tspeed > speed) ? (speed + a) : (speed - a))));
}
if (!isexploded) {
if (d > 150) {
rotateToTarget();
}
}
prevx = x;
prevy = y;
x = x + (sin((rot * pi) / 180) * speed);
y = y - (cos((rot * pi) / 180) * speed);
d = d + rr.utils.MathUtils.getDistance(x, y, prevx, prevy);
if (!isexploded) {
if (d > maxrange) {
explode();
} else if (d > minrange) {
if (!_global.plane.loopOn) {
checkHit();
}
}
}
render();
}
function rotateToTarget() {
if (tar.isdead) {
return(undefined);
}
if (tar == undefined) {
explode();
return(undefined);
}
var _local4 = rotspeed;
var _local6 = rr.utils.Math2.Bearing(x, y, tar.x, tar.y);
var _local2 = (_local6 + 360) % 360;
var _local3 = (rot + 360) % 360;
if ((_local2 - _local3) > 180) {
_local2 = _local2 - 360;
} else if ((_local2 - _local3) < -180) {
_local2 = _local2 + 360;
}
if (_local2 > _local3) {
_local3 = _local3 + _local4;
} else {
_local3 = _local3 - _local4;
}
rot = _local3;
var _local5 = rr.utils.MathUtils.angDiff(_local3, _local2);
if ((_local5 <= _local4) || ((360 - _local5) <= _local4)) {
rot = _local2;
}
}
function checkHit() {
var _local2 = rr.ammo.AmmoUtils.createHitLine(prevx, prevy, x, y, 5);
if (rr.utils.HitTest.isLineHit(tar.mov, _local2)) {
tar.addDamage(damage);
explode();
}
_local2.removeMovieClip();
}
function explode() {
if (isexploded) {
return(undefined);
}
isexploded = true;
speed = speed / 10;
tspeed = 0;
render();
_global.sounds.playExplodeSound(explodesound, 100, 40, 1000, x, y);
mov.gotoAndPlay("explode");
var _local3 = rr.conf.Config.getObjectValue(parentLinkId, "ammodestroydelay");
rr.utils.Delegate.callDelayed(this, destroy, _local3);
}
}
Symbol 3422 MovieClip [__Packages.rr.train.SaddleTank] Frame 0
class rr.train.SaddleTank extends rr.train.Locomotive
{
var linkId, initObj, bcount, bxdef1;
function SaddleTank (iObj) {
super();
linkId = "SaddleTank";
initObj = iObj;
bcount = 1;
bxdef1 = 0;
}
}
Symbol 3423 MovieClip [__Packages.rr.train.Rhino] Frame 0
class rr.train.Rhino extends rr.train.Locomotive
{
var linkId, initObj, bcount, bxdef1, bxdef2;
function Rhino (iObj) {
super();
linkId = "Rhino";
initObj = iObj;
bcount = 2;
bxdef1 = -33;
bxdef2 = 31;
}
}
Symbol 3424 MovieClip [__Packages.rr.train.SuperChief] Frame 0
class rr.train.SuperChief extends rr.train.Locomotive
{
var linkId, initObj, bcount, bxdef1;
function SuperChief (iObj) {
super();
linkId = "SuperChief";
initObj = iObj;
bcount = 1;
bxdef1 = -14;
}
}
Symbol 3425 MovieClip [__Packages.rr.train.TrainWagon] Frame 0
class rr.train.TrainWagon extends rr.train.TrainSegment
{
var segmentType, weapons, prev, reAffirm, isconnected, isreversed, dfeel, length, xspeed, yspeed, x, y, damage, tdisconn, initObj, isdead, render, speed, isstunned, checkStun, events, next, killlevel, explode;
function TrainWagon () {
super();
}
function init() {
segmentType = "wagon";
weapons = new Array();
super.init();
prev = _global.train.lastsegment;
prev.next = this;
reAffirm();
isconnected = true;
isreversed = false;
dfeel = length / 2;
xspeed = (yspeed = 0);
x = (y = 0);
damage = 0;
tdisconn = getTimer();
addWeapons(initObj.weapons);
_global.train.onConnectionChanged();
}
function update() {
if (isdead) {
render();
return(undefined);
}
if (!isconnected) {
var _local2 = 0.05;
if (speed != 0) {
speed = ((Math.abs(speed) <= _local2) ? 0 : (((0 > speed) ? (speed + _local2) : (speed - _local2))));
}
rr.train.TrainUtils.updateRailPosition(this);
} else {
speed = prev.speed;
rr.train.TrainUtils.updateRailPosition(this);
}
if (isstunned) {
checkStun();
}
events.dispatchEvent({target:this, type:"onUpdate"});
}
function addWeapons(w) {
var _local4 = w.length;
var _local2 = 0;
while (_local2 < _local4) {
var _local3 = w[_local2];
_local3.parent = this;
rr.train.TrainUtils.createWeapon(_local3);
_local2++;
}
}
function removeWeapon(obj) {
var _local3 = weapons.length;
var _local2 = 0;
while (_local2 < _local3) {
if (weapons[_local2] == obj) {
delete weapons[_local2];
weapons.splice(_local2, 1);
break;
}
_local2++;
}
}
function addDamage(dmg) {
if (isdead) {
return(undefined);
}
super.addDamage(dmg);
var _local4 = weapons.length;
var _local3 = 0;
while (_local3 < _local4) {
weapons[_local3].addDamage(dmg);
_local3++;
}
}
function die() {
if (isdead) {
return(undefined);
}
isdead = true;
next.disconnect();
disconnect();
var _local3 = weapons.length;
var _local2 = 0;
while (_local2 < _local3) {
weapons[_local2].die();
_local2++;
}
damage = killlevel;
events.dispatchEvent({type:"onTrainWagonDie", target:this});
explode();
}
function disconnect() {
if (!prev) {
return(undefined);
}
prev.next = undefined;
prev = undefined;
isconnected = false;
_global.train.onConnectionChanged();
}
}
Symbol 3426 MovieClip [__Packages.rr.train.SuperChiefWagon] Frame 0
class rr.train.SuperChiefWagon extends rr.train.TrainWagon
{
var linkId, initObj, parent, bcount, bxdef1, bxdef2, tfire, gunsounds, cos, pi, fliprot, rot, mov, sin, x, y, atan2, isdead;
function SuperChiefWagon (iObj) {
super();
linkId = "SuperChiefWagon";
initObj = iObj;
parent = initObj.parent;
init();
}
function init() {
super.init();
bcount = 2;
bxdef1 = -10;
bxdef2 = 10;
tfire = rr.conf.Config.getObjectValue(linkId, "shootinginterval");
gunsounds = rr.conf.Config.getObjectValue(linkId, "gunsounds");
var _local3 = 1;
while (_local3 <= bcount) {
this["rotbarrel" + _local3] = 0;
this["bs" + _local3] = rr.conf.Config.getObjectValue(linkId, "rotationspeed" + _local3);
this["tf" + _local3] = rr.conf.Config.getObjectValue(linkId, "shootinginterval" + _local3);
this["lf" + _local3] = getTimer();
_local3++;
}
}
function render() {
super.render();
var _local3 = 1;
while (_local3 <= bcount) {
mov[("barrel" + _local3) + "_mc"]._x = cos(((-(rot + fliprot)) * pi) / 180) * this["bxdef" + _local3];
mov[("barrel" + _local3) + "_mc"]._y = (-sin(((-(rot + fliprot)) * pi) / 180)) * this["bxdef" + _local3];
mov[("barrel" + _local3) + "_mc"]._rotation = this["rotbarrel" + _local3];
_local3++;
}
}
function aimAtTarget() {
var _local3 = 1;
while (_local3 <= bcount) {
this["bx" + _local3] = x + (cos(((-(rot + fliprot)) * pi) / 180) * this["bxdef" + _local3]);
this["by" + _local3] = y - (sin(((-(rot + fliprot)) * pi) / 180) * this["bxdef" + _local3]);
var _local4 = (180 * atan2(_global.aim.mov._y - (this["by" + _local3] - _global.camera.top), _global.aim.mov._x - (this["bx" + _local3] - _global.camera.left))) / pi;
var _local5 = (this["rotbarrel" + _local3] + 360) % 360;
_local4 = (_local4 + 360) % 360;
if ((_local4 - _local5) > 180) {
_local4 = _local4 - 360;
} else if ((_local4 - _local5) < -180) {
_local4 = _local4 + 360;
}
_local5 = _local5 + ((this["bs" + _local3] * (_local4 - _local5)) / 100);
this["rotbarrel" + _local3] = rr.utils.MathUtils.formatAngle2(_local5);
_local3++;
}
}
function fire() {
var _local3 = 1;
while (_local3 <= bcount) {
if ((getTimer() - this["lf" + _local3]) >= this["tf" + _local3]) {
this["lf" + _local3] = getTimer();
mov[("barrel" + _local3) + "_mc"].gotoAndPlay("shoot");
_global.sounds.playSound(gunsounds[Math.round(Math.random() * (gunsounds.length - 1))]);
rr.ammo.AmmoUtils.createAmmo({type:parent.linkId, x:this["bx" + _local3], y:this["by" + _local3], rot:this["rotbarrel" + _local3]});
}
_local3++;
}
}
function addDamage(dmg) {
if (isdead) {
return(undefined);
}
if (!dmg) {
return(undefined);
}
parent.addDamage(dmg);
}
function checkNightMode() {
if (_global.map.nightmap) {
rr.utils.ClipUtils.setTint(mov.base_mc, 0, 90);
var _local3 = 1;
while (_local3 <= bcount) {
rr.utils.ClipUtils.setTint(mov[("barrel" + _local3) + "_mc"].base_mc, 0, 90);
_local3++;
}
}
}
}
Symbol 3427 MovieClip [__Packages.rr.train.Dragon] Frame 0
class rr.train.Dragon extends rr.train.Locomotive
{
var linkId, initObj, bcount, bxdef1, bxdef2;
function Dragon (iObj) {
super();
linkId = "Dragon";
initObj = iObj;
bcount = 2;
bxdef1 = -30;
bxdef2 = 30;
}
}
Symbol 3428 MovieClip [__Packages.rr.train.Pennsylvania] Frame 0
class rr.train.Pennsylvania extends rr.train.Locomotive
{
var linkId, initObj, bcount, bxdef1, bxdef2;
function Pennsylvania (iObj) {
super();
linkId = "Pennsylvania";
initObj = iObj;
bcount = 2;
bxdef1 = -8;
bxdef2 = 8;
}
}
Symbol 3429 MovieClip [__Packages.rr.train.statics.StaticTrainSegment] Frame 0
class rr.train.statics.StaticTrainSegment extends rr.BaseClass
{
var uid, initObj, killlevel, linkId, length, destroydelay, explodesound, rot, x, y, dfeel, damage, mov, isRendered, isdead, tstun, laststunned, isstunned, isexploded, train;
function StaticTrainSegment () {
super();
}
function init() {
uid = initObj.uid;
killlevel = rr.conf.Config.getObjectValue(linkId, "killlevel");
length = rr.conf.Config.getObjectValue(linkId, "length");
destroydelay = rr.conf.Config.getObjectValue(linkId, "destroydelay");
explodesound = rr.conf.Config.getObjectValue(linkId, "explodesound");
rot = 0;
x = initObj.x;
y = initObj.y;
if (initObj.r) {
rot = initObj.r;
}
dfeel = length / 2;
damage = 0;
}
function render() {
if (!mov) {
createMov();
}
mov._x = x - _global.camera.left;
mov._y = y - _global.camera.top;
mov.base_mc._rotation = rot;
}
function checkRender() {
isRendered = false;
if (rr.utils.MathUtils.getDistance(x, y, _global.camera.x, _global.camera.y) < 500) {
isRendered = true;
render();
} else if (mov) {
clearMov();
}
}
function createMov() {
var _local3 = rr.utils.ClipUtils.getFreeDepth(_global.stage.mov, this);
mov = _global.stage.mov.attachMovie(linkId, rr.utils.StringUtils.getUniqueName(), _local3, {parent:this});
checkNightMode();
}
function clearMov() {
mov.removeMovieClip();
delete mov;
}
function checkNightMode() {
if (_global.map.nightmap) {
rr.utils.ClipUtils.setTint(mov.base_mc, 0, 50);
}
}
function addDamage(dmg) {
if (isdead) {
return(undefined);
}
if (!dmg) {
return(undefined);
}
damage = damage + dmg;
if (damage < 0) {
damage = 0;
}
if (damage >= killlevel) {
die();
}
}
function stun(t) {
tstun = t;
laststunned = getTimer();
isstunned = true;
}
function checkStun() {
if ((getTimer() - laststunned) > tstun) {
isstunned = false;
}
}
function die() {
}
function explode() {
if (isexploded) {
return(undefined);
}
isexploded = true;
render();
_global.sounds.playExplodeSound(explodesound, 100, 100, 1000, x, y);
mov.gotoAndPlay("explode");
rr.utils.Delegate.callDelayed(this, destroy, destroydelay);
}
function destroy() {
mov.removeMovieClip();
train.removeSegment(this);
_global.stage.removeObject(this);
}
}
Symbol 3430 MovieClip [__Packages.rr.train.statics.StaticLocomotive] Frame 0
class rr.train.statics.StaticLocomotive extends rr.train.statics.StaticTrainSegment
{
var segmentType, train, rotspeed, linkId, tfire, dfire, gunsounds, rotBarrel, rot, bcount, checkRender, isdead, dplane, x, y, isstunned, checkStun, events, mov, cos, pi, sin, atan2, isShooting, damage, killlevel, explode;
function StaticLocomotive () {
super();
}
function init() {
segmentType = "loc";
super.init();
train.loc = this;
rotspeed = rr.conf.Config.getObjectValue(linkId, "rotationspeed");
tfire = rr.conf.Config.getObjectValue(linkId, "shootinginterval");
dfire = rr.conf.Config.getObjectValue(linkId, "shootingdistance");
gunsounds = rr.conf.Config.getObjectValue(linkId, "gunsounds");
rotBarrel = rot;
var _local3 = 1;
while (_local3 <= bcount) {
this["rotbarrel" + _local3] = 0;
this["bs" + _local3] = rr.conf.Config.getObjectValue(linkId, "rotationspeed" + _local3);
this["tf" + _local3] = rr.conf.Config.getObjectValue(linkId, "shootinginterval" + _local3);
this["lf" + _local3] = getTimer();
_local3++;
}
}
function update() {
if (_global.plane == undefined) {
checkRender();
return(undefined);
}
if (_global.plane.isdead) {
checkRender();
return(undefined);
}
if (isdead) {
checkRender();
return(undefined);
}
dplane = rr.utils.MathUtils.getDistance(x, y, _global.plane.x, _global.plane.y);
if (!isstunned) {
aimAtTarget();
if (!_global.plane.isdead) {
if (dplane <= dfire) {
fire();
}
}
}
checkRender();
if (isstunned) {
checkStun();
}
events.dispatchEvent({target:this, type:"onUpdate"});
}
function render() {
super.render();
mov.lights_mc._rotation = rot;
var _local3 = 1;
while (_local3 <= bcount) {
mov[("barrel" + _local3) + "_mc"]._x = cos(((-rot) * pi) / 180) * this["bxdef" + _local3];
mov[("barrel" + _local3) + "_mc"]._y = (-sin(((-rot) * pi) / 180)) * this["bxdef" + _local3];
mov[("barrel" + _local3) + "_mc"]._rotation = this["rotbarrel" + _local3];
_local3++;
}
}
function aimAtTarget() {
if (_global.plane == undefined) {
return(undefined);
}
if (_global.plane.isdead) {
return(undefined);
}
var _local3 = 1;
while (_local3 <= bcount) {
this["bx" + _local3] = x + (cos(((-rot) * pi) / 180) * this["bxdef" + _local3]);
this["by" + _local3] = y - (sin(((-rot) * pi) / 180) * this["bxdef" + _local3]);
var _local4 = (180 * atan2(_global.plane.mov._y - (this["by" + _local3] - _global.camera.top), _global.plane.mov._x - (this["bx" + _local3] - _global.camera.left))) / pi;
var _local5 = (this["rotbarrel" + _local3] + 360) % 360;
_local4 = (_local4 + 360) % 360;
if ((_local4 - _local5) > 180) {
_local4 = _local4 - 360;
} else if ((_local4 - _local5) < -180) {
_local4 = _local4 + 360;
}
_local5 = _local5 + ((this["bs" + _local3] * (_local4 - _local5)) / 100);
this["rotbarrel" + _local3] = rr.utils.MathUtils.formatAngle2(_local5);
_local3++;
}
}
function die() {
if (isdead) {
return(undefined);
}
isdead = true;
isShooting = false;
damage = killlevel;
explode();
}
function fire() {
if (_global.plane == undefined) {
return(undefined);
}
if (_global.plane.isdead) {
return(undefined);
}
var _local3 = 1;
while (_local3 <= bcount) {
if ((getTimer() - this["lf" + _local3]) >= this["tf" + _local3]) {
this["lf" + _local3] = getTimer();
mov[("barrel" + _local3) + "_mc"].gotoAndPlay("shoot");
_global.sounds.playSound(gunsounds[Math.round(Math.random() * (gunsounds.length - 1))]);
rr.ammo.AmmoUtils.createAmmo({type:"AmmoTrainBullit", parentLinkId:linkId, x:this["bx" + _local3], y:this["by" + _local3], rot:this["rotbarrel" + _local3] + 90});
}
_local3++;
}
}
function checkNightMode() {
if (_global.map.nightmap) {
rr.utils.ClipUtils.setTint(mov.base_mc, 0, 50);
mov.lights_mc._visible = true;
} else {
mov.lights_mc._visible = false;
}
}
}
Symbol 3431 MovieClip [__Packages.rr.train.statics.StaticSaddleTank] Frame 0
class rr.train.statics.StaticSaddleTank extends rr.train.statics.StaticLocomotive
{
var linkId, initObj, bcount, bxdef1, train;
function StaticSaddleTank (iObj) {
super();
linkId = "SaddleTank";
initObj = iObj;
bcount = 1;
bxdef1 = 0;
train = initObj.train;
train.segments.push(this);
}
}
Symbol 3432 MovieClip [__Packages.rr.train.statics.StaticSuperChief] Frame 0
class rr.train.statics.StaticSuperChief extends rr.train.statics.StaticLocomotive
{
var linkId, initObj, bcount, bxdef1, train;
function StaticSuperChief (iObj) {
super();
linkId = "SuperChief";
initObj = iObj;
bcount = 1;
bxdef1 = -14;
train = initObj.train;
train.segments.push(this);
}
}
Symbol 3433 MovieClip [__Packages.rr.train.statics.StaticDragon] Frame 0
class rr.train.statics.StaticDragon extends rr.train.statics.StaticLocomotive
{
var linkId, initObj, bcount, bxdef1, bxdef2, train;
function StaticDragon (iObj) {
super();
linkId = "Dragon";
initObj = iObj;
bcount = 2;
bxdef1 = -30;
bxdef2 = 30;
train = initObj.train;
train.segments.push(this);
}
}
Symbol 3434 MovieClip [__Packages.rr.train.statics.StaticPennsylvania] Frame 0
class rr.train.statics.StaticPennsylvania extends rr.train.statics.StaticLocomotive
{
var linkId, initObj, bcount, bxdef1, bxdef2, train;
function StaticPennsylvania (iObj) {
super();
linkId = "Pennsylvania";
initObj = iObj;
bcount = 2;
bxdef1 = -8;
bxdef2 = 8;
train = initObj.train;
train.segments.push(this);
}
}
Symbol 3435 MovieClip [__Packages.rr.train.Wagon1] Frame 0
class rr.train.Wagon1 extends rr.train.TrainWagon
{
var linkId, initObj;
function Wagon1 (iObj) {
super();
linkId = "Wagon1";
initObj = iObj;
}
}
Symbol 3436 MovieClip [__Packages.rr.train.Wagon2] Frame 0
class rr.train.Wagon2 extends rr.train.TrainWagon
{
var linkId, initObj;
function Wagon2 (iObj) {
super();
linkId = "Wagon2";
initObj = iObj;
}
}
Symbol 3437 MovieClip [__Packages.rr.train.Wagon3] Frame 0
class rr.train.Wagon3 extends rr.train.TrainWagon
{
var linkId, initObj;
function Wagon3 (iObj) {
super();
linkId = "Wagon3";
initObj = iObj;
}
}
Symbol 3438 MovieClip [__Packages.rr.train.Wagon4] Frame 0
class rr.train.Wagon4 extends rr.train.TrainWagon
{
var linkId, initObj;
function Wagon4 (iObj) {
super();
linkId = "Wagon4";
initObj = iObj;
}
}
Symbol 3439 MovieClip [__Packages.rr.train.DropWagon] Frame 0
class rr.train.DropWagon extends rr.train.TrainSegment
{
var segmentType, prev, reAffirm, isconnected, dfeel, length, xspeed, yspeed, x, y, damage, tdisconn, isdead, render, speed, isstunned, checkStun, events, next, killlevel, explode;
function DropWagon () {
super();
}
function init() {
segmentType = "dropwagon";
super.init();
prev = _global.train.lastsegment;
prev.next = this;
reAffirm();
isconnected = true;
dfeel = length / 2;
xspeed = (yspeed = 0);
x = (y = 0);
damage = 0;
tdisconn = getTimer();
_global.train.onConnectionChanged();
}
function update() {
if (isdead) {
render();
return(undefined);
}
if (!isconnected) {
var _local2 = 0.05;
if (speed != 0) {
speed = ((Math.abs(speed) <= _local2) ? 0 : (((0 > speed) ? (speed + _local2) : (speed - _local2))));
}
rr.train.TrainUtils.updateRailPosition(this);
} else {
speed = prev.speed;
rr.train.TrainUtils.updateRailPosition(this);
}
if (isstunned) {
checkStun();
} else {
events.dispatchEvent({target:this, type:"onUpdate"});
}
}
function die() {
if (isdead) {
return(undefined);
}
isdead = true;
next.disconnect();
disconnect();
damage = killlevel;
events.dispatchEvent({type:"onTrainWagonDie", target:this});
explode();
}
function disconnect() {
if (!prev) {
return(undefined);
}
prev.next = undefined;
prev = undefined;
isconnected = false;
_global.train.onConnectionChanged();
}
}
Symbol 3440 MovieClip [__Packages.rr.train.Passenger] Frame 0
class rr.train.Passenger extends rr.train.DropWagon
{
var linkId, initObj, init;
function Passenger (iObj) {
super();
linkId = "Passenger";
initObj = iObj;
init();
}
}
Symbol 3441 MovieClip [__Packages.rr.train.PassengerArmored] Frame 0
class rr.train.PassengerArmored extends rr.train.DropWagon
{
var linkId, initObj, init;
function PassengerArmored (iObj) {
super();
linkId = "PassengerArmored";
initObj = iObj;
init();
}
}
Symbol 3442 MovieClip [__Packages.rr.train.ABomb] Frame 0
class rr.train.ABomb extends rr.train.DropWagon
{
var linkId, initObj, init;
function ABomb (iObj) {
super();
linkId = "ABomb";
initObj = iObj;
init();
}
}
Symbol 3443 MovieClip [__Packages.rr.train.TankTrailer] Frame 0
class rr.train.TankTrailer extends rr.train.DropWagon
{
var linkId, initObj, init;
function TankTrailer (iObj) {
super();
linkId = "TankTrailer";
initObj = iObj;
init();
}
}
Symbol 3444 MovieClip [__Packages.rr.train.statics.StaticTrainWagon] Frame 0
class rr.train.statics.StaticTrainWagon extends rr.train.statics.StaticTrainSegment
{
var segmentType, weapons, initObj, checkRender, isstunned, checkStun, events, isdead, damage, killlevel, explode;
function StaticTrainWagon () {
super();
}
function init() {
segmentType = "wagon";
weapons = new Array();
super.init();
if (initObj.wp) {
addWeapons(initObj.wp);
}
}
function update() {
checkRender();
if (isstunned) {
checkStun();
}
events.dispatchEvent({target:this, type:"onUpdate"});
}
function addWeapons(w) {
var _local4 = w.length;
var _local2 = 0;
while (_local2 < _local4) {
var _local3 = w[_local2];
_local3.parent = this;
rr.train.TrainUtils.createStaticWeapon(_local3);
_local2++;
}
}
function removeWeapon(obj) {
var _local3 = weapons.length;
var _local2 = 0;
while (_local2 < _local3) {
if (weapons[_local2] == obj) {
delete weapons[_local2];
weapons.splice(_local2, 1);
break;
}
_local2++;
}
}
function addDamage(dmg) {
if (isdead) {
return(undefined);
}
super.addDamage(dmg);
var _local4 = weapons.length;
var _local3 = 0;
while (_local3 < _local4) {
weapons[_local3].addDamage(dmg);
_local3++;
}
}
function die() {
if (isdead) {
return(undefined);
}
isdead = true;
var _local3 = weapons.length;
var _local2 = 0;
while (_local2 < _local3) {
weapons[_local2].die();
_local2++;
}
damage = killlevel;
explode();
}
}
Symbol 3445 MovieClip [__Packages.rr.train.statics.StaticWagon1] Frame 0
class rr.train.statics.StaticWagon1 extends rr.train.statics.StaticTrainWagon
{
var linkId, initObj, train;
function StaticWagon1 (iObj) {
super();
linkId = "Wagon1";
initObj = iObj;
train = initObj.train;
train.segments.push(this);
}
}
Symbol 3446 MovieClip [__Packages.rr.train.statics.StaticWagon2] Frame 0
class rr.train.statics.StaticWagon2 extends rr.train.statics.StaticTrainWagon
{
var linkId, initObj, train;
function StaticWagon2 (iObj) {
super();
linkId = "Wagon2";
initObj = iObj;
train = initObj.train;
train.segments.push(this);
}
}
Symbol 3447 MovieClip [__Packages.rr.train.statics.StaticWagon3] Frame 0
class rr.train.statics.StaticWagon3 extends rr.train.statics.StaticTrainWagon
{
var linkId, initObj, train;
function StaticWagon3 (iObj) {
super();
linkId = "Wagon3";
initObj = iObj;
train = initObj.train;
train.segments.push(this);
}
}
Symbol 3448 MovieClip [__Packages.rr.train.statics.StaticPassenger] Frame 0
class rr.train.statics.StaticPassenger extends rr.train.statics.StaticTrainWagon
{
var linkId, initObj, train;
function StaticPassenger (iObj) {
super();
linkId = "Passenger";
initObj = iObj;
train = initObj.train;
train.segments.push(this);
}
}
Symbol 3449 MovieClip [__Packages.rr.train.statics.StaticPassengerArmored] Frame 0
class rr.train.statics.StaticPassengerArmored extends rr.train.statics.StaticTrainWagon
{
var linkId, initObj, train;
function StaticPassengerArmored (iObj) {
super();
linkId = "PassengerArmored";
initObj = iObj;
train = initObj.train;
train.segments.push(this);
}
}
Symbol 3450 MovieClip [__Packages.rr.train.statics.StaticTankTrailer] Frame 0
class rr.train.statics.StaticTankTrailer extends rr.train.statics.StaticTrainWagon
{
var linkId, initObj, train;
function StaticTankTrailer (iObj) {
super();
linkId = "TankTrailer";
initObj = iObj;
train = initObj.train;
train.segments.push(this);
}
}
Symbol 3451 MovieClip [__Packages.rr.train.weapons.SmallCannon] Frame 0
class rr.train.weapons.SmallCannon extends rr.train.weapons.TrainWeapon
{
var linkId, initObj, init;
function SmallCannon (iObj) {
super();
linkId = "SmallCannon";
initObj = iObj;
init();
}
}
Symbol 3452 MovieClip [__Packages.rr.train.weapons.MediumCannon] Frame 0
class rr.train.weapons.MediumCannon extends rr.train.weapons.TrainWeapon
{
var linkId, initObj, init;
function MediumCannon (iObj) {
super();
linkId = "MediumCannon";
initObj = iObj;
init();
}
}
Symbol 3453 MovieClip [__Packages.rr.train.weapons.SmallFastCannon] Frame 0
class rr.train.weapons.SmallFastCannon extends rr.train.weapons.TrainWeapon
{
var linkId, initObj, init, tfire, lastFired, rot, tarRot, mov, gunsound;
function SmallFastCannon (iObj) {
super();
linkId = "SmallFastCannon";
initObj = iObj;
init();
}
function fire() {
if ((getTimer() - lastFired) < tfire) {
return(undefined);
}
if (Math.abs(tarRot - rot) > 20) {
return(undefined);
}
lastFired = getTimer();
mov.barrel_mc.gotoAndPlay("shoot");
_global.sounds.playSound(gunsound);
var _local3 = rr.utils.MathUtils.transCoord(-3.5, 20, this);
rr.ammo.AmmoUtils.createAmmo({type:linkId, parentLinkId:linkId, x:_local3.x, y:_local3.y, rot:rot});
_local3 = rr.utils.MathUtils.transCoord(4, 20, this);
rr.ammo.AmmoUtils.createAmmo({type:linkId, parentLinkId:linkId, x:_local3.x, y:_local3.y, rot:rot});
}
}
Symbol 3454 MovieClip [__Packages.rr.train.weapons.RocketLauncher] Frame 0
class rr.train.weapons.RocketLauncher extends rr.train.weapons.TrainWeapon
{
var linkId, initObj, init, tfire, lastFired, mov, gunsound, rot;
function RocketLauncher (iObj) {
super();
linkId = "RocketLauncher";
initObj = iObj;
init();
}
function fire() {
if ((getTimer() - lastFired) < tfire) {
return(undefined);
}
lastFired = getTimer();
mov.barrel_mc.gotoAndPlay("shoot");
_global.sounds.playSound(gunsound);
launchRocket(1);
rr.utils.Delegate.callDelayed(this, launchRocket, 200, 2);
}
function launchRocket(id) {
if (_global.timer.stopped) {
return(undefined);
}
var _local3;
if (id == 1) {
_local3 = rr.utils.MathUtils.transCoord(-3, 7.5, this);
} else {
_local3 = rr.utils.MathUtils.transCoord(3, 7.5, this);
}
rr.ammo.AmmoUtils.createAmmo({type:linkId, x:_local3.x, y:_local3.y, rot:rot});
}
}
Symbol 3455 MovieClip [__Packages.rr.train.statics.StaticTrainWeapon] Frame 0
class rr.train.statics.StaticTrainWeapon extends rr.BaseClass
{
var parent, initObj, uid, dfeel, linkId, dfire, dfiremin, tfire, rotspeed, killlevel, destroydelay, sound, gunsound, explodesound, lbarrel, ddetect, x, y, damage, isdead, rot, lastFired, isdestroyed, dplane, mov, tarRot, sin, pi, cos;
function StaticTrainWeapon () {
super();
}
function init() {
parent = initObj.parent;
parent.weapons.push(this);
uid = initObj.uid;
dfeel = rr.conf.Config.getObjectValue(linkId, "feelerradius");
dfire = rr.conf.Config.getObjectValue(linkId, "shootingdistance");
dfiremin = rr.conf.Config.getObjectValue(linkId, "shootingdistancemin");
tfire = rr.conf.Config.getObjectValue(linkId, "shootinginterval");
rotspeed = rr.conf.Config.getObjectValue(linkId, "rotationspeed");
killlevel = rr.conf.Config.getObjectValue(linkId, "killlevel");
destroydelay = rr.conf.Config.getObjectValue(linkId, "destroydelay");
sound = rr.conf.Config.getObjectValue(linkId, "sound");
gunsound = rr.conf.Config.getObjectValue(linkId, "gunsound");
explodesound = rr.conf.Config.getObjectValue(linkId, "explodesound");
lbarrel = rr.conf.Config.getObjectValue(linkId, "barrellength");
ddetect = rr.conf.Config.getObjectValue(linkId, "detectiondistance");
x = initObj.x;
y = initObj.y;
damage = 0;
isdead = false;
rot = 0;
lastFired = getTimer();
parent.addEventListener("onUpdate", this);
}
function onUpdate() {
if (isdestroyed) {
return(undefined);
}
if (_global.plane == undefined) {
checkRender();
return(undefined);
}
if (_global.plane.isdead) {
checkRender();
return(undefined);
}
if (isdead) {
checkRender();
return(undefined);
}
dplane = rr.utils.MathUtils.getDistance(x, y, _global.plane.x, _global.plane.y);
if (!parent.isstunned) {
if (dplane <= dfire) {
if (dplane >= dfiremin) {
fire();
}
}
}
checkRender();
updateAfterEvent();
}
function render() {
if (!mov) {
createMov();
}
aimAtTarget();
mov._x = x - _global.camera.left;
mov._y = y - _global.camera.top;
mov._rotation = rot;
}
function checkRender() {
if (parent.isRendered) {
render();
} else if (mov) {
clearMov();
}
}
function createMov() {
var _local3 = rr.utils.ClipUtils.getFreeDepth(_global.stage.mov, this);
mov = _global.stage.mov.attachMovie(linkId, rr.utils.StringUtils.getUniqueName(), _local3, {parent:this});
checkNightMode();
}
function clearMov() {
mov.removeMovieClip();
delete mov;
}
function checkNightMode() {
if (_global.map.nightmap) {
rr.utils.ClipUtils.setTint(mov.base_mc, 0, 50);
rr.utils.ClipUtils.setTint(mov.barrel_mc.base_mc, 0, 50);
}
}
function aimAtTarget() {
if (parent.isstunned) {
return(undefined);
}
if (_global.plane == undefined) {
return(undefined);
}
if (_global.plane.isdead) {
return(undefined);
}
var _local6 = rr.utils.Math2.Bearing(x, y, _global.plane.x, _global.plane.y);
var _local3 = (_local6 + 360) % 360;
var _local4 = (rot + 360) % 360;
if ((_local3 - _local4) > 180) {
_local3 = _local3 - 360;
} else if ((_local3 - _local4) < -180) {
_local3 = _local3 + 360;
}
if (_local3 > _local4) {
_local4 = _local4 + rotspeed;
} else {
_local4 = _local4 - rotspeed;
}
var _local5 = rr.utils.MathUtils.angDiff(_local4, _local3);
if ((_local5 <= rotspeed) || ((360 - _local5) <= rotspeed)) {
rot = _local3;
} else {
rot = _local4;
}
}
function fire() {
if ((getTimer() - lastFired) < tfire) {
return(undefined);
}
if (Math.abs(tarRot - rot) > 20) {
return(undefined);
}
lastFired = getTimer();
mov.barrel_mc.gotoAndPlay("shoot");
_global.sounds.playSound(gunsound);
var _local4 = x + (sin((rot * pi) / 180) * lbarrel);
var _local3 = y - (cos((rot * pi) / 180) * lbarrel);
rr.ammo.AmmoUtils.createAmmo({type:linkId, parentLinkId:linkId, x:_local4, y:_local3, rot:rot});
}
function addDamage(dmg) {
if (isdead) {
return(undefined);
}
if (!dmg) {
return(undefined);
}
damage = damage + dmg;
if (damage >= killlevel) {
damage = killlevel;
die();
}
}
function die() {
if (isdead) {
return(undefined);
}
isdead = true;
render();
_global.sounds.playExplodeSound(explodesound, 100, 100, 1500, x, y);
mov.gotoAndPlay("explode");
rr.utils.Delegate.callDelayed(this, destroy, destroydelay);
}
function destroy() {
if (isdestroyed) {
return(undefined);
}
isdestroyed = true;
mov.removeMovieClip();
parent.removeWeapon(this);
_global.stage.removeObject(this);
}
}
Symbol 3456 MovieClip [__Packages.rr.train.statics.StaticSmallCannon] Frame 0
class rr.train.statics.StaticSmallCannon extends rr.train.statics.StaticTrainWeapon
{
var linkId, initObj, init;
function StaticSmallCannon (iObj) {
super();
linkId = "SmallCannon";
initObj = iObj;
init();
}
}
Symbol 3457 MovieClip [__Packages.rr.train.statics.StaticMediumCannon] Frame 0
class rr.train.statics.StaticMediumCannon extends rr.train.statics.StaticTrainWeapon
{
var linkId, initObj, init;
function StaticMediumCannon (iObj) {
super();
linkId = "MediumCannon";
initObj = iObj;
init();
}
}
Symbol 3458 MovieClip [__Packages.rr.building.Building] Frame 0
class rr.building.Building extends rr.BaseUnit
{
var initObj, linkId, x, y, rot, type, dfeel, explodedelay, alt, population, uid, bmp, mov, explosionset, isdestroyed, destroy, isexploded, explodesound, size, backup_bmp, rect, pi, back_rect;
function Building (iObj) {
super();
initObj = iObj;
init();
}
function init() {
linkId = initObj.lid;
super.init();
x = initObj.x;
y = initObj.y;
rot = initObj.r;
type = rr.conf.Config.getObjectValue(linkId, "type");
dfeel = rr.conf.Config.getObjectValue(linkId, "feelerradius");
explodedelay = rr.conf.Config.getObjectValue(linkId, "explodedelay");
alt = rr.conf.Config.getObjectValue(linkId, "height");
population = rr.conf.Config.getObjectValue(linkId, "population");
var _local4 = _global.map.getCellByPos(x, y);
_local4.addStatic(uid);
_global.stage.buildings.push(uid);
createBmp();
}
function isLineHit(hitline_mc) {
var _local4;
var _local3 = _global.stage.hitmov.createEmptyMovieClip(rr.utils.StringUtils.getUniqueName(), _global.stage.hitmov.getNextHighestDepth());
_local3.attachBitmap(bmp, 10);
_local3._x = (x - _global.camera.left) - (bmp.width / 2);
_local3._y = (y - _global.camera.top) - (bmp.height / 2);
_local4 = rr.utils.HitTest.isLineHit(_local3, hitline_mc);
_local3.removeMovieClip();
return(_local4);
}
function update() {
if (mov._width) {
render();
} else if (explosionset) {
if (!isdestroyed) {
var _local3 = _global.map.getCellByPos(x, y);
_local3.removeStatic(uid);
destroy();
}
}
}
function render() {
mov._x = x - _global.camera.left;
mov._y = y - _global.camera.top;
}
function createMov() {
var _local3 = rr.utils.ClipUtils.getFreeDepth(_global.stage.mov, this);
mov = _global.stage.mov.attachMovie(linkId, uid, _local3);
mov._x = x - _global.camera.left;
mov._y = y - _global.camera.top;
mov._rotation = rot;
}
function die() {
super.die();
explode();
}
function explode() {
if (isexploded) {
return(undefined);
}
isexploded = true;
_global.populationshot = _global.populationshot + population;
createMov();
_global.sounds.playExplodeSound(explodesound, 100, 100, 1000, x, y);
rr.utils.Delegate.callDelayed(this, setExploded, explodedelay);
}
function setExploded() {
explosionset = true;
var _local3 = new flash.geom.Point(x - (size / 2), y - (size / 2));
_global.map.map_bmp.copyPixels(backup_bmp, rect, _local3, null, null, true);
createBmp();
}
function createBmp() {
var _local3;
if (isexploded) {
_local3 = flash.display.BitmapData.loadBitmap(linkId + "_exploded.png");
} else {
_local3 = flash.display.BitmapData.loadBitmap(linkId + ".png");
}
if (_global.map.nightmap) {
rr.utils.ClipUtils.setBmpTint(_local3, 0, 60);
}
size = Math.sqrt(Math.pow(_local3.width, 2) + Math.pow(_local3.height, 2)) + (alt * 2);
bmp.dispose();
bmp = new flash.display.BitmapData(size, size, true, 0);
var _local4 = new flash.geom.Matrix();
_local4.translate((-_local3.width) / 2, (-_local3.height) / 2);
_local4.rotate((rr.utils.MathUtils.formatAngle(rot) / 180) * pi);
_local4.translate((size / 2) + alt, (size / 2) + alt);
var _local5 = new flash.geom.ColorTransform();
_local5.rgb = 0;
_local5.alphaMultiplier = 0.3;
bmp.draw(_local3, _local4, _local5);
_local4.translate(-alt, -alt);
bmp.draw(_local3, _local4);
rect = new flash.geom.Rectangle(0, 0, size, size);
if (!isexploded) {
backup_bmp = new flash.display.BitmapData(size, size, true, 0);
back_rect = new flash.geom.Rectangle(x - (size / 2), y - (size / 2), size, size);
backup_bmp.copyPixels(_global.map.map_bmp, back_rect, new flash.geom.Point(0, 0), null, null, true);
}
var _local6 = new flash.geom.Point(x - (size / 2), y - (size / 2));
rect = new flash.geom.Rectangle(0, 0, size, size);
_global.map.map_bmp.copyPixels(bmp, rect, _local6, null, null, true);
if (isexploded) {
bmp.dispose();
delete bmp;
backup_bmp.dispose();
delete backup_bmp;
}
_local3.dispose();
}
}
Symbol 3459 MovieClip [__Packages.rr.control.LevelLoader] Frame 0
class rr.control.LevelLoader extends rr.BaseClip
{
var _visible, ldr_txt, gotoAndStop, swapDepths;
function LevelLoader () {
super();
_visible = false;
}
function init() {
ldr_txt.text = "INITIALIZING";
gotoAndStop(0);
_visible = true;
swapDepths(_global.root.getNextHighestDepth());
}
function show(perc) {
var _local2;
if (perc > 80) {
_local2 = "get ready";
} else {
_local2 = "preparing battleground";
}
ldr_txt.text = _local2.toUpperCase();
gotoAndStop(perc);
_visible = true;
}
function hide() {
_visible = false;
}
}
Symbol 3460 MovieClip [__Packages.rr.control.LevelResult] Frame 0
class rr.control.LevelResult extends rr.BaseClip
{
var pages, stats_mc, highscore_btn, failed_mc, continue_btn, replay_btn, _visible, swapDepths, lvlsuccess, HSYouda_mc, HSMiniClip_mc, HSShockwave_mc, reasontext, items_mc, statsoverall_mc, statsextra_mc, page, accomplished_mc, victorious_mc;
function LevelResult () {
super();
init();
}
function init() {
pages = [0, 3, 3, 3, 2, 3, 2, 2, 0, 0];
stats_mc.save_btn.onPress = rr.utils.Delegate.create(this, doSave);
highscore_btn.onPress = rr.utils.Delegate.create(this, toggleHighScore);
failed_mc.main_btn.onPress = rr.utils.Delegate.create(this, goMain);
failed_mc.replay_btn.onPress = rr.utils.Delegate.create(this, replay);
failed_mc.highscore_btn.onPress = rr.utils.Delegate.create(this, toggleHighScore);
continue_btn.onPress = rr.utils.Delegate.create(this, nextPage);
replay_btn.onPress = rr.utils.Delegate.create(this, replay);
_visible = false;
}
function showResult(success, reason) {
var _local3 = new Sound(this);
if (success) {
_local3.attachSound("Mission Accomplished.wav");
} else {
_local3.attachSound("Mission Failed.wav");
}
_local3.start();
swapDepths(_global.root.getNextHighestDepth());
lvlsuccess = success;
HSYouda_mc.init();
HSMiniClip_mc._visible = false;
HSShockwave_mc._visible = false;
reasontext = "";
continue_btn._visible = false;
highscore_btn._visible = false;
replay_btn._visible = false;
failed_mc._visible = false;
failed_mc.highscore_btn._visible = false;
items_mc._visible = false;
stats_mc._visible = false;
statsoverall_mc._visible = false;
statsextra_mc._visible = false;
stats_mc.save_btn._visible = false;
if (((_global.gametype == "new") || (_global.gametype == "loaded")) || (_global.gametype == "test")) {
if (_global.player.points > 0) {
failed_mc.highscore_btn._visible = true;
}
}
if (success) {
page = 0;
replay_btn._visible = true;
if (((_global.gametype == "new") || (_global.gametype == "loaded")) || (_global.gametype == "test")) {
stats_mc._visible = true;
accomplished_mc._visible = _global.game.levelId < _global.maxlevel;
victorious_mc._visible = _global.game.levelId == _global.maxlevel;
if (_global.superlevel < (_global.game.levelId + 1)) {
var _local4 = SharedObject.getLocal("superlevel");
_local4.data.levelid = _global.game.levelId + 1;
_local4.flush();
_global.superlevel = _local4.data.levelid;
}
if (_global.game.levelId < _global.maxlevel) {
highscore_btn._visible = true;
stats_mc.save_btn._visible = true;
} else {
continue_btn._visible = true;
}
}
if (_global.gametype == "extra") {
accomplished_mc._visible = true;
statsextra_mc._visible = true;
continue_btn._visible = true;
}
setStats();
} else {
if (((_global.gametype == "new") || (_global.gametype == "loaded")) || (_global.gametype == "test")) {
stats_mc._visible = true;
stats_mc.save_btn._visible = false;
if (reason == "train") {
reasontext = "You failed to destroy the train";
}
if (reason == "cash") {
reasontext = "You don't have enough cash left";
}
}
if (_global.gametype == "extra") {
reasontext = "You don't have enough cash left";
statsextra_mc._visible = true;
continue_btn._visible = true;
}
setStats();
failed_mc._visible = true;
}
_visible = true;
}
function setStats() {
stats_mc.reason_txt.text = reasontext.toUpperCase();
stats_mc.time_txt.text = rr.utils.StringUtils.getTimeString(_global.leveltime);
stats_mc.grounds_txt.text = _global.landshot.toString();
stats_mc.airs_txt.text = _global.airshot.toString();
stats_mc.friendlies_txt.text = _global.friendlies.toString();
stats_mc.civilians_txt.text = _global.populationshot.toString();
stats_mc.levelpoints_txt.text = _global.player.levelresult.levelpoints.toString();
stats_mc.levelcash_txt.text = "$ " + rr.utils.StringUtils.formatNumberWithCommas(_global.player.levelresult.levelcash);
stats_mc.totalpoints_txt.text = _global.player.points.toString();
stats_mc.totalcash_txt.text = "$ " + rr.utils.StringUtils.formatNumberWithCommas(_global.player.cash);
statsoverall_mc.time_txt.text = rr.utils.StringUtils.getTimeString(_global.player.time);
statsoverall_mc.grounds_txt.text = _global.player.landshot.toString();
statsoverall_mc.airs_txt.text = _global.player.airshot.toString();
statsoverall_mc.friendlies_txt.text = _global.player.friendlies.toString();
statsoverall_mc.civilians_txt.text = _global.player.populationshot.toString();
statsoverall_mc.totalpoints_txt.text = _global.player.points.toString();
statsoverall_mc.totalcash_txt.text = "$ " + rr.utils.StringUtils.formatNumberWithCommas(_global.player.cash);
statsextra_mc.reason_txt.text = reasontext.toUpperCase();
statsextra_mc.time_txt.text = rr.utils.StringUtils.getTimeString(_global.player.time);
}
function doSave() {
replay_btn._visible = false;
if (_global.player.saveMission()) {
stats_mc.saveresult_mc.gotoAndPlay("success");
nextPage();
} else {
stats_mc.saveresult_mc.gotoAndPlay("failed");
}
}
function nextPage() {
if (_global.gametype == "extra") {
_visible = false;
_global.game.quitGame();
return(undefined);
}
HSYouda_mc.hide();
HSMiniClip_mc._visible = false;
HSShockwave_mc._visible = false;
if (((_global.gametype == "new") || (_global.gametype == "loaded")) || (_global.gametype == "test")) {
if ((page == 0) && (_global.game.levelId == _global.maxlevel)) {
stats_mc._visible = false;
highscore_btn._visible = true;
statsoverall_mc._visible = true;
page = -1;
return(undefined);
}
if (page == -1) {
page = 0;
}
}
page++;
if (_global.game.levelId == _global.maxlevel) {
_visible = false;
if (_global.gameMode == "Demo") {
_global.game.quitGame();
} else {
_global.game.quitGame();
}
return(undefined);
}
if (page > pages[_global.game.levelId]) {
_visible = false;
_global.game.nextLevel();
return(undefined);
}
if (page > 0) {
continue_btn._visible = true;
stats_mc._visible = false;
statsoverall_mc._visible = false;
items_mc.gotoAndStop((_global.game.levelId + "-") + page);
items_mc._visible = true;
}
}
function goMain() {
_visible = false;
_global.game.quitGame();
}
function replay() {
_visible = false;
_global.game.replayLevel();
}
function toggleHighScore() {
if (_global.company == "Youda") {
if (!HSYouda_mc._visible) {
HSYouda_mc.show();
highscore_btn._visible = false;
failed_mc.highscore_btn._visible = false;
}
}
if (_global.company == "MiniClip") {
if (!HSMiniClip_mc._visible) {
_level0.playerpoints = _global.player.points;
HSMiniClip_mc.gotoAndPlay(2);
HSMiniClip_mc._visible = true;
highscore_btn._visible = false;
failed_mc.highscore_btn._visible = false;
}
}
if (_global.company == "Shockwave") {
if (!HSShockwave_mc._visible) {
_global.player.saveMission();
System.security.allowDomain("shockwave.com", "intranet.shockwave.com", "gameblast.shockwave.com", "www.shockwave.com", "dev.shockwave.com", "stage.shockwave.com");
_level0.swHighScoreObject = new Object();
_level0.swHighScoreObject.showTab = "submit";
_level0.swHighScoreObject.gameId = "skies_hs";
_level0.swHighScoreObject.gameTitle = "Skies of War";
_level0.swHighScoreObject.screenWidth = 640;
_level0.swHighScoreObject.screenHeight = 550;
_level0.swHighScoreObject.scoreDescriptor = "points";
_level0.swHighScoreObject.numPlayers = 1;
_level0.swHighScoreObject.player1Score = _global.player.points;
_level0.swHighScoreObject.player2Score = 0;
_level0.swHighScoreObject.player3Score = 0;
_level0.swHighScoreObject.player4Score = 0;
_level0.HSHubURL = "http://www.shockwave.com/content/highscores/scorez-2002.swf";
HSShockwave_mc.gotoAndPlay(2);
HSShockwave_mc._visible = true;
highscore_btn._visible = false;
failed_mc.highscore_btn._visible = false;
}
}
}
}
Symbol 3461 MovieClip [__Packages.rr.MissionMenu] Frame 0
class rr.MissionMenu extends rr.BaseClip
{
var _visible;
function MissionMenu () {
super();
_visible = false;
}
function playMission(id) {
var _local2 = 0;
while (_local2 <= 10) {
this[("mission" + _local2) + "_mc"]._visible = false;
this[("mission" + _local2) + "_mc"].gotoAndStop(1);
_local2++;
}
this[("mission" + id) + "_mc"]._visible = true;
_visible = true;
this[("mission" + id) + "_mc"].gotoAndPlay(1);
}
}
Symbol 3462 MovieClip [__Packages.rr.control.Confirm] Frame 0
class rr.control.Confirm extends rr.BaseClip
{
var _visible, ok_btn, cancel_btn, co, confirm_txt;
function Confirm () {
super();
_global.confirm = this;
init();
}
function init() {
_visible = false;
ok_btn.onPress = rr.utils.Delegate.create(this, closeAndConfirm);
cancel_btn.onPress = rr.utils.Delegate.create(this, close);
}
function showConfirm(obj, func, args) {
var _local5 = args.upgrade;
var _local4 = args.price;
var _local3;
if (_local5) {
var _local6 = _global.planemenu.selectedDisplay.getUpgradeRefund(_local5);
co = new Object();
co.confirm = rr.utils.Delegate.create(obj, func, _local5, _local4);
_local3 = "Upgrading price is $ " + rr.utils.StringUtils.formatNumberWithCommas(_local4);
if (_local6 > 0) {
_local3 = _local3 + (("\rThe present weapons will be removed. \rYou receive $ " + rr.utils.StringUtils.formatNumberWithCommas(_local6)) + " refund.\r");
_local3 = _local3 + "You can re-select the upgraded weapons as you please.";
}
} else {
co = new Object();
co.confirm = rr.utils.Delegate.create(obj, func);
_local3 = "";
_local3 = _local3 + (("\rYou receive $ " + rr.utils.StringUtils.formatNumberWithCommas(_local4)) + " refund for your aircraft and weapons.\r");
_local3 = _local3 + "Are you sure you want to change aircraft?";
}
confirm_txt.text = _local3;
_visible = true;
}
function closeAndConfirm() {
co.confirm();
_visible = false;
}
function close() {
_visible = false;
}
}
Symbol 3463 MovieClip [__Packages.rr.Entry] Frame 0
class rr.Entry
{
function Entry () {
_global.root = _level0;
_global.globalsound = new Sound();
_global.soundTurnedOff = false;
_global.company = "Shockwave";
_global.companylogo = "Shockwave";
_global.youdagames = "";
_global.moregamelink = "";
_global.affiliatebutton = "";
_global.highscorelink = "dummy";
_global.gameMode = "Demo";
_global.maxlevel = ((_global.gameMode == "Demo") ? 6 : 10);
var _local3 = [rr.control.PlaneBoxOrange, rr.control.PlaneBoxRed, rr.control.PlaneBoxBlue, rr.control.PlaneBoxGreen, rr.control.PlaneDisplay, rr.control.Confirm, rr.control.WeaponButton, rr.control.PlaneMenu, rr.MissionMenu, rr.control.BottomMenu, rr.control.MiniMap, rr.control.LevelLoader, rr.control.LevelResult, rr.HSYouda];
var _local2 = new rr.EdgeBlack();
_local2.init();
_global.startmenu = new rr.control.StartMenu();
}
static function main() {
var _local1 = new rr.Entry();
}
}
Symbol 3464 MovieClip [__Packages.rr.EdgeBlack] Frame 0
class rr.EdgeBlack
{
var mov;
function EdgeBlack () {
draw();
}
function draw() {
var _local7 = 500;
var _local4 = -_local7;
var _local6 = 640 + _local7;
var _local3 = -_local7;
var _local5 = 550 + _local7;
mov = _global.root.createEmptyMovieClip("EdgeBlack", _global.root.getNextHighestDepth());
mov.lineStyle(0, 0, 100);
mov.moveTo(_local4, _local3);
mov.beginFill(0, 100);
mov.lineTo(_local6, _local3);
mov.lineTo(_local6, 0);
mov.lineTo(_local4, 0);
mov.lineTo(_local4, _local3);
mov.endFill();
mov.moveTo(_local4, _local5);
mov.beginFill(0, 100);
mov.lineTo(_local6, _local5);
mov.lineTo(_local6, 550);
mov.lineTo(_local4, 550);
mov.lineTo(_local4, _local5);
mov.endFill();
mov.moveTo(_local4, _local3);
mov.beginFill(0, 100);
mov.lineTo(_local4, _local5);
mov.lineTo(0, _local5);
mov.lineTo(0, _local3);
mov.lineTo(_local4, _local3);
mov.endFill();
mov.moveTo(_local6, _local3);
mov.beginFill(0, 100);
mov.lineTo(_local6, _local5);
mov.lineTo(640, _local5);
mov.lineTo(640, _local3);
mov.lineTo(_local6, _local3);
mov.endFill();
}
function init() {
mov.swapDepths(_global.root.getNextHighestDepth());
}
function clear() {
mov.removeMovieClip();
}
}
Symbol 3465 MovieClip [__Packages.rr.control.StartMenu] Frame 0
class rr.control.StartMenu extends rr.BaseClip
{
var mov, getURL, theme_mc, themeSound;
function StartMenu () {
super();
init();
}
function init() {
rr.utils.Delegate.callDelayed(this, show, 100);
}
function onButtonPress(command) {
mov.HSShockwave_mc._visible = false;
if (command == "testgame") {
_global.gametype = "test";
_global.testcash = Number(mov.playercash_txt.text);
_global.testlevel = Number(mov.levelId_txt.text);
fadeTheme();
hide();
_global.game = new rr.Game();
}
if (command == "newgame") {
fadeTheme();
hide();
_global.gametype = "new";
_global.game = new rr.Game();
}
if (command == "continuegame") {
fadeTheme();
hide();
_global.gametype = "loaded";
_global.game = new rr.Game();
}
if (command == "instructions") {
showScreen(mov.instructions_mc);
}
if (command == "viewhighscore") {
System.security.allowDomain("shockwave.com", "intranet.shockwave.com", "gameblast.shockwave.com", "www.shockwave.com", "dev.shockwave.com", "stage.shockwave.com");
_level0.swHighScoreObject = new Object();
_level0.swHighScoreObject.showTab = "view";
_level0.swHighScoreObject.gameId = "skies_hs";
_level0.swHighScoreObject.gameTitle = "Skies of War";
_level0.swHighScoreObject.screenWidth = 640;
_level0.swHighScoreObject.screenHeight = 550;
_level0.swHighScoreObject.player1Score = 0;
_level0.swHighScoreObject.player2Score = 0;
_level0.swHighScoreObject.player3Score = 0;
_level0.swHighScoreObject.player4Score = 0;
_level0.swHighScoreObject.scoreDescriptor = "points";
_level0.swHighScoreObject.numPlayers = 1;
_level0.HSHubURL = "http://www.shockwave.com/content/highscores/scorez-2002.swf";
mov.HSShockwave_mc.gotoAndPlay(2);
mov.HSShockwave_mc._visible = true;
}
if (command == "moregames") {
(getURL(_global.moregamelink, "_blank"));// not popped
}
if (command == "extra") {
showScreen(mov.extra_mc);
}
if (command == "getfullversion") {
showScreen(mov.buyfull_mc);
}
}
function onButtonOver(command) {
mov.overtext_mc.gotoAndPlay(command);
}
function onButtonOut() {
mov.overtext_mc.gotoAndPlay("default");
}
function playExtraMission(id) {
fadeTheme();
hide();
mov.extra_mc._visible = false;
_global.gametype = "extra";
_global.extraLevelId = 10 + id;
_global.game = new rr.Game();
}
function show(gotoBuy) {
mov = _global.root.attachMovie("StartMenu", "startmenu_mc", _global.root.getNextHighestDepth());
if (gotoBuy) {
mov._visible = false;
}
mov.extra_mc._visible = false;
mov.instructions_mc._visible = false;
mov.buyfull_mc._visible = false;
mov.HSShockwave_mc._visible = false;
mov.viewhighscore_btn._visible = (_global.highscorelink != undefined) && (_global.highscorelink != "");
var _local4 = SharedObject.getLocal("savedmission");
if (_local4.data.savedmission.levelid > 1) {
mov.continuegame_btn.enabled = true;
mov.continuegame_btn._alpha = 100;
} else {
mov.continuegame_btn.enabled = false;
mov.continuegame_btn._alpha = 50;
}
var _local3 = SharedObject.getLocal("superlevel");
if (_local3.data.levelid == undefined) {
_local3.data.levelid = 1;
_local3.flush();
}
_global.superlevel = _local3.data.levelid;
mov.newgame_btn.onPress = rr.utils.Delegate.create(this, onButtonPress, "newgame");
mov.continuegame_btn.onPress = rr.utils.Delegate.create(this, onButtonPress, "continuegame");
mov.instructions_btn.onPress = rr.utils.Delegate.create(this, onButtonPress, "instructions");
mov.viewhighscore_btn.onPress = rr.utils.Delegate.create(this, onButtonPress, "viewhighscore");
mov.moregames_btn.onPress = rr.utils.Delegate.create(this, onButtonPress, "moregames");
mov.full_btn.onPress = rr.utils.Delegate.create(this, onButtonPress, "getfullversion");
mov.single_btn.onPress = rr.utils.Delegate.create(this, onButtonPress, "extra");
mov.newgame_btn.onRollOver = rr.utils.Delegate.create(this, onButtonOver, "newgame");
mov.continuegame_btn.onRollOver = rr.utils.Delegate.create(this, onButtonOver, "continuegame");
mov.instructions_btn.onRollOver = rr.utils.Delegate.create(this, onButtonOver, "instructions");
mov.viewhighscore_btn.onRollOver = rr.utils.Delegate.create(this, onButtonOver, "viewhighscores");
mov.moregames_btn.onRollOver = rr.utils.Delegate.create(this, onButtonOver, "moregames");
mov.full_btn.onRollOver = rr.utils.Delegate.create(this, onButtonOver, "getfullversion");
mov.single_btn.onRollOver = rr.utils.Delegate.create(this, onButtonOver, "extra");
mov.newgame_btn.onRollOut = rr.utils.Delegate.create(this, onButtonOut);
mov.continuegame_btn.onRollOut = rr.utils.Delegate.create(this, onButtonOut);
mov.instructions_btn.onRollOut = rr.utils.Delegate.create(this, onButtonOut);
mov.viewhighscore_btn.onRollOut = rr.utils.Delegate.create(this, onButtonOut);
mov.moregames_btn.onRollOut = rr.utils.Delegate.create(this, onButtonOut);
mov.full_btn.onRollOut = rr.utils.Delegate.create(this, onButtonOut);
mov.single_btn.onRollOut = rr.utils.Delegate.create(this, onButtonOut);
mov.extra_mc.cancel_btn.onPress = rr.utils.Delegate.create(this, closeScreens);
mov.instructions_mc.main_btn.onPress = rr.utils.Delegate.create(this, closeScreens);
mov.buyfull_mc.main_btn.onPress = rr.utils.Delegate.create(this, closeScreens);
startTheme();
setExtraScreen();
if (gotoBuy) {
rr.utils.Delegate.callDelayed(this, showScreen, 50, mov.buyfull_mc);
}
mov.test_btn.onPress = rr.utils.Delegate.create(this, onButtonPress, "testgame");
}
function setExtraScreen() {
var _local5 = mov.extra_mc;
var _local3 = 1;
while (_local3 <= 3) {
var _local4 = ((_local3 == 2) ? 3 : (((_local3 == 3) ? 5 : 1)));
_local5["mission" + _local3]._alpha = ((_global.superlevel > _local4) ? 100 : 40);
_local5["complete" + _local3].text = ((_global.superlevel > _local4) ? "" : (("(First complete mission " + _local4) + ")"));
_local5["lock" + _local3]._visible = ((_global.superlevel > _local4) ? false : true);
_local5["but" + _local3]._visible = ((_global.superlevel > _local4) ? true : false);
_local5["but" + _local3].onPress = rr.utils.Delegate.create(this, playExtraMission, _local3);
_local3++;
}
}
function showScreen(mc) {
mov.newgame_btn.enabled = false;
mov.continuegame_btn.enabled = false;
mov.instructions_btn.enabled = false;
mov.viewhighscore_btn.enabled = false;
mov.moregames_btn.enabled = false;
mov.full_btn.enabled = false;
mov.single_btn.enabled = false;
if (mc == mov.buyfull_mc) {
mc.gotoAndPlay(2);
}
mc._visible = true;
mov._visible = true;
}
function closeScreens() {
mov.newgame_btn.enabled = true;
mov.continuegame_btn.enabled = true;
mov.instructions_btn.enabled = true;
mov.viewhighscore_btn.enabled = true;
mov.moregames_btn.enabled = true;
mov.full_btn.enabled = true;
mov.single_btn.enabled = true;
mov.extra_mc._visible = false;
mov.instructions_mc._visible = false;
mov.buyfull_mc._visible = false;
}
function hide() {
_global.game.clear();
delete _global.game;
_global.game = undefined;
mov.removeMovieClip();
}
function startTheme() {
theme_mc = _global.root.createEmptyMovieClip("theme_mc", _global.root.getNextHighestDepth());
themeSound = new Sound(theme_mc);
themeSound.attachSound("Skies of war 1_4.wav");
themeSound.start(1, 10000);
}
function fadeTheme() {
if (!themeSound) {
return(undefined);
}
var _local2 = themeSound.getVolume();
if (_local2 > 0) {
themeSound.setVolume(_local2 - 1);
rr.utils.Delegate.callDelayed(this, fadeTheme, 40);
} else {
themeSound.stop();
delete themeSound;
theme_mc.removeMovieClip();
}
}
}
Symbol 3466 MovieClip [__Packages.rr.Game] Frame 0
class rr.Game extends rr.BaseClass
{
var levelId, levelstarted, levelended, missiontargets;
function Game () {
super();
rr.utils.Delegate.callDelayed(this, init, 500);
}
function init() {
levelId = 0;
_global.player = new rr.Player();
_global.planemenu = _global.root.attachMovie("PlaneMenu", "planemenu_mc", _global.root.getNextHighestDepth());
_global.missionmenu = _global.root.attachMovie("MissionMenu", "missionmenu_mc", _global.root.getNextHighestDepth());
_global.bottommenu = _global.root.attachMovie("BottomMenu", "bottommenu_mc", _global.root.getNextHighestDepth());
_global.levelloader = _global.root.attachMovie("LevelLoader", "levelloader_mc", _global.root.getNextHighestDepth());
_global.levelresult = _global.root.attachMovie("LevelResult", "levelresult_mc", _global.root.getNextHighestDepth());
loadGame();
}
function clear() {
_global.planemenu._visible = false;
_global.missionmenu._visible = false;
_global.bottommenu._visible = false;
_global.levelloader._visible = false;
_global.levelresult._visible = false;
_global.planemenu.removeMovieClip();
_global.missionmenu.removeMovieClip();
_global.bottommenu.removeMovieClip();
_global.levelloader.removeMovieClip();
_global.levelresult.removeMovieClip();
delete _global.planemenu;
delete _global.missionmenu;
delete _global.bottommenu;
delete _global.levelloader;
delete _global.levelresult;
_global.planemenu = undefined;
_global.missionmenu = undefined;
_global.bottommenu = undefined;
_global.levelloader = undefined;
_global.levelresult = undefined;
}
function loadGame() {
if (_global.gametype == "test") {
levelId = _global.testlevel;
_global.player.addCash(_global.testcash);
}
if (_global.gametype == "new") {
levelId = 1;
var _local5 = rr.conf.Config.getGameConf(1);
_global.player.addCash(_local5.startcash);
}
if (_global.gametype == "loaded") {
var _local4 = SharedObject.getLocal("savedmission");
var _local3 = _local4.data.savedmission;
levelId = _local3.levelid;
_global.player.addCash(_local3.cash);
_global.player.addPoints(_local3.points);
_global.player.landshot = _local3.landshot;
_global.player.airshot = _local3.airshot;
_global.player.populationshot = _local3.populationshot;
_global.player.friendlies = _local3.friendlies;
_global.player.time = _local3.time;
_global.player.upGun = _local3.upGun;
_global.player.upAir = _local3.upAir;
_global.player.upGround = _local3.upGround;
_global.player.upBomb = _local3.upBomb;
}
if (_global.gametype == "extra") {
levelId = _global.extraLevelId;
var _local5 = rr.conf.Config.getGameConf(levelId);
_global.player.addCash(100000);
}
_global.gameconf = rr.conf.Config.getGameConf(levelId);
rr.conf.Config.addMapValues();
if (levelId <= 10) {
_global.missionmenu.playMission(levelId);
} else {
startLevel();
}
}
function startLevel() {
levelstarted = false;
levelended = false;
_global.player.setReplayStats();
_global.blackedge = new rr.EdgeBlack();
_global.missionmenu._visible = false;
_global.planemenu.initLevel();
}
function playLevel() {
levelstarted = true;
missiontargets = _global.gameconf.missiontargets;
_global.leveltime = 0;
_global.landshot = 0;
_global.airshot = 0;
_global.populationshot = 0;
_global.stage = new rr.Stage();
_global.timer = new rr.Timer();
_global.sounds = new rr.Sounds();
_global.map = new rr.Map();
_global.aim = new rr.Aim();
_global.weaponmenu = new rr.control.WeaponMenu();
_global.camera = new rr.StageCam();
_global.sounds.init();
_global.stage.init();
_global.levelloader.init();
_global.map.init();
rr.utils.Delegate.callDelayed(_global.stage, _global.stage.createObjects, 200);
}
function play() {
_global.levelloader.hide();
_global.aim.init();
_global.camera.init();
_global.weaponmenu.init();
_global.bottommenu.init();
_global.blackedge.init();
_global.timer.start();
_global.stage._visible = true;
delete _global.gameconf;
_global.gameconf = undefined;
}
function nextLevel() {
clearGameObjects();
_global.bottommenu._visible = false;
levelId++;
_global.gameconf = rr.conf.Config.getGameConf(levelId);
rr.conf.Config.addMapValues();
_global.missionmenu.playMission(levelId);
}
function replayLevel() {
_global.player.getReplayStats();
clearGameObjects();
_global.gameconf = rr.conf.Config.getGameConf(levelId);
rr.conf.Config.addMapValues();
rr.utils.Delegate.callDelayed(this, startLevel, 50);
}
function missionDone() {
if (_global.stage.getEnemyAirfieldCount() > 0) {
return(false);
}
if (_global.stage.getEnemyAirsCount() > 0) {
return(false);
}
if (_global.stage.airs.length > 0) {
return(false);
}
if (_global.train && (_global.train.weaponsLeft())) {
return(false);
}
if (_global.stage.getStaticTrainsCount() > 0) {
return(false);
}
if (_global.stage.getEnemyGroundsCount() > 0) {
return(false);
}
if (_global.stage.getIndustryCount() > 0) {
return(false);
}
return(true);
}
function endLevel(success, reason) {
if (levelended) {
return(undefined);
}
levelended = true;
_global.friendlies = _global.stage.getFriendlyGroundsCount();
_global.timer.stop();
_global.aim.clear();
_global.sounds.stopAll();
_global.sounds.clear();
if (success) {
_global.planemenu.refundPlane();
_global.planemenu.selectedDisplay.clearAndRefund();
rr.utils.Delegate.callDelayed(this, finishLevel, 500, success);
} else {
_global.planemenu.selectedDisplay.clear();
rr.utils.Delegate.callDelayed(this, finishLevel, 2000, success, reason);
}
}
function finishLevel(success, reason) {
clearGameObjects();
_global.player.setMissionResult(success);
_global.levelresult.showResult(success, reason);
_global.bottommenu._visible = false;
}
function quitGame(gotoBuy) {
clearGameObjects();
clear();
_global.startmenu.show(gotoBuy);
}
function clearGameObjects() {
_global.sounds.stopAll();
_global.sounds.clear();
_global.timer.stop();
_global.stage._visible = false;
_global.plane.destroy();
_global.aim.clear();
_global.stage.clear();
_global.blackedge.clear();
delete _global.timer;
delete _global.map;
delete _global.aim;
delete _global.sounds;
delete _global.camera;
delete _global.plane;
delete _global.loc;
delete _global.train;
delete _global.stage;
delete _global.blackedge;
_global.timer = undefined;
_global.map = undefined;
_global.aim = undefined;
_global.sounds = undefined;
_global.camera = undefined;
_global.plane = undefined;
_global.loc = undefined;
_global.train = undefined;
_global.stage = undefined;
_global.blackedge = undefined;
}
function findMissionTarget(type) {
var _local3 = missiontargets.length;
var _local2 = 0;
while (_local2 < _local3) {
if (missiontargets[_local2].type == type) {
return(missiontargets[_local2]);
}
_local2++;
}
}
}
Symbol 3467 MovieClip [__Packages.rr.Player] Frame 0
class rr.Player extends rr.BaseClass
{
var cash, points, landshot, airshot, populationshot, friendlies, upGun, upAir, upGround, upBomb, time, addEventListener, events, levelresult, rpcash, rppoints, rplandshot, rpairshot, rppopulationshot, rpfriendlies, rptime, rpupGun, rpupAir, rpupGround, rpupBomb;
function Player () {
super();
init();
}
function init() {
cash = 0;
points = 0;
landshot = 0;
airshot = 0;
populationshot = 0;
friendlies = 0;
upGun = 1;
upAir = 1;
upGround = 1;
upBomb = 1;
time = 0;
addEventListener("setCash", _global.control);
}
function addCash(amount) {
if ((amount == undefined) || (amount == NaN)) {
return(undefined);
}
cash = Math.round(cash + amount);
if (cash < 0) {
cash = 0;
}
events.dispatchEvent({type:"setCash"});
}
function addPoints(amount) {
points = Math.round(points + amount);
if (points < 0) {
points = 0;
}
}
function setMissionResult(success) {
var _local3 = (((_global.landshot + (_global.airshot * 3)) - (_global.populationshot * 5)) + (_global.friendlies / 2)) + (cash / 1000);
levelresult = new Object();
if (success) {
var _local4 = _global.game.levelId;
if (((_global.gametype == "new") || (_global.gametype == "loaded")) || (_global.gametype == "test")) {
var _local5 = rr.conf.Config.getGameConf(_local4);
if (_local4 < _global.maxlevel) {
var _local6 = rr.conf.Config.getGameConf(_local4 + 1);
levelresult.levelcash = _local6.startcash;
} else {
levelresult.levelcash = _local5.startcash * 2;
}
levelresult.levelpoints = _local5.levelpoints + Math.round((10000 * _local3) / (_global.leveltime / 1000));
} else {
levelresult.levelcash = 0;
levelresult.levelpoints = Math.round((10000 * _local3) / (_global.leveltime / 1000));
}
} else {
levelresult.levelpoints = Math.round((1000 * _local3) / (_global.leveltime / 1000));
levelresult.levelcash = 0;
}
addPoints(levelresult.levelpoints);
addCash(levelresult.levelcash);
landshot = landshot + _global.landshot;
airshot = airshot + _global.airshot;
populationshot = populationshot + _global.populationshot;
friendlies = friendlies + _global.friendlies;
time = time + _global.leveltime;
}
function setReplayStats() {
rpcash = cash;
rppoints = points;
rplandshot = landshot;
rpairshot = airshot;
rppopulationshot = populationshot;
rpfriendlies = friendlies;
rptime = time;
rpupGun = upGun;
rpupAir = upAir;
rpupGround = upGround;
rpupBomb = upBomb;
}
function getReplayStats() {
cash = rpcash;
points = rppoints;
landshot = rplandshot;
airshot = rpairshot;
populationshot = rppopulationshot;
friendlies = rpfriendlies;
time = rptime;
upGun = rpupGun;
upAir = rpupAir;
upGround = rpupGround;
upBomb = rpupBomb;
}
function saveMission() {
var _local3 = new Object();
_local3.levelid = _global.game.levelId + 1;
_local3.cash = cash;
_local3.points = points;
_local3.landshot = landshot;
_local3.airshot = airshot;
_local3.populationshot = populationshot;
_local3.friendlies = friendlies;
_local3.time = time;
_local3.upGun = upGun;
_local3.upAir = upAir;
_local3.upGround = upGround;
_local3.upBomb = upBomb;
var _local4 = SharedObject.getLocal("savedmission");
_local4.data.savedmission = _local3;
return(_local4.flush());
}
function hasCashToFinish() {
var _local5 = 1000;
if ((_global.stage.getEnemyAirfieldCount() > 0) && (!_global.planedefinition.hasPropaganda)) {
_local5 = _local5 + 1100;
}
var _local3 = false;
if (_global.stage.getIndustryCount() > 0) {
_local3 = true;
} else if (_global.stage.getEnemyGroundsCount() > 0) {
_local3 = true;
} else if (_global.stage.getStaticTrainsCount() > 0) {
_local3 = true;
} else if (_global.train && (_global.train.weaponsLeft())) {
_local3 = true;
}
if (_local3) {
_local5 = _local5 + 1000;
}
var _local4 = cash;
if (_global.planemenu.selectedLinkId != undefined) {
_local4 = _local4 + rr.conf.Config.getObjectValue(_global.planemenu.selectedLinkId, "price");
_local4 = _local4 + _global.planemenu.selectedDisplay.getRefund();
}
if (_local4 < _local5) {
return(false);
}
return(true);
}
}
Symbol 3468 MovieClip [__Packages.rr.Stage] Frame 0
class rr.Stage extends rr.BaseClass
{
var tmax, ttot, tcount, areaCount, grounds, airs, ammo, afs, afdefenders, buildings, width, height, hitmov, mov, bg_mc, bg_bmp, clouds_mc, fg_mc, fg_bmp, startbase, clouds, strains, ea_0, clouds_bmp, events;
function Stage () {
super();
}
function init() {
tmax = 0;
ttot = 0;
tcount = 0;
areaCount = 0;
grounds = new Array();
airs = new Array();
ammo = new Array();
afs = new Array();
afdefenders = new Array();
buildings = new Array();
width = 640;
height = 480;
hitmov = _global.root.createEmptyMovieClip("hitmov_mc", _global.root.getNextHighestDepth());
mov = _global.root.createEmptyMovieClip("stage_mc", _global.root.getNextHighestDepth());
bg_mc = mov.createEmptyMovieClip("bg_mc", 10);
bg_bmp = new flash.display.BitmapData(width, height, false, 0);
bg_mc.attachBitmap(bg_bmp, 10);
clouds_mc = mov.createEmptyMovieClip("clouds_mc", rr.conf.ConfBaseDepths.getDepth("CloudLayer"));
createCloudLayer();
if (_global.gameconf.map.foreground) {
fg_mc = mov.createEmptyMovieClip("fg_mc", rr.conf.ConfBaseDepths.getDepth("StageForeground"));
fg_bmp = new flash.display.BitmapData(width, height, true, 0);
fg_mc.attachBitmap(fg_bmp, 10);
}
_global.timer.addEventListener("onTimerTick", this);
}
function createObjects() {
startbase = this["obj_" + afs[0]];
createPlane();
var _local9 = _global.gameconf.ea;
areaCount = _local9.length;
var _local3 = 0;
while (_local3 < areaCount) {
_local9[_local3].id = _local3;
this["ea_" + _local3] = new rr.enemy.EnemyArea(_local9[_local3]);
_local3++;
}
var _local7 = _global.gameconf.bk;
var _local4 = _local7.length;
_local3 = 0;
while (_local3 < _local4) {
_local7[_local3].linkId = "Bunker";
rr.utils.StageUtils.createStageObject(_local7[_local3]);
_local3++;
}
var _local8 = _global.gameconf.rb;
_local4 = _local8.length;
_local3 = 0;
while (_local3 < _local4) {
_local8[_local3].linkId = "RocketBase";
rr.utils.StageUtils.createStageObject(_local8[_local3]);
_local3++;
}
var _local5 = _global.gameconf.bd;
_local4 = _local5.length;
_local3 = 0;
while (_local3 < _local4) {
_local5[_local3].linkId = "Building";
_local5[_local3].lid = rr.conf.Config.translateBuildingCode(_local5[_local3].t);
rr.utils.StageUtils.createStageObject(_local5[_local3]);
_local3++;
}
clouds = new rr.Clouds();
delete _global.train;
_global.train = undefined;
if (_global.gameconf.train) {
_global.train = new rr.train.Train();
}
var _local6 = _global.gameconf.statictrains;
if (_local6) {
strains = new Array();
_local4 = _local6.length;
_local3 = 0;
while (_local3 < _local4) {
_local6[_local3].linkId = "StaticTrain";
strains.push(new rr.train.statics.StaticTrain(_local6[_local3]));
_local3++;
}
}
if (areaCount > 0) {
ea_0.init();
} else {
rr.utils.Delegate.callDelayed(_global.game, _global.game.play, 200);
}
}
function createCloudLayer() {
clouds_bmp = new flash.display.BitmapData(width, height, true, 0);
clouds_mc.attachBitmap(clouds_bmp, 10);
}
function createPlane() {
_global.plane.destroy();
delete _global.plane;
_global.plane = undefined;
rr.utils.StageUtils.createStageObject({linkId:_global.planedefinition.linkId, base:startbase});
events.dispatchEvent({type:"onPlaneCreate"});
}
function onAreaInit(area) {
if (area.id == (areaCount - 1)) {
_global.game.play();
} else {
var _local5 = Math.round((100 * area.id) / (areaCount - 1));
_global.levelloader.show(_local5);
var _local3 = this["ea_" + (area.id + 1)];
rr.utils.Delegate.callDelayed(_local3, _local3.init, 15);
}
}
function onTimerTick() {
_global.leveltime = _global.leveltime + 40;
_global.bottommenu.setTime();
clouds_bmp.dispose();
_global.camera.update();
_global.map.update();
_global.plane.update();
_global.train.update();
var _local4 = afs.length;
var _local3 = 0;
while (_local3 < _local4) {
this["obj_" + afs[_local3]].update();
_local3++;
}
_local4 = airs.length;
_local3 = 0;
while (_local3 < _local4) {
this["obj_" + airs[_local3]].update();
_local3++;
}
_local4 = ammo.length;
_local3 = 0;
while (_local3 < _local4) {
this["obj_" + ammo[_local3]].update();
_local3++;
}
if (strains) {
_local4 = strains.length;
_local3 = 0;
while (_local3 < _local4) {
strains[_local3].update();
_local3++;
}
}
clouds.update();
updateAfterEvent();
}
function removeObject(obj) {
if (obj == _global.plane) {
_global.camera.camRef = startbase;
delete this["obj_" + obj.uid];
delete _global.plane;
_global.plane = undefined;
return(undefined);
}
if (obj instanceof rr.train.TrainSegment) {
if (obj == _global.loc) {
delete this["obj_" + obj.uid];
delete _global.loc;
_global.loc = undefined;
}
delete this["obj_" + obj.uid];
events.dispatchEvent({type:"onTrainObjectDestroyed"});
return(undefined);
}
if (obj instanceof rr.train.weapons.TrainWeapon) {
delete this["obj_" + obj.uid];
events.dispatchEvent({type:"onTrainObjectDestroyed"});
return(undefined);
}
if (obj instanceof rr.train.statics.StaticTrainSegment) {
delete this["obj_" + obj.uid];
events.dispatchEvent({type:"onStaticTrainObjectDestroyed"});
return(undefined);
}
if (obj instanceof rr.train.statics.StaticTrainWeapon) {
delete this["obj_" + obj.uid];
events.dispatchEvent({type:"onStaticTrainObjectDestroyed"});
return(undefined);
}
var _local5;
if (obj instanceof rr.ammo.Ammo) {
_local5 = ammo;
} else if (obj instanceof rr.enemy.GroundUnit) {
_local5 = grounds;
} else if ((obj instanceof rr.plane.EnemyPlane) || (obj instanceof rr.plane.EnemyHeli)) {
_local5 = airs;
} else if (obj instanceof rr.building.Building) {
_local5 = buildings;
} else if (obj instanceof rr.AirfieldDefender) {
_local5 = afdefenders;
}
var _local6 = _local5.length;
var _local3 = 0;
while (_local3 < _local6) {
if (_local5[_local3] == obj.uid) {
_local5.splice(_local3, 1);
break;
}
_local3++;
}
if (obj instanceof rr.building.Building) {
if ((obj.type == "Industry") || (obj.type == "Office")) {
events.dispatchEvent({type:"onIndustryDestroyed"});
}
} else if (obj instanceof rr.enemy.GroundUnit) {
if ((obj.hostility > 0) && (obj.isdead)) {
events.dispatchEvent({type:"onGroundEnemyDestroyed"});
}
} else if ((obj instanceof rr.plane.EnemyPlane) || (obj instanceof rr.plane.EnemyHeli)) {
events.dispatchEvent({type:"onAirEnemyDestroyed"});
}
var _local7 = delete this["obj_" + obj.uid];
}
function clear() {
bg_bmp.dispose();
fg_bmp.dispose();
clouds_bmp.dispose();
delete bg_bmp;
delete fg_bmp;
delete clouds_bmp;
hitmov.removeMovieClip();
mov.removeMovieClip();
}
function clearAmmo() {
var _local2 = new Array();
var _local3 = ammo.length;
var _local4 = 0;
while (_local4 < _local3) {
_local2.push(this["obj_" + ammo[_local4]]);
_local4++;
}
for (_local4 in _local2) {
_local2[_local4].destroy();
}
}
function getIndustryCount() {
var _local4 = 0;
var _local5 = buildings.length;
var _local2 = 0;
while (_local2 < _local5) {
var _local3 = this["obj_" + buildings[_local2]];
if ((_local3.type == "Industry") || (_local3.type == "Office")) {
_local4++;
}
_local2++;
}
return(_local4);
}
function getEnemyGroundsCount() {
var _local7 = 0;
var _local8 = _global.map.cells.length;
var _local6 = 0;
while (_local6 < _local8) {
var _local5 = _global.map["cell_" + _global.map.cells[_local6]];
var _local4 = (_local5.hasRemovables ? (_local5.removables) : (_local5.eiObjects));
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = (_local5.hasRemovables ? (_global.stage["obj_" + _local4[_local2]]) : (_local4[_local2]));
if ((!_local3.isdead) && (_local3.hostility > 0)) {
_local7++;
}
_local2++;
}
_local6++;
}
return(_local7);
}
function getFriendlyGroundsCount() {
var _local7 = 0;
var _local8 = _global.map.cells.length;
var _local6 = 0;
while (_local6 < _local8) {
var _local5 = _global.map["cell_" + _global.map.cells[_local6]];
var _local4 = (_local5.hasRemovables ? (_local5.removables) : (_local5.eiObjects));
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = (_local5.hasRemovables ? (_global.stage["obj_" + _local4[_local2]]) : (_local4[_local2]));
if ((!_local3.isdead) && (_local3.hostility <= 0)) {
_local7++;
}
_local2++;
}
_local6++;
}
return(_local7);
}
function getEnemyAirsCount() {
var _local4 = airs.length;
var _local5 = afs.length;
var _local2 = 0;
while (_local2 < _local5) {
var _local3 = this["obj_" + afs[_local2]];
if (_local3.enemyPlanes) {
_local4 = _local4 + _local3.enemyPlanes.length;
}
_local2++;
}
return(_local4);
}
function getEnemyAirfieldCount() {
var _local4 = 0;
var _local5 = afs.length;
var _local2 = 0;
while (_local2 < _local5) {
var _local3 = this["obj_" + afs[_local2]];
if (_local3.hostility > 0) {
_local4++;
}
_local2++;
}
return(_local4);
}
function getStaticTrainsCount() {
var _local4 = 0;
if (strains) {
var _local5 = strains.length;
var _local2 = 0;
while (_local2 < _local5) {
var _local3 = strains[_local2];
if (_local3.weaponsLeft()) {
_local4++;
}
_local2++;
}
}
return(_local4);
}
}
Symbol 3469 MovieClip [__Packages.rr.Clouds] Frame 0
class rr.Clouds extends rr.BaseClass
{
var clouds, xspeed, yspeed;
function Clouds () {
super();
init();
}
function init() {
clouds = new Array();
var _local4 = _global.map.cols * _global.map.rows;
var _local5 = 1;
xspeed = ((Math.random() < 0.5) ? (_local5) : (-_local5));
yspeed = ((Math.random() < 0.5) ? (_local5) : (-_local5));
var _local3 = 1;
while (_local3 <= _local4) {
addCloud();
_local3++;
}
}
function addCloud() {
var _local4 = new Object();
_local4.x = Math.random() * _global.map.width;
_local4.y = Math.random() * _global.map.height;
var _local9 = 0.5 + (Math.random() * 0.5);
var _local11 = Math.random() * 360;
var _local10 = Math.floor(Math.random() * 3) + 1;
var _local3 = flash.display.BitmapData.loadBitmap(("cloud0" + _local10) + ".png");
if (_global.map.nightmap) {
rr.utils.ClipUtils.setBmpTint(_local3, 0, 50);
}
var _local5 = new flash.geom.Matrix();
_local5.translate((-_local3.width) / 2, (-_local3.height) / 2);
_local5.rotate(_local11);
_local5.scale(_local9, _local9);
_local5.translate(_local3.width + 40, _local3.height + 40);
var _local6 = new flash.display.BitmapData(_local3.width * 2, _local3.height * 2, true, 0);
var _local7 = new flash.geom.ColorTransform();
_local7.rgb = 0;
_local7.alphaMultiplier = 0.4;
_local6.draw(_local3, _local5, _local7);
_local5.translate(-40, -40);
_local6.draw(_local3, _local5);
var _local8 = _local6.getColorBoundsRect(4278190080, 0, false);
_local4.bmp = new flash.display.BitmapData(_local8.width, _local8.height, true, 0);
_local4.bmp.copyPixels(_local6, _local8, new flash.geom.Point(0, 0), null, null, true);
_local4.rect = new flash.geom.Rectangle(0, 0, _local4.bmp.width, _local4.bmp.height);
_local3.dispose();
_local6.dispose();
clouds.push(_local4);
}
function update() {
var _local5 = clouds.length;
var _local4 = 0;
while (_local4 < _local5) {
var _local3 = clouds[_local4];
_local3.x = _local3.x + xspeed;
_local3.y = _local3.y - yspeed;
if (_local3.x < -150) {
_local3.x = _global.map.width + 150;
_local3.y = Math.random() * _global.map.height;
} else if (_local3.x > (_global.map.width + 150)) {
_local3.x = -150;
_local3.y = Math.random() * _global.map.height;
}
if (_local3.y < -150) {
_local3.y = _global.map.height + 150;
_local3.x = Math.random() * _global.map.width;
} else if (_local3.y > (_global.map.height + 150)) {
_local3.y = -150;
_local3.x = Math.random() * _global.map.width;
}
if (rr.utils.MathUtils.getDistance(_local3.x, _local3.y, _global.camera.x, _global.camera.y) < 600) {
renderCloud(_local3);
}
_local4++;
}
}
function renderCloud(c) {
if (_global.stage.clouds_bmp.width == -1) {
_global.stage.createCloudLayer();
}
var _local3 = new flash.geom.Point((c.x - _global.camera.left) - (c.bmp.width / 2), (c.y - _global.camera.top) - (c.bmp.height / 2));
_global.stage.clouds_bmp.copyPixels(c.bmp, c.rect, _local3, null, null, true);
}
}
Symbol 3470 MovieClip [__Packages.rr.train.Train] Frame 0
class rr.train.Train extends rr.BaseClass
{
var segments, speed, lastsegment;
function Train () {
super();
_global.train = this;
init();
}
function init() {
segments = new Array();
var _local9 = _global.gameconf.train.length;
var _local7 = 0;
while (_local7 < _local9) {
if (_global.gameconf.train[_local7].loc) {
speed = _global.gameconf.train[_local7].speed;
rr.train.TrainUtils.createLoc({type:_global.gameconf.train[_local7].loc});
}
_local7++;
}
_local7 = 0;
while (_local7 < _local9) {
var _local4 = _global.gameconf.train[_local7];
if (_local4.wagon) {
var _local5 = 0;
var _local6 = new Array();
var _local3 = 0;
while (_local3 < _local4.weapons.length) {
_local6.push({type:_local4.weapons[_local3], position:_local5});
_local5 = _local5 + Number(rr.conf.Config.getObjectValue(_local4.weapons[_local3], "spaces"));
_local3++;
}
rr.train.TrainUtils.createWagon({type:_local4.wagon, weapons:_local6});
}
_local7++;
}
rr.utils.Delegate.callDelayed(this, initSegments, 50);
}
function update() {
var _local3 = segments.length;
var _local2 = 0;
while (_local2 < _local3) {
segments[_local2].update();
_local2++;
}
}
function initSegments() {
var _local4 = 0;
var _local5 = segments.length;
var _local3 = 0;
while (_local3 < _local5) {
segments[_local3].init();
_local4 = _local4 + (segments[_local3].length - 1);
_local3++;
}
_global.loc.d = _local4 + (_global.loc.length / 2);
_global.loc.reAffirm();
}
function onConnectionChanged() {
var _local3 = _global.loc;
lastsegment = _local3;
while (_local3.next) {
_local3 = _local3.next;
lastsegment = _local3;
}
}
function getTargetSegment() {
var _local3 = new Array();
var _local2 = _global.loc;
_local3.push(_local2);
while (_local2.next) {
_local2 = _local2.next;
_local3.push(_local2);
}
var _local4 = Math.round(Math.random() * (_local3.length - 1));
return(_local3[_local4]);
}
function removeSegment(obj) {
var _local3 = segments.length;
var _local2 = 0;
while (_local2 < _local3) {
if (segments[_local2] == obj) {
segments.splice(_local2, 1);
break;
}
_local2++;
}
onConnectionChanged();
}
function checkObjectHit(obj) {
var _local5 = segments.length;
var _local3 = 0;
while (_local3 <= _local5) {
var _local2 = segments[_local3];
if (rr.utils.MathUtils.getDistance(obj.x, obj.y, _local2.x, _local2.y) <= ((obj.dfeel + _local2.dfeel) - 10)) {
if (rr.utils.HitTest.isShapeHit(obj.mov, _local2.mov)) {
return(_local2);
}
}
_local3++;
}
return(false);
}
function weaponsLeft() {
if (_global.loc) {
return(true);
}
var _local4 = segments.length;
var _local3 = 0;
while (_local3 < _local4) {
if (segments[_local3].weapons.length > 0) {
return(true);
}
_local3++;
}
return(false);
}
}
Symbol 3471 MovieClip [__Packages.rr.train.statics.StaticTrain] Frame 0
class rr.train.statics.StaticTrain extends rr.BaseClass
{
var initObj, segments, loc;
function StaticTrain (iObj) {
super();
initObj = iObj;
init();
}
function init() {
segments = new Array();
var _local4 = initObj.segments.length;
var _local3 = 0;
while (_local3 < _local4) {
var _local2 = initObj.segments[_local3];
if (_local2.loc) {
rr.train.TrainUtils.createStaticLoc({type:_local2.loc, x:_local2.x, y:_local2.y, r:_local2.r, train:this});
}
_local3++;
}
_local3 = 0;
while (_local3 < _local4) {
var _local2 = initObj.segments[_local3];
if (_local2.wagon) {
rr.train.TrainUtils.createStaticWagon({type:_local2.wagon, x:_local2.x, y:_local2.y, r:_local2.r, wp:_local2.weapons, train:this});
}
_local3++;
}
rr.utils.Delegate.callDelayed(this, initSegments, 50);
}
function update() {
var _local3 = segments.length;
var _local2 = 0;
while (_local2 < _local3) {
segments[_local2].update();
_local2++;
}
}
function initSegments() {
var _local3 = segments.length;
var _local2 = 0;
while (_local2 < _local3) {
segments[_local2].init();
_local2++;
}
}
function removeSegment(obj) {
var _local4 = segments.length;
var _local2 = 0;
while (_local2 < _local4) {
if (segments[_local2] == obj) {
segments.splice(_local2, 1);
if (obj == loc) {
loc = undefined;
}
break;
}
_local2++;
}
}
function checkObjectHit(obj) {
var _local5 = segments.length;
var _local3 = 0;
while (_local3 <= _local5) {
var _local2 = segments[_local3];
if (rr.utils.MathUtils.getDistance(obj.x, obj.y, _local2.x, _local2.y) <= ((obj.dfeel + _local2.dfeel) - 10)) {
if (rr.utils.HitTest.isShapeHit(obj.mov, _local2.mov)) {
return(_local2);
}
}
_local3++;
}
return(false);
}
function weaponsLeft() {
if (loc) {
return(true);
}
var _local3 = segments.length;
var _local2 = 0;
while (_local2 < _local3) {
if (segments[_local2].weapons.length > 0) {
return(true);
}
_local2++;
}
return(false);
}
}
Symbol 3472 MovieClip [__Packages.rr.Timer] Frame 0
class rr.Timer extends rr.BaseClass
{
var tickTime, stopped, ival, events;
function Timer () {
super();
tickTime = 40;
}
function start() {
stopped = false;
clearInterval(ival);
ival = setInterval(this, "doTick", tickTime);
events.dispatchEvent({type:"onTimerStart", target:this});
}
function stop() {
clearInterval(ival);
_global.sounds.stopAllLoops();
stopped = true;
events.dispatchEvent({type:"onTimerStop", target:this});
}
function doTick() {
events.dispatchEvent({type:"onTimerTick", target:this});
updateAfterEvent();
}
function setSlowMotion(t) {
tickTime = tickTime * t;
start();
}
function endSlowMotion() {
tickTime = 40;
start();
}
}
Symbol 3473 MovieClip [__Packages.rr.Sounds] Frame 0
class rr.Sounds extends rr.BaseClass
{
var soundcontainer, enemyGunSound, events;
function Sounds () {
super();
_global.sounds = this;
}
function init() {
clear();
soundcontainer = _global.root.createEmptyMovieClip("soundcontainer", _global.root.getNextHighestDepth());
}
function removeSound(uid) {
this[uid].stop();
delete this[uid];
this[uid] = undefined;
soundcontainer[uid].removeMovieClip();
}
function playSound(linkId, vol) {
if (!linkId) {
return(undefined);
}
if (vol == undefined) {
vol = 100;
}
var _local2 = rr.utils.StringUtils.getUniqueName();
var _local3 = soundcontainer.createEmptyMovieClip(_local2, soundcontainer.getNextHighestDepth());
this[_local2] = new Sound(_local3);
this[_local2].attachSound(linkId);
this[_local2].setVolume(vol);
this[_local2].start();
rr.utils.Delegate.callDelayed(this, removeSound, this[_local2].duration, _local2);
return(_local2);
}
function stopSound(uid) {
if (!uid) {
return(undefined);
}
this[uid].stop();
}
function addLoopSound(soundId) {
var _local2 = rr.utils.StringUtils.getUniqueName();
var _local3 = soundcontainer.createEmptyMovieClip(_local2, soundcontainer.getNextHighestDepth());
this[_local2] = new Sound(_local3);
this[_local2].sid = soundId;
this[_local2].isloop = true;
this[_local2].attachSound(soundId);
return(_local2);
}
function playLoopSound(uid, vol) {
if (vol == undefined) {
vol = 100;
}
var _local3 = this[uid].sid;
removeSound(uid);
var _local4 = soundcontainer.createEmptyMovieClip(uid, soundcontainer.getNextHighestDepth());
this[uid] = new Sound(_local4);
this[uid].sid = _local3;
this[uid].isloop = true;
this[uid].isplaying = true;
this[uid].attachSound(_local3);
this[uid].setVolume(vol);
this[uid].start(0, 100000);
}
function stopLoopSound(uid) {
this[uid].stop();
this[uid].isplaying = false;
}
function playLoopingSound(linkId, vol) {
if (!linkId) {
return(undefined);
}
if (vol == undefined) {
vol = 100;
}
var _local2 = rr.utils.StringUtils.getUniqueName();
var _local3 = soundcontainer.createEmptyMovieClip(_local2, soundcontainer.getNextHighestDepth());
this[_local2] = new Sound(_local3);
this[_local2].isloop = true;
this[_local2].attachSound(linkId);
this[_local2].setVolume(vol);
this[_local2].start();
rr.utils.Delegate.callDelayed(this, removeSound, this[_local2].duration, _local2);
return(this[_local2].duration);
}
function stopAll() {
for (var _local3 in this) {
var _local2 = this[_local3];
if (_local2 instanceof Sound) {
this[_local3].stop();
}
}
}
function stopAllLoops() {
for (var _local2 in this) {
if (this[_local2] instanceof Sound) {
if (this[_local2].isloop) {
this[_local2].stop();
}
}
}
}
function clear() {
soundcontainer.removeMovieClip();
for (var _local2 in this) {
if (this[_local2] instanceof Sound) {
trace("clear sound: ");
delete this[_local2];
}
}
for (var _local2 in this) {
if (this[_local2] instanceof Object) {
trace("clear sound Object: ");
delete this[_local2];
}
}
}
function playExplodeSound(soundId, basevol, tailvol, dzero, x, y) {
dzero = 1000;
var _local3 = rr.utils.StringUtils.getUniqueName();
var _local5 = soundcontainer.createEmptyMovieClip(_local3, soundcontainer.getNextHighestDepth());
this[_local3] = new Sound(_local5);
this[_local3].attachSound(soundId);
var _local7 = x - _global.camera.left;
var _local9 = y - _global.camera.top;
var _local6 = rr.utils.MathUtils.getDistance(_local7, _local9, 320, 240);
var _local4 = ((_local6 < 50) ? (basevol) : (basevol - ((basevol * _local6) / dzero)));
if (_local4 < 0) {
_local4 = 0;
}
var _local10 = (_local7 - 320) / 3.2;
this[_local3].setVolume(_local4);
this[_local3].setPan(_local10);
this[_local3].start();
rr.utils.Delegate.callDelayed(this, removeSoundClip, this[_local3].duration, _local5);
if (tailvol > 0) {
playExplodeTail(tailvol);
}
}
function playExplodeTail(vol) {
var _local2 = rr.utils.StringUtils.getUniqueName();
var _local3 = soundcontainer.createEmptyMovieClip(_local2, soundcontainer.getNextHighestDepth());
this[_local2] = new Sound(_local3);
this[_local2].attachSound("BaseXplosionTail2.mp3");
this[_local2].setVolume(vol);
this[_local2].start();
rr.utils.Delegate.callDelayed(this, removeSoundClip, this[_local2].duration, _local3);
}
function removeSoundClip(mc) {
this[mc._name].stop();
delete this[mc._name];
mc.removeMovieClip();
}
function setEnemyGunSound(uid, turnOn) {
if (turnOn) {
if (enemyGunSound == undefined) {
enemyGunSound = uid;
return(true);
}
return(false);
}
if (enemyGunSound == uid) {
enemyGunSound = undefined;
events.dispatchEvent({type:"onEnemyGunSoundRemove"});
return(true);
}
return(false);
}
}
Symbol 3474 MovieClip [__Packages.rr.Map] Frame 0
class rr.Map extends rr.BaseClass
{
var mapId, cols, rows, maptype, foreground, nightmap, clipcols, cliprows, startcol, startrow, left, top, width, height, map_bmp, fg_bmp, cells, rc, rs;
function Map () {
super();
}
function init() {
trace("init: map ");
mapId = _global.gameconf.map.mapid;
cols = _global.gameconf.map.cols;
rows = _global.gameconf.map.rows;
maptype = _global.gameconf.map.maptype;
foreground = _global.gameconf.map.foreground;
nightmap = _global.gameconf.nightmap;
clipcols = _global.gameconf.clipcols;
cliprows = _global.gameconf.cliprows;
startcol = _global.gameconf.startcol;
startrow = _global.gameconf.startrow;
left = (startcol - 1) * 640;
top = (startrow - 1) * 480;
if (clipcols) {
cols = clipcols;
}
if (cliprows) {
rows = cliprows;
}
width = cols * 640;
height = rows * 480;
map_bmp = flash.display.BitmapData.loadBitmap("map" + mapId);
if (foreground) {
fg_bmp = flash.display.BitmapData.loadBitmap(("map" + mapId) + "_fore");
}
_global.minimap = _global.stage.mov.attachMovie("MiniMap", "minimap_mc", rr.conf.ConfBaseDepths.getDepth("MiniMap"));
drawMiniMap("bg");
createMapCells();
createAirfields();
createRailConnections();
createRailSegments();
initMapCells();
if (nightmap) {
rr.utils.ClipUtils.setBmpTint(map_bmp, 0, 60);
rr.utils.ClipUtils.setBmpTint(fg_bmp, 0, 60);
}
}
function update() {
var _local3 = new flash.geom.Rectangle(_global.camera.left, _global.camera.top, _global.camera.width, _global.camera.height);
_global.stage.bg_bmp.copyPixels(map_bmp, _local3, new flash.geom.Point(0, 0));
if (foreground) {
_global.stage.fg_bmp.copyPixels(fg_bmp, _local3, new flash.geom.Point(0, 0));
}
}
function createMapCells() {
cells = [];
var _local3 = 1;
while (_local3 <= cols) {
var _local2 = 1;
while (_local2 <= rows) {
this[(("cell_" + _local3) + "_") + _local2] = new rr.MapCell(_local3, _local2);
cells.push(this[(("cell_" + _local3) + "_") + _local2].id);
_local2++;
}
_local3++;
}
}
function createAirfields() {
var _local3 = _global.gameconf.af;
var _local4 = _local3.length;
var _local2 = 0;
while (_local2 < _local4) {
_local3[_local2].linkId = "AirField";
_local3[_local2].id = _local2 + 1;
rr.utils.StageUtils.createStageObject(_local3[_local2]);
_local2++;
}
}
function createRailConnections() {
var _local4 = _global.gameconf.map.rc;
rc = [];
var _local5 = _local4.length;
var _local3 = 0;
while (_local3 < _local5) {
rc.push(_local4[_local3].id);
this["rc" + _local4[_local3].id] = new rr.rail.RailConnection(_local4[_local3]);
_local3++;
}
}
function createRailSegments() {
var _local4 = _global.gameconf.map.rs;
rs = [];
var _local5 = _local4.length;
var _local3 = 0;
while (_local3 < _local5) {
rs.push(_local4[_local3].id);
this["rs" + _local4[_local3].id] = new rr.rail.RailSegment(_local4[_local3]);
_local3++;
}
_local5 = rc.length;
_local3 = 0;
while (_local3 < _local5) {
this["rc" + rc[_local3]].init();
_local3++;
}
}
function initMapCells() {
var _local3 = rc.length;
var _local4 = 0;
while (_local4 < _local3) {
this["rc" + rc[_local4]].checkBlocks();
_local4++;
}
_local3 = rs.length;
_local4 = 0;
while (_local4 < _local3) {
this["rs" + rs[_local4]].checkBlocks();
rr.rail.RailUtils.draw(this["rs" + rs[_local4]], "rail_bg");
_local4++;
}
_local4 = 0;
while (_local4 < _local3) {
rr.rail.RailUtils.draw(this["rs" + rs[_local4]], "rail_beam");
_local4++;
}
_local4 = 0;
while (_local4 < _local3) {
rr.rail.RailUtils.draw(this["rs" + rs[_local4]], "rail");
_local4++;
}
_local3 = cells.length;
_local4 = 0;
while (_local4 < _local3) {
var _local5 = this["cell_" + cells[_local4]];
_local5.createNeighbours();
_local4++;
}
_local3 = _global.stage.afs.length;
_local4 = 0;
while (_local4 < _local3) {
var _local6 = _global.stage["obj_" + _global.stage.afs[_local4]];
_local6.createTracks();
_local4++;
}
}
function drawMiniMap(layer) {
var _local4 = new flash.geom.Matrix();
var _local3 = _global.minimap.scale;
var _local5 = new flash.geom.Rectangle(0, 0, width * _local3, height * _local3);
_local4.scale(_local3, _local3);
_local4.translate((-left) * _local3, (-top) * _local3);
if (layer == "bg") {
_global.minimap.map_bmp.draw(map_bmp, _local4, null, null, _local5);
}
}
function drawAirfieldLight(l) {
var _local3 = 3;
var _local8 = 0;
if (l.col == "green") {
_local8 = 65280;
}
if (l.col == "orange") {
_local8 = 16737792 /* 0xFF6600 */;
}
if (l.col == "red") {
_local8 = 16711680 /* 0xFF0000 */;
}
var _local4 = 1;
while (_local4 <= _local3) {
var _local2 = 1;
while (_local2 <= _local3) {
var _local6 = ((l.x - (_local3 / 2)) + _local2) - 1;
var _local5 = ((l.y - (_local3 / 2)) + _local4) - 1;
map_bmp.setPixel(_local6, _local5, _local8);
_local2++;
}
_local4++;
}
}
function getCell(cId) {
return(this["cell_" + cId]);
}
function getCellByPos(x, y) {
var _local2 = rr.utils.MathUtils.nFit(640, x) + 1;
var _local3 = rr.utils.MathUtils.nFit(480, y) + 1;
return(this[(("cell_" + _local2) + "_") + _local3]);
}
function getCellIdByPos(x, y) {
var _local1 = rr.utils.MathUtils.nFit(640, x) + 1;
var _local2 = rr.utils.MathUtils.nFit(480, y) + 1;
return((_local1 + "_") + _local2);
}
}
Symbol 3475 MovieClip [__Packages.rr.MapCell] Frame 0
class rr.MapCell extends rr.BaseClass
{
var colId, rowId, width, height, id, left, right, top, bottom, center, statics, removables, hasRemovables, nb, isFocused, eiObjects;
function MapCell (cId, rId) {
super();
colId = cId;
rowId = rId;
init();
}
function init() {
width = 640;
height = 480;
id = (colId + "_") + rowId;
left = (colId - 1) * width;
right = colId * width;
top = (rowId - 1) * height;
bottom = rowId * height;
center = new flash.geom.Point(left + (width / 2), top + (height / 2));
statics = new Array();
removables = new Array();
hasRemovables = true;
_global.camera.addEventListener("onCameraCellChange", this);
}
function createNeighbours() {
nb = [];
nb[1] = (((colId > 1) && (rowId > 1)) ? (_global.map.getCell(((colId - 1) + "_") + (rowId - 1))) : undefined);
nb[2] = ((rowId > 1) ? (_global.map.getCell((colId + "_") + (rowId - 1))) : undefined);
nb[3] = (((colId < _global.map.cols) && (rowId > 1)) ? (_global.map.getCell(((colId + 1) + "_") + (rowId - 1))) : undefined);
nb[4] = ((colId > 1) ? (_global.map.getCell(((colId - 1) + "_") + rowId)) : undefined);
nb[5] = ((colId < _global.map.cols) ? (_global.map.getCell(((colId + 1) + "_") + rowId)) : undefined);
nb[6] = (((colId > 1) && (rowId < _global.map.rows)) ? (_global.map.getCell(((colId - 1) + "_") + (rowId + 1))) : undefined);
nb[7] = ((rowId < _global.map.rows) ? (_global.map.getCell((colId + "_") + (rowId + 1))) : undefined);
nb[8] = (((colId < _global.map.cols) && (rowId < _global.map.rows)) ? (_global.map.getCell(((colId + 1) + "_") + (rowId + 1))) : undefined);
}
function update() {
var _local6;
var _local7 = rr.utils.MathUtils.getDistance(center.x, center.y, _global.camera.x, _global.camera.y);
if (_local7 < 810) {
_local6 = removables.length;
var _local5 = 0;
while (_local5 < _local6) {
var _local3 = _global.stage["obj_" + removables[_local5]];
if (rr.utils.MathUtils.getDistance(_local3.x, _local3.y, _global.camera.x, _global.camera.y) < 550) {
_local3.update();
}
_local5++;
}
_local6 = statics.length;
_local5 = 0;
while (_local5 < _local6) {
var _local4 = _global.stage["obj_" + statics[_local5]];
if (rr.utils.MathUtils.getDistance(_local4.x, _local4.y, _global.camera.x, _global.camera.y) < 550) {
_local4.update();
}
_local5++;
}
}
if (isFocused) {
_local6 = nb.length;
var _local5 = 0;
while (_local5 < _local6) {
nb[_local5].update();
_local5++;
}
}
}
function onCameraCellChange() {
if (isFocused) {
if (!hasRemovables) {
restoreRemovables();
}
return(undefined);
}
var _local3 = false;
var _local4 = nb.length;
var _local2 = 0;
while (_local2 < _local4) {
if (nb[_local2].isFocused) {
_local3 = true;
break;
}
_local2++;
}
if (_local3) {
if (!hasRemovables) {
restoreRemovables();
}
} else if (hasRemovables) {
backupRemovables();
}
}
function checkFocus(x, y) {
if ((((x >= left) && (x < right)) && (y >= top)) && (y < bottom)) {
return(undefined);
}
isFocused = false;
}
function restoreRemovables() {
removables = new Array();
hasRemovables = true;
var _local3 = eiObjects.length;
var _local2 = 0;
while (_local2 < _local3) {
rr.utils.StageUtils.createStageObject(eiObjects[_local2]);
_local2++;
}
delete eiObjects;
}
function backupRemovables() {
var _local6 = new Array();
var _local3 = 0;
while (_local3 < removables.length) {
_local6.push(removables[_local3]);
_local3++;
}
eiObjects = new Array();
var _local7 = _local6.length;
_local3 = 0;
while (_local3 < _local7) {
var _local4 = _global.stage["obj_" + _local6[_local3]];
var _local5 = _local4.getInitObj();
eiObjects.push(_local5);
_local4.destroy();
_local3++;
}
delete removables;
hasRemovables = false;
}
function addRemovable(uid) {
if (hasRemovables) {
removables.push(uid);
} else {
var _local3 = _global.stage["obj_" + uid];
var _local4 = _local3.getInitObj();
eiObjects.push(_local4);
_local3.destroy();
}
}
function deleteRemovable(uid) {
if (hasRemovables) {
var _local4 = removables.length;
var _local2 = 0;
while (_local2 < _local4) {
if (removables[_local2] == uid) {
removables.splice(_local2, 1);
break;
}
_local2++;
}
} else {
var _local4 = eiObjects.length;
var _local2 = 0;
while (_local2 < _local4) {
if (eiObjects[_local2].uid == uid) {
eiObjects.splice(_local2, 1);
break;
}
_local2++;
}
}
}
function addStatic(uid) {
statics.push(uid);
}
function removeStatic(uid) {
var _local3 = statics.length;
var _local2 = 0;
while (_local2 < _local3) {
if (statics[_local2] == uid) {
statics.splice(_local2, 1);
break;
}
_local2++;
}
}
}
Symbol 3476 MovieClip [__Packages.rr.rail.RailUtils] Frame 0
class rr.rail.RailUtils
{
function RailUtils () {
}
static function draw(rs, element) {
if (rs.type == "line") {
drawLine(rs, element);
}
if (rs.type == "arc") {
drawArc(rs, element);
}
}
static function drawLine(rs, element) {
var _local9 = Math.PI;
var _local15 = Math.cos;
var _local14 = Math.sin;
var _local7 = flash.display.BitmapData.loadBitmap(element);
if (_global.map.nightmap) {
if (element == "rail_bg") {
rr.utils.ClipUtils.setBmpTint(_local7, 0, 10);
} else {
rr.utils.ClipUtils.setBmpTint(_local7, 0, 30);
}
}
var _local12;
var _local11;
var _local10 = rr.utils.MathUtils.formatAngle(rs.ang);
var _local8 = new flash.geom.Point(_local7.width / 2, _local7.height / 2);
var _local2 = new flash.geom.Matrix();
var _local4 = 0;
while (_local4 <= rs.length) {
_local12 = _local15((_local10 * _local9) / 180) * _local4;
_local11 = (-_local14((_local10 * _local9) / 180)) * _local4;
_local2.identity();
_local2.translate(-_local8.x, -_local8.y);
_local2.rotate((rr.utils.MathUtils.formatAngle(-_local10) / 180) * _local9);
_local2.translate(rs.rcs.x + _local12, rs.rcs.y + _local11);
if (element == "rail_bg") {
_global.map.map_bmp.draw(_local7, _local2, null, "overlay");
} else {
_global.map.map_bmp.draw(_local7, _local2);
}
if (element == "rail") {
var _local6 = new flash.display.BitmapData(7, 7, false, _global.minimap.railcolor);
var _local3 = _global.minimap.scale;
_local2.identity();
_local2.scale(_local3, _local3);
_local2.translate((-_local8.x) * _local3, (-_local8.y) * _local3);
_local2.translate((rs.rcs.x + _local12) * _local3, (rs.rcs.y + _local11) * _local3);
_global.minimap.map_bmp.draw(_local6, _local2);
_local6.dispose();
}
_local4 = _local4 + _local7.width;
}
_local7.dispose();
}
static function drawArc(rs, element) {
var _local9 = Math.PI;
var _local17 = Math.cos;
var _local16 = Math.sin;
var _local10 = flash.display.BitmapData.loadBitmap(element);
if (_global.map.nightmap) {
if (element == "rail_bg") {
rr.utils.ClipUtils.setBmpTint(_local10, 0, 10);
} else {
rr.utils.ClipUtils.setBmpTint(_local10, 0, 30);
}
}
var _local7 = new flash.geom.Point(_local10.width / 2, _local10.height / 2);
var _local2 = new flash.geom.Matrix();
var _local12;
var _local11;
var _local19 = rs.length / _local10.width;
var _local15 = rr.utils.MathUtils.formatAngle(rs.ang - 90);
var _local13 = new flash.geom.Point((-rs.dir) * (rs.radius * _local17((_local15 * _local9) / 180)), rs.dir * (rs.radius * _local16((_local15 * _local9) / 180)));
var _local18 = (rs.dir * 180) / ((rs.radius * _local9) / _local10.width);
var _local8;
var _local6 = 0;
while (_local6 <= _local19) {
_local8 = rr.utils.MathUtils.formatAngle(_local15 + (_local6 * _local18));
_local12 = _local13.x + ((rs.dir * rs.radius) * _local17((_local8 * _local9) / 180));
_local11 = _local13.y - ((rs.dir * rs.radius) * _local16((_local8 * _local9) / 180));
_local2.identity();
_local2.translate(-_local7.x, -_local7.y);
_local2.rotate((rr.utils.MathUtils.formatAngle((-_local8) - 90) / 180) * _local9);
_local2.translate(rs.rcs.x + _local12, rs.rcs.y + _local11);
if (element == "rail_bg") {
_global.map.map_bmp.draw(_local10, _local2, null, "overlay");
} else {
_global.map.map_bmp.draw(_local10, _local2, null);
}
if (element == "rail") {
var _local5 = new flash.display.BitmapData(7, 7, false, _global.minimap.railcolor);
var _local4 = _global.minimap.scale;
_local2.identity();
_local2.scale(_local4, _local4);
_local2.translate((-_local7.x) * _local4, (-_local7.y) * _local4);
_local2.translate((rs.rcs.x + _local12) * _local4, (rs.rcs.y + _local11) * _local4);
_global.minimap.map_bmp.draw(_local5, _local2);
_local5.dispose();
}
_local6++;
}
_local10.dispose();
}
}
Symbol 3477 MovieClip [__Packages.rr.StageCam] Frame 0
class rr.StageCam extends rr.BaseClass
{
var follow, width, height, minx, miny, maxx, maxy, x, y, left, right, top, bottom, xs, ys, xsprev, ysprev, cellId, cell, events, xdif, camRef, ydif;
function StageCam () {
super();
}
function init() {
follow = "mouse";
width = _global.stage.width;
height = _global.stage.height;
minx = _global.map.left + (width / 2);
miny = _global.map.top + (height / 2);
maxx = (_global.map.left + _global.map.width) - (width / 2);
maxy = (_global.map.top + _global.map.height) - (height / 2);
x = _global.plane.x;
y = _global.plane.y;
x = ((x < minx) ? (minx) : (((x > maxx) ? (maxx) : (x))));
y = ((y < miny) ? (miny) : (((y > maxy) ? (maxy) : (y))));
left = x - (width / 2);
right = x + (width / 2);
top = y - (height / 2);
bottom = y + (height / 2);
xs = (ys = (xsprev = (ysprev = 0)));
cellId = _global.map.getCellIdByPos(x, y);
cell = _global.map.getCell(cellId);
cell.isFocused = true;
events.dispatchEvent({type:"onCameraCellChange"});
cell.update();
}
function update() {
xdif = camRef.xcam - x;
ydif = camRef.ycam - y;
if (camRef instanceof rr.AirField) {
xs = xdif / 20;
ys = ydif / 20;
var _local6 = ((x + xs) < minx) || ((x + xs) > maxx);
var _local7 = ((y + ys) < miny) || ((y + ys) > maxy);
var _local4 = Math.abs(xdif) < 20;
var _local3 = Math.abs(ydif) < 20;
if (_local6 && (_local7)) {
_global.planemenu.showAfterCrash();
} else if (_local6 && (_local3)) {
_global.planemenu.showAfterCrash();
} else if (_local7 && (_local4)) {
_global.planemenu.showAfterCrash();
} else if (_local4 && (_local3)) {
_global.planemenu.showAfterCrash();
}
} else {
xs = xdif / 40;
ys = ydif / 40;
}
if (camRef == _global.aim) {
if (_global.stage._ymouse > 480) {
xs = (ys = 0);
}
}
if (Math.abs(xs - xsprev) < 0.5) {
xs = xsprev;
}
if (Math.abs(ys - ysprev) < 0.5) {
ys = ysprev;
}
xsprev = xs;
ysprev = ys;
x = (((x + xs) < minx) ? (minx) : (((Math.round(x + xs) > maxx) ? (maxx) : (Math.round(x + xs)))));
y = (((y + ys) < miny) ? (miny) : (((Math.round(y + ys) > maxy) ? (maxy) : (Math.round(y + ys)))));
left = x - (width / 2);
right = x + (width / 2);
top = y - (height / 2);
bottom = y + (height / 2);
var _local5 = _global.map.getCellIdByPos(x, y);
if (_local5 != cellId) {
cell.isFocused = false;
cellId = _local5;
cell = _global.map.getCell(cellId);
cell.isFocused = true;
events.dispatchEvent({type:"onCameraCellChange"});
}
cell.update();
}
}
Symbol 154 MovieClip Frame 176
_root.gotoAndPlay("naintro");
Symbol 174 MovieClip Frame 1
stop();
Symbol 177 MovieClip [PopupMissionTarget] Frame 1
_visible = false;
stop();
Symbol 177 MovieClip [PopupMissionTarget] Frame 2
_visible = true;
Symbol 199 MovieClip [Confirm] Frame 1
#initclip 306
Object.registerClass("Confirm", rr.control.Confirm);
#endinitclip
Symbol 204 MovieClip Frame 1
stop();
Symbol 207 MovieClip [AirField] Frame 1
stop();
Symbol 207 MovieClip [AirField] Frame 2
stop();
Symbol 239 MovieClip Frame 11
stop();
Symbol 240 MovieClip [BulletGunSingle] Frame 1
stop();
Symbol 240 MovieClip [BulletGunSingle] Frame 17
stop();
Symbol 242 MovieClip [BulletGunDouble] Frame 1
stop();
Symbol 242 MovieClip [BulletGunDouble] Frame 17
stop();
Symbol 244 MovieClip [BulletGunGatling] Frame 1
stop();
Symbol 244 MovieClip [BulletGunGatling] Frame 17
stop();
Symbol 252 MovieClip Frame 1
stop();
Symbol 252 MovieClip Frame 13
gotoAndPlay (2);
Symbol 258 MovieClip Frame 1
stop();
Symbol 258 MovieClip Frame 13
gotoAndPlay (2);
Symbol 268 MovieClip Frame 1
stop();
Symbol 268 MovieClip Frame 13
gotoAndPlay (2);
Symbol 274 MovieClip [GunFlame] Frame 4
this.removeMovieClip();
Symbol 280 MovieClip Frame 1
function show() {
clearInterval(ival);
mode = "show";
this.onEnterFrame = shift;
}
function hide() {
clearInterval(ival);
mode = "hide";
this.onEnterFrame = shift;
}
function shift() {
if (mode == "show") {
if (_currentframe == 10) {
delete this.onEnterFrame;
ival = setInterval(this, "hide", 3000);
} else {
this.gotoAndStop(_currentframe + 1);
}
}
if (mode == "hide") {
if (_currentframe == 0) {
delete this.onEnterFrame;
} else {
this.gotoAndStop(_currentframe - 1);
}
}
}
var mode;
var ival;
var count;
stop();
Symbol 284 MovieClip Frame 1
function show() {
clearInterval(ival);
mode = "show";
this.onEnterFrame = shift;
}
function hide() {
clearInterval(ival);
mode = "hide";
this.onEnterFrame = shift;
}
function shift() {
if (mode == "show") {
if (_currentframe == 10) {
delete this.onEnterFrame;
ival = setInterval(this, "hide", 3000);
} else {
this.gotoAndStop(_currentframe + 1);
}
}
if (mode == "hide") {
if (_currentframe == 0) {
delete this.onEnterFrame;
} else {
this.gotoAndStop(_currentframe - 1);
}
}
}
var mode;
var ival;
var count;
stop();
Symbol 288 MovieClip Frame 1
function show() {
clearInterval(ival);
mode = "show";
this.onEnterFrame = shift;
}
function hide() {
clearInterval(ival);
mode = "hide";
this.onEnterFrame = shift;
}
function shift() {
if (mode == "show") {
if (_currentframe == 10) {
delete this.onEnterFrame;
ival = setInterval(this, "hide", 3000);
} else {
this.gotoAndStop(_currentframe + 1);
}
}
if (mode == "hide") {
if (_currentframe == 0) {
delete this.onEnterFrame;
} else {
this.gotoAndStop(_currentframe - 1);
}
}
}
var mode;
var ival;
var count;
stop();
Symbol 306 MovieClip Frame 1
stop();
Symbol 310 MovieClip Frame 1
_visible = false;
stop();
Symbol 310 MovieClip Frame 2
_visible = true;
Symbol 349 MovieClip Frame 1
stop();
Symbol 355 MovieClip Frame 1
stop();
Symbol 363 MovieClip Frame 1
stop();
Symbol 367 MovieClip Frame 1
stop();
Symbol 371 MovieClip Frame 1
stop();
Symbol 375 MovieClip Frame 1
stop();
Symbol 379 MovieClip Frame 1
stop();
Symbol 383 MovieClip Frame 1
stop();
Symbol 387 MovieClip Frame 1
stop();
Symbol 398 MovieClip Frame 1
if (!_global.soundTurnedOff) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(3);
}
stop();
Symbol 398 MovieClip Frame 2
this.sound_on_mc.onPress = function () {
_global.soundTurnedOff = true;
_global.globalsound.setVolume(0);
this._parent.gotoAndStop(3);
};
Symbol 398 MovieClip Frame 3
this.sound_off_mc.onPress = function () {
_global.soundTurnedOff = false;
_global.globalsound.setVolume(100);
this._parent.gotoAndStop(2);
};
Symbol 399 MovieClip [BottomMenu] Frame 1
#initclip 280
Object.registerClass("BottomMenu", rr.control.BottomMenu);
#endinitclip
Symbol 404 MovieClip Frame 1
stop();
Symbol 404 MovieClip Frame 2
stop();
Symbol 404 MovieClip Frame 3
stop();
Symbol 404 MovieClip Frame 4
stop();
Symbol 404 MovieClip Frame 5
stop();
Symbol 404 MovieClip Frame 6
stop();
Symbol 404 MovieClip Frame 7
stop();
Symbol 404 MovieClip Frame 8
stop();
Symbol 404 MovieClip Frame 9
stop();
Symbol 404 MovieClip Frame 10
stop();
Symbol 404 MovieClip Frame 11
stop();
Symbol 408 Button
on (rollOver, dragOver) {
gotoAndPlay (2);
}
Symbol 445 Button
on (press) {
_global.planedefinition.prepareWeapon("GroundMissile");
pijltje.gotoAndStop("GroundMissile");
}
Symbol 446 Button
on (press) {
_global.planedefinition.prepareWeapon("Bombs");
pijltje.gotoAndStop("Bombs");
}
Symbol 447 Button
on (press) {
_global.planedefinition.prepareWeapon("EMPBomb");
pijltje.gotoAndStop("EMPBomb");
}
Symbol 448 Button
on (press) {
_global.planedefinition.prepareWeapon("Guns");
pijltje.gotoAndStop("Guns");
}
Symbol 449 Button
on (press) {
_global.planedefinition.prepareWeapon("FuelBomb");
pijltje.gotoAndStop("FuelBomb");
}
Symbol 450 Button
on (press) {
_global.planedefinition.prepareWeapon("AirMissile");
pijltje.gotoAndStop("AirMissile");
}
Symbol 451 Button
on (press) {
_global.planedefinition.prepareWeapon("CarpetBomb");
pijltje.gotoAndStop("CarpetBomb");
}
Symbol 452 Button
on (press) {
_global.planedefinition.prepareWeapon("Propaganda");
pijltje.gotoAndStop("Propaganda");
}
Symbol 453 Button
on (press) {
_global.planedefinition.prepareWeapon("NuclearBomb");
pijltje.gotoAndStop("NuclearBomb");
}
Symbol 455 Button
on (rollOver, dragOver) {
_root.selectinterface.gotoAndPlay("closer");
}
Symbol 456 MovieClip Frame 1
pijltje.gotoAndStop(1);
Symbol 456 MovieClip Frame 11
pijltje.gotoAndStop(_global.planedefinition.weaponType);
pijltje._visible = true;
propaganda_btn.enabled = _global.planedefinition.hasPropaganda;
air_btn.enabled = _global.planedefinition.hasAir;
gun_btn.enabled = _global.planedefinition.hasGun;
bomb_btn.enabled = _global.planedefinition.hasBomb;
ground_btn.enabled = _global.planedefinition.hasGround;
emp_btn.enabled = _global.planedefinition.hasEMP;
fuel_btn.enabled = _global.planedefinition.hasFuel;
carpet_btn.enabled = _global.planedefinition.hasCarpet;
nuclear_btn.enabled = _global.planedefinition.hasNuclear;
propaganda_btn._alpha = (propaganda_btn.enabled ? 100 : 20);
air_btn._alpha = (air_btn.enabled ? 100 : 20);
gun_btn._alpha = (gun_btn.enabled ? 100 : 20);
bomb_btn._alpha = (bomb_btn.enabled ? 100 : 20);
ground_btn._alpha = (ground_btn.enabled ? 100 : 20);
emp_btn._alpha = (emp_btn.enabled ? 100 : 20);
fuel_btn._alpha = (fuel_btn.enabled ? 100 : 20);
carpet_btn._alpha = (carpet_btn.enabled ? 100 : 20);
nuclear_btn._alpha = (nuclear_btn.enabled ? 100 : 20);
stop();
Symbol 486 Button
on (press) {
getURL (_global.affiliatebutton, "_blank");
}
Symbol 490 Button
on (press) {
getURL (_global.affiliatebutton, "_blank");
}
Symbol 533 MovieClip Frame 27
stop();
Symbol 534 Button
on (press) {
getURL (_global.affiliatebutton, "_blank");
}
Symbol 538 Button
on (press) {
getURL (_global.affiliatebutton, "_blank");
}
Symbol 540 Button
on (press) {
getURL (_global.affiliatebutton, "_blank");
}
Symbol 545 MovieClip Frame 1
if (_global.companylogo == "MiniClip") {
gotoAndStop ("minicliplogo");
} else if (_global.companylogo == "2DPlay") {
gotoAndStop ("2dplaylogo");
} else if (_global.companylogo == "Craziness") {
gotoAndStop ("crazinesslogo");
} else if (_global.companylogo == "ArcadeTown") {
gotoAndStop ("arcadetownlogo");
} else if (_global.companylogo == "Agame") {
gotoAndStop ("agamelogo");
} else if (_global.companylogo == "Shockwave") {
gotoAndStop ("shockwavelogo");
}
stop();
Symbol 545 MovieClip Frame 2
stop();
Symbol 545 MovieClip Frame 9
stop();
Symbol 545 MovieClip Frame 16
stop();
Symbol 545 MovieClip Frame 23
stop();
Symbol 553 MovieClip Frame 1
stop();
Symbol 553 MovieClip Frame 2
stop();
Symbol 553 MovieClip Frame 3
stop();
Symbol 553 MovieClip Frame 4
stop();
Symbol 553 MovieClip Frame 5
stop();
Symbol 553 MovieClip Frame 6
stop();
Symbol 553 MovieClip Frame 7
stop();
Symbol 608 Button
on (press) {
_visible = false;
}
Symbol 635 MovieClip Frame 1
stop();
Symbol 635 MovieClip Frame 3
docount = true;
loadMovieNum (_root.HSHubURL, 2);
stop();
Symbol 1088 MovieClip Frame 26
stop();
Symbol 1153 MovieClip Frame 33
stop();
Symbol 1154 MovieClip [FockeWolf] Frame 1
stop();
Symbol 1154 MovieClip [FockeWolf] Frame 29
stop();
Symbol 1208 MovieClip Frame 26
stop();
Symbol 1255 MovieClip Frame 24
stop();
Symbol 1256 MovieClip [C47] Frame 1
stop();
Symbol 1256 MovieClip [C47] Frame 30
stop();
Symbol 1308 MovieClip Frame 25
stop();
Symbol 1309 MovieClip [MesserSchmidt] Frame 1
stop();
Symbol 1309 MovieClip [MesserSchmidt] Frame 30
stop();
Symbol 1313 MovieClip [BellHuey] Frame 1
stop();
Symbol 1313 MovieClip [BellHuey] Frame 30
stop();
Symbol 1318 MovieClip Frame 1
gotoAndStop(_global.map.maptype);
stop();
Symbol 1332 MovieClip [Aim] Frame 1
stop();
Symbol 1332 MovieClip [Aim] Frame 2
stop();
Symbol 1332 MovieClip [Aim] Frame 3
stop();
Instance of Symbol 98 MovieClip [planebox_orange] in Symbol 1339 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = 1;
}
Instance of Symbol 74 MovieClip [planebox_blue] in Symbol 1339 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = 1;
}
Instance of Symbol 80 MovieClip [planebox_green_small] in Symbol 1339 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = "";
}
Instance of Symbol 74 MovieClip [planebox_blue] in Symbol 1339 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = 2;
}
Instance of Symbol 98 MovieClip [planebox_orange] in Symbol 1339 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = 1;
}
Instance of Symbol 98 MovieClip [planebox_orange] in Symbol 1339 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = 2;
}
Instance of Symbol 98 MovieClip [planebox_orange] in Symbol 1339 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = 2;
}
Instance of Symbol 88 MovieClip [planebox_red] in Symbol 1339 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = "";
}
Instance of Symbol 88 MovieClip [planebox_red] in Symbol 1339 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = "";
}
Instance of Symbol 88 MovieClip [planebox_red] in Symbol 1339 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = "";
}
Instance of Symbol 88 MovieClip [planebox_red] in Symbol 1339 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = "";
}
Instance of Symbol 88 MovieClip [planebox_red] in Symbol 1339 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = "";
}
Instance of Symbol 88 MovieClip [planebox_red] in Symbol 1339 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = "";
}
Symbol 1343 MovieClip [Total_Focke] Frame 1
#initclip 281
Object.registerClass("Total_Focke", rr.control.PlaneDisplay);
#endinitclip
Instance of Symbol 98 MovieClip [planebox_orange] in Symbol 1347 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = 1;
}
Instance of Symbol 80 MovieClip [planebox_green_small] in Symbol 1347 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = "";
}
Instance of Symbol 74 MovieClip [planebox_blue] in Symbol 1347 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = 1;
}
Instance of Symbol 98 MovieClip [planebox_orange] in Symbol 1347 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = 1;
}
Instance of Symbol 98 MovieClip [planebox_orange] in Symbol 1347 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = 2;
}
Instance of Symbol 98 MovieClip [planebox_orange] in Symbol 1347 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = 2;
}
Instance of Symbol 88 MovieClip [planebox_red] in Symbol 1347 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = "";
}
Instance of Symbol 88 MovieClip [planebox_red] in Symbol 1347 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = "";
}
Instance of Symbol 98 MovieClip [planebox_orange] in Symbol 1347 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = 1;
}
Instance of Symbol 98 MovieClip [planebox_orange] in Symbol 1347 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = 1;
}
Instance of Symbol 98 MovieClip [planebox_orange] in Symbol 1347 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = 2;
}
Instance of Symbol 98 MovieClip [planebox_orange] in Symbol 1347 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = 2;
}
Symbol 1351 MovieClip [Total_Bell Huey] Frame 1
#initclip 282
Object.registerClass("Total_Bell Huey", rr.control.PlaneDisplay);
#endinitclip
Symbol 1357 MovieClip [planebox_green_medium] Frame 1
#initclip 283
Object.registerClass("planebox_green_medium", rr.control.PlaneBoxGreen);
#endinitclip
stop();
Instance of Symbol 98 MovieClip [planebox_orange] in Symbol 1361 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = 1;
}
Instance of Symbol 74 MovieClip [planebox_blue] in Symbol 1361 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = 1;
}
Instance of Symbol 1357 MovieClip [planebox_green_medium] in Symbol 1361 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = "";
}
Instance of Symbol 74 MovieClip [planebox_blue] in Symbol 1361 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = 2;
}
Instance of Symbol 98 MovieClip [planebox_orange] in Symbol 1361 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = 2;
}
Instance of Symbol 88 MovieClip [planebox_red] in Symbol 1361 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = "";
}
Instance of Symbol 88 MovieClip [planebox_red] in Symbol 1361 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = "";
}
Instance of Symbol 88 MovieClip [planebox_red] in Symbol 1361 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = "";
}
Instance of Symbol 88 MovieClip [planebox_red] in Symbol 1361 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = "";
}
Instance of Symbol 88 MovieClip [planebox_red] in Symbol 1361 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = "";
}
Instance of Symbol 88 MovieClip [planebox_red] in Symbol 1361 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = "";
}
Instance of Symbol 74 MovieClip [planebox_blue] in Symbol 1361 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = 3;
}
Instance of Symbol 74 MovieClip [planebox_blue] in Symbol 1361 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = 4;
}
Instance of Symbol 88 MovieClip [planebox_red] in Symbol 1361 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = "";
}
Instance of Symbol 88 MovieClip [planebox_red] in Symbol 1361 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = "";
}
Instance of Symbol 88 MovieClip [planebox_red] in Symbol 1361 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = "";
}
Instance of Symbol 88 MovieClip [planebox_red] in Symbol 1361 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = "";
}
Instance of Symbol 88 MovieClip [planebox_red] in Symbol 1361 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = "";
}
Instance of Symbol 88 MovieClip [planebox_red] in Symbol 1361 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = "";
}
Instance of Symbol 88 MovieClip [planebox_red] in Symbol 1361 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = "";
}
Instance of Symbol 88 MovieClip [planebox_red] in Symbol 1361 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = "";
}
Instance of Symbol 88 MovieClip [planebox_red] in Symbol 1361 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = "";
}
Instance of Symbol 88 MovieClip [planebox_red] in Symbol 1361 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = "";
}
Instance of Symbol 1357 MovieClip [planebox_green_medium] in Symbol 1361 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = "";
}
Instance of Symbol 1357 MovieClip [planebox_green_medium] in Symbol 1361 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = "";
}
Symbol 1367 MovieClip [Total_C47] Frame 1
#initclip 284
Object.registerClass("Total_C47", rr.control.PlaneDisplay);
#endinitclip
Symbol 1371 MovieClip [planebox_green_large] Frame 1
#initclip 285
Object.registerClass("planebox_green_large", rr.control.PlaneBoxGreen);
#endinitclip
stop();
Symbol 1378 MovieClip Frame 1
stop();
Symbol 1378 MovieClip Frame 31
stop();
Symbol 1379 MovieClip [top_gun01] Frame 1
#initclip 286
Object.registerClass("top_gun01", rr.control.WeaponButton);
#endinitclip
Symbol 1386 MovieClip Frame 1
stop();
Symbol 1386 MovieClip Frame 37
stop();
Symbol 1391 MovieClip [top_airmissile02] Frame 1
#initclip 287
Object.registerClass("top_airmissile02", rr.control.WeaponButton);
#endinitclip
Symbol 1393 MovieClip [top_landmissile01] Frame 1
#initclip 288
Object.registerClass("top_landmissile01", rr.control.WeaponButton);
#endinitclip
Symbol 1395 MovieClip [top_landmissile02] Frame 1
#initclip 289
Object.registerClass("top_landmissile02", rr.control.WeaponButton);
#endinitclip
Symbol 1399 MovieClip [top_spec_carpet] Frame 1
#initclip 290
Object.registerClass("top_spec_carpet", rr.control.WeaponButton);
#endinitclip
Symbol 1401 MovieClip [top_gun02] Frame 1
#initclip 291
Object.registerClass("top_gun02", rr.control.WeaponButton);
#endinitclip
Symbol 1405 MovieClip [top_bomb02] Frame 1
#initclip 292
Object.registerClass("top_bomb02", rr.control.WeaponButton);
#endinitclip
Symbol 1407 MovieClip [top_bomb03] Frame 1
#initclip 293
Object.registerClass("top_bomb03", rr.control.WeaponButton);
#endinitclip
Symbol 1409 MovieClip [top_airmissile01] Frame 1
#initclip 294
Object.registerClass("top_airmissile01", rr.control.WeaponButton);
#endinitclip
Symbol 1411 MovieClip [top_bomb01] Frame 1
#initclip 295
Object.registerClass("top_bomb01", rr.control.WeaponButton);
#endinitclip
Symbol 1415 MovieClip [top_spec_propaganda] Frame 1
#initclip 296
Object.registerClass("top_spec_propaganda", rr.control.WeaponButton);
#endinitclip
Symbol 1417 MovieClip [top_spec_emp] Frame 1
#initclip 297
Object.registerClass("top_spec_emp", rr.control.WeaponButton);
#endinitclip
Symbol 1419 MovieClip [top_spec_fuel] Frame 1
#initclip 298
Object.registerClass("top_spec_fuel", rr.control.WeaponButton);
#endinitclip
Symbol 1423 MovieClip [top_spec_nuke] Frame 1
#initclip 299
Object.registerClass("top_spec_nuke", rr.control.WeaponButton);
#endinitclip
Symbol 1425 MovieClip [top_gun03] Frame 1
#initclip 300
Object.registerClass("top_gun03", rr.control.WeaponButton);
#endinitclip
Symbol 1474 MovieClip Frame 1
stop();
Symbol 1474 MovieClip Frame 2
stop();
Symbol 1474 MovieClip Frame 3
stop();
Symbol 1474 MovieClip Frame 4
stop();
Symbol 1474 MovieClip Frame 5
stop();
Symbol 1474 MovieClip Frame 6
stop();
Symbol 1474 MovieClip Frame 7
stop();
Symbol 1474 MovieClip Frame 8
stop();
Symbol 1495 Button
on (press) {
_parent._parent.selectPlane("FockeWolf");
}
Symbol 1496 Button
on (press) {
_parent._parent.selectPlane("BellHuey");
}
Symbol 1497 Button
on (press) {
_parent._parent.selectPlane("C47");
}
Symbol 1498 Button
on (press) {
_parent._parent.selectPlane("MesserSchmidt");
}
Symbol 1499 MovieClip Frame 14
stop();
Symbol 1510 MovieClip Frame 60
stop();
Symbol 1524 MovieClip Frame 131
stop();
Instance of Symbol 1343 MovieClip [Total_Focke] "FockeWolf_mc" in Symbol 1525 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
linkId = "FockeWolf";
}
Instance of Symbol 1351 MovieClip [Total_Bell Huey] "BellHuey_mc" in Symbol 1525 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
linkId = "BellHuey";
}
Instance of Symbol 110 MovieClip [Total_Messerschmidt] "MesserSchmidt_mc" in Symbol 1525 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
linkId = "MesserSchmidt";
}
Instance of Symbol 1367 MovieClip [Total_C47] "C47_mc" in Symbol 1525 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
linkId = "C47";
}
Instance of Symbol 1379 MovieClip [top_gun01] "GunSingle_mc" in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
linkId = "GunSingle";
}
Instance of Symbol 1391 MovieClip [top_airmissile02] "AirSeeker_mc" in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
linkId = "AirSeeker";
}
Instance of Symbol 1393 MovieClip [top_landmissile01] "GroundMissile_mc" in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
linkId = "GroundMissile";
}
Instance of Symbol 1395 MovieClip [top_landmissile02] "GroundSeeker_mc" in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
linkId = "GroundSeeker";
}
Instance of Symbol 1399 MovieClip [top_spec_carpet] "CarpetBomb_mc" in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
linkId = "CarpetBomb";
}
Instance of Symbol 1401 MovieClip [top_gun02] "GunDouble_mc" in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
linkId = "GunDouble";
}
Instance of Symbol 1405 MovieClip [top_bomb02] "BombHeavy_mc" in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
linkId = "BombHeavy";
}
Instance of Symbol 1407 MovieClip [top_bomb03] "BombExtreme_mc" in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
linkId = "BombExtreme";
}
Instance of Symbol 1409 MovieClip [top_airmissile01] "AirMissile_mc" in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
linkId = "AirMissile";
}
Instance of Symbol 1411 MovieClip [top_bomb01] "BombNormal_mc" in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
linkId = "BombNormal";
}
Instance of Symbol 1415 MovieClip [top_spec_propaganda] "Propaganda_mc" in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
linkId = "Propaganda";
}
Instance of Symbol 1417 MovieClip [top_spec_emp] "EMPBomb_mc" in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
linkId = "EMPBomb";
}
Instance of Symbol 1419 MovieClip [top_spec_fuel] "FuelBomb_mc" in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
linkId = "FuelBomb";
}
Instance of Symbol 1423 MovieClip [top_spec_nuke] "NuclearBomb_mc" in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
linkId = "NuclearBomb";
}
Instance of Symbol 1425 MovieClip [top_gun03] "GunGatling_mc" in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
linkId = "GunGatling";
}
Symbol 1579 MovieClip Frame 1
stop();
Symbol 1585 MovieClip Frame 37
stop();
Symbol 1586 Button
on (press) {
_visible = false;
}
Symbol 1588 MovieClip [PlaneMenu] Frame 1
#initclip 301
Object.registerClass("PlaneMenu", rr.control.PlaneMenu);
#endinitclip
Symbol 1613 MovieClip [CrashFlame] Frame 17
gotoAndPlay (10);
Symbol 1621 MovieClip [GroundMissile] Frame 1
stop();
Symbol 1621 MovieClip [GroundMissile] Frame 31
stop();
Symbol 1622 MovieClip [GroundSeeker] Frame 1
stop();
Symbol 1622 MovieClip [GroundSeeker] Frame 31
stop();
Symbol 1647 MovieClip Frame 13
stop();
Symbol 1648 MovieClip [AirMissile] Frame 1
stop();
Symbol 1648 MovieClip [AirMissile] Frame 18
stop();
Symbol 1649 MovieClip [AirSeeker] Frame 1
stop();
Symbol 1649 MovieClip [AirSeeker] Frame 18
stop();
Symbol 1710 MovieClip Frame 31
stop();
Symbol 1772 MovieClip Frame 31
stop();
Symbol 1834 MovieClip Frame 31
stop();
Symbol 1840 MovieClip Frame 1
gotoAndStop(_global.map.maptype);
stop();
Symbol 1845 MovieClip Frame 1
stop();
Symbol 1845 MovieClip Frame 2
stop();
Symbol 1858 MovieClip Frame 1
_parent.parent.checkNightMode();
stop();
Symbol 1858 MovieClip Frame 2
nightglow_mc._visible = _global.map.nightmap;
Symbol 1905 MovieClip Frame 24
stop();
Symbol 1906 MovieClip [OldJeep] Frame 1
stop();
Symbol 1906 MovieClip [OldJeep] Frame 30
stop();
Symbol 1965 MovieClip Frame 30
stop();
Symbol 2014 MovieClip Frame 25
stop();
Symbol 2015 MovieClip [Industry1] Frame 50
this.removeMovieClip();
Symbol 2080 MovieClip Frame 33
stop();
Symbol 2121 MovieClip Frame 21
stop();
Symbol 2122 MovieClip [Industry2] Frame 47
this.removeMovieClip();
Symbol 2123 MovieClip [Industry3] Frame 49
this.removeMovieClip();
Symbol 2124 MovieClip [Industry4] Frame 44
this.removeMovieClip();
Symbol 2159 MovieClip Frame 18
stop();
Symbol 2160 MovieClip [Industry5] Frame 50
this.removeMovieClip();
Symbol 2161 MovieClip [Office1] Frame 40
this.removeMovieClip();
Symbol 2162 MovieClip [Office2] Frame 38
this.removeMovieClip();
Symbol 2227 MovieClip Frame 33
stop();
Symbol 2228 MovieClip [Office3] Frame 40
this.removeMovieClip();
Symbol 2229 MovieClip [Office4] Frame 40
this.removeMovieClip();
Symbol 2254 MovieClip Frame 13
stop();
Symbol 2255 MovieClip [AmmoOldJeep] Frame 13
stop();
Symbol 2358 MovieClip [MiniMapIcon] Frame 1
stop();
Symbol 2358 MovieClip [MiniMapIcon] Frame 2
stop();
Symbol 2358 MovieClip [MiniMapIcon] Frame 3
stop();
Symbol 2358 MovieClip [MiniMapIcon] Frame 4
stop();
Symbol 2358 MovieClip [MiniMapIcon] Frame 5
stop();
Symbol 2358 MovieClip [MiniMapIcon] Frame 6
stop();
Symbol 2358 MovieClip [MiniMapIcon] Frame 7
stop();
Symbol 2358 MovieClip [MiniMapIcon] Frame 8
stop();
Symbol 2358 MovieClip [MiniMapIcon] Frame 9
stop();
Symbol 2358 MovieClip [MiniMapIcon] Frame 10
stop();
Symbol 2358 MovieClip [MiniMapIcon] Frame 11
stop();
Symbol 2358 MovieClip [MiniMapIcon] Frame 12
stop();
Symbol 2358 MovieClip [MiniMapIcon] Frame 13
stop();
Symbol 2358 MovieClip [MiniMapIcon] Frame 14
stop();
Symbol 2358 MovieClip [MiniMapIcon] Frame 15
stop();
Symbol 2358 MovieClip [MiniMapIcon] Frame 16
stop();
Symbol 2358 MovieClip [MiniMapIcon] Frame 17
stop();
Symbol 2358 MovieClip [MiniMapIcon] Frame 18
stop();
Symbol 2358 MovieClip [MiniMapIcon] Frame 19
stop();
Symbol 2358 MovieClip [MiniMapIcon] Frame 20
stop();
Symbol 2358 MovieClip [MiniMapIcon] Frame 21
stop();
Symbol 2358 MovieClip [MiniMapIcon] Frame 22
stop();
Symbol 2358 MovieClip [MiniMapIcon] Frame 23
stop();
Symbol 2373 MovieClip Frame 1
stop();
Symbol 2376 MovieClip [MiniMap] Frame 1
#initclip 302
Object.registerClass("MiniMap", rr.control.MiniMap);
#endinitclip
Symbol 2419 MovieClip Frame 21
stop();
Symbol 2420 MovieClip [BombNormal] Frame 1
stop();
Symbol 2420 MovieClip [BombNormal] Frame 27
stop();
Symbol 2423 MovieClip [BombHeavy] Frame 1
stop();
Symbol 2423 MovieClip [BombHeavy] Frame 37
stop();
Symbol 2427 MovieClip [LevelLoader] Frame 1
#initclip 303
Object.registerClass("LevelLoader", rr.control.LevelLoader);
#endinitclip
stop();
Symbol 2474 MovieClip Frame 1
stop();
Symbol 2479 Button
on (press) {
gotoAndStop (2);
}
Symbol 2523 MovieClip Frame 1
stop();
Symbol 2523 MovieClip Frame 30
gotoAndPlay (1);
Symbol 2525 MovieClip [LevelResult] Frame 1
#initclip 304
Object.registerClass("LevelResult", rr.control.LevelResult);
#endinitclip
Symbol 2533 MovieClip Frame 1
gotoAndStop(_global.map.maptype);
stop();
Symbol 2538 MovieClip Frame 1
gotoAndStop(_global.map.maptype);
stop();
Symbol 2539 MovieClip Frame 1
_parent.parent.checkNightMode();
stop();
Symbol 2544 MovieClip Frame 1
_parent.parent.checkNightMode();
stop();
Symbol 2544 MovieClip Frame 2
nightglow_mc._visible = _global.map.nightmap;
Symbol 2545 MovieClip [Pottank] Frame 1
stop();
Symbol 2545 MovieClip [Pottank] Frame 34
stop();
Symbol 2549 MovieClip Frame 1
stop();
Symbol 2551 MovieClip Frame 1
stop();
Symbol 2556 MovieClip Frame 1
_parent.parent.checkNightMode();
stop();
Symbol 2556 MovieClip Frame 2
base_mc.gotoAndPlay("shoot");
Symbol 2556 MovieClip Frame 3
nightglow_mc._visible = _global.map.nightmap;
Symbol 2557 MovieClip [Basilisk] Frame 1
stop();
Symbol 2557 MovieClip [Basilisk] Frame 26
stop();
Symbol 2557 MovieClip [Basilisk] Frame 27
stop();
Symbol 2562 MovieClip Frame 1
gotoAndStop(_global.map.maptype);
stop();
Symbol 2566 MovieClip Frame 1
_parent.parent.checkNightMode();
stop();
Symbol 2571 MovieClip Frame 1
_parent.parent.checkNightMode();
stop();
Symbol 2571 MovieClip Frame 2
base_mc.gotoAndPlay("shoot");
nightglow_mc._visible = _global.map.nightmap;
Symbol 2572 MovieClip [GunTruck] Frame 1
stop();
Symbol 2572 MovieClip [GunTruck] Frame 36
stop();
Symbol 2577 MovieClip Frame 1
gotoAndStop(_global.map.maptype);
stop();
Symbol 2581 MovieClip Frame 1
_parent.parent.checkNightMode();
stop();
Symbol 2586 MovieClip Frame 1
_parent.parent.checkNightMode();
stop();
Symbol 2586 MovieClip Frame 2
nightglow_mc._visible = _global.map.nightmap;
Symbol 2621 MovieClip Frame 18
stop();
Symbol 2622 MovieClip [ArmoredJeep] Frame 1
stop();
Symbol 2622 MovieClip [ArmoredJeep] Frame 25
stop();
Symbol 2627 MovieClip Frame 1
gotoAndStop(_global.map.maptype);
stop();
Symbol 2628 MovieClip Frame 1
_parent.parent.checkNightMode();
stop();
Symbol 2633 MovieClip Frame 1
_parent.parent.checkNightMode();
stop();
Symbol 2633 MovieClip Frame 2
nightglow_mc._visible = _global.map.nightmap;
Symbol 2634 MovieClip [Elephant] Frame 1
stop();
Symbol 2634 MovieClip [Elephant] Frame 39
stop();
Symbol 2648 MovieClip Frame 1
_parent.parent.checkNightMode();
stop();
Symbol 2648 MovieClip Frame 3
nightglow_mc._visible = _global.map.nightmap;
Symbol 2649 MovieClip [Bunker] Frame 1
stop();
Symbol 2649 MovieClip [Bunker] Frame 29
stop();
Symbol 2655 MovieClip Frame 1
_parent._parent.parent.checkNightMode();
_parent._parent._parent.parent.checkNightMode();
stop();
Symbol 2657 MovieClip Frame 1
stop();
Symbol 2664 MovieClip Frame 1
stop();
Symbol 2697 MovieClip Frame 17
stop();
Symbol 2698 MovieClip [GatlingSingle] Frame 1
stop();
Symbol 2698 MovieClip [GatlingSingle] Frame 29
stop();
Symbol 2701 MovieClip [GatlingDouble] Frame 1
stop();
Symbol 2701 MovieClip [GatlingDouble] Frame 30
stop();
Symbol 2702 MovieClip [AmmoPotTank] Frame 13
stop();
Symbol 2703 MovieClip [AmmoElephant] Frame 25
stop();
Symbol 2704 MovieClip [AmmoBasilisk] Frame 25
stop();
Symbol 2705 MovieClip [AmmoGatlingSingle] Frame 20
stop();
Symbol 2706 MovieClip [AmmoGatlingDouble] Frame 15
stop();
Symbol 2707 MovieClip [AmmoGunTruck] Frame 13
stop();
Symbol 2708 MovieClip [AmmoArmoredJeep] Frame 15
stop();
Symbol 2709 MovieClip [AmmoBunker] Frame 25
stop();
Symbol 2718 MovieClip Frame 1
_parent.parent.checkNightMode();
stop();
Symbol 2718 MovieClip Frame 3
nightglow_mc._visible = _global.map.nightmap;
Symbol 2719 MovieClip [MediumCannon] Frame 1
stop();
Symbol 2719 MovieClip [MediumCannon] Frame 34
stop();
Symbol 2727 MovieClip Frame 1
_parent.parent.checkNightMode();
stop();
Symbol 2727 MovieClip Frame 3
nightglow_mc._visible = _global.map.nightmap;
Symbol 2728 MovieClip [SmallCannon] Frame 1
stop();
Symbol 2728 MovieClip [SmallCannon] Frame 39
parent.destroy();
stop();
Symbol 2736 MovieClip Frame 1
_parent.parent.checkNightMode();
stop();
Symbol 2736 MovieClip Frame 3
nightglow_mc._visible = _global.map.nightmap;
Symbol 2737 MovieClip [SmallFastCannon] Frame 1
stop();
Symbol 2737 MovieClip [SmallFastCannon] Frame 39
parent.destroy();
stop();
Symbol 2741 MovieClip [Wagon2] Frame 1
stop();
Symbol 2741 MovieClip [Wagon2] Frame 35
stop();
Symbol 2745 MovieClip [Wagon1] Frame 1
stop();
Symbol 2745 MovieClip [Wagon1] Frame 35
stop();
Symbol 2749 MovieClip [Wagon3] Frame 1
stop();
Symbol 2749 MovieClip [Wagon3] Frame 35
stop();
Symbol 2757 MovieClip [AmmoRocketLauncher] Frame 1
if (parent.status != "exploded") {
stop();
}
Symbol 2757 MovieClip [AmmoRocketLauncher] Frame 31
stop();
Symbol 2761 MovieClip [Passenger] Frame 1
stop();
Symbol 2761 MovieClip [Passenger] Frame 34
stop();
Symbol 2765 MovieClip [TankTrailer] Frame 1
stop();
Symbol 2765 MovieClip [TankTrailer] Frame 29
stop();
Symbol 2769 MovieClip [PassengerArmored] Frame 1
stop();
Symbol 2769 MovieClip [PassengerArmored] Frame 39
stop();
Symbol 2830 MovieClip Frame 26
stop();
Symbol 2831 MovieClip [AmmoAirfieldDefender] Frame 1
if (parent.status != "exploded") {
stop();
}
Symbol 2831 MovieClip [AmmoAirfieldDefender] Frame 31
stop();
Symbol 2844 MovieClip Frame 1
stop();
Symbol 2844 MovieClip Frame 23
Symbol 2845 MovieClip [AirfieldDefender] Frame 1
stop();
Symbol 2845 MovieClip [AirfieldDefender] Frame 24
_parent.removeWeapon(this);
stop();
Symbol 2851 Button
on (release) {
_global.game.startLevel();
}
Symbol 2874 Button
on (release) {
_global.game.startLevel();
}
Symbol 2875 MovieClip Frame 114
stop();
Symbol 2884 Button
on (press) {
this.gotoAndPlay(this._currentframe + 1);
}
Symbol 2898 MovieClip Frame 63
stop();
Symbol 2898 MovieClip Frame 175
stop();
Symbol 2920 MovieClip Frame 71
stop();
Symbol 2920 MovieClip Frame 139
stop();
Symbol 2920 MovieClip Frame 243
stop();
Symbol 2925 Button
on (release) {
_global.game.startLevel();
}
Symbol 2952 MovieClip Frame 73
stop();
Symbol 2952 MovieClip Frame 121
stop();
Symbol 2952 MovieClip Frame 224
stop();
Symbol 2977 MovieClip Frame 73
stop();
Symbol 2977 MovieClip Frame 121
stop();
Symbol 2977 MovieClip Frame 233
stop();
Symbol 2978 MovieClip Frame 1
stop();
Symbol 2978 MovieClip Frame 50
_parent.gotoAndPlay("step05");
stop();
Symbol 2978 MovieClip Frame 107
stop();
Symbol 2987 Button
on (press) {
_parent.gotoAndPlay(2);
}
Symbol 2988 Button
on (press) {
gotoAndPlay (2);
}
Symbol 2989 Button
on (press) {
_global.planedefinition.prepareWeapon("GroundMissile");
pijltje.gotoAndStop("GroundMissile");
_parent.gotoAndPlay("step03");
}
Symbol 2990 MovieClip Frame 1
pijltje.gotoAndStop(1);
stop();
Symbol 2990 MovieClip Frame 11
pijltje.gotoAndStop("Guns");
pijltje._visible = true;
propaganda_btn.enabled = true;
air_btn.enabled = true;
gun_btn.enabled = true;
bomb_btn.enabled = true;
ground_btn.enabled = true;
emp_btn.enabled = false;
fuel_btn.enabled = false;
carpet_btn.enabled = false;
nuclear_btn.enabled = false;
_parent.gotoAndPlay("step02");
stop();
Symbol 3003 MovieClip Frame 1
stop();
Symbol 3003 MovieClip Frame 40
_parent.gotoAndPlay("step04");
stop();
Symbol 3004 Button
on (press) {
this.gebouwtut.gotoAndPlay(2);
this.gotoAndStop("step0302");
}
Symbol 3012 Button
on (rollOver, dragOver) {
this.loopgotut = 1;
}
Symbol 3013 Button
on (rollOver, dragOver) {
if (this.loopgotut == 1) {
this.focketutorial.gotoAndPlay(2);
gotoAndPlay ("step0402");
} else {
this.loopgotut = 0;
}
}
Symbol 3014 Button
on (rollOver, dragOver) {
this.loopgotut = 0;
}
Symbol 3019 Button
on (keyPress "<Space>") {
this.gotoAndPlay("step06");
}
Symbol 3026 Button
on (rollOver, dragOver) {
this.tutroll.gotoAndStop(2);
}
on (rollOut, dragOut) {
this.tutroll.gotoAndStop(1);
}
Symbol 3028 MovieClip Frame 1
stop();
Symbol 3028 MovieClip Frame 2
stop();
Symbol 3032 Button
on (rollOver, dragOver) {
this.tutroll.gotoAndStop(2);
}
on (rollOut, dragOut) {
this.tutroll.gotoAndStop(1);
}
Symbol 3036 Button
on (rollOver, dragOver) {
this.tutroll.gotoAndStop(2);
}
on (rollOut, dragOut) {
this.tutroll.gotoAndStop(1);
}
Symbol 3040 Button
on (rollOver, dragOver) {
this.tutroll.gotoAndStop(2);
}
on (rollOut, dragOut) {
this.tutroll.gotoAndStop(1);
}
Symbol 3041 MovieClip Frame 1
stop();
Symbol 3042 Button
on (press) {
_parent.gotoAndPlay(2);
}
Symbol 3043 MovieClip Frame 7
stop();
Symbol 3043 MovieClip Frame 10
stop();
Symbol 3043 MovieClip Frame 22
stop();
Symbol 3043 MovieClip Frame 23
stop();
Symbol 3043 MovieClip Frame 24
this.loopgotut = 0;
Symbol 3043 MovieClip Frame 29
stop();
Symbol 3043 MovieClip Frame 34
stop();
Symbol 3043 MovieClip Frame 39
stop();
Symbol 3043 MovieClip Frame 45
stop();
Symbol 3063 MovieClip Frame 1
stop();
Symbol 3063 MovieClip Frame 52
stop();
Symbol 3063 MovieClip Frame 138
stop();
Symbol 3068 Button
on (press) {
_global.game.quitGame();
}
Symbol 3069 MovieClip [MissionMenu] Frame 1
#initclip 305
Object.registerClass("MissionMenu", rr.MissionMenu);
#endinitclip
Symbol 3080 MovieClip Frame 1
_parent.parent.checkNightMode();
stop();
Symbol 3080 MovieClip Frame 3
nightglow_mc._visible = _global.map.nightmap;
Symbol 3088 MovieClip [SaddleTank] Frame 1
stop();
Symbol 3088 MovieClip [SaddleTank] Frame 31
stop();
Symbol 3099 MovieClip Frame 1
_parent.parent.checkNightMode();
stop();
Symbol 3099 MovieClip Frame 3
nightglow_mc._visible = _global.map.nightmap;
Symbol 3101 MovieClip [Rhino] Frame 1
stop();
Symbol 3101 MovieClip [Rhino] Frame 29
stop();
Symbol 3130 MovieClip [CrashFlameHeli] Frame 17
gotoAndPlay (10);
Instance of Symbol 98 MovieClip [planebox_orange] in Symbol 3202 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = "";
}
Instance of Symbol 74 MovieClip [planebox_blue] in Symbol 3202 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = "";
}
Instance of Symbol 80 MovieClip [planebox_green_small] in Symbol 3202 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = "";
}
Instance of Symbol 88 MovieClip [planebox_red] in Symbol 3202 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = "";
}
Instance of Symbol 1343 MovieClip [Total_Focke] in Symbol 3202 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
linkId = "";
}
Instance of Symbol 1351 MovieClip [Total_Bell Huey] in Symbol 3202 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
linkId = "";
}
Instance of Symbol 1357 MovieClip [planebox_green_medium] in Symbol 3202 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = "";
}
Instance of Symbol 1367 MovieClip [Total_C47] in Symbol 3202 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
linkId = "";
}
Instance of Symbol 1371 MovieClip [planebox_green_large] in Symbol 3202 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
slotId = "";
}
Instance of Symbol 1379 MovieClip [top_gun01] in Symbol 3202 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
linkId = "";
}
Instance of Symbol 1391 MovieClip [top_airmissile02] in Symbol 3202 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
linkId = "";
}
Instance of Symbol 1393 MovieClip [top_landmissile01] in Symbol 3202 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
linkId = "";
}
Instance of Symbol 1395 MovieClip [top_landmissile02] in Symbol 3202 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
linkId = "";
}
Instance of Symbol 1399 MovieClip [top_spec_carpet] in Symbol 3202 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
linkId = "";
}
Instance of Symbol 1401 MovieClip [top_gun02] in Symbol 3202 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
linkId = "";
}
Instance of Symbol 1405 MovieClip [top_bomb02] in Symbol 3202 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
linkId = "";
}
Instance of Symbol 1407 MovieClip [top_bomb03] in Symbol 3202 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
linkId = "";
}
Instance of Symbol 1409 MovieClip [top_airmissile01] in Symbol 3202 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
linkId = "";
}
Instance of Symbol 1411 MovieClip [top_bomb01] in Symbol 3202 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
linkId = "";
}
Instance of Symbol 1415 MovieClip [top_spec_propaganda] in Symbol 3202 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
linkId = "";
}
Instance of Symbol 1417 MovieClip [top_spec_emp] in Symbol 3202 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
linkId = "";
}
Instance of Symbol 1419 MovieClip [top_spec_fuel] in Symbol 3202 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
linkId = "";
}
Instance of Symbol 1423 MovieClip [top_spec_nuke] in Symbol 3202 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
linkId = "";
}
Instance of Symbol 1425 MovieClip [top_gun03] in Symbol 3202 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
linkId = "";
}
Instance of Symbol 110 MovieClip [Total_Messerschmidt] in Symbol 3202 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
linkId = "";
}
Symbol 3203 MovieClip Frame 1
stop();