Blockland Forums > Suggestions & Requests

Implosion Bomb

Pages: << < (3/5) > >>

U.S. Air Marshall:


--- Quote from: Kalphiter on June 08, 2010, 04:28:58 PM ---i want a wepon that makes a giant explosion and explodes the entire bedroom

--- End quote ---
bigger mini nuke? wait if its that big might as well call it a nuke!

MegaScientifical:

Actually, I think it was NiXiLL or Fooly Cooly who gave me a weird code for making a Blackhole. It worked by impulsing all players within a radius toward a point. AKA, wouldn't really lag when done.

Shouldn't be too hard to adapt the script, although I've never been able to test it since no one joins my server when I want to test it. :cookieMonster:

NiXiLL:


--- Quote from: MegaScientifical on June 08, 2010, 05:57:59 PM ---Actually, I think it was NiXiLL or Fooly Cooly who gave me a weird code for making a Blackhole. It worked by impulsing all players within a radius toward a point. AKA, wouldn't really lag when done.

Shouldn't be too hard to adapt the script, although I've never been able to test it since no one joins my server when I want to test it. :cookieMonster:

--- End quote ---
'twas me. :3

Tyler66:


--- Quote from: Peejster on June 08, 2010, 11:59:51 AM ---Black hole bomb?

--- End quote ---
Also, It would be good for deletion. If you have a crapload of x64 cubes and use the bomb...now you have a little rubber toy ball.

MegaScientifical:


--- Code: ---//NiXiLL
function serverCmdCreateBlackHole(%client, %size) {
if(!%client.isadmin) {
messageClient(%client, "Admin Only");
return;
}
else if(!isObject(%client.player)) {
messageClient(%client, "You do not exist!");
return;
}
if(%size > 5000 || %size < 5) {
messageClient(%client, "Force must be between 5 and 5000");
return;
}
%force = %size*2;
schedule(250, 0, BlackHole, %client, %size, %force);
messageAll(-1,"\c3"@%client.getPlayerName()@" \c0has created a black hole!");
}
function BlackHole(%client, %size, %force) {
//for(%i = 0; %i < ClientGroup.getCount(); %i++) {
// %c = ClientGroup.getObject(%i);
// if(isObject(%c.player) && %c != %client)
// %c.player.applyImpulse(0, vectorScale(vectorNormalize(vectorSub(%client.player.getPosition(), %c.player.getPosition())), %force));
//}
initContainerRadiusSearch(%client.player.getPosition(),%size,$TypeMasks::PlayerObjectType);
while((%targetObject = containerSearchNext()) != 0) {
if(%targetObject != %client.player) {
if(!isObject(%targetObject)) {break;}
%targetObject.applyImpulse(0, vectorScale(vectorNormalize(vectorSub(%client.player.getPosition(), %targetObject.getPosition())), %force));
}
}
}
--- End code ---


--- Quote from: MSN ---Lumii :3 says:
*nu
*i refuse
*i won't post my own crappy code
*besides
*<3 ruby
*</3 TQS
*i should post a ruby topic
--- End quote ---


Pages: << < (3/5) > >>

Go to full version