Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/Main.as b/Main.as
- index 8df2f00..0102a0b 100644
- --- a/Main.as
- +++ b/Main.as
- @@ -129,11 +129,13 @@
- public var kongAPI;
- + public static var frames:Number = 0;
- public function Main()
- {
- super();
- this.hideContextMenu();
- + addEventListener(Event.ENTER_FRAME, function(e) { Main.frames++; });
- if(stage)
- {
- this.init();
- diff --git a/package_6/CourseTimer.as b/package_6/CourseTimer.as
- index 074c704..b83a022 100644
- --- a/package_6/CourseTimer.as
- +++ b/package_6/CourseTimer.as
- @@ -12,6 +12,9 @@
- private var startTime: Number;
- + private var startTimeLocal: Number;
- + private var startFrameLocal: Number;
- +
- private var var_308: uint;
- private var target: Course;
- @@ -42,6 +45,14 @@
- return this.time;
- }
- + public function lapFramesLocal():Number {
- + return Main.frames - this.startFrameLocal;
- + }
- +
- + public function lapTimeLocal():Number {
- + return (Main.socket.getTime() - this.startTimeLocal) / 1000;
- + }
- +
- private function method_189(): Number {
- return (Main.socket.getTime() - this.startTime) / 1000;
- }
- @@ -97,6 +108,8 @@
- }
- public function init(): * {
- + this.startFrameLocal = Main.frames;
- + this.startTimeLocal = Main.socket.getTime();
- this.startTime = Main.socket.getTime();
- this.method_425();
- }
- diff --git a/package_6/DrawingInfo.as b/package_6/DrawingInfo.as
- index ff6ef28..07b1bfa 100644
- --- a/package_6/DrawingInfo.as
- +++ b/package_6/DrawingInfo.as
- @@ -1,4 +1,4 @@
- -package package_6
- +package package_6
- {
- import data.class_28; //+
- import data.CommandHandler;
- @@ -129,6 +129,12 @@ package package_6
- {
- _loc8_ = _loc8_ + " (gone)";
- }
- + else
- + {
- + if (!isNaN(Course.course.finishTimeLocal) && _loc4_.toLowerCase() == Main.loggedInAs.toLowerCase())
- + _loc8_ += " (" + class_28.formatTime(Course.course.finishTimeLocal,"decimal") +
- + "@" + Course.course.finishFrameLocal + ")";
- + }
- this.m.info1["timeBox" + _loc2_].text = this.m.info2["timeBox" + _loc2_].text = _loc8_;
- this.m.info1["nameBox" + _loc2_].text = this.m.info2["nameBox" + _loc2_].text = _loc4_;
- _loc2_++;
- diff --git a/package_6/Game.as b/package_6/Game.as
- index 5f3c885..d205baa 100644
- --- a/package_6/Game.as
- +++ b/package_6/Game.as
- @@ -332,6 +332,15 @@
- }
- }
- + public var finishTimeLocal:Number;
- + public var finishFrameLocal:Number;
- +
- + public function recordLocalFinishTimes():void
- + {
- + this.finishTimeLocal = timer.lapTimeLocal();
- + this.finishFrameLocal = timer.lapFramesLocal();
- + }
- +
- override public function finish(param1:int = -1, param2:int = 0, param3:int = 0) : *
- {
- if(!this.var_370)
- @@ -340,13 +349,14 @@
- {
- if(param1 != -1)
- {
- + this.recordLocalFinishTimes();
- miniMap.removeFinish(param2,param3);
- Main.socket.write("objective_reached`" + param1 + "`" + param2 + "`" + param3);
- }
- }
- else
- {
- + this.recordLocalFinishTimes();
- Main.socket.write("finish_race`" + param1 + "`" + param2 + "`" + param3);
- if(this.gameMode != Modes.hat)
- {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement