Blockland Forums > Suggestions & Requests

Script that corrects the color for weapons with hands

Pages: << < (3/5) > >>

Treynolds416:


--- Quote from: Lugnut on September 23, 2012, 03:13:27 PM ---i'm not positive this will work. would it be possible to make multiple models and mount the relevant one?

--- End quote ---
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

Headcrab Zombie:


--- Quote from: Masterlegodude on September 23, 2012, 08:18:42 PM ---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?

--- End quote ---
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



--- Quote from: Treynolds416 on September 23, 2012, 08:20:50 PM ---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

--- End quote ---
Additionally, it would at best use a closest matching color, meaning the color would still be off from the player's actual hand color.

The Corporation:

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

Treynolds416:


--- Quote from: The Corporation on September 23, 2012, 08:34:25 PM ---so from what I'm getting from all of this, it's possible, but could be very glitchy and hard to do.

--- End quote ---
Not glitchy. Very time consuming, and unnecessarily resource consuming

Headcrab Zombie:


--- Quote from: The Corporation on September 23, 2012, 08:34:25 PM ---so from what I'm getting from all of this, it's possible, but could be very glitchy and hard to do.

--- End quote ---
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.

Pages: << < (3/5) > >>

Go to full version