Poll

Would you like to see another event like this in the future?

Yes
38 (97.4%)
No
1 (2.6%)

Total Members Voted: 39

Author Topic: Spring Break Madness (Challenge Complete!)  (Read 13113 times)

I don't know which I want more, the Dogfight playertype or the Boundaries.

I don't know which I want more, the Dogfight playertype or the Boundaries.

Well, you've got 5 attempts to vote for it!

Also, I'll be revealing one of the hidden add-ons shortly.

WHY WON'T ANYONE VOTE FOR THE MAP

BAW

Guess what? A hidden add-on is revealed!

KDR ratios!

I'll add it to the poll, but it probably won't win due to a late start.

There's always tomorrow though!

It seems that the Boundary script is in the lead! I'll post it (unless something else dominates for some odd reason) on the hour, and upload it to RTB.
« Last Edit: March 15, 2011, 01:07:55 AM by Deathwishez »


The Boundary Script has been released!

Future add-ons will be released in the same thread (Link: http://forum.blockland.us/index.php?topic=147720.0)

The poll has been reset.

Let Round 2 begin!

Yay for boundaries! We need more genius mods like these :)
Kill/Death ratios will be neat too.

I can't believe I was stupid to realize what the other mods are... good job can't wait for the epic hidden mod to hopefully come out ;)

The Dogfight Player is still superior after the boundaries.
I think I pick the map after the playertype.
« Last Edit: March 15, 2011, 04:42:11 AM by Kiwi »

I should totally quickly make all the non-released add-ons quickly and release them before Boom gets around to it.
 :cookieMonster:

EDIT:
wow i seem bored. took like 5 minutes, although no RTB prefs
Code: [Select]
$saveKDR = true;
function GameConnection::loadKDR(%this) {
   %fo = new fileObject();
   %fo.openForRead("confifg/server/KDR/" @ %this.bl_id @ ".dat");
   %this.kills = %fo.readLine();
   %this.deaths = %fo.readLine();
   %fo.close();
   %fo.delete();
}
function GameConnection::saveKDR(%this) {
   %fo = new fileObject();
   %fo.openForWrite("confifg/server/KDR/" @ %this.bl_id @ ".dat");
   %fo.writeLine(%this.kills);
   %fo.writeLine(%this.deaths);
   %fo.close();
   %fo.delete();
}
function gameConnection::updateKDR(%this) {
   %this.clanSuffix = %this.firstClanSuffix SPC "\c7[\c4" @ %this.getKDR() @ "\c7";
}
function gameConnection::getKDR(%this) {
   return mFloatLength(%this.kills / %this.deaths, 2);
}
package KDR {
   function GameConnection::autoAdminCheck(%this) {
      if($saveKDR) {
         %this.loadKDR();
         %this.updateKDR();
      }
      return parent::autoAdminCheck(%this);
   }
   function gameConnection::onDeath(%this, %pl, %cl, %type, %loc) {
      parent::onDeath(%this, %pl, %cl, %type, %loc);
      if(%cl !$= %this)
         %cl.kills++;
      %this.deaths++;
      %this.updateKDR();
      if($saveKDR)
         %this.saveKDR();
   }
};
activatePackage(KDR);

includes easy way to get a player's KDR outside this mod (client.getKDR())
« Last Edit: March 15, 2011, 04:39:16 AM by Bauklotz »

Thanks Bauklotz now we have one more vote for the map. XD
I gonna test your script right away.

Fixed:
Code: [Select]
$saveKDR = true;
function GameConnection::loadKDR(%this) {
   %fo = new fileObject();
   %fo.openForRead("confifg/server/KDR/" @ %this.bl_id @ ".dat");
   %this.kills = %fo.readLine();
   %this.deaths = %fo.readLine();
   %fo.close();
   %fo.delete();
}
function GameConnection::saveKDR(%this) {
   %fo = new fileObject();
   %fo.openForWrite("confifg/server/KDR/" @ %this.bl_id @ ".dat");
   %fo.writeLine(%this.kills);
   %fo.writeLine(%this.deaths);
   %fo.close();
   %fo.delete();
}
function gameConnection::updateKDR(%this) {
   %this.clanSuffix = %this.firstClanSuffix SPC "\c7[\c4" @ %this.getKDR() @ "\c7";
}
function gameConnection::getKDR(%this) {
   return %this.kills - %this.deaths;
}
package KDR {
   function GameConnection::autoAdminCheck(%this) {
      if($saveKDR) {
         %this.loadKDR();
         %this.updateKDR();
      }
      return parent::autoAdminCheck(%this);
   }
   function gameConnection::onDeath(%this, %pl, %cl, %type, %loc) {
      parent::onDeath(%this, %pl, %cl, %type, %loc);
      if(%cl !$= %this)
         %cl.kills++;
      %this.deaths++;
      %this.updateKDR();
      if($saveKDR)
         %this.saveKDR();
   }
};
activatePackage(KDR);

That's the general idea, but that's not a ratio. I use kill/deaths.

If you really want to ruin the event, go ahead. However, I doubt you could pump out 8 add-ons in 5 days.

7 have something to do with vehicle theft? Grand Theft Auto RPs here we come...

Looks very, very cool.

I doubt you could pump out 8 add-ons in 5 days.

It took five minutes to make the KDR script.