Author Topic: Mounting two images to the same slot?  (Read 1178 times)

Is it possible to mount two images to the same slot? I was thinking of wearing multiple hats at the same time.

I think you can do that.

No, it isn't possible.

you could mount the second image to another slot and give it an offset

I though the only two slots you could mount to were head and right hand? In case of hats head is the only logical one because if you were to activate the hat would fly off.

I though the only two slots you could mount to were head and right hand? In case of hats head is the only logical one because if you were to activate the hat would fly off.
I've mounted multiple images to my hand before :o, its not possible for the rest I guess huh?

i was thinking about this in class today, but don't know if it would work. what about mounting a centered, invisible, bot on the players head. the bot would use a centered model, such as empty, and all slots (0,1,2,5) would be mounted to the bot, which would then appear on your head.

Seems like unnecessarily complicated thing for such a simple thing.

I though the only two slots you could mount to were head and right hand?
The slot an image is mounted to has no effect on its location on the player, though each slot has a "corresponding" location. The location of the image is determined by the image's mountPoint variable, and not the slot it's in.

Seems like unnecessarily complicated thing for such a simple thing.
It's a way around a problem. If we had access to lower-level code we could do it in a less circuitous manner, but the way Heed suggested will have to do.

Could you package Player::unMountImage so that the old image doesn't dismount when the new one is mounted?

You can change the mountpoint on the datablock to be the same as another, but mount it to another slot.

Example:

mountpoint = 0;
.mountimage(IMAGENAME,1);

It will still appear in the right hand, despite being mounted to slot 1. You will still need to call the left hand trigger to activate this weapon, or via a script to be called by some other method.
(tip, the trigger for slot 1 is not in the list of controls by default)

Uhmm, i dont think two images will work.

But what if you make two different / normal models on the same .dts file, and add a custom hand to the Left gun. Than all you need to do is make 2 MuzzlePoints and 1 MountPoint (MountPoint must be on the right model, offcourse.....) And the distance between the 2 models is the Width of the blockhead (i dont know what the width of a blockhead is).

Maybe that will work?

EDIT: sorry, i didnt read well and tought you were talking about a Gun. But if you want to make a Hat on a Hat than maybe all you need to do is change the second hat's position (higher than the first hat)
« Last Edit: November 05, 2011, 10:06:29 AM by NakedBanana »