Author Topic: Admin Camera  (Read 1588 times)

1. What is the datablock name of the admin camera?
2. How would I go about changing it's emitter?
3. Would I have to overwrite the camera emitter?
4. Or is it possible to just change it?
Thanks for all help!

i dont think the admin camera is a datablock, its just a camera with an emitter on it. to change it you might have to go into the player functions or the allclientscripts file but they are DSO

i dont think the admin camera is a datablock, its just a camera with an emitter on it. to change it you might have to go into the player functions or the allclientscripts file but they are DSO
A better alternative would be to dump.
To 'dump' the camera, enter into the console (in single player):
Code: [Select]
localclientconnection.camera.dump();
To change the camera's emitter, you would make a new image inherited from the default camera image (cameraImage) and then change the function dropCameraAtPlayer with a package, like this:
Code: [Select]
package CameraOverwrite
{
   function dropCameraAtPlayer(%this,%args,%args,%args) //This isn't correct
   {
      parent::dropCameraAtPlayer(%this,%args,%args,%args); //Again, not correct
      %this.camera.unMountImage(0);
      %this.camera.mountImage(yourNewImage,0);
   }
};
activatePackage(CameraOverwrite);

So create a new image parenting the cameraImage?
Using:
Code: [Select]
datablock shapeBaseImageData(fireCamImage : cameraImage)?

I have a better idea. You can go into tree(); and the find the camera, under the datablocks section, and change the emitter to what particle you want to be emitted.

I have a better idea. You can go into tree(); and the find the camera, under the datablocks section, and change the emitter to what particle you want to be emitted.

How is that a good idea?

Well, it's easier than doing it through code, and otherwise, if you don't fully use it, you can learn how to do it, and what the datablock names are. And it would teach you how to use tree/do this.

So just type tree(); into the console?

Well, it's easier than doing it through code, and otherwise, if you don't fully use it, you can learn how to do it, and what the datablock names are. And it would teach you how to use tree/do this.
9 of 10 times, editing a datablock ingame is a bad idea.

Use tree to get the value you need to change.

Yes, don't edit it in game, but I was right about the other thing.

I don't know how you can edit the datablocks in tree without being in a game. How does that make you right?

Okay, so I went into tree();, found the cameraImage, and I found where it says stateEmitter1 & stateEmitter2 are both CameraEmitterA. How would I change those? It shows as a drop-down box where I can choose emitters, but you said not to change datablocks directly in-game. What shall I do?

Through code, you could set them easily.

Through code, you could set them easily.
GenericGuy: "How do I fix the headlights on my car?"
AGlass0fMilk: "It's possible."

lol, I might help later.

1. What is the datablock name of the admin camera?
2. How would I go about changing it's emitter?
3. Would I have to overwrite the camera emitter?
4. Or is it possible to just change it?
Thanks for all help!
I just gave him an answer to that most of those.
« Last Edit: June 11, 2009, 09:26:48 PM by AGlass0fMilk »