Author Topic: disable orb delay  (Read 536 times)

I hate it when you orb, how you cant place ghost bricks, or click until the orb emitter goes away. It would be great if there was a simple script that canceled this out. thanks!

I think this has something to do with the built in spawnkill prevention that stops you from being damaged or triggering events and other stuff for 2-3 seconds, so disabling that by setting the times to 0 should allow this at the expense of allowing someone to pretty much loop kill someone via events or just the regular way.

This is all reliant on the player effectively respawning as far as the system knows after orbing, so if that is false, this won't fix anything that way and only harm the server.
« Last Edit: July 07, 2014, 04:33:32 PM by QuadStorm »

This code should do the trick:

package NoOrbTimeout
{
   function Player::teleportEffect(%player)
   {
      %p = new Projectile()
      {
         dataBlock = playerTeleportProjectile;
         initialPosition = %player.getHackPosition();
      };

      if(%p)
      {
         %p.setScale(%player.getScale());
         MissionCleanup.add(%p);
      }
   }
};
activatepackage(NoOrbTimeout);