Author Topic: Script that corrects the color for weapons with hands  (Read 2148 times)

We've all seen it, the gun with hands, and they have a different color than what your blocklander's actually is.
Well, the idea I've got just might be able to fix that.
The script basically figures out the avatar's hand color, like a call back or something(beginning scripter here), and then it just applies it to the material of the hands.

Or it could be a mod of some sort where the material for the hands on the weapon is the same name as the material for the hands on the original playermodel..
Any thoughts on this?

not a bad idea, but i don't see how you would do this without redoing every single weapon with hands on it.

not a bad idea, but i don't see how you would do this without redoing every single weapon with hands on it.
Well, the thing is, when a new weapon comes out, it'll have the script installed in it.
Meaning previous weapons or makers will have to adapt, if they want to.

i'm not positive this will work. would it be possible to make multiple models and mount the relevant one?

i'm not positive this will work. would it be possible to make multiple models and mount the relevant one?
Having a bit of a brainfart here, could you re-word that?

Having a bit of a brainfart here, could you re-word that?
The maker of the addon makes multiple models, with the only difference between all of them being the colour of the hands. Then, the script detects the right model to use and uses it.

Very, very, very possible, but nowone is going to do it because meatcubes. limited speech because those peple

The maker of the addon makes multiple models, with the only difference between all of them being the colour of the hands. Then, the script detects the right model to use and uses it.
you can modify the material colors within the script...

you can modify the material colors within the script...
Yeah have fun making a ton of datablocks with various colors

How do custom player models take the color of the player's appearance?

Edit: %client.player.setNodeColor($RLeg[0], %client.rlegColor);
I hardly know anything about scripting, but wouldn't something like that be used? Just replace $RLeg with the node name for the hand on your weapon? Nodes are bones/joints, yes?
« Last Edit: September 23, 2012, 08:21:25 PM by Masterlegodude »

i'm not positive this will work. would it be possible to make multiple models and mount the relevant one?
It would be possible but what's the point? Each secondary model would still use a datablock per color, same as making the whole model another datablock

How do custom player models take the color of the player's appearance?

Edit: %client.player.setNodeColor($RLeg[0], %client.rlegColor);
I hardly know anything about scripting, but wouldn't something like that be used? Just replace $RLeg with the node name for the hand on your weapon? Nodes are bones/joints, yes?
The hand nodes on the player are hidden, and replaced with a hand modeled onto the weapon. The modeled hand can not be recolored by the node system


It would be possible but what's the point? Each secondary model would still use a datablock per color, same as making the whole model another datablock
Additionally, it would at best use a closest matching color, meaning the color would still be off from the player's actual hand color.

so from what I'm getting from all of this, it's possible, but could be very glitchy and hard to do.

so from what I'm getting from all of this, it's possible, but could be very glitchy and hard to do.
Not glitchy. Very time consuming, and unnecessarily resource consuming

so from what I'm getting from all of this, it's possible, but could be very glitchy and hard to do.
The best this could be done is to create several datablocks (maybe models as well, I don't know how much the colorShift can do) of the weapon, probably with the hands colors basic colors like "white" "black" "red" etc and then use some sort of clever maths to figure out which is closest to the player's hand color and mount the appropriate one.

The keyword there is closest. It still wouldn't be a perfect match, the game simply could not handle a datablock for every color possible.