Author Topic: Default admin orb script  (Read 2358 times)

Where would I find that?

Where would I find that?

Do you mean the kind that is encrypted? Because I'm sure there is a way to wiggle the code out of the console, but I can't tell you for sure.

Do you mean the kind that is encrypted? Because I'm sure there is a way to wiggle the code out of the console, but I can't tell you for sure.
Shutup. You have no clue what you are talking about.

I think you have know clue what I'm talking about. Besides, my post atleast tried to help. Yours failed.

What my post is sayign is: I'm asking him if he means the one that comes with Blockland, therefor, it is encrypted. Then, I am saying if he wants THAT code, that there is a way to find out most of it without hacking the game.

Shoulda know the flamers come out at this hour...
« Last Edit: May 02, 2010, 10:34:51 AM by Will Smith! »

Trace(1); and Dump();

This is your best friend when you want to find functions that are in the engine.

Usage:
Type Trace(1); in console, press f8, press f7, type Trace(0); in console.

Now you need to look over what was printed in console.

This is just a wild guess but it should be something like "serverCmdWarp".

This is not the exact code from the engine but it is all of the functions that are called using the Admin "Orb".

After typing in a function use .Dump(); to get more information.

"findclientbyname("Desolation").Dump();" would get all of the functions and such that can be run on me.


What my post is sayign is: I'm asking him if he means the one that comes with Blockland, therefor, it is encrypted. Then, I am saying if he wants THAT code, that there is a way to find out most of it without hacking the game.
Of course I mean the one that comes with the game, hence "default" not "custom".

I got the following commands with the most intriguing commands that Desolation was so nice to provide me with.

servercmdDropCameraAtPlayer
servercmdDropPlayerAtCamera

What do I do with those? I really just interested in the emitter/particle or what ever it's called in scripts.
« Last Edit: May 02, 2010, 12:57:07 PM by Demian »

Code: [Select]

function serverCmdToggleCamera(%client)
{
   %control = %client.getControlObject();
   if (%control == %client.player)
   {
      %control = %client.camera;
      %control.mode = toggleCameraFly;
   }
   else
   {
      %control = %client.player;
      %control.mode = observerFly;
   }
   %client.setControlObject(%control);
}

function serverCmdDropPlayerAtCamera(%client)
{
   if (%client.isadmin || %client.issuperadmin)
   {
      %client.player.setTransform(%client.camera.getTransform());
      %client.player.setVelocity("0 0 0");
      %client.setControlObject(%client.player);
   }
}

function serverCmdDropCameraAtPlayer(%client)
{
   if(%client.isadmin || %client.issuperadmin){
   %client.camera.setTransform(%client.player.getEyeTransform());
   %client.camera.setVelocity("0 0 0");
   %client.setControlObject(%client.camera);
   }
}

This is, roughly, what you're looking for.

Anyone have the particle for it? I assume it's called "CameraEmitterA".

A new Orb replacement is in the Add-Ons section if you want to look at that.

http://forum.blockland.us/index.php?topic=109426

I noticed that but the script is modified, I need the original.

Lilboarder had the same question so it should be back in the coding section somewhere. Just do a search.

I noticed that but the script is modified, I need the original.

PM teh creators of teh addons

What are you trying to do? Explain this instead of sitting there asking for Blockland source code.

Make a custom admin orb edit?

If you use the same names "CameraParticleA", "CameraEmitterA", whatever then you can have any settings you like for the particle and emitter datablocks.

If you want it to function similar to the existing ones then use CameraEmitterA.save("Add-Ons/Particle_CameraEmitterA.cs"); in the console while hosting a non-dedicated server to save the emitter datablock. (same for any of the other emitters or particle types)