Author Topic: Checkpoint only works if it's your brick.  (Read 1553 times)

Just use the event.  Done.

Just use the event.  Done.

It still works for everyone else even if it's not their brick. You are missing the point.

Make it so checkpoints only work for the planter so they can't be used to turn the game into hell.

This is what I need.

Once again bump.

This stuff shouldn't be hard to understand or make.

Variables + The Event?

This is the default checkpoint brick one:
Code: [Select]
function brickCheckpointData::onPlayerTouch(%data, %obj, %player)

{

   %client = %player.client;

   if(!isObject(%client))

      return;



   if(%client.checkPointBrick != %obj)

   {

      %client.checkPointBrick = %obj;

      %client.checkPointBrickPos = %obj.getPosition();

      commandToClient(%client, 'BottomPrint', "\c4Checkpoint reached! \c7- Say /clearCheckpoint to go back to the beginning", 3);



      Parent::onPlayerTouch(%data, %obj, %player);

   }

}

Fixing it to be only for the brick owner depends on how the salvage mod places bricks. (Do they go in your brickgroup or the one the brick came from? Does it set brick.client which'd only work until you leave?)

This is the default checkpoint brick one:
Code: [Select]
function brickCheckpointData::onPlayerTouch(%data, %obj, %player)

{

   %client = %player.client;

   if(!isObject(%client))

      return;



   if(%client.checkPointBrick != %obj)

   {

      %client.checkPointBrick = %obj;

      %client.checkPointBrickPos = %obj.getPosition();

      commandToClient(%client, 'BottomPrint', "\c4Checkpoint reached! \c7- Say /clearCheckpoint to go back to the beginning", 3);



      Parent::onPlayerTouch(%data, %obj, %player);

   }

}

Fixing it to be only for the brick owner depends on how the salvage mod places bricks. (Do they go in your brickgroup or the one the brick came from? Does it set brick.client which'd only work until you leave?)

When you salvage a brick it goes back in your brickcart.


I have this and was going to release it as an update to salvage mod this weekend.

I have this and was going to release it as an update to salvage mod this weekend.

Can I get a separate version?

Can I get a separate version?
So you can take the checkpoints made for one salvage mod, and use them for another which as we can clearly see will never be updated by it's creator?
That's just odd.

So you can take the checkpoints made for one salvage mod, and use them for another which as we can clearly see will never be updated by it's creator?
That's just odd.

Because A: Truce's salvage mod is better and B: I could just take it apart from your script anyways.


Making it separate just makes it more convenient for others (not everyone would need this mod for just salvage). I'm not thinking about myself here.

Because A: Truce's salvage mod is better and B: I could just take it apart from your script anyways.


Making it separate just makes it more convenient for others (not everyone would need this mod for just salvage). I'm not thinking about myself here.
How's it better?

How's it better?

Everything that's wrong with your mod is what makes truce's better.


Such as your mod allows big bricks like cubes and baseplates being broken (naming it static is irrelevant, they shouldn't be salvageable in the first place). Bricks can be repaired to a max of 500 (that's too high). Don't forget the buildstairs();/buildwall(); exploit which allows anyone to duplicate stairs with just one brick. Then you give in admin commands to allow admins to bypass salvage so admins can build normally (like we need more ways to make salvage unfair). Truce's salvage doesn't break bricks with any names on it, yours doesn't break bricks only named static. Your method ruins builds that had specifically named bricks for events.

Oh and then most annoying part of all. The only way to manually drop bricks in your mod is to select each one and type in /drop. Truce's method drops bricks by pressing ctrl+w, which is much easier and convenient.


I can keep going on and on why Truce's salvage is better, but I rather focus on getting this checkpoint released separate with or with out you.
« Last Edit: June 08, 2011, 07:39:15 PM by Lørd Tøny »

If you used VCE events with checkpoint events, you can do this very easily

If you used VCE events with checkpoint events, you can do this very easily

Thank you.