Permalink
Browse files

Make sure the opposing team is updated when jumping levels.

  • Loading branch information...
leveleditor committed Sep 1, 2017
1 parent 912324b commit 3ebd57a996ee47a97b8f6ebee46e19a6021c3f4f
Showing with 13 additions and 4 deletions.
  1. +1 −1 mods/redux/modinfo.xml
  2. +12 −3 mods/redux/redux/DOMDocument.xml
View
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" ?>
<mod>
<name><![CDATA[<b style='color:orange'>Redux Modifications + Bugfix Patch</b>]]></name>
<version>0.1.7.1</version>
<version>0.1.7.2</version>
<description><![CDATA[The official mod for CrystAlien Redux Project modifications. Contains unofficial patches to fix some bugs, add some functionality, and just generally modify the game.]]></description>
<author>Josh (leveleditor6680) &amp; Brian (ETXAlienRobot201)</author>
<homepage>http://crystalien-redux.com/</homepage>
@@ -2728,21 +2728,30 @@ function registerCheat(id:String, code:String, linked:Array) {
<DOMLayer name="GameHook" color="#4FFF4F" parentLayerIndex="27" locked="true" autoNamed="false" visible="false">
<frames>
<DOMFrame index="0" keyMode="9728">
<Actionscript offsets="1240,332">
<Actionscript offsets="1423,332">
<script><![CDATA[function GameHook(parent, team, level) {
this.swapTeams = function() {
if (this.team == "good") {
this.team = "evil";
this.oppo = "good";
} else {
this.team = "good";
this.oppo = "evil";
}
};
this.overrideTeam = function() {
// override team
this.team = this.parent.teams1337[this.currentLevel];
// make sure the opposing team is updated
if (this.team == "good") {
this.oppo = "evil";
} else {
this.oppo = "good";
}
if (this.parent.checkCheat("cheatOtherTeam")) {
this.swapTeams();
}
@@ -3146,6 +3155,8 @@ function CACMod_OnGameMenu():Void {
</persistentData>
<PrinterSettings/>
<publishHistory>
<PublishItem publishSize="18257" publishTime="1504232348"/>
<PublishItem publishSize="17919" publishTime="1504232322"/>
<PublishItem publishSize="18286" publishTime="1503849859"/>
<PublishItem publishSize="18166" publishTime="1503849522"/>
<PublishItem publishSize="18162" publishTime="1503849392"/>
@@ -3164,7 +3175,5 @@ function CACMod_OnGameMenu():Void {
<PublishItem publishSize="17080" publishTime="1496211687"/>
<PublishItem publishSize="17080" publishTime="1496211660"/>
<PublishItem publishSize="17799" publishTime="1495942027"/>
<PublishItem publishSize="17793" publishTime="1495941802"/>
<PublishItem publishSize="17786" publishTime="1495941690"/>
</publishHistory>
</DOMDocument>

0 comments on commit 3ebd57a

Please sign in to comment.