Blockland Forums > Modification Help
[Chilmans] Christmas Mod Pack
leonstormrat23:
--- Quote from: chilmans on October 30, 2010, 05:50:52 AM ---I named it Christmas pack because I celebrate christmas, don't believe in god nor in santa though.
--- End quote ---
Then why not name it xmas?
MegaScientifical:
--- Quote from: chilmans on November 03, 2010, 04:35:58 AM ---Yes. Ok, I'll take that as approved :D
You mean "explodes"?
--- End quote ---
I'd be cooler if it imploded, pulled everyone in, and crushed them into an infinitely small point (Black Whole? I have a code for it, but I haven't tested it at all and very sloppily made I may add).
chilmans:
--- Quote from: MegaScientifical on November 04, 2010, 12:05:57 AM ---I'd be cooler if it imploded, pulled everyone in, and crushed them into an infinitely small point (Black Whole? I have a code for it, but I haven't tested it at all and very sloppily made I may add).
--- End quote ---
Show me the code (even if it is crappy)
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;
}
else 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);
chatMessageAll(%client, "\c3" @ %client.name @ " \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 ---
Very crappy old code. As you can see at the top, NiXiLL gave me the original code, but incomplete. I added really bad code to it. Never really adjusted it, but maybe you can fix it.
chilmans:
--- Quote from: MegaScientifical on November 04, 2010, 10:09:10 PM ---Very crappy old code. As you can see at the top, NiXiLL gave me the original code, but incomplete. I added really bad code to it. Never really adjusted it, but maybe you can fix it.
--- End quote ---
Have you tried it at all?